appveyor stuff
This commit is contained in:
24
appveyor.yml
Normal file
24
appveyor.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
# can use variables like {build} and {branch}
|
||||
version: 1.0.{build}
|
||||
|
||||
image: Visual Studio 2015
|
||||
|
||||
environment:
|
||||
BUILD_DIR: "%APPVEYOR_BUILD_FOLDER%\\build"
|
||||
|
||||
platform:
|
||||
- Win32
|
||||
- x64
|
||||
|
||||
configuration:
|
||||
- Release
|
||||
|
||||
before_build:
|
||||
- deps.bat
|
||||
- cd %BUILD_DIR%
|
||||
- cmake .. -G"%CMAKE_GENERATOR_NAME%"
|
||||
|
||||
build:
|
||||
parallel: true
|
||||
project: build/entt.sln
|
||||
verbosity: minimal
|
||||
28
deps.bat
Normal file
28
deps.bat
Normal file
@@ -0,0 +1,28 @@
|
||||
@echo off
|
||||
set SRC_DIR=%~dp0
|
||||
|
||||
if not defined ARCH set ARCH=x86
|
||||
if defined platform if "%platform%"=="x64" set ARCH=x64
|
||||
|
||||
@rem init/update submodules
|
||||
cd %SRC_DIR%
|
||||
git submodule update --init
|
||||
|
||||
@rem compile dependencies
|
||||
|
||||
if "%msbuild_platform%"=="x64" (
|
||||
set CMAKE_GENERATOR_NAME=Visual Studio 14 2015 Win64
|
||||
) else (
|
||||
set CMAKE_GENERATOR_NAME=Visual Studio 14 2015
|
||||
)
|
||||
|
||||
set GTEST_BUILD_DIR=%SRC_DIR%deps\googletest\build
|
||||
if exist %GTEST_BUILD_DIR%\NUL rd /s /q %GTEST_BUILD_DIR%
|
||||
md %GTEST_BUILD_DIR%
|
||||
cd %GTEST_BUILD_DIR%
|
||||
cmake .. -Dgtest_force_shared_crt=ON -G"%CMAKE_GENERATOR_NAME%"
|
||||
msbuild googlemock\gmock.sln /p:Configuration=%config% /p:Platform="%msbuild_platform%" /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /m
|
||||
msbuild googlemock\gtest\gtest.sln /p:Configuration=%config% /p:Platform="%msbuild_platform%" /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /m
|
||||
|
||||
@rem go back home
|
||||
cd %SRC_DIR%
|
||||
Reference in New Issue
Block a user