mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-06 06:50:07 +00:00
Use the LAF_OS_BACKEND variable
This commit is contained in:
parent
86cd2fd085
commit
3977631924
@ -82,12 +82,9 @@ option(FULLSCREEN_PLATFORM "Enable fullscreen by default" off)
|
|||||||
set(CUSTOM_WEBSITE_URL "" CACHE STRING "Enable custom local webserver to check updates")
|
set(CUSTOM_WEBSITE_URL "" CACHE STRING "Enable custom local webserver to check updates")
|
||||||
|
|
||||||
if(NOT ENABLE_UI)
|
if(NOT ENABLE_UI)
|
||||||
# Without UI, don't use back-ends
|
set(LAF_OS_BACKEND "none") # Without UI, we use the none backend
|
||||||
set(USE_SKIA_BACKEND off)
|
|
||||||
set(USE_NONE_BACKEND on)
|
|
||||||
else()
|
else()
|
||||||
set(USE_SKIA_BACKEND on)
|
set(LAF_OS_BACKEND "skia")
|
||||||
set(USE_NONE_BACKEND off)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Check valid gtk + libpng combination
|
# Check valid gtk + libpng combination
|
||||||
|
@ -12,7 +12,7 @@ endif()
|
|||||||
if(MSVC)
|
if(MSVC)
|
||||||
# As Skia is compiled with /GL flag (whole program optimization),
|
# As Skia is compiled with /GL flag (whole program optimization),
|
||||||
# the linker prefer a /LTCG parameter to improve link times.
|
# the linker prefer a /LTCG parameter to improve link times.
|
||||||
if(USE_SKIA_BACKEND)
|
if(LAF_OS_BACKEND STREQUAL "skia")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LTCG")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LTCG")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ add_dependencies(aseprite copy_data)
|
|||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
if(ENABLE_UI)
|
if(ENABLE_UI)
|
||||||
if(USE_SKIA_BACKEND)
|
if(LAF_OS_BACKEND STREQUAL "skia")
|
||||||
# Linking with "wsetargv.obj" to add support to expand filename
|
# Linking with "wsetargv.obj" to add support to expand filename
|
||||||
# wildcards in argc/argv.
|
# wildcards in argc/argv.
|
||||||
set_target_properties(aseprite
|
set_target_properties(aseprite
|
||||||
|
Loading…
Reference in New Issue
Block a user