mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-22 15:40:02 +00:00
CMake: Use proper dependency tracking command for storyboard compiling
This commit is contained in:
parent
66936f2087
commit
d037c60caf
@ -47,17 +47,14 @@ if (${IBTOOL} STREQUAL "IBTOOL-NOTFOUND")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
foreach(sb ${STORYBOARDS})
|
foreach(sb ${STORYBOARDS})
|
||||||
set(MacUpdater_BIN_DIR ${CMAKE_BINARY_DIR}/Binaries)
|
set(output ${CMAKE_CURRENT_BINARY_DIR}/${sb}c)
|
||||||
|
set(input ${CMAKE_CURRENT_SOURCE_DIR}/${sb})
|
||||||
if (CMAKE_GENERATOR STREQUAL Xcode)
|
add_custom_command(OUTPUT ${output}
|
||||||
string(APPEND MacUpdater_BIN_DIR "/\${CONFIGURATION}")
|
COMMAND ${IBTOOL} --errors --warnings --notices --output-format human-readable-text --compile ${output} ${input}
|
||||||
endif()
|
DEPENDS ${input}
|
||||||
|
COMMENT "Compiling Storyboard ${sb}...")
|
||||||
add_custom_command(TARGET MacUpdater POST_BUILD
|
target_sources(MacUpdater PRIVATE ${output})
|
||||||
COMMAND ${IBTOOL} --errors --warnings --notices --output-format human-readable-text
|
set_source_files_properties(${output} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||||
--compile ${MacUpdater_BUNDLE_PATH}/Contents/Resources/${sb}c
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${sb}
|
|
||||||
COMMENT "Compiling Storyboard ${sb}...")
|
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if(MACOS_CODE_SIGNING)
|
if(MACOS_CODE_SIGNING)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user