forked from dongmingdmdm/OpenCPN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
45 lines (36 loc) · 1.44 KB
/
appveyor.yml
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
clone_folder: c:\project\opencpn
shallow_clone: true
platform: x64
configuration: Release
deploy: OFF
test: OFF
install:
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86'
# sent environment variables for wxWidgets
- set WXWIN=C:\wxWidgets-3.0.2
- set wxWidgets_ROOT_DIR=%WXWIN%
- set wxWidgets_LIB_DIR=%WXWIN%\lib\vc_dll
- cmd: SET PATH=%PATH%;%WXWIN%;%wxWidgets_LIB_DIR%;C:\Program Files (x86)\Poedit\Gettexttools\bin;
# install dependencies:
- choco install poedit nsis -x86
# Download and unzip wxwidgets
- ps: Start-FileDownload http://downloads.sourceforge.net/project/wxwindows/3.0.2/wxWidgets-3.0.2.zip
- cmd: 7z x wxwidgets-3.0.2.zip -o%WXWIN% > null
# some debugging information
- set
# - cmake --help
# build wxWidgets
- cmd: cd %WXWIN%\build\msw\
- cmd: nmake -f makefile.vc BUILD=release SHARED=1 CFLAGS=/D_USING_V120_SDK71_ CXXFLAGS=/D_USING_V120_SDK71_
- cmd: nmake -f makefile.vc BUILD=debug SHARED=1 CFLAGS=/D_USING_V120_SDK71_ CXXFLAGS=/D_USING_V120_SDK71_
before_build:
- cd c:\project\opencpn
- mkdir build
- cd build
- cmake -T v120_xp ..
- ps: Start-FileDownload http://downloads.sourceforge.net/project/opencpnplugins/opencpn_packaging_data/OpenCPN_buildwin.7z
- cmd: 7z x OpenCPN_buildwin.7z -oc:\project\opencpn
build_script:
- cmake --build . --config debug
- cmake --build . --config release
# --target package doesn't work because of nsis not correctly installed