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

Unified Diff: cmake/CMakeLists.txt

Issue 2033063003: Check libpng directly into third_party/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: public.bzl Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | public.bzl » ('j') | public.bzl » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmake/CMakeLists.txt
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index ef0856a3ea338b9942af1edf460d5885ca2a1c58..18d590c28e94d12496f71c4227e1a24410974333 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -35,6 +35,13 @@ list (APPEND public_includes ${userconfig_directory})
list (APPEND srcs ../third_party/etc1/etc1.cpp ../third_party/ktx/ktx.cpp)
list (APPEND private_includes ../third_party/etc1 ../third_party/ktx)
+list (APPEND private_includes ../third_party/libpng)
+file (GLOB libpng_srcs ../third_party/libpng/*.c)
+foreach (src ${libpng_srcs})
+ list (APPEND srcs ${src})
+endforeach()
+
+
function (remove_srcs)
file (GLOB_RECURSE to_remove ${ARGN})
list (REMOVE_ITEM srcs ${to_remove})
@@ -148,7 +155,6 @@ if (UNIX AND NOT APPLE)
find_library (FONTCONFIG_LIBRARIES fontconfig)
find_package (GIF)
find_package (JPEG)
- find_package (PNG)
endif()
# Do not compile SkRawCodec.
@@ -188,17 +194,9 @@ else()
remove_srcs(../src/utils/*Lua*)
endif()
-if (PNG_FOUND)
- list (APPEND private_includes ${PNG_INCLUDE_DIRS})
- list (APPEND libs ${PNG_LIBRARIES})
- add_definitions(-DPNG_SKIP_SETJMP_CHECK)
- add_definitions(-DPNG_SKIP_SKIA_OPTS)
- add_definitions(-DSK_HAS_PNG_LIBRARY)
-else()
- remove_srcs(../src/images/*PNG*)
- remove_srcs(../src/codec/*Png*)
- remove_srcs(../src/codec/*Ico*)
-endif()
+# PNG
+add_definitions(-DSK_HAS_PNG_LIBRARY)
+add_definitions(-DPNG_ARM_NEON_OPT=0)
if (ZLIB_FOUND)
list (APPEND private_includes ${ZLIB_INCLUDE_DIRS})
« no previous file with comments | « no previous file | public.bzl » ('j') | public.bzl » ('J')

Powered by Google App Engine
This is Rietveld 408576698