Added generator for Windows

This commit is contained in:
WolverinDEV 2019-07-06 20:49:31 +02:00
parent 301dfd2e7c
commit 2642dec04c
1 changed files with 5 additions and 2 deletions

View File

@ -57,7 +57,10 @@ function compile_native() {
[[ ! -z "$tearoot_cmake_config" ]] && _arguments="${_arguments} -DCMAKE_PLATFORM_INCLUDE=\"$tearoot_cmake_config\""
[[ ! -z "$traroot_library" ]] && _arguments="${_arguments} -DLIBRARY_PATH=\"$traroot_library\""
_command="cmake ../../ -DCMAKE_BUILD_TYPE=RelWithDebInfo ${_arguments}"
local _generator=""
[[ ${build_oy_type} ]] && _generator='-G"Visual Studio 15 2017 Win64"'
_command="cmake ../../ ${_generator} -DCMAKE_BUILD_TYPE=RelWithDebInfo ${_arguments}"
echo "Executing cmake command $_command"
eval ${_command}
@ -105,4 +108,4 @@ install_npm
compile_scripts
compile_native
package_client
deploy_client
deploy_client