mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Normalize some cmake options from WITH_* to ENABLE_*
This commit is contained in:
parent
f567805591
commit
977994765c
@ -52,10 +52,6 @@ enable_testing()
|
||||
# Options (these can be specified in cmake command line or modifying
|
||||
# CMakeCache.txt)
|
||||
|
||||
option(WITH_WEBP_SUPPORT "Enable support to load/save .webp files" on)
|
||||
option(WITH_DESKTOP_INTEGRATION "Enable desktop integration modules" off)
|
||||
option(WITH_QT_THUMBNAILER "Enable kde5/qt5 thumnailer" off)
|
||||
|
||||
option(USE_SHARED_CMARK "Use your installed copy of cmark" off)
|
||||
option(USE_SHARED_CURL "Use your installed copy of curl" off)
|
||||
option(USE_SHARED_GIFLIB "Use your installed copy of giflib" off)
|
||||
@ -82,6 +78,9 @@ option(FULLSCREEN_PLATFORM "Enable fullscreen by default" off)
|
||||
option(ENABLE_CLANG_TIDY "Enable static analysis" off)
|
||||
option(ENABLE_CCACHE "Use CCache to improve recompilation speed (optional)" on)
|
||||
option(ENABLE_SENTRY "Use Sentry SDK to report crashes" off)
|
||||
option(ENABLE_WEBP "Enable support to load/save .webp files" on)
|
||||
option(ENABLE_DESKTOP_INTEGRATION "Enable desktop integration modules" off)
|
||||
option(ENABLE_QT_THUMBNAILER "Enable kde5/qt5 thumnailer" off)
|
||||
set(CUSTOM_WEBSITE_URL "" CACHE STRING "Enable custom local webserver to check updates")
|
||||
|
||||
if(ENABLE_SENTRY)
|
||||
@ -235,7 +234,7 @@ include_directories(${PNG_INCLUDE_DIRS})
|
||||
add_definitions(-DPNG_NO_MMX_CODE) # Do not use MMX optimizations in PNG code
|
||||
|
||||
# libwebp
|
||||
if(WITH_WEBP_SUPPORT)
|
||||
if(ENABLE_WEBP)
|
||||
set(WEBP_LIBRARIES webp webpdemux libwebpmux)
|
||||
set(WEBP_INCLUDE_DIR ${LIBWEBP_DIR}/src)
|
||||
include_directories(${WEBP_INCLUDE_DIR})
|
||||
|
@ -130,7 +130,7 @@ if(ENABLE_STEAM)
|
||||
add_subdirectory(steam)
|
||||
endif()
|
||||
|
||||
if(WITH_DESKTOP_INTEGRATION)
|
||||
if(ENABLE_DESKTOP_INTEGRATION)
|
||||
add_subdirectory(desktop)
|
||||
endif()
|
||||
|
||||
|
@ -87,8 +87,8 @@ add_custom_command(
|
||||
DEPENDS ${GEN_DEP} ${widget_files} ${string_files} "${SOURCE_DATA_DIR}/gui.xml")
|
||||
list(APPEND generated_files ${output_fn})
|
||||
|
||||
if(WITH_WEBP_SUPPORT)
|
||||
add_definitions(-DASEPRITE_WITH_WEBP_SUPPORT)
|
||||
if(ENABLE_WEBP)
|
||||
add_definitions(-DENABLE_WEBP)
|
||||
endif()
|
||||
|
||||
# libarchive definitions
|
||||
@ -134,7 +134,7 @@ set(file_formats
|
||||
file/png_format.cpp
|
||||
file/svg_format.cpp
|
||||
file/tga_format.cpp)
|
||||
if(WITH_WEBP_SUPPORT)
|
||||
if(ENABLE_WEBP)
|
||||
list(APPEND file_formats file/webp_format.cpp)
|
||||
endif()
|
||||
|
||||
|
@ -32,7 +32,7 @@ extern FileFormat* CreatePngFormat();
|
||||
extern FileFormat* CreateSvgFormat();
|
||||
extern FileFormat* CreateTgaFormat();
|
||||
|
||||
#ifdef ASEPRITE_WITH_WEBP_SUPPORT
|
||||
#ifdef ENABLE_WEBP
|
||||
extern FileFormat* CreateWebPFormat();
|
||||
#endif
|
||||
|
||||
@ -68,7 +68,7 @@ FileFormatsManager::FileFormatsManager()
|
||||
registerFormat(CreateSvgFormat());
|
||||
registerFormat(CreateTgaFormat());
|
||||
|
||||
#ifdef ASEPRITE_WITH_WEBP_SUPPORT
|
||||
#ifdef ENABLE_WEBP
|
||||
registerFormat(CreateWebPFormat());
|
||||
#endif
|
||||
}
|
||||
|
@ -10,6 +10,6 @@ install(PROGRAMS aseprite-thumbnailer DESTINATION bin)
|
||||
install(FILES gnome/aseprite.thumbnailer DESTINATION share/thumbnailers)
|
||||
|
||||
# Qt Thumbnailer
|
||||
if(WITH_QT_THUMBNAILER)
|
||||
if(ENABLE_QT_THUMBNAILER)
|
||||
add_subdirectory(kde)
|
||||
endif()
|
||||
|
2
third_party/CMakeLists.txt
vendored
2
third_party/CMakeLists.txt
vendored
@ -33,7 +33,7 @@ if(NOT USE_SHARED_GIFLIB)
|
||||
add_subdirectory(giflib)
|
||||
endif()
|
||||
|
||||
if(WITH_WEBP_SUPPORT)
|
||||
if(ENABLE_WEBP)
|
||||
set(WEBP_BUILD_EXTRAS OFF CACHE BOOL "Build extras.")
|
||||
set(WEBP_BUILD_ANIM_UTILS OFF CACHE BOOL "Build animation utilities.")
|
||||
set(WEBP_BUILD_CWEBP OFF CACHE BOOL "Build the cwebp command line tool.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user