diff --git a/src/engine/CMakeLists.txt b/src/engine/CMakeLists.txt index 478662903..55ea0f09d 100644 --- a/src/engine/CMakeLists.txt +++ b/src/engine/CMakeLists.txt @@ -25,6 +25,7 @@ include(ProcessorCount) ProcessorCount(N) option(USE_SKIA_SYSTEM_LIBS "Use skia (third-party) system libraries on Linux" ON) +option(LINUX_DEPLOY "Linux Deploy" OFF) set(SKIA_SRC "${CMAKE_CURRENT_SOURCE_DIR}/skia") set(SKIA_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/skia") @@ -56,7 +57,11 @@ else() set(SKIA_UPDATE_CMD python3 "tools/git-sync-deps") endif() set(SKIA_ARGS "ar=\"${CMAKE_AR}\" cc=\"${CMAKE_C_COMPILER}\" cxx=\"${CMAKE_CXX_COMPILER}\"") - set(SKIA_ARGS "${SKIA_ARGS} extra_cflags=[\"-Wno-error\", \"-Wno-psabi\"]") + if (${LINUX_DEPLOY}) + set(SKIA_ARGS "${SKIA_ARGS} extra_cflags=[\"-Wno-error\"]") + else() + set(SKIA_ARGS "${SKIA_ARGS} extra_cflags=[\"-Wno-error\", \"-Wno-psabi\"]") + endif() endif() set(SKIA_ARGS "${SKIA_ARGS} is_official_build=true is_debug=false")