mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 13:44:56 +00:00
macOS API sync
This commit is contained in:
@@ -45,6 +45,12 @@ if(NOT INKSCAPE_BIN)
|
||||
add_custom_command(OUTPUT icons.bin COMMAND ${CMAKE_COMMAND} ARGS -P
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/IconDownload.cmake)
|
||||
else()
|
||||
if(APPLE)
|
||||
get_filename_component(INKSCAPE_DIR ${INKSCAPE_BIN} DIRECTORY)
|
||||
if(EXISTS "${INKSCAPE_DIR}/../Resources/bin/inkscape")
|
||||
set(INKSCAPE_BIN "${INKSCAPE_DIR}/../Resources/bin/inkscape")
|
||||
endif()
|
||||
endif()
|
||||
message(STATUS "Inkscape found; will render icons locally")
|
||||
add_custom_command(OUTPUT icons.bin COMMAND $<TARGET_FILE:packicons>
|
||||
ARGS ${INKSCAPE_BIN} ${CMAKE_CURRENT_SOURCE_DIR}/icons.svg
|
||||
|
||||
Reference in New Issue
Block a user