-
Notifications
You must be signed in to change notification settings - Fork 96
/
appveyor.yml
54 lines (44 loc) · 1.77 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
46
47
48
49
50
51
52
53
version: 2.0.0-beta.1-{branch}+{build}
image: Visual Studio 2015
environment:
BOOST_ROOT: C:\Libraries\boost_1_65_1
install:
- 'git submodule update --init'
- ps: '$env:path = $env:path.replace("C:\Program Files\Git\usr\bin;", "")'
- ps: '$env:path = "C:\msys64\mingw64\bin;C:\msys64\usr\bin\;" + $env:path'
build_script:
# uninstall tcl/tk
- pacman -Rdd --noconfirm mingw-w64-x86_64-tcl mingw-w64-x86_64-tk
# build tcl
- cd C:\projects
- wget -O tcl-release.tar.gz https://github.com/tcltk/tcl/archive/release.tar.gz
- tar xf tcl-release.tar.gz
- cd tcl-release/win/
- bash configure --enable-threads --enable-64bit --prefix=C:/tcltk/
- make
- make install
# build tk
- cd C:\projects
- wget -O tk-release.tar.gz https://github.com/tcltk/tk/archive/release.tar.gz
- tar xf tk-release.tar.gz
- cd tk-release/win/
- bash configure --enable-64bit --prefix=C:/tcltk/ --with-tcl=../../tcl-release/win/
- make
- make install
# build boost
- cd %BOOST_ROOT%
- call bootstrap.bat gcc
- cat bootstrap.log
- .\b2 toolset=gcc variant=release --with-thread --with-system --with-random --with-filesystem --with-program_options
# install emacs
# We cannot use $(pacman -S *-emacs because ISS packs C:/.../emacs.exe/../* which would include all of msys)
- choco install emacs64
# build mozart2
- mkdir C:\projects\mozart2\build
- cd C:\projects\mozart2\build
- cmake -DCMAKE_BUILD_TYPE=Release -G"MSYS Makefiles" -DCMAKE_PREFIX_PATH=C:/tcltk -DBOOST_ROOT="%BOOST_ROOT%" -DISS_INCLUDE_TCL=ON -DISS_INCLUDE_EMACS=ON C:\projects\mozart2
- make check
- cmake --build . --target installer -- VERBOSE=1
artifacts:
- path: build\mozart2-*-windows.exe
name: Binary installer