| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 else() | 180 else() |
| 181 remove_srcs (../src/ports/SkFontMgr_android_parser.cpp) | 181 remove_srcs (../src/ports/SkFontMgr_android_parser.cpp) |
| 182 endif() | 182 endif() |
| 183 | 183 |
| 184 if (GIF_FOUND) | 184 if (GIF_FOUND) |
| 185 list (APPEND private_includes ${GIF_INCLUDE_DIRS}) | 185 list (APPEND private_includes ${GIF_INCLUDE_DIRS}) |
| 186 list (APPEND libs ${GIF_LIBRARIES}) | 186 list (APPEND libs ${GIF_LIBRARIES}) |
| 187 add_definitions(-DSK_HAS_GIF_LIBRARY) | 187 add_definitions(-DSK_HAS_GIF_LIBRARY) |
| 188 else() | 188 else() |
| 189 remove_srcs(../src/images/*GIF*) | 189 remove_srcs(../src/images/*GIF*) |
| 190 remove_srcs(../src/codec/*Gif*) | |
| 191 endif() | 190 endif() |
| 192 | 191 |
| 193 if (JPEG_TURBO_FOUND) | 192 if (JPEG_TURBO_FOUND) |
| 194 list (APPEND private_includes ${JPEG_TURBO_INCLUDE_DIRS}) | 193 list (APPEND private_includes ${JPEG_TURBO_INCLUDE_DIRS}) |
| 195 list (APPEND libs ${JPEG_TURBO_LIBRARIES}) | 194 list (APPEND libs ${JPEG_TURBO_LIBRARIES}) |
| 196 add_definitions(-DSK_HAS_JPEG_LIBRARY) | 195 add_definitions(-DSK_HAS_JPEG_LIBRARY) |
| 197 else() | 196 else() |
| 198 remove_srcs(../src/images/*JPEG*) | 197 remove_srcs(../src/images/*JPEG*) |
| 199 remove_srcs(../src/codec/*Jpeg*) | 198 remove_srcs(../src/codec/*Jpeg*) |
| 200 endif() | 199 endif() |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") | 357 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") |
| 359 endif () | 358 endif () |
| 360 endforeach() | 359 endforeach() |
| 361 endif() | 360 endif() |
| 362 endforeach() | 361 endforeach() |
| 363 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") | 362 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") |
| 364 | 363 |
| 365 # Now build a simple example app that uses Skia via libskia.so. | 364 # Now build a simple example app that uses Skia via libskia.so. |
| 366 add_executable(example example.cpp) | 365 add_executable(example example.cpp) |
| 367 target_link_libraries(example skia ${OPENGL_LIBRARIES}) | 366 target_link_libraries(example skia ${OPENGL_LIBRARIES}) |
| OLD | NEW |