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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 ../src/ports/SkFontMgr_empty_factory.cpp | 102 ../src/ports/SkFontMgr_empty_factory.cpp |
103 ../src/ports/SkGlobalInitialization_chromium.cpp | 103 ../src/ports/SkGlobalInitialization_chromium.cpp |
104 ../src/ports/SkImageDecoder_empty.cpp | 104 ../src/ports/SkImageDecoder_empty.cpp |
105 ../src/ports/SkImageGenerator_none.cpp | 105 ../src/ports/SkImageGenerator_none.cpp |
106 ../src/ports/SkTLS_none.cpp) | 106 ../src/ports/SkTLS_none.cpp) |
107 | 107 |
108 if (NOT APPLE) | 108 if (NOT APPLE) |
109 remove_srcs(../src/ports/SkImageGeneratorCG.cpp) | 109 remove_srcs(../src/ports/SkImageGeneratorCG.cpp) |
110 endif() | 110 endif() |
111 | 111 |
| 112 if (NOT WIN32) |
| 113 remove_srcs(../src/ports/SkImageGeneratorWIC.cpp) |
| 114 endif() |
| 115 |
112 if (WIN32) | 116 if (WIN32) |
113 if(SKIA_GDI) | 117 if(SKIA_GDI) |
114 remove_srcs(../src/ports/SkFontMgr_win_dw_factory.cpp) | 118 remove_srcs(../src/ports/SkFontMgr_win_dw_factory.cpp) |
115 else() | 119 else() |
116 remove_srcs(../src/ports/SkFontMgr_win_gdi_factory.cpp) | 120 remove_srcs(../src/ports/SkFontMgr_win_gdi_factory.cpp) |
117 endif() | 121 endif() |
118 endif() | 122 endif() |
119 | 123 |
120 remove_srcs(../src/gpu/gl/angle/*) # TODO | 124 remove_srcs(../src/gpu/gl/angle/*) # TODO |
121 | 125 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") | 331 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") |
328 endif () | 332 endif () |
329 endforeach() | 333 endforeach() |
330 endif() | 334 endif() |
331 endforeach() | 335 endforeach() |
332 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") | 336 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") |
333 | 337 |
334 # Now build a simple example app that uses Skia via libskia.so. | 338 # Now build a simple example app that uses Skia via libskia.so. |
335 add_executable(example example.cpp) | 339 add_executable(example example.cpp) |
336 target_link_libraries(example skia ${OPENGL_LIBRARIES}) | 340 target_link_libraries(example skia ${OPENGL_LIBRARIES}) |
OLD | NEW |