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

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: 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..40e1a5de0775cce1c0dcf538e89b7e9935a144af
--- /dev/null
+++ b/gyp/libzlib.gyp
@@ -0,0 +1,91 @@
+# Copyright 2014 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'conditions': [
+ ['skia_zlib_static', {
+ 'variables': {
+ 'skia_warnings_as_errors': 0,
+ },
+ 'targets': [
+ {
+ 'target_name': 'libzlib',
+ 'type': 'static_library',
+ 'defines': [
+ ],
+ 'include_dirs': [
+ '../third_party/externals/zlib',
+ ],
+ 'direct_dependent_settings': {
+ 'defines': [
+ 'SK_ZLIB_INCLUDE=<zlib.h>',
+ ],
+ 'include_dirs': [
+ '../third_party/externals/zlib',
+ ],
+ },
+ 'cflags': [
+ ],
+ 'link_settings': {
+ },
+ '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',
+ ],
+ }
+ ]
+ }, {
+ 'targets': [
+ {
+ 'target_name': 'libzlib',
+ 'type': 'none',
+ 'dependencies': [
+ ],
+ 'export_dependent_settings': [
scroggo 2014/02/06 16:22:13 This file has many empty lists. I don't think they
hal.canary 2014/02/06 18:01:57 Done.
+ ],
+ '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