genesis-3d_engine/Engine/CMake_And_BuildAndroid.bat
zhongdaohuan ad5cd7b16a * upate genesis-3d engine to version 1.3.1.
match the genesis editor version 1.3.1.921.
2014-06-19 16:26:14 +08:00

50 lines
2.1 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo #****************************************************************************
@echo Copyright (c) 2011-2013,WebJet Business Division,CYOU
@echo
@echo http://www.genesis-3d.com.cn
@echo
@echo Permission is hereby granted, free of charge, to any person obtaining a copy
@echo of this software and associated documentation files (the "Software"), to deal
@echo in the Software without restriction, including without limitation the rights
@echo to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@echo copies of the Software, and to permit persons to whom the Software is
@echo furnished to do so, subject to the following conditions:
@echo The above copyright notice and this permission notice shall be included in
@echo all copies or substantial portions of the Software.
@echo
@echo THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
@echo IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
@echo FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@echo AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@echo LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
@echo OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
@echo THE SOFTWARE.
@echo ****************************************************************************
@rem 根据本机cmake的安装路径修改cmakeExe变量
set cmakeExe="D:\Program Files\CMake 2.8\bin\cmake.exe"
set curPath=%cd%
set androidBuidPath="My_Android_Build"
@rem delete the folder first
RMDIR /S/Q %androidBuidPath%
@rem make a directory and put project files to it
MKDIR %androidBuidPath%
@rem entry the directory
cd %androidBuidPath%
%cmakeExe% -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE:FILEPATH="%curPath%/CMake/AndroidToolChain.cmake" -DANDROID_BUILD:BOOL="1" -DCMAKE_MAKE_PROGRAM="%curPath%\..\..\..\genesis_externals\Externals\NDK\android-ndk-r8b-windows\prebuilt\windows\bin\make.exe" %curPath%
@rem %cmakeExe% .
set var1=becalled
call ../StandloneBuildAndroid.bat %var1%
pause