mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-06 09:06:55 +00:00
Do not copy ICNS assets (iOS uses PNGs) or generate a MacOS folder when building for iOS
This commit is contained in:
parent
dbd15420f5
commit
8a57e8cda3
@ -1607,20 +1607,25 @@ endif()
|
||||
|
||||
if (TargetBin)
|
||||
if (IOS OR APPLE)
|
||||
if (APPLE AND NOT IOS)
|
||||
set(ICON_PATH_ABS ${CMAKE_CURRENT_SOURCE_DIR}/assets/ppsspp.icns)
|
||||
set( MACOSX_BUNDLE_ICON_FILE ppsspp.icns )
|
||||
set_source_files_properties(${ICON_PATH_ABS} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
|
||||
endif()
|
||||
|
||||
# TODO: there must a native way to copy these.
|
||||
# Now this is very prone to errors when changes occur.
|
||||
# Also better to have assets under Resources dir.
|
||||
# Also better to have assets under Resources dir for OS X.
|
||||
file(GLOB_RECURSE FLASH0_FILES flash0/*)
|
||||
file(GLOB_RECURSE LANG_FILES lang/*)
|
||||
file(GLOB_RECURSE SHADER_FILES assets/shaders/*)
|
||||
|
||||
if (APPLE AND NOT IOS)
|
||||
set_source_files_properties(${NativeAssets} PROPERTIES MACOSX_PACKAGE_LOCATION "MacOS/assets")
|
||||
set_source_files_properties(${FLASH0_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "MacOS/assets/flash0/font")
|
||||
set_source_files_properties(${LANG_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "MacOS/assets/lang")
|
||||
set_source_files_properties(${SHADER_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "MacOS/assets/shaders")
|
||||
endif()
|
||||
|
||||
add_executable(${TargetBin} MACOSX_BUNDLE ${ICON_PATH_ABS} ${NativeAssets} ${SHADER_FILES} ${FLASH0_FILES} ${LANG_FILES} ${NativeAppSource})
|
||||
else()
|
||||
|
Loading…
x
Reference in New Issue
Block a user