mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-10 10:13:35 +00:00
Define necessary SK_ constants to compile/link with Skia
This commit is contained in:
parent
4f0591c8b6
commit
d816b18277
@ -21,8 +21,10 @@ endif()
|
||||
if(USE_SKIA_BACKEND)
|
||||
set(SKIA_BUILD_DIR "" CACHE PATH "Skia build directory")
|
||||
|
||||
add_definitions(-DSK_INTERNAL -DSK_GAMMA_SRGB -DSK_GAMMA_APPLY_TO_A8 -DSK_SCALAR_TO_FLOAT_EXCLUDED -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DSK_SUPPORT_GPU=1 -DSK_SUPPORT_OPENCL=0 -DSK_FORCE_DISTANCE_FIELD_TEXT=0 -DSK_BUILD_FOR_WIN32 -DGR_GL_FUNCTION_TYPE=__stdcall)
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
set(SKIA_BUILD_OUT_DIR "${SKIA_BUILD_DIR}/out/Debug")
|
||||
add_definitions(-DSK_DEVELOPER=1)
|
||||
else()
|
||||
set(SKIA_BUILD_OUT_DIR "${SKIA_BUILD_DIR}/out/Release")
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user