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

Unified Diff: gyp/libzlib.gyp

Issue 152513007: Build Skia for a bare-bones embedded Linux system. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: changes Created 6 years, 10 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
Index: gyp/libzlib.gyp
diff --git a/gyp/libzlib.gyp b/gyp/libzlib.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..129e6cb2d297a1e77cf143da3ac191988ae907e7
--- /dev/null
+++ b/gyp/libzlib.gyp
@@ -0,0 +1,76 @@
+# Copyright 2014 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ 'skia_warnings_as_errors': 0,
+ },
+ 'targets': [
+ {
+ 'target_name': 'libzlib',
+ 'conditions': [
+ ['skia_zlib_static', {
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../third_party/externals/zlib',
+ ],
+ 'direct_dependent_settings': {
+ 'defines': [
+ 'SK_ZLIB_INCLUDE=<zlib.h>',
+ ],
+ 'include_dirs': [
+ '../third_party/externals/zlib',
+ ],
+ },
+ 'sources': [
+ '../third_party/externals/zlib/adler32.c',
+ '../third_party/externals/zlib/compress.c',
+ '../third_party/externals/zlib/crc32.c',
+ '../third_party/externals/zlib/deflate.c',
+ '../third_party/externals/zlib/gzclose.c',
+ '../third_party/externals/zlib/gzlib.c',
+ '../third_party/externals/zlib/gzread.c',
+ '../third_party/externals/zlib/gzwrite.c',
+ '../third_party/externals/zlib/infback.c',
+ '../third_party/externals/zlib/inffast.c',
+ '../third_party/externals/zlib/inflate.c',
+ '../third_party/externals/zlib/inftrees.c',
+ '../third_party/externals/zlib/trees.c',
+ '../third_party/externals/zlib/uncompr.c',
+ '../third_party/externals/zlib/zutil.c',
+ ],
+ }, {
+ 'type': 'none',
+ 'direct_dependent_settings': {
+ 'conditions': [
+ [ 'skia_android_framework', {
+ 'include_dirs': [
+ 'external/zlib',
+ ],
+ }, {
+ 'defines': [
+ 'SK_ZLIB_INCLUDE=<zlib.h>',
+ ],
+ }]
+ ],
+ 'link_settings': {
+ 'conditions': [
+ [ 'skia_os == "mac" or skia_os == "ios"', {
+ 'libraries': [
+ '$(SDKROOT)/usr/lib/libz.dylib',
+ ]
+ }, {
+ 'libraries': [
+ '-lz',
+ ]
+ }],
+ ],
+ }
+ },
+ }]
+ ]
+ }
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698