| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 function (remove_srcs) | 45 function (remove_srcs) |
| 46 file (GLOB_RECURSE to_remove ${ARGN}) | 46 file (GLOB_RECURSE to_remove ${ARGN}) |
| 47 list (REMOVE_ITEM srcs ${to_remove}) | 47 list (REMOVE_ITEM srcs ${to_remove}) |
| 48 set (srcs ${srcs} PARENT_SCOPE) | 48 set (srcs ${srcs} PARENT_SCOPE) |
| 49 endfunction() | 49 endfunction() |
| 50 | 50 |
| 51 # This file is empty and is only used to trick GYP. | 51 # This file is empty and is only used to trick GYP. |
| 52 remove_srcs (../src/core/SkForceCPlusPlusLinking.cpp) | 52 remove_srcs (../src/core/SkForceCPlusPlusLinking.cpp) |
| 53 # Chrome only? | 53 # Chrome only? |
| 54 remove_srcs (../src/ports/SkFontHost_fontconfig.cpp | 54 remove_srcs (../src/ports/SkFontConfigInterface_direct.cpp |
| 55 ../src/fonts/SkFontMgr_fontconfig.cpp | |
| 56 ../src/ports/SkFontConfigInterface_direct.cpp | |
| 57 ../src/ports/SkFontConfigInterface_direct_factory.cpp | 55 ../src/ports/SkFontConfigInterface_direct_factory.cpp |
| 58 ../src/ports/SkFontConfigInterface_direct_google3.cpp | 56 ../src/ports/SkFontConfigInterface_direct_google3.cpp |
| 59 ../src/ports/SkFontConfigInterface_direct_google3_factory.cpp | 57 ../src/ports/SkFontConfigInterface_direct_google3_factory.cpp |
| 60 ../src/ports/SkFontMgr_FontConfigInterface.cpp | 58 ../src/ports/SkFontMgr_FontConfigInterface.cpp |
| 61 ../src/ports/SkFontMgr_FontConfigInterface_factory.cpp) | 59 ../src/ports/SkFontMgr_FontConfigInterface_factory.cpp) |
| 62 # Alternative font managers. | 60 # Alternative font managers. |
| 63 remove_srcs (../src/ports/SkFontMgr_custom*.cpp) | 61 remove_srcs (../src/ports/SkFontMgr_custom*.cpp) |
| 64 # skslc main() | 62 # skslc main() |
| 65 remove_srcs (../src/sksl/SkSLMain.cpp) | 63 remove_srcs (../src/sksl/SkSLMain.cpp) |
| 66 | 64 |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") | 349 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") |
| 352 endif () | 350 endif () |
| 353 endforeach() | 351 endforeach() |
| 354 endif() | 352 endif() |
| 355 endforeach() | 353 endforeach() |
| 356 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") | 354 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") |
| 357 | 355 |
| 358 # 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. |
| 359 add_executable(example example.cpp) | 357 add_executable(example example.cpp) |
| 360 target_link_libraries(example skia ${OPENGL_LIBRARIES}) | 358 target_link_libraries(example skia ${OPENGL_LIBRARIES}) |
| OLD | NEW |