mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 03:32:48 +00:00
Add ENABLE_ASEPRITE_EXE option
This commit is contained in:
parent
f110132222
commit
256c00747b
@ -68,6 +68,7 @@ option(USE_SHARED_TINYXML "Use your installed copy of tinyxml" off)
|
|||||||
option(USE_SHARED_PIXMAN "Use your installed copy of pixman" off)
|
option(USE_SHARED_PIXMAN "Use your installed copy of pixman" off)
|
||||||
option(USE_SHARED_FREETYPE "Use shared FreeType library" off)
|
option(USE_SHARED_FREETYPE "Use shared FreeType library" off)
|
||||||
option(USE_SHARED_HARFBUZZ "Use shared HarfBuzz library" off)
|
option(USE_SHARED_HARFBUZZ "Use shared HarfBuzz library" off)
|
||||||
|
option(ENABLE_ASEPRITE_EXE "Compile main Aseprite executable" on)
|
||||||
option(ENABLE_MEMLEAK "Enable memory-leaks detector (only for developers)" off)
|
option(ENABLE_MEMLEAK "Enable memory-leaks detector (only for developers)" off)
|
||||||
option(ENABLE_NEWS "Enable the news in Home tab" on)
|
option(ENABLE_NEWS "Enable the news in Home tab" on)
|
||||||
option(ENABLE_UPDATER "Enable automatic check for updates" on)
|
option(ENABLE_UPDATER "Enable automatic check for updates" on)
|
||||||
|
@ -166,30 +166,32 @@ add_custom_target(copy_data DEPENDS ${out_data_files})
|
|||||||
######################################################################
|
######################################################################
|
||||||
# Aseprite application
|
# Aseprite application
|
||||||
|
|
||||||
if(WIN32)
|
if(ENABLE_ASEPRITE_EXE)
|
||||||
set(win32_resources
|
if(WIN32)
|
||||||
main/resources_win32.rc
|
set(win32_resources
|
||||||
main/settings.manifest)
|
main/resources_win32.rc
|
||||||
|
main/settings.manifest)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_executable(aseprite main/main.cpp ${win32_resources})
|
||||||
|
if(WIN32 AND ENABLE_UI)
|
||||||
|
set_target_properties(aseprite PROPERTIES WIN32_EXECUTABLE true)
|
||||||
|
endif()
|
||||||
|
target_link_libraries(aseprite app-lib)
|
||||||
|
add_dependencies(aseprite copy_data)
|
||||||
|
|
||||||
|
if(LAF_OS_BACKEND_LINK_FLAGS)
|
||||||
|
set_target_properties(aseprite PROPERTIES LINK_FLAGS
|
||||||
|
${LAF_OS_BACKEND_LINK_FLAGS})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(TARGETS aseprite
|
||||||
|
RUNTIME DESTINATION bin)
|
||||||
|
|
||||||
|
install(DIRECTORY ../data
|
||||||
|
DESTINATION share/aseprite)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(aseprite main/main.cpp ${win32_resources})
|
|
||||||
if(WIN32 AND ENABLE_UI)
|
|
||||||
set_target_properties(aseprite PROPERTIES WIN32_EXECUTABLE true)
|
|
||||||
endif()
|
|
||||||
target_link_libraries(aseprite app-lib)
|
|
||||||
add_dependencies(aseprite copy_data)
|
|
||||||
|
|
||||||
if(LAF_OS_BACKEND_LINK_FLAGS)
|
|
||||||
set_target_properties(aseprite PROPERTIES LINK_FLAGS
|
|
||||||
${LAF_OS_BACKEND_LINK_FLAGS})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
install(TARGETS aseprite
|
|
||||||
RUNTIME DESTINATION bin)
|
|
||||||
|
|
||||||
install(DIRECTORY ../data
|
|
||||||
DESTINATION share/aseprite)
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# Tests
|
# Tests
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user