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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 ../src/ports/SkFontConfigInterface_direct.cpp) | 47 ../src/ports/SkFontConfigInterface_direct.cpp) |
48 # Alternative font managers. | 48 # Alternative font managers. |
49 remove_srcs (../src/ports/SkFontMgr_custom*.cpp) | 49 remove_srcs (../src/ports/SkFontMgr_custom*.cpp) |
50 # Not actually used by Skia. | 50 # Not actually used by Skia. |
51 remove_srcs (../src/utils/SkThreadUtils_pthread_*.cpp) | 51 remove_srcs (../src/utils/SkThreadUtils_pthread_*.cpp) |
52 | 52 |
53 # Skia sure ships a lot of code no one uses. | 53 # Skia sure ships a lot of code no one uses. |
54 remove_srcs (../src/animator/* ../src/*nacl* ../src/svg/* ../src/views/* ../src/
xml/*) | 54 remove_srcs (../src/animator/* ../src/*nacl* ../src/svg/* ../src/views/* ../src/
xml/*) |
55 | 55 |
56 # Some files only contain code in Debug mode. This quiets down some linker warn
ings. | 56 # Some files only contain code in Debug mode. This quiets down some linker warn
ings. |
57 if (NOT CMAKE_BUILD_TYPE EQUAL Debug) | 57 if (NOT CMAKE_BUILD_TYPE STREQUAL Debug) |
58 remove_srcs (../src/core/SkDebug.cpp ../src/utils/SkDumpCanvas.cpp) | 58 remove_srcs (../src/core/SkDebug.cpp ../src/utils/SkDumpCanvas.cpp) |
59 endif() | 59 endif() |
60 | 60 |
61 # Remove OS-specific source files. | 61 # Remove OS-specific source files. |
62 if (NOT WIN32) | 62 if (NOT WIN32) |
63 remove_srcs(../src/*XPS* | 63 remove_srcs(../src/*XPS* |
64 ../src/*_win*.cpp | 64 ../src/*_win*.cpp |
65 ../src/gpu/gl/angle/* | 65 ../src/gpu/gl/angle/* |
66 ../src/ports/SkImageDecoder_WIC.cpp | 66 ../src/ports/SkImageDecoder_WIC.cpp |
67 ../src/utils/win/*) | 67 ../src/utils/win/*) |
68 endif() | 68 endif() |
69 if (APPLE OR NOT UNIX) | 69 if (APPLE OR NOT UNIX) |
70 remove_srcs(../src/gpu/gl/glx/* | 70 remove_srcs(../src/gpu/gl/glx/* |
71 ../src/images/SkImageDecoder_FactoryDefault.cpp | 71 ../src/images/SkImageDecoder_FactoryDefault.cpp |
72 ../src/ports/SkFontMgr_fontconfig*.cpp | 72 ../src/ports/SkFontMgr_fontconfig*.cpp |
73 ../src/*FreeType*) | 73 ../src/*FreeType*) |
74 endif() | 74 endif() |
75 if (NOT ANDROID) | 75 if (NOT ANDROID) |
76 remove_srcs(../src/*Hwui* ../src/*android*) | 76 remove_srcs(../src/*Hwui* ../src/*android*) |
77 endif() | 77 endif() |
78 if (NOT APPLE) | 78 if (NOT APPLE) |
79 remove_srcs(../src/*darwin* | 79 remove_srcs(../src/*darwin* |
80 ../src/ports/SkImageDecoder_CG.cpp | 80 ../src/ports/SkImageDecoder_CG.cpp |
81 ../src/utils/mac/* | 81 ../src/utils/mac/* |
82 ../src/*mac*) | 82 ../src/*mac*) |
83 endif() | 83 endif() |
84 | 84 |
85 # Remove processor-specific source files. | 85 # Remove processor-specific source files. |
86 if (NOT CMAKE_SYSTEM_PROCESSOR EQUAL ARM) | 86 if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL ARM) |
87 remove_srcs(../src/*arm* ../src/*ARM* ../src/*neon* ../src/*NEON*) | 87 remove_srcs(../src/*arm* ../src/*ARM* ../src/*neon* ../src/*NEON*) |
88 endif() | 88 endif() |
89 if (NOT CMAKE_SYSTEM_PROCESSOR EQUAL MIPS) | 89 if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL MIPS) |
90 remove_srcs(../src/*mips* ../src/*MIPS*) | 90 remove_srcs(../src/*mips* ../src/*MIPS*) |
91 endif() | 91 endif() |
92 | 92 |
93 # Make our ports choices. | 93 # Make our ports choices. |
94 remove_srcs( | 94 remove_srcs( |
95 ../src/*moz* # We're probably not Mozilla. | 95 ../src/*moz* # We're probably not Mozilla. |
96 ../src/gpu/GrContextFactory.cpp # For internal testing only
. | 96 ../src/gpu/GrContextFactory.cpp # For internal testing only
. |
97 ../src/gpu/gl/GrGLCreateNativeInterface_none.cpp | 97 ../src/gpu/gl/GrGLCreateNativeInterface_none.cpp |
98 ../src/gpu/gl/GrGLDefaultInterface_none.cpp | 98 ../src/gpu/gl/GrGLDefaultInterface_none.cpp |
99 ../src/gpu/gl/SkCreatePlatformGLContext*.cpp # For internal testing only
. | 99 ../src/gpu/gl/SkCreatePlatformGLContext*.cpp # For internal testing only
. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 VISIBILITY_INLINES_HIDDEN true) | 223 VISIBILITY_INLINES_HIDDEN true) |
224 | 224 |
225 # Experimental C API install: | 225 # Experimental C API install: |
226 file(GLOB cheaders "../include/c/*.h") | 226 file(GLOB cheaders "../include/c/*.h") |
227 install(FILES ${cheaders} DESTINATION include) | 227 install(FILES ${cheaders} DESTINATION include) |
228 install(TARGETS skia DESTINATION lib) | 228 install(TARGETS skia DESTINATION lib) |
229 | 229 |
230 # Now build a simple example app that uses Skia via libskia.so. | 230 # Now build a simple example app that uses Skia via libskia.so. |
231 add_executable(example example.cpp) | 231 add_executable(example example.cpp) |
232 target_link_libraries(example skia ${OPENGL_LIBRARIES}) | 232 target_link_libraries(example skia ${OPENGL_LIBRARIES}) |
OLD | NEW |