aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-09-29 13:16:33 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-29 13:16:34 -0700
commita5b0f0318b6fdcd05006365323b47b1bc046f799 (patch)
treec00a2b04e6b35a116ad3b778d3f2c7fad37f2ef3
parent242397a1c95e34e3e2e5e85c85c81090317115cb (diff)
cmake tweaks
• -w silences all warnings current and future. We're not using this for development. • There's no real need to exclude files in Release mode. The linker may whine a little, but that's fine. • Quiet down message() calls that run every time. They're fine if you can figure out how to run them only when doing the detection and cache them like all the others, but I don't like the noise seeing them every run. • cheaders is hard to read. c_headers. • ../src/*mac* erroneously picks up SkLumaColorFilter on non-case-sensitive file systems. ../src/*_mac* seems fine. CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Mac10.9-Clang-x86_64-Release-CMake-Trybot,Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot BUG=skia: Review URL: https://codereview.chromium.org/1376923003
-rw-r--r--cmake/CMakeLists.txt15
1 files changed, 4 insertions, 11 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 4f9ced2f5f..35e6398106 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -53,11 +53,6 @@ remove_srcs (../src/utils/SkThreadUtils_pthread_*.cpp)
# Skia sure ships a lot of code no one uses.
remove_srcs (../src/animator/* ../src/*nacl* ../src/svg/* ../src/views/* ../src/xml/*)
-# Some files only contain code in Debug mode. This quiets down some linker warnings.
-if (NOT CMAKE_BUILD_TYPE STREQUAL Debug)
- remove_srcs (../src/core/SkDebug.cpp ../src/utils/SkDumpCanvas.cpp)
-endif()
-
# Remove OS-specific source files.
if (NOT WIN32)
remove_srcs(../src/*XPS*
@@ -79,7 +74,7 @@ if (NOT APPLE)
remove_srcs(../src/*darwin*
../src/ports/SkImageDecoder_CG.cpp
../src/utils/mac/*
- ../src/*mac*)
+ ../src/*_mac*)
endif()
# Remove processor-specific source files.
@@ -201,10 +196,8 @@ if (OSMESA_LIBRARIES AND OSMESA_INCLUDE_DIRS)
list (APPEND libs ${OSMESA_LIBRARIES})
list (APPEND private_includes ${OSMESA_INCLUDE_DIRS})
list (APPEND public_defines "-DSK_MESA=1")
- message("-- Found OSMesa: " ${OSMESA_LIBRARIES})
else()
remove_srcs(../src/gpu/gl/mesa/*)
- message("-- Could NOT find OSMesa")
endif()
find_package(OpenGL REQUIRED)
@@ -231,13 +224,13 @@ target_link_libraries(skia
set_target_properties(skia PROPERTIES
- COMPILE_FLAGS "-fno-exceptions -fno-rtti -Wno-deprecated-declarations"
+ COMPILE_FLAGS "-w -fno-exceptions -fno-rtti"
CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN true)
# Experimental C API install:
-file(GLOB cheaders "../include/c/*.h")
-install(FILES ${cheaders} DESTINATION include)
+file(GLOB c_headers "../include/c/*.h")
+install(FILES ${c_headers} DESTINATION include)
install(TARGETS skia DESTINATION lib)
# Now build a simple example app that uses Skia via libskia.so.