| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 ../src/fonts/SkFontMgr_fontconfig.cpp | 50 ../src/fonts/SkFontMgr_fontconfig.cpp |
| 51 ../src/ports/SkFontConfigInterface_direct.cpp | 51 ../src/ports/SkFontConfigInterface_direct.cpp |
| 52 ../src/ports/SkFontConfigInterface_direct_factory.cpp | 52 ../src/ports/SkFontConfigInterface_direct_factory.cpp |
| 53 ../src/ports/SkFontConfigInterface_direct_google3.cpp | 53 ../src/ports/SkFontConfigInterface_direct_google3.cpp |
| 54 ../src/ports/SkFontConfigInterface_direct_google3_factory.cpp) | 54 ../src/ports/SkFontConfigInterface_direct_google3_factory.cpp) |
| 55 # Alternative font managers. | 55 # Alternative font managers. |
| 56 remove_srcs (../src/ports/SkFontMgr_custom*.cpp) | 56 remove_srcs (../src/ports/SkFontMgr_custom*.cpp) |
| 57 | 57 |
| 58 # Skia sure ships a lot of code no one uses. | 58 # Skia sure ships a lot of code no one uses. |
| 59 remove_srcs (../src/animator/* ../src/*nacl* ../src/svg/* ../src/views/* ../src/
xml/*) | 59 remove_srcs (../src/animator/* ../src/*nacl* ../src/svg/* ../src/views/* ../src/
xml/*) |
| 60 foreach (include animator svg svg/parser views xml) | 60 foreach (include animator svg svg/parser views xml gpu/vk) |
| 61 file (GLOB globed_include ../include/${include}) | 61 file (GLOB globed_include ../include/${include}) |
| 62 list (REMOVE_ITEM public_includes ${globed_include}) | 62 list (REMOVE_ITEM public_includes ${globed_include}) |
| 63 endforeach() | 63 endforeach() |
| 64 | 64 |
| 65 # Remove OS-specific source files. | 65 # Remove OS-specific source files. |
| 66 if (NOT UNIX) | 66 if (NOT UNIX) |
| 67 remove_srcs(../src/ports/*_posix.cpp | 67 remove_srcs(../src/ports/*_posix.cpp |
| 68 ../src/ports/SkTLS_pthread.cpp | 68 ../src/ports/SkTLS_pthread.cpp |
| 69 ../src/ports/SkTime_Unix.cpp | 69 ../src/ports/SkTime_Unix.cpp |
| 70 ../src/utils/SkThreadUtils_pthread.cpp) | 70 ../src/utils/SkThreadUtils_pthread.cpp) |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") | 322 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") |
| 323 endif () | 323 endif () |
| 324 endforeach() | 324 endforeach() |
| 325 endif() | 325 endif() |
| 326 endforeach() | 326 endforeach() |
| 327 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") | 327 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") |
| 328 | 328 |
| 329 # Now build a simple example app that uses Skia via libskia.so. | 329 # Now build a simple example app that uses Skia via libskia.so. |
| 330 add_executable(example example.cpp) | 330 add_executable(example example.cpp) |
| 331 target_link_libraries(example skia ${OPENGL_LIBRARIES}) | 331 target_link_libraries(example skia ${OPENGL_LIBRARIES}) |
| OLD | NEW |