Updated build script #2

This commit is contained in:
WolverinDEV 2019-07-03 13:25:03 +02:00
parent 1d450d51f3
commit 732b956fd8

View File

@ -39,9 +39,9 @@ function compile_native() {
check_err_exit ${project_name} "Failed to enter build directory!"
local _arguments=""
[[ ! -z "$module_path" ]] && _arguments="${_arguments} -DCMAKE_MODULE_PATH=\"$module_path\""
[[ ! -z "$platform_include" ]] && _arguments="${_arguments} -DCMAKE_PLATFORM_INCLUDE=\"$platform_include\""
[[ ! -z "$library_path" ]] && _arguments="${_arguments} -DLIBRARY_PATH=\"$library_path\""
[[ ! -z "$tearoot_cmake_module" ]] && _arguments="${_arguments} -DCMAKE_MODULE_PATH=\"$tearoot_cmake_module\""
[[ ! -z "$tearoot_cmake_config" ]] && _arguments="${_arguments} -DCMAKE_PLATFORM_INCLUDE=\"$tearoot_cmake_config\""
[[ ! -z "$traroot_library" ]] && _arguments="${_arguments} -DLIBRARY_PATH=\"$traroot_library\""
cmake ../../ -DCMAKE_BUILD_TYPE=RelWithDebInfo ${_arguments}
check_err_exit ${project_name} "Failed create build targets!"