Support Debug builds for mac.
Allow codesigning frameworks to fail. Use ninja to build project in the builder instead of make. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
414cacbf28
commit
b6837cea05
|
@ -1223,14 +1223,18 @@ if(APPLE AND (UPSTREAM_RELEASE OR ENABLE_ONLINEUPDATES))
|
|||
add_custom_command(
|
||||
TARGET visualboyadvance-m
|
||||
POST_BUILD
|
||||
COMMAND codesign --sign "Developer ID Application" --force ${framework}
|
||||
VERBATIM COMMAND sh -c "codesign --sign 'Developer ID Application' --force ${framework} || :"
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
if(UPSTREAM_RELEASE)
|
||||
set(appzip visualboyadvance-m-Mac-${ARCH_NAME}${ZIP_SUFFIX}.zip)
|
||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
set(appzip visualboyadvance-m-Mac-${ARCH_NAME}-debug${ZIP_SUFFIX}.zip)
|
||||
else()
|
||||
set(appzip visualboyadvance-m-Mac-${ARCH_NAME}${ZIP_SUFFIX}.zip)
|
||||
endif()
|
||||
|
||||
add_custom_command(
|
||||
TARGET visualboyadvance-m
|
||||
|
|
|
@ -2671,10 +2671,21 @@ build_project() {
|
|||
lto=OFF
|
||||
fi
|
||||
|
||||
echo_eval_run cmake "'$CHECKOUT'" $CMAKE_REQUIRED_ARGS -DVBAM_STATIC=ON -DENABLE_LTO=${lto} -DUPSTREAM_RELEASE=TRUE $CMAKE_ARGS $PROJECT_ARGS $@
|
||||
echo_run make -j$NUM_CPUS VERBOSE=1
|
||||
|
||||
# Release build.
|
||||
puts "${NL}[32mBuilding Release...[0m${NL}${NL}"
|
||||
mkdir release && cd release
|
||||
echo_eval_run cmake "'$CHECKOUT'" $CMAKE_REQUIRED_ARGS -DVBAM_STATIC=ON -DENABLE_LTO=${lto} -DUPSTREAM_RELEASE=TRUE $CMAKE_ARGS $PROJECT_ARGS -G Ninja $@
|
||||
echo_run ninja -j$NUM_CPUS -v
|
||||
dist_post_build project
|
||||
cd ..
|
||||
|
||||
# Debug build.
|
||||
puts "${NL}[32mBuilding Debug...[0m${NL}${NL}"
|
||||
mkdir debug && cd debug
|
||||
echo_eval_run cmake "'$CHECKOUT'" $CMAKE_REQUIRED_ARGS -DVBAM_STATIC=ON -DENABLE_LTO=${lto} -DUPSTREAM_RELEASE=TRUE $CMAKE_ARGS $PROJECT_ARGS -DCMAKE_BUILD_TYPE=Debug -G Ninja $@
|
||||
echo_run ninja -j$NUM_CPUS -v
|
||||
dist_post_build project
|
||||
cd ..
|
||||
|
||||
puts "${NL}[32mBuild Successful!!![0m${NL}${NL}Build results can be found in: [1;34m$BUILD_ROOT/project[0m${NL}${NL}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue