forked from haxeui/hxWidgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
62 lines (55 loc) · 1.95 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
54
55
56
57
58
59
60
61
62
version: "{build}"
clone_folder: C:\projects\hxWidgets
clone_depth: 1
environment:
global:
ROOT: C:\projects\hxWidgets
HXCPP_ROOT: C:\projects\hxcpp
HAXELIB_ROOT: C:\projects\haxelib
WXWIDGETS_ROOT: C:\projects\wxWidgets
cache:
- wxWidgets-3.0.2.7z -> appveyor.yml
- wxMSW-3.0.2_vc120_Dev.7z -> appveyor.yml
install:
# change windows update settings to get chocolatey working on appveyor
# https://help.appveyor.com/discussions/problems/5616-not-able-to-build-due-to-problem-in-chocolateyinstallps1
- ps: Set-Service wuauserv -StartupType Manual
# Install haxe, download the chocolatey package
- cinst haxe -y
- RefreshEnv
- haxe -version
- neko -version
# Setup haxe
- mkdir "%HAXELIB_ROOT%"
- haxelib setup "%HAXELIB_ROOT%"
# Download dev hxcpp
- git clone --recursive --depth 1 -q https://github.com/HaxeFoundation/hxcpp.git %HXCPP_ROOT%
- haxelib dev hxcpp %HXCPP_ROOT%
# Build dev hxcpp
- cd %HXCPP_ROOT%\tools\hxcpp
- haxe compile.hxml
- cd %HXCPP_ROOT%\tools\build
- haxe compile.hxml
- cd %HXCPP_ROOT%\project
- neko build.n clean
- neko build.n windows-x86
# Download wxWidgets
- cd %ROOT%
- if not exist "wxWidgets-3.0.2.7z" (
curl -fsSL -o wxWidgets-3.0.2.7z --retry 3 https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.2/wxWidgets-3.0.2.7z
)
- if not exist "wxMSW-3.0.2_vc120_Dev.7z" (
curl -fsSL -o wxMSW-3.0.2_vc120_Dev.7z --retry 3 https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.2/wxMSW-3.0.2_vc120_Dev.7z
)
# Install wxWidgets
- mkdir %WXWIDGETS_ROOT%
- cd %WXWIDGETS_ROOT%
- 7z x %ROOT%\wxWidgets-3.0.2.7z
- 7z x %ROOT%\wxMSW-3.0.2_vc120_Dev.7z
- mv lib\vc120_dll lib\vc_dll
- SET WXWIN=%WXWIDGETS_ROOT%
build_script:
- haxelib dev hxWidgets %ROOT%
test_script:
- cd %APPVEYOR_BUILD_FOLDER%\samples\00-Showcase
- haxe build.hxml