-
Notifications
You must be signed in to change notification settings - Fork 14
/
bld.bat
78 lines (71 loc) · 3.41 KB
/
bld.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
REM FE2 Testplugin
REM Requires wxWidgets setup
REM C:\Users\fcgle\source\wxWidgets-3.1.2
REM C:\Users\fcgle\source\wxWidgets-3.2.2
REM Visual Studio 15 2017 installed
REM Visual Studio 17 2022 installed
REM --------------------------------------
REM For Opencpn 5.8 and wxWidgets-3.2.2 using Visual Studio 15 2017
REM --------------------------------------
REM Used for local builds and testing.
REM Create an empty "[plugin]/build" directory
REM Use MSVC Command Prompt from [plugin]root directory ".\bld.bat"
REM Find the errors in the build\output.txt file
REM Then use bash prompt to run cloudsmith-upload.sh command "BASH ./bld.bat"
REM This adds the metadata file to the tarball gz file.
REM Set local environment using wxWidgets-3.2.2
set "wxDIR=%WXWIN%"
set "wxWidgets_ROOT_DIR=%WXWIN%"
set "wxWidgets_LIB_DIR=%WXWIN%\lib\vc14x_dll"
set "WXWIN=C:\Users\fcgle\source\wxWidgets-3.2.2"
REM For Opencpn 5.8 and wxWidgets-3.2.2
cd build
cmake -T v143 -A Win32 -DOCPN_TARGET=MSVC ..
cmake --build . --target package --config relwithdebinfo >output.txt
bash ./cloudsmith-upload.sh
REM --------------------------------------
REM For Opencpn 5.6.2 and wxWidgets-3.1.2 release
REM --------------------------------------
REM Using built C:\Users\fcgle\source\wxWidgets-3.1.2 and local settings
REM set "wxDIR=%WXWIN%"
REM set "wxWidgets_ROOT_DIR=%WXWIN%"
REM set "wxWidgets_LIB_DIR=%WXWIN%\lib\vc14x_dll"
REM set "WXWIN=C:\Users\fcgle\source\wxWidgets-3.1.2"
REM cd build
REM cmake -T v141_xp -DOCPN_TARGET=MSVC ..
REM cmake --build . --target package --config release >output.txt
REM bash ./cloudsmith-upload.sh
REM --------------------------------------
REM For Opencpn 5.8 and wxWidgets-3.2.2 using Visual Studio 15 2017
REM --------------------------------------
REM Using built C:\Users\fcgle\source\wxWidgets-3.2.2 and local settings
REM set "wxDIR=%WXWIN%"
REM set "wxWidgets_LIB_DIR=%WXWIN%\lib\vc14x_dll"
REM set "WXWIN=C:\Users\fcgle\source\wxWidgets-3.2.2"
REM cd build
REM cmake -T v141_xp -G -DOCPN_TARGET=MSVC "Visual Studio 15 2017"
REM -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
REM cmake --build . --target tarball --config RelWithDebInfo >output.txt
REM bash ./cloudsmith-upload.sh
REM --------------------------------------
REM For Opencpn 5.8.2 and wxWidgets-3.2.2 using Visual Studio 12 2022
REM TransmitterDAN full Build in repos2 which executes win_deps.bat
REM --------------------------------------
REM .\buildwin\win_deps.bat
REM cd build
REM cmake -T v143 -A Win32 -DOCPN_TARGET=MSVC "Visual Studio 17 2022" ^
REM -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
REM cmake --build . --target tarball --config RelWithDebInfo >output.txt
REM Setup for wxWidgets 3.2.2
REM wxWidgets_INCLUDE_DIRS %WXWIN%\include
REM wxWidgets_LIB_DIR %WXWIN%\lib\vc_dll
REM wxWidgets_LIBRARIES %WXWIN%\lib\vc_dll
REM wxWidgets_ROOT_DIR %WXWIN%
REM WXWIN C:\Users\fcgle\source\repos2\OpenCPN\cache\buildwxWidgets\
REM --------------------------------------
REM configdev58.bat by Rick for local builds.
REM --------------------------------------
REM Can use "call configdev58.bat" in another batch file to set up local wxWidgets environment
REM set "wxDIR=C:\Users\fcgle\source\repos2\OpenCPN\buildwin\..\cache\buildwxWidgets"
REM set "wxWidgets_ROOT_DIR=C:\Users\fcgle\source\repos2\OpenCPN\buildwin\..\cache\buildwxWidgets"
REM set "wxWidgets_LIB_DIR=C:\Users\fcgle\source\repos2\OpenCPN\buildwin\..\cache\buildwxWidgets\lib\vc_dll"