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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 ../src/ports/SkFontConfigInterface_direct_google3.cpp | 58 ../src/ports/SkFontConfigInterface_direct_google3.cpp |
59 ../src/ports/SkFontConfigInterface_direct_google3_factory.cpp) | 59 ../src/ports/SkFontConfigInterface_direct_google3_factory.cpp) |
60 # Alternative font managers. | 60 # Alternative font managers. |
61 remove_srcs (../src/ports/SkFontMgr_custom*.cpp) | 61 remove_srcs (../src/ports/SkFontMgr_custom*.cpp) |
62 # skslc main() | 62 # skslc main() |
63 remove_srcs (../src/sksl/SkSLMain.cpp) | 63 remove_srcs (../src/sksl/SkSLMain.cpp) |
64 | 64 |
65 | 65 |
66 # Skia sure ships a lot of code no one uses. | 66 # Skia sure ships a lot of code no one uses. |
67 remove_srcs (../src/animator/* ../src/*nacl* ../src/svg/* ../src/views/* ../src/
xml/*) | 67 remove_srcs (../src/animator/* ../src/*nacl* ../src/svg/* ../src/views/* ../src/
xml/*) |
68 foreach (include animator svg svg/parser views xml gpu/vk) | 68 foreach (include animator svg views xml gpu/vk) |
69 file (GLOB globed_include ../include/${include}) | 69 file (GLOB globed_include ../include/${include}) |
70 list (REMOVE_ITEM public_includes ${globed_include}) | 70 list (REMOVE_ITEM public_includes ${globed_include}) |
71 endforeach() | 71 endforeach() |
72 | 72 |
73 # Remove OS-specific source files. | 73 # Remove OS-specific source files. |
74 if (NOT UNIX) | 74 if (NOT UNIX) |
75 remove_srcs(../src/ports/*_posix.cpp | 75 remove_srcs(../src/ports/*_posix.cpp |
76 ../src/ports/SkTLS_pthread.cpp | 76 ../src/ports/SkTLS_pthread.cpp |
77 ../src/ports/SkTime_Unix.cpp | 77 ../src/ports/SkTime_Unix.cpp |
78 ../src/utils/SkThreadUtils_pthread.cpp) | 78 ../src/utils/SkThreadUtils_pthread.cpp) |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") | 349 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") |
350 endif () | 350 endif () |
351 endforeach() | 351 endforeach() |
352 endif() | 352 endif() |
353 endforeach() | 353 endforeach() |
354 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") | 354 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") |
355 | 355 |
356 # Now build a simple example app that uses Skia via libskia.so. | 356 # Now build a simple example app that uses Skia via libskia.so. |
357 add_executable(example example.cpp) | 357 add_executable(example example.cpp) |
358 target_link_libraries(example skia ${OPENGL_LIBRARIES}) | 358 target_link_libraries(example skia ${OPENGL_LIBRARIES}) |
OLD | NEW |