-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathappveyor.yml
62 lines (41 loc) · 2.14 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: 1.0.{build}
os: Visual Studio 2015
clone_folder: C:/devel-src/log4cxxWin32
install:
- ps: >-
Set-PSDebug -Trace 2
$apr_url = "http://ftp.meisei-u.ac.jp/mirror/apache/dist//apr/apr-1.5.2-win32-src.zip"
$aprutil_url = "http://ftp.meisei-u.ac.jp/mirror/apache/dist//apr/apr-util-1.5.4-win32-src.zip"
$log4cxx_url = "http://ftp.meisei-u.ac.jp/mirror/apache/dist/logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.zip"
(New-Object System.Net.WebClient).DownloadFile($apr_url, "apr.zip")
(New-Object System.Net.WebClient).DownloadFile($aprutil_url, "aprutil.zip")
(New-Object System.Net.WebClient).DownloadFile($log4cxx_url, "log4cxx.zip")
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("apr.zip","apr")
[System.IO.Compression.ZipFile]::ExtractToDirectory("aprutil.zip","apr-util")
[System.IO.Compression.ZipFile]::ExtractToDirectory("log4cxx.zip","log4cxx")
Move-Item -path C:/Windows/system32/apr/apr-1.5.2 -destination C:/devel-src/log4cxxWin32/apr
Move-Item -path C:/Windows/system32/apr-util/apr-util-1.5.4 -destination C:/devel-src/log4cxxWin32/apr-util
Move-Item -path C:/Windows/system32/log4cxx/apache-log4cxx-0.10.0 -destination C:/devel-src/log4cxxWin32/log4cxx
environment:
CI_OS_NAME: win32
CI_TOOL: appveyor
CHOCO_DEPENDENCIES: "doxygen.portable"
# Should be the same as clone_folder
PROJECT_SOURCE_DIR: C:/devel-src/log4cxxWin32
# Do not tinker with the variables below unless you know what you are doing
SOURCE_FOLDER: C:\devel-src
CMAKE_INSTALL_PREFIX: C:/devel
PATH: C:/devel/bin;C:\Libraries\boost_1_59_0\lib64-msvc-14.0;%PATH%
PKG_CONFIG_PATH: C:/devel/lib/pkgconfig
BOOST_ROOT: C:\Libraries\boost_1_59_0
BOOST_LIBRARYDIR: C:\Libraries\boost_1_59_0\lib64-msvc-14.0
before_build:
cmd: >-
cd %PROJECT_SOURCE_DIR%/scripts
configure.bat
cd %PROJECT_SOURCE_DIR%/cmake
git submodule update --init
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX%
build:
project: C:/devel-src/log4cxxWin32/cmake/liblog4cxx.sln