Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: cmake/CMakeLists.txt

Issue 1828433004: Revert of Delete SkImageDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@fix-animator
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gm/downsamplebitmap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 endif() 193 endif()
194 194
195 if (PNG_FOUND) 195 if (PNG_FOUND)
196 list (APPEND private_includes ${PNG_INCLUDE_DIRS}) 196 list (APPEND private_includes ${PNG_INCLUDE_DIRS})
197 list (APPEND libs ${PNG_LIBRARIES}) 197 list (APPEND libs ${PNG_LIBRARIES})
198 add_definitions(-DPNG_SKIP_SETJMP_CHECK) 198 add_definitions(-DPNG_SKIP_SETJMP_CHECK)
199 add_definitions(-DPNG_SKIP_SKIA_OPTS) 199 add_definitions(-DPNG_SKIP_SKIA_OPTS)
200 add_definitions(-DSK_CODEC_DECODES_PNG) 200 add_definitions(-DSK_CODEC_DECODES_PNG)
201 else() 201 else()
202 remove_srcs(../src/images/*png*) 202 remove_srcs(../src/images/*png*)
203 remove_srcs(../src/images/*ico*)
203 remove_srcs(../src/codec/*Png*) 204 remove_srcs(../src/codec/*Png*)
204 remove_srcs(../src/codec/*Ico*) 205 remove_srcs(../src/codec/*Ico*)
205 endif() 206 endif()
206 207
207 if (ZLIB_FOUND) 208 if (ZLIB_FOUND)
208 list (APPEND private_includes ${ZLIB_INCLUDE_DIRS}) 209 list (APPEND private_includes ${ZLIB_INCLUDE_DIRS})
209 list (APPEND libs ${ZLIB_LIBRARIES}) 210 list (APPEND libs ${ZLIB_LIBRARIES})
210 remove_srcs(../src/pdf/SkDocument_PDF_None.cpp) 211 remove_srcs(../src/pdf/SkDocument_PDF_None.cpp)
211 else() 212 else()
212 remove_srcs(../src/pdf/*.cpp) 213 remove_srcs(../src/pdf/*.cpp)
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") 331 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n")
331 endif () 332 endif ()
332 endforeach() 333 endforeach()
333 endif() 334 endif()
334 endforeach() 335 endforeach()
335 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") 336 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n")
336 337
337 # Now build a simple example app that uses Skia via libskia.so. 338 # Now build a simple example app that uses Skia via libskia.so.
338 add_executable(example example.cpp) 339 add_executable(example example.cpp)
339 target_link_libraries(example skia ${OPENGL_LIBRARIES}) 340 target_link_libraries(example skia ${OPENGL_LIBRARIES})
OLDNEW
« no previous file with comments | « no previous file | gm/downsamplebitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698