mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-13 06:29:41 +01:00
include assets in iOS bundle
This commit is contained in:
parent
075c5b0c14
commit
5cf4303fa2
4 changed files with 37 additions and 5 deletions
BIN
desktop_version/AppIcon.xcassets/AppIcon.appiconset/AppIcon.png
Normal file
BIN
desktop_version/AppIcon.xcassets/AppIcon.appiconset/AppIcon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 287 KiB |
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "AppIcon.png",
|
||||
"idiom" : "universal",
|
||||
"platform" : "ios",
|
||||
"size" : "1024x1024"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
6
desktop_version/AppIcon.xcassets/Contents.json
Normal file
6
desktop_version/AppIcon.xcassets/Contents.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -135,14 +135,26 @@ if(WIN32)
|
|||
elseif(ANDROID)
|
||||
add_library(VVVVVV SHARED ${VVV_SRC})
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
||||
add_executable(VVVVVV MACOSX_BUNDLE ${VVV_SRC})
|
||||
file(GLOB_RECURSE REPO_RESOURCES "fonts/*" "lang/*")
|
||||
|
||||
add_executable(VVVVVV MACOSX_BUNDLE ${VVV_SRC} ${DATA_ZIP} AppIcon.xcassets ${REPO_RESOURCES})
|
||||
set_target_properties(VVVVVV PROPERTIES
|
||||
MACOSX_BUNDLE_BUNDLE_NAME "VVVVVV"
|
||||
MACOSX_BUNDLE_BUNDLE_VERSION "2.4" # TODO: fill out automatically
|
||||
MACOSX_BUNDLE_SHORT_VERSION_STRING "2.4" # TODO: fill out automatically
|
||||
XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "com.distractionware.vvvvvvmobile"
|
||||
MACOSX_BUNDLE_GUI_IDENTIFIER "com.distractionware.vvvvvvmobile"
|
||||
XCODE_ATTRIBUTE_PRODUCT_NAME "VVVVVV"
|
||||
XCODE_ATTRIBUTE_CURRENT_PROJECT_VERSION "2.4"
|
||||
XCODE_ATTRIBUTE_MARKETING_VERSION "2.4"
|
||||
XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME AppIcon
|
||||
XCODE_ATTRIBUTE_GENERATE_INFOPLIST_FILE YES
|
||||
XCODE_ATTRIBUTE_INFOPLIST_FILE ""
|
||||
RESOURCE "${DATA_ZIP};AppIcon.xcassets"
|
||||
)
|
||||
|
||||
foreach(REPO_FILE ${REPO_RESOURCES})
|
||||
file(RELATIVE_PATH REPO_FILE_REL "${CMAKE_CURRENT_SOURCE_DIR}" ${REPO_FILE})
|
||||
get_filename_component(REPO_FILE_DIR ${REPO_FILE_REL} DIRECTORY)
|
||||
set_property(SOURCE ${REPO_FILE} PROPERTY MACOSX_PACKAGE_LOCATION "Resources/${REPO_FILE_DIR}")
|
||||
source_group("Resources/${REPO_FILE_DIR}" FILES "${REPO_FILE}")
|
||||
endforeach()
|
||||
else()
|
||||
add_executable(VVVVVV ${VVV_SRC})
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue