| 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 | 94 |
| 95 if (WIN32) | 95 if (WIN32) |
| 96 if(SKIA_GDI) | 96 if(SKIA_GDI) |
| 97 remove_srcs(../src/ports/SkFontMgr_win_dw_factory.cpp) | 97 remove_srcs(../src/ports/SkFontMgr_win_dw_factory.cpp) |
| 98 else() | 98 else() |
| 99 remove_srcs(../src/ports/SkFontMgr_win_gdi_factory.cpp) | 99 remove_srcs(../src/ports/SkFontMgr_win_gdi_factory.cpp) |
| 100 endif() | 100 endif() |
| 101 endif() | 101 endif() |
| 102 | 102 |
| 103 remove_srcs(../src/gpu/gl/angle/*) # TODO | 103 remove_srcs(../src/gpu/gl/angle/*) # TODO |
| 104 remove_srcs(../src/codec/*) # TODO: Requires Chromium's libjpeg-turbo, and inco
mpatible giflib. | 104 remove_srcs(../src/codec/* ../src/android/*) # TODO: Requires Chromium's libjpe
g-turbo, and incompatible giflib. |
| 105 | 105 |
| 106 # Certain files must be compiled with support for SSSE3 or SSE4.1 intrinsics. | 106 # Certain files must be compiled with support for SSSE3 or SSE4.1 intrinsics. |
| 107 file (GLOB_RECURSE ssse3_srcs ../src/*ssse3*.cpp ../src/*SSSE3*.cpp) | 107 file (GLOB_RECURSE ssse3_srcs ../src/*ssse3*.cpp ../src/*SSSE3*.cpp) |
| 108 file (GLOB_RECURSE sse41_srcs ../src/*sse4*.cpp ../src/*SSE4*.cpp) | 108 file (GLOB_RECURSE sse41_srcs ../src/*sse4*.cpp ../src/*SSE4*.cpp) |
| 109 set_source_files_properties(${ssse3_srcs} PROPERTIES COMPILE_FLAGS -mssse3) | 109 set_source_files_properties(${ssse3_srcs} PROPERTIES COMPILE_FLAGS -mssse3) |
| 110 set_source_files_properties(${sse41_srcs} PROPERTIES COMPILE_FLAGS -msse4.1) | 110 set_source_files_properties(${sse41_srcs} PROPERTIES COMPILE_FLAGS -msse4.1) |
| 111 | 111 |
| 112 # Detect our optional dependencies. | 112 # Detect our optional dependencies. |
| 113 # If we can't find them, don't build the parts of Skia that use them. | 113 # If we can't find them, don't build the parts of Skia that use them. |
| 114 find_package (EXPAT) | 114 find_package (EXPAT) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 VISIBILITY_INLINES_HIDDEN true) | 241 VISIBILITY_INLINES_HIDDEN true) |
| 242 | 242 |
| 243 # Experimental C API install: | 243 # Experimental C API install: |
| 244 file(GLOB c_headers "../include/c/*.h") | 244 file(GLOB c_headers "../include/c/*.h") |
| 245 install(FILES ${c_headers} DESTINATION include) | 245 install(FILES ${c_headers} DESTINATION include) |
| 246 install(TARGETS skia DESTINATION lib) | 246 install(TARGETS skia DESTINATION lib) |
| 247 | 247 |
| 248 # Now build a simple example app that uses Skia via libskia.so. | 248 # Now build a simple example app that uses Skia via libskia.so. |
| 249 add_executable(example example.cpp) | 249 add_executable(example example.cpp) |
| 250 target_link_libraries(example skia ${OPENGL_LIBRARIES}) | 250 target_link_libraries(example skia ${OPENGL_LIBRARIES}) |
| OLD | NEW |