| 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 29 matching lines...) Expand all Loading... |
| 40 # This file is empty and is only used to trick GYP. | 40 # This file is empty and is only used to trick GYP. |
| 41 remove_srcs (../src/core/SkForceCPlusPlusLinking.cpp) | 41 remove_srcs (../src/core/SkForceCPlusPlusLinking.cpp) |
| 42 # This file forces linking for all our supported image decoders. We're more fin
e-grained. | 42 # This file forces linking for all our supported image decoders. We're more fin
e-grained. |
| 43 remove_srcs (../src/images/SkForceLinking.cpp) | 43 remove_srcs (../src/images/SkForceLinking.cpp) |
| 44 # Chrome only? | 44 # Chrome only? |
| 45 remove_srcs (../src/ports/SkFontHost_fontconfig.cpp | 45 remove_srcs (../src/ports/SkFontHost_fontconfig.cpp |
| 46 ../src/fonts/SkFontMgr_fontconfig.cpp | 46 ../src/fonts/SkFontMgr_fontconfig.cpp |
| 47 ../src/ports/SkFontConfigInterface_direct.cpp) | 47 ../src/ports/SkFontConfigInterface_direct.cpp) |
| 48 # Alternative font managers. | 48 # Alternative font managers. |
| 49 remove_srcs (../src/ports/SkFontMgr_custom*.cpp) | 49 remove_srcs (../src/ports/SkFontMgr_custom*.cpp) |
| 50 # Not actually used by Skia. | |
| 51 remove_srcs (../src/utils/SkThreadUtils_pthread_*.cpp) | |
| 52 | 50 |
| 53 # Skia sure ships a lot of code no one uses. | 51 # Skia sure ships a lot of code no one uses. |
| 54 remove_srcs (../src/animator/* ../src/*nacl* ../src/svg/* ../src/views/* ../src/
xml/*) | 52 remove_srcs (../src/animator/* ../src/*nacl* ../src/svg/* ../src/views/* ../src/
xml/*) |
| 55 | 53 |
| 56 # Remove OS-specific source files. | 54 # Remove OS-specific source files. |
| 57 if (NOT WIN32) | 55 if (NOT WIN32) |
| 58 remove_srcs(../src/*XPS* | 56 remove_srcs(../src/*XPS* |
| 59 ../src/*_win*.cpp | 57 ../src/*_win*.cpp |
| 60 ../src/ports/SkImageDecoder_WIC.cpp | 58 ../src/ports/SkImageDecoder_WIC.cpp |
| 61 ../src/utils/win/*) | 59 ../src/utils/win/*) |
| 62 endif() | 60 endif() |
| 63 if (NOT UNIX) | 61 if (NOT UNIX) |
| 64 remove_srcs(../src/doc/SkDocument_XPS_None.cpp | 62 remove_srcs(../src/doc/SkDocument_XPS_None.cpp |
| 65 ../src/ports/SkDebug_stdio.cpp | 63 ../src/ports/SkDebug_stdio.cpp |
| 66 ../src/ports/SkOSFile_posix.cpp | 64 ../src/ports/SkOSFile_posix.cpp |
| 67 ../src/ports/SkTLS_pthread.cpp | 65 ../src/ports/SkTLS_pthread.cpp |
| 68 ../src/ports/SkTime_Unix.cpp | 66 ../src/ports/SkTime_Unix.cpp |
| 69 ../src/utils/SkThreadUtils_pthread.cpp | 67 ../src/utils/SkThreadUtils_pthread.cpp) |
| 70 ../src/utils/SkThreadUtils_pthread_other.cpp) | |
| 71 endif() | 68 endif() |
| 72 if (APPLE OR NOT UNIX) | 69 if (APPLE OR NOT UNIX) |
| 73 remove_srcs(../src/gpu/gl/glx/* | 70 remove_srcs(../src/gpu/gl/glx/* |
| 74 ../src/images/SkImageDecoder_FactoryDefault.cpp | 71 ../src/images/SkImageDecoder_FactoryDefault.cpp |
| 75 ../src/ports/SkFontMgr_fontconfig*.cpp | 72 ../src/ports/SkFontMgr_fontconfig*.cpp |
| 76 ../src/*FreeType*) | 73 ../src/*FreeType*) |
| 77 endif() | 74 endif() |
| 78 if (NOT ANDROID) | 75 if (NOT ANDROID) |
| 79 remove_srcs(../src/*Hwui* ../src/*android*) | 76 remove_srcs(../src/*Hwui* ../src/*android*) |
| 80 endif() | 77 endif() |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 VISIBILITY_INLINES_HIDDEN true) | 250 VISIBILITY_INLINES_HIDDEN true) |
| 254 | 251 |
| 255 # Experimental C API install: | 252 # Experimental C API install: |
| 256 file(GLOB c_headers "../include/c/*.h") | 253 file(GLOB c_headers "../include/c/*.h") |
| 257 install(FILES ${c_headers} DESTINATION include) | 254 install(FILES ${c_headers} DESTINATION include) |
| 258 install(TARGETS skia DESTINATION lib) | 255 install(TARGETS skia DESTINATION lib) |
| 259 | 256 |
| 260 # 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. |
| 261 add_executable(example example.cpp) | 258 add_executable(example example.cpp) |
| 262 target_link_libraries(example skia ${OPENGL_LIBRARIES}) | 259 target_link_libraries(example skia ${OPENGL_LIBRARIES}) |
| OLD | NEW |