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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 else() | 197 else() |
198 remove_srcs(../src/images/*png*) | 198 remove_srcs(../src/images/*png*) |
199 remove_srcs(../src/images/*ico*) | 199 remove_srcs(../src/images/*ico*) |
200 remove_srcs(../src/codec/*Png*) | 200 remove_srcs(../src/codec/*Png*) |
201 remove_srcs(../src/codec/*Ico*) | 201 remove_srcs(../src/codec/*Ico*) |
202 endif() | 202 endif() |
203 | 203 |
204 if (ZLIB_FOUND) | 204 if (ZLIB_FOUND) |
205 list (APPEND private_includes ${ZLIB_INCLUDE_DIRS}) | 205 list (APPEND private_includes ${ZLIB_INCLUDE_DIRS}) |
206 list (APPEND libs ${ZLIB_LIBRARIES}) | 206 list (APPEND libs ${ZLIB_LIBRARIES}) |
207 remove_srcs(../src/doc/SkDocument_PDF_None.cpp) | 207 remove_srcs(../src/pdf/SkDocument_PDF_None.cpp) |
208 else() | 208 else() |
209 remove_srcs(../src/pdf/*.cpp ../src/doc/SkDocument_PDF.cpp) | 209 remove_srcs(../src/pdf/*.cpp) |
| 210 set (srcs ${srcs} ../src/pdf/SkDocument_PDF_None.cpp) |
210 endif() | 211 endif() |
211 | 212 |
212 if (WEBP_INCLUDE_DIRS AND WEBP_LIBRARIES) | 213 if (WEBP_INCLUDE_DIRS AND WEBP_LIBRARIES) |
213 list (APPEND private_includes ${WEBP_INCLUDE_DIRS}) | 214 list (APPEND private_includes ${WEBP_INCLUDE_DIRS}) |
214 list (APPEND libs ${WEBP_LIBRARIES}) | 215 list (APPEND libs ${WEBP_LIBRARIES}) |
215 add_definitions(-DSK_CODEC_DECODES_WEBP) | 216 add_definitions(-DSK_CODEC_DECODES_WEBP) |
216 else() | 217 else() |
217 remove_srcs(../src/images/*webp*) | 218 remove_srcs(../src/images/*webp*) |
218 remove_srcs(../src/codec/*Webp*) | 219 remove_srcs(../src/codec/*Webp*) |
219 endif() | 220 endif() |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") | 327 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") |
327 endif () | 328 endif () |
328 endforeach() | 329 endforeach() |
329 endif() | 330 endif() |
330 endforeach() | 331 endforeach() |
331 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") | 332 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") |
332 | 333 |
333 # Now build a simple example app that uses Skia via libskia.so. | 334 # Now build a simple example app that uses Skia via libskia.so. |
334 add_executable(example example.cpp) | 335 add_executable(example example.cpp) |
335 target_link_libraries(example skia ${OPENGL_LIBRARIES}) | 336 target_link_libraries(example skia ${OPENGL_LIBRARIES}) |
OLD | NEW |