| OLD | NEW |
| 1 # Boilerplate. | 1 # Boilerplate. |
| 2 cmake_minimum_required (VERSION 3.1) # First version with CMAKE_CXX_STANDARD. | 2 cmake_minimum_required (VERSION 3.1) # First version with CMAKE_CXX_STANDARD. |
| 3 project (skimake) | 3 project (skimake) |
| 4 set (CMAKE_CXX_STANDARD 11) | 4 set (CMAKE_CXX_STANDARD 11) |
| 5 | 5 |
| 6 # Default to Release mode. We're mainly targeting Skia users, not Skia develope
rs. | 6 # Default to Release mode. We're mainly targeting Skia users, not Skia develope
rs. |
| 7 if (NOT CMAKE_BUILD_TYPE) | 7 if (NOT CMAKE_BUILD_TYPE) |
| 8 set (CMAKE_BUILD_TYPE Release) | 8 set (CMAKE_BUILD_TYPE Release) |
| 9 endif () | 9 endif () |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 # Remove OS-specific source files. | 54 # Remove OS-specific source files. |
| 55 if (NOT WIN32) | 55 if (NOT WIN32) |
| 56 remove_srcs(../src/*XPS* | 56 remove_srcs(../src/*XPS* |
| 57 ../src/*_win*.cpp | 57 ../src/*_win*.cpp |
| 58 ../src/ports/SkImageDecoder_WIC.cpp | 58 ../src/ports/SkImageDecoder_WIC.cpp |
| 59 ../src/utils/win/*) | 59 ../src/utils/win/*) |
| 60 endif() | 60 endif() |
| 61 if (NOT UNIX) | 61 if (NOT UNIX) |
| 62 remove_srcs(../src/doc/SkDocument_XPS_None.cpp | 62 remove_srcs(../src/doc/SkDocument_XPS_None.cpp |
| 63 ../src/ports/*_posix.cpp |
| 63 ../src/ports/SkDebug_stdio.cpp | 64 ../src/ports/SkDebug_stdio.cpp |
| 64 ../src/ports/SkOSFile_posix.cpp | |
| 65 ../src/ports/SkTLS_pthread.cpp | 65 ../src/ports/SkTLS_pthread.cpp |
| 66 ../src/ports/SkTime_Unix.cpp | 66 ../src/ports/SkTime_Unix.cpp |
| 67 ../src/utils/SkThreadUtils_pthread.cpp) | 67 ../src/utils/SkThreadUtils_pthread.cpp) |
| 68 endif() | 68 endif() |
| 69 if (APPLE OR NOT UNIX) | 69 if (APPLE OR NOT UNIX) |
| 70 remove_srcs(../src/gpu/gl/glx/* | 70 remove_srcs(../src/gpu/gl/glx/* |
| 71 ../src/images/SkImageDecoder_FactoryDefault.cpp | 71 ../src/images/SkImageDecoder_FactoryDefault.cpp |
| 72 ../src/ports/SkFontMgr_fontconfig*.cpp | 72 ../src/ports/SkFontMgr_fontconfig*.cpp |
| 73 ../src/*FreeType*) | 73 ../src/*FreeType*) |
| 74 endif() | 74 endif() |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 VISIBILITY_INLINES_HIDDEN true) | 250 VISIBILITY_INLINES_HIDDEN true) |
| 251 | 251 |
| 252 # Experimental C API install: | 252 # Experimental C API install: |
| 253 file(GLOB c_headers "../include/c/*.h") | 253 file(GLOB c_headers "../include/c/*.h") |
| 254 install(FILES ${c_headers} DESTINATION include) | 254 install(FILES ${c_headers} DESTINATION include) |
| 255 install(TARGETS skia DESTINATION lib) | 255 install(TARGETS skia DESTINATION lib) |
| 256 | 256 |
| 257 # Now build a simple example app that uses Skia via libskia.so. | 257 # Now build a simple example app that uses Skia via libskia.so. |
| 258 add_executable(example example.cpp) | 258 add_executable(example example.cpp) |
| 259 target_link_libraries(example skia ${OPENGL_LIBRARIES}) | 259 target_link_libraries(example skia ${OPENGL_LIBRARIES}) |
| OLD | NEW |