-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure-nacl.bat
53 lines (39 loc) · 2.43 KB
/
configure-nacl.bat
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
@echo off
set MAINFOLDER=%CD%
set CYGWIN=nodosfilewarning
if "%1" == "" (
echo "Enter build target directory."
@exit /b 1
)
if "%NACL_SDK_ROOT%" == "" (
echo "NACL_SDK_ROOT Path is empty."
@exit /b 1
)
if "%LIBPATH%" == "" (
echo "Warning: vc++ environment is missing."
)
if not exist %1 (
mkdir %1
)
if not exist "%1\x86" (
mkdir "%1\x86"
)
if not exist "%1\x64" (
mkdir "%1\x64"
)
echo Source direcotry: %MAINFOLDER% Binery directory: %1
cd "%1\x86"
if "%2" == "debug" (
cmake %MAINFOLDER% -G "NMake Makefiles" -DGAMEKIT_GRAPHIC_BACKEND=1 -DCMAKE_TOOLCHAIN_FILE="%MAINFOLDER%/CMake/toolchain/nacl.toolchain.cmake" -DOGRE_BUILD_PLATFORM_NACL=1 -DOGREKIT_BUILD_NACL=1 -DOGREKIT_MINIMAL_FREEIMAGE_CODEC=1 -DLIBRARY_OUTPUT_PATH= -DCMAKE_BUILD_TYPE="Debug" --debug-trycompile
cmake %MAINFOLDER% -G "NMake Makefiles" -DGAMEKIT_GRAPHIC_BACKEND=1 -DCMAKE_TOOLCHAIN_FILE="%MAINFOLDER%/CMake/toolchain/nacl.toolchain.cmake" -DOGRE_BUILD_PLATFORM_NACL=1 -DOGREKIT_BUILD_NACL=1 -DOGREKIT_MINIMAL_FREEIMAGE_CODEC=1 -DLIBRARY_OUTPUT_PATH= -DCMAKE_BUILD_TYPE="Debug" --debug-trycompile
) else (
set command=%MAINFOLDER% -G "NMake Makefiles" -DGAMEKIT_GRAPHIC_BACKEND=1 -DCMAKE_TOOLCHAIN_FILE="%MAINFOLDER%/CMake/toolchain/nacl.toolchain.cmake" -DOGRE_BUILD_PLATFORM_NACL=1 -DOGRE_CONFIG_ALLOCATOR=1 -DOGREKIT_BUILD_NACL=1 -DOGREKIT_MINIMAL_FREEIMAGE_CODEC=1 -DLIBRARY_OUTPUT_PATH= -DCMAKE_BUILD_TYPE="Release" -DOGRE_UNITY_BUILD=1 -DOGREKIT_UNITY_BUILD=1
rem cmake %MAINFOLDER% -G "NMake Makefiles" -DGAMEKIT_GRAPHIC_BACKEND=1 -DCMAKE_TOOLCHAIN_FILE="%MAINFOLDER%/CMake/toolchain/nacl.toolchain.cmake" -DOGRE_BUILD_PLATFORM_NACL=1 -DOGREKIT_BUILD_NACL=1 -DOGREKIT_MINIMAL_FREEIMAGE_CODEC=1 -DLIBRARY_OUTPUT_PATH= -DCMAKE_BUILD_TYPE="Release"
cmake %command% -DOGREKIT_BUILD_ARCH_X64=0
cmake %command% -DOGREKIT_BUILD_ARCH_X64=0
)
cd "..\x64"
cmake %command% -DOGREKIT_BUILD_ARCH_X64=1
cmake %command% -DOGREKIT_BUILD_ARCH_X64=1
rem cmake %MAINFOLDER% -G "NMake Makefiles" -DGAMEKIT_GRAPHIC_BACKEND=1 -DCMAKE_TOOLCHAIN_FILE="%MAINFOLDER%/CMake/toolchain/nacl.toolchain.cmake" -DOGRE_BUILD_PLATFORM_NACL=1 -DOGRE_CONFIG_ALLOCATOR=1 -DOGREKIT_BUILD_NACL=1 -DOGREKIT_MINIMAL_FREEIMAGE_CODEC=1 -DLIBRARY_OUTPUT_PATH= -DCMAKE_BUILD_TYPE="Release" -DOGRE_UNITY_BUILD=1 -DOGREKIT_UNITY_BUILD=1 -DOGREKIT_BUILD_ARCH_X64=1
cd %MAINFOLDER%