mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 16:46:16 +00:00
chore: ignore android and ios. Add custom strip do macos
This commit is contained in:
committed by
GitHub
parent
0c26c71fd5
commit
63059a328a
@@ -323,7 +323,7 @@ function(momo_strip_target target)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(MSVC OR MOMO_ENABLE_SANITIZER)
|
||||
if(MSVC OR MOMO_ENABLE_SANITIZER OR CMAKE_SYSTEM_NAME STREQUAL "iOS" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
|
||||
return()
|
||||
endif()
|
||||
|
||||
@@ -335,6 +335,10 @@ function(momo_strip_target target)
|
||||
|
||||
set(STRIP_FLAGS "-s")
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
set(STRIP_FLAGS "-x")
|
||||
endif()
|
||||
|
||||
get_property(target_type TARGET ${target} PROPERTY TYPE)
|
||||
|
||||
if(NOT (target_type STREQUAL "EXECUTABLE" OR target_type STREQUAL "SHARED_LIBRARY"))
|
||||
|
||||
Reference in New Issue
Block a user