Use LAF_OS_BACKEND_LINK_FLAGS to link aseprite

This commit is contained in:
David Capello 2018-08-10 17:38:49 -03:00
parent dcb576b284
commit 161cc7418a
2 changed files with 4 additions and 11 deletions

2
laf

@ -1 +1 @@
Subproject commit e27c266b0d5bfc16818a70cd8919b9884aa67bea
Subproject commit c4e2d79a702116ea21499baca4e84bfa8f429b1b

View File

@ -179,16 +179,9 @@ endif()
target_link_libraries(aseprite app-lib ${PLATFORM_LIBS})
add_dependencies(aseprite copy_data)
if(MSVC)
if(ENABLE_UI AND (LAF_OS_BACKEND STREQUAL "skia"))
# Linking with "wsetargv.obj" to add support to expand filename
# wildcards in argc/argv.
set_target_properties(aseprite
PROPERTIES LINK_FLAGS "-LINK wsetargv.obj -ENTRY:\"wWinMainCRTStartup\"")
else()
set_target_properties(aseprite
PROPERTIES LINK_FLAGS "-LINK wsetargv.obj -ENTRY:\"wmainCRTStartup\"")
endif()
if(LAF_OS_BACKEND_LINK_FLAGS)
set_target_properties(aseprite PROPERTIES LINK_FLAGS
${LAF_OS_BACKEND_LINK_FLAGS})
endif()
install(TARGETS aseprite