mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-11 09:32:44 +02:00
non-Win, non-Debug builds: strip module file symbols to save space...
... This only strips the symbols that do not have external linkage
This commit is contained in:
parent
dfbf3d25c1
commit
7cf78c15dc
@ -372,6 +372,14 @@ function( audacity_module_fn NAME SOURCES IMPORT_TARGETS
|
|||||||
target_link_options( ${TARGET} PRIVATE ${LOPTS} )
|
target_link_options( ${TARGET} PRIVATE ${LOPTS} )
|
||||||
target_link_libraries( ${TARGET} PUBLIC ${LIBRARIES} )
|
target_link_libraries( ${TARGET} PUBLIC ${LIBRARIES} )
|
||||||
|
|
||||||
|
if( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
||||||
|
add_custom_command(
|
||||||
|
TARGET "${TARGET}"
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND $<IF:$<CONFIG:Debug>,echo,strip> -x $<TARGET_FILE:${TARGET}>
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# define an additional interface library target
|
# define an additional interface library target
|
||||||
set(INTERFACE_TARGET "${TARGET}-interface")
|
set(INTERFACE_TARGET "${TARGET}-interface")
|
||||||
if (NOT REAL_LIBTYPE STREQUAL "MODULE")
|
if (NOT REAL_LIBTYPE STREQUAL "MODULE")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user