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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 ../src/gpu/gl/SkCreatePlatformGLContext*.cpp # For internal testing only
. | 94 ../src/gpu/gl/SkCreatePlatformGLContext*.cpp # For internal testing only
. |
95 ../src/gpu/gl/command_buffer/* | 95 ../src/gpu/gl/command_buffer/* |
96 ../src/gpu/gl/egl/* | 96 ../src/gpu/gl/egl/* |
97 ../src/gpu/gl/iOS/* | 97 ../src/gpu/gl/iOS/* |
98 ../src/gpu/vk/* | 98 ../src/gpu/vk/* |
99 ../src/opts/SkBitmapProcState_opts_none.cpp | 99 ../src/opts/SkBitmapProcState_opts_none.cpp |
100 ../src/opts/SkBlitMask_opts_none.cpp | 100 ../src/opts/SkBlitMask_opts_none.cpp |
101 ../src/opts/SkBlitRow_opts_none.cpp | 101 ../src/opts/SkBlitRow_opts_none.cpp |
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 | |
105 ../src/ports/SkImageEncoder_none.cpp | 104 ../src/ports/SkImageEncoder_none.cpp |
106 ../src/ports/SkImageGenerator_none.cpp | 105 ../src/ports/SkImageGenerator_none.cpp |
107 ../src/ports/SkTLS_none.cpp) | 106 ../src/ports/SkTLS_none.cpp) |
108 | 107 |
109 if (NOT APPLE) | 108 if (NOT APPLE) |
110 remove_srcs(../src/ports/SkImageGeneratorCG.cpp) | 109 remove_srcs(../src/ports/SkImageGeneratorCG.cpp) |
111 endif() | 110 endif() |
112 | 111 |
113 if (NOT WIN32) | 112 if (NOT WIN32) |
114 remove_srcs(../src/ports/SkImageGeneratorWIC.cpp) | 113 remove_srcs(../src/ports/SkImageGeneratorWIC.cpp) |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") | 334 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") |
336 endif () | 335 endif () |
337 endforeach() | 336 endforeach() |
338 endif() | 337 endif() |
339 endforeach() | 338 endforeach() |
340 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") | 339 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") |
341 | 340 |
342 # Now build a simple example app that uses Skia via libskia.so. | 341 # Now build a simple example app that uses Skia via libskia.so. |
343 add_executable(example example.cpp) | 342 add_executable(example example.cpp) |
344 target_link_libraries(example skia ${OPENGL_LIBRARIES}) | 343 target_link_libraries(example skia ${OPENGL_LIBRARIES}) |
OLD | NEW |