Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F133818
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
8 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/appveyor.yml b/appveyor.yml
index 16f4fe9..d1ba3a6 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,41 +1,121 @@
version: 1.0.{build}
clone_depth: 10
shallow_clone: true
image:
- Visual Studio 2013
+ - Visual Studio 2015
platform: Win32
configuration:
- Debug
- Release
install:
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" set CMAKE_GENERATOR=Visual Studio 12 2013
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" set CMAKE_GENERATOR=Visual Studio 14 2015
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" set CMAKE_GENERATOR=Visual Studio 15 2017
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" set VSVERSION=VS2013
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" set VSVERSION=VS2015
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" set VSVERSION=VS2017
+ # SDL2
+ - ps: Start-FileDownload 'http://www.libsdl.org/release/SDL2-devel-2.0.8-VC.zip'
+ - 7z x SDL2-devel-2.0.8-VC.zip
+ - set PATH=%APPVEYOR_BUILD_FOLDER%\SDL2-2.0.8\include;%APPVEYOR_BUILD_FOLDER%\SDL2-2.0.8\lib\x86;%PATH%
+ # SDL2_image
+ - ps: Start-FileDownload 'https://www.libsdl.org/projects/SDL_image/release/SDL2_image-devel-2.0.3-VC.zip'
+ - 7z x SDL2_image-devel-2.0.3-VC.zip
+ - set PATH=%APPVEYOR_BUILD_FOLDER%\SDL2_image-2.0.3\include;%APPVEYOR_BUILD_FOLDER%\SDL2_image-2.0.3\lib\x86;%PATH%
+ # SDL2_ttf
+ - ps: Start-FileDownload 'https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-devel-2.0.14-VC.zip'
+ - 7z x SDL2_ttf-devel-2.0.14-VC.zip
+ # ???
+ - del SDL2_ttf-2.0.14\lib\x86\zlib1.dll
+ - set PATH=%APPVEYOR_BUILD_FOLDER%\SDL2_ttf-2.0.14\include;%APPVEYOR_BUILD_FOLDER%\SDL2_ttf-2.0.14\lib\x86;%PATH%
+ # SDL2_mixer
+ - ps: Start-FileDownload 'https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.2-VC.zip'
+ - 7z x SDL2_mixer-devel-2.0.2-VC.zip
+ - set PATH=%APPVEYOR_BUILD_FOLDER%\SDL2_mixer-2.0.2\include;%APPVEYOR_BUILD_FOLDER%\SDL2_mixer-2.0.2\lib\x86;%PATH%
# setup Visual Studio
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- # we just download our prebuilt 3rdparty dependencies
- - set BINSUFFIX=%PLATFORM%-%VSVERSION%-%CONFIGURATION%
- - mkdir 3rdparty && cd 3rdparty
- - appveyor DownloadFile "https://github.com/acmepjz/meandmyshadow/releases/download/v0.5-devel001/3rdparty-%BINSUFFIX%.7z"
- - 7z x 3rdparty-%BINSUFFIX%.7z
+ # libcurl...
+ - ps: Start-FileDownload 'https://bintray.com/artifact/download/vszakats/generic/curl-7.59.0-win32-mingw.zip'
+ - 7z x curl-7.59.0-win32-mingw.zip
+ # ???
+ - rename curl-7.59.0-win32-mingw\lib\libcurl.dll.a libcurl.lib
+ # ??? again
+ - ps: Start-FileDownload 'https://skanthak.homepage.t-online.de/download/curl-7.59.0.cab'
+ - 7z x curl-7.59.0.cab
+ - copy /y I386\LIBCURL.DLL curl-7.59.0-win32-mingw\bin\libcurl.dll
+ - set PATH=%APPVEYOR_BUILD_FOLDER%\curl-7.59.0-win32-mingw\include;%APPVEYOR_BUILD_FOLDER%\curl-7.59.0-win32-mingw\lib;%PATH%
+ # zlib...
+ - ps: Start-FileDownload 'http://www.zlib.net/zlib1211.zip'
+ - 7z x zlib1211.zip && cd zlib-1.2.11
+ - mkdir build && cd build
+ - cmake -G "%CMAKE_GENERATOR%" ..
+ - msbuild zlib.sln /target:zlib /p:Configuration=%CONFIGURATION%
+ # ???
+ - copy zconf.h ..\zconf.h
+ - cd ..\..
+ - set PATH=%APPVEYOR_BUILD_FOLDER%\zlib-1.2.11;%APPVEYOR_BUILD_FOLDER%\zlib-1.2.11\build\%CONFIGURATION%;%PATH%
+ # libarchive, need to compile from source (very slow)
- cd ..
- - set PATH=%APPVEYOR_BUILD_FOLDER%\3rdparty;%PATH%
-artifacts:
- - path: 'binonly-$(BINSUFFIX).7z'
-before_build:
+ - git clone --depth 3 https://github.com/libarchive/libarchive.git
+ - cd libarchive
+ - mkdir builddd && cd builddd
+ - cmake -G "%CMAKE_GENERATOR%" ..
+ - msbuild libarchive.sln /target:archive /p:Configuration=%CONFIGURATION%
+ - cd /d %APPVEYOR_BUILD_FOLDER%
+ - set PATH=%APPVEYOR_BUILD_FOLDER%\..\libarchive\libarchive;%APPVEYOR_BUILD_FOLDER%\..\libarchive\builddd\libarchive\%CONFIGURATION%;%PATH%
+ # %APPVEYOR_BUILD_FOLDER%\..\libarchive\builddd\bin\%CONFIGURATION%;
+ # lua5.2, need to compile from source
+ - ps: Start-FileDownload 'http://www.lua.org/ftp/lua-5.2.4.tar.gz'
+ - 7z x lua-5.2.4.tar.gz && 7z x lua-5.2.4.tar && cd lua-5.2.4\src
+ - echo project(lua52) > CMakeLists.txt
+ - echo add_definitions(-DLUA_BUILD_AS_DLL) >> CMakeLists.txt
+ - echo add_library(lua52 SHARED lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltm.c lundump.c lvm.c lzio.c lauxlib.c lbaselib.c lbitlib.c lcorolib.c ldblib.c liolib.c lmathlib.c loslib.c lstrlib.c ltablib.c loadlib.c linit.c) >> CMakeLists.txt
- mkdir build && cd build
- - cmake -G "%CMAKE_GENERATOR%" -D "LUA_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%\3rdparty" ..
-build:
- project: build\meandmyshadow.sln
- verbosity: normal
-after_build:
- # now we try to package the binary
+ - cmake -G "%CMAKE_GENERATOR%" ..
+ - msbuild lua52.sln /target:lua52 /p:Configuration=%CONFIGURATION%
+ # ??????
+ - copy %CONFIGURATION%\lua52.lib %CONFIGURATION%\lua.lib
+ - cd ..\..\..
+ - set PATH=%APPVEYOR_BUILD_FOLDER%\lua-5.2.4\src;%APPVEYOR_BUILD_FOLDER%\lua-5.2.4\src\build\%CONFIGURATION%;%PATH%
+ # ???
+ # - set LUA_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%\lua-5.2.4\src
+ # now we try to package 3rdparty libraries, for simplicity we put the header and binary together
+ - set BINSUFFIX=%PLATFORM%-%VSVERSION%-%CONFIGURATION%
+ - cd /d %APPVEYOR_BUILD_FOLDER%\curl-7.59.0-win32-mingw\include
+ - echo %APPVEYOR_BUILD_FOLDER%\zlib-1.2.11\build\%CONFIGURATION%\*.dll >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\zlib-1.2.11\build\%CONFIGURATION%\*.lib >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\zlib-1.2.11\build\%CONFIGURATION%\*.pdb >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\zlib-1.2.11\*.h >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\..\libarchive\builddd\bin\%CONFIGURATION%\*.dll >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\..\libarchive\builddd\libarchive\%CONFIGURATION%\*.lib >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\..\libarchive\builddd\bin\%CONFIGURATION%\*.pdb >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\..\libarchive\libarchive\*.h >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\lua-5.2.4\src\build\%CONFIGURATION%\*.dll >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\lua-5.2.4\src\build\%CONFIGURATION%\*.lib >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\lua-5.2.4\src\build\%CONFIGURATION%\*.pdb >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\lua-5.2.4\src\*.h >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2-2.0.8\lib\x86\*.dll >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2-2.0.8\lib\x86\*.lib >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2-2.0.8\include\*.h >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2_image-2.0.3\lib\x86\*.dll >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2_image-2.0.3\lib\x86\*.lib >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2_image-2.0.3\include\*.h >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2_ttf-2.0.14\lib\x86\*.dll >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2_ttf-2.0.14\lib\x86\*.lib >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2_ttf-2.0.14\include\*.h >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2_mixer-2.0.2\lib\x86\*.dll >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2_mixer-2.0.2\lib\x86\*.lib >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\SDL2_mixer-2.0.2\include\*.h >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\curl-7.59.0-win32-mingw\bin\*.dll >> lst.txt
+ # - echo %APPVEYOR_BUILD_FOLDER%\curl-7.59.0-win32-mingw\bin\*.crt >> lst.txt
+ - echo %APPVEYOR_BUILD_FOLDER%\curl-7.59.0-win32-mingw\lib\*.lib >> lst.txt
+ - echo curl\*.h >> lst.txt
+ - 7z a -t7z -mx=9 temp.7z @lst.txt
+ - move temp.7z "%APPVEYOR_BUILD_FOLDER%\3rdparty-%BINSUFFIX%.7z"
- cd /d %APPVEYOR_BUILD_FOLDER%
- - echo %APPVEYOR_BUILD_FOLDER%\3rdparty\*.dll > lst.txt
- - echo %APPVEYOR_BUILD_FOLDER%\build\%CONFIGURATION%\*.exe >> lst.txt
- - 7z a -t7z -mx=9 "binonly-%BINSUFFIX%.7z" @lst.txt
+artifacts:
+ - path: '3rdparty-$(BINSUFFIX).7z'
+build: off
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Wed, Jun 17, 9:06 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
71451
Default Alt Text
(8 KB)
Attached To
Mode
R79 meandmyshadow
Attached
Detach File
Event Timeline