mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-27 03:14:30 +00:00
Ensure we actually strip binaries as part of the release build process.
This commit is contained in:
parent
b0aab217ac
commit
f6dda3d554
@ -328,3 +328,9 @@ endif()
|
||||
# they don't yet exist!
|
||||
add_custom_target(postbuild ALL DEPENDS musikcube musikcubed)
|
||||
add_custom_command(TARGET postbuild POST_BUILD COMMAND cmake .)
|
||||
|
||||
# strip binaries in release mode
|
||||
if (CMAKE_BUILD_TYPE MATCHES Release)
|
||||
message(STATUS "stripping binaries...")
|
||||
add_custom_command(TARGET postbuild POST_BUILD COMMAND ./strip-nix.sh)
|
||||
endif()
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
strip ./bin/musikcube
|
||||
strip ./bin/musikcubed
|
||||
find . -name "*.so" -exec strip "{}" \; 2> /dev/null
|
||||
find ./bin/ -name "*.so" -exec strip "{}" \; 2> /dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user