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

Side by Side Diff: gyp/zlib.gyp

Issue 152513007: Build Skia for a bare-bones embedded Linux system. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: again 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 unified diff | Download patch
OLDNEW
1 # Target for including zlib. 1 # Copyright 2014 Google Inc.
2 #
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
2 { 6 {
7 'variables': {
8 'skia_warnings_as_errors': 0,
9 },
3 'targets': [ 10 'targets': [
4 { 11 {
5 'target_name': 'zlib', 12 'target_name': 'zlib',
6 'type': 'static_library',
7 'dependencies': [
8 'skia_lib.gyp:skia_lib',
9 ],
10 'sources': [
11 '../include/core/SkFlate.h',
12
13 '../src/core/SkFlate.cpp',
14 ],
15 'conditions': [ 13 'conditions': [
16 [ 'skia_os == "mac"', { 14 [ 'skia_zlib_static',
17 'link_settings': { 15 {
18 'libraries': [ 16 'type': 'static_library',
19 '$(SDKROOT)/usr/lib/libz.dylib', 17 'include_dirs': [
18 '../third_party/externals/zlib',
20 ], 19 ],
21 }, 20 'direct_dependent_settings': {
22 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], 21 'defines': [
23 }], 22 'SK_ZLIB_INCLUDE=<zlib.h>',
24 [ 'skia_os == "ios"', { 23 ],
25 'link_settings': { 24 'include_dirs': [
26 'libraries': [ 25 '../third_party/externals/zlib',
27 '$(SDKROOT)/usr/lib/libz.dylib', 26 ],
27 },
28 'sources': [
29 '../third_party/externals/zlib/src/adler32.c',
30 '../third_party/externals/zlib/src/compress.c',
31 '../third_party/externals/zlib/src/crc32.c',
32 '../third_party/externals/zlib/src/deflate.c',
33 '../third_party/externals/zlib/src/gzclose.c',
34 '../third_party/externals/zlib/src/gzlib.c',
35 '../third_party/externals/zlib/src/gzread.c',
36 '../third_party/externals/zlib/src/gzwrite.c',
37 '../third_party/externals/zlib/src/infback.c',
38 '../third_party/externals/zlib/src/inffast.c',
39 '../third_party/externals/zlib/src/inflate.c',
40 '../third_party/externals/zlib/src/inftrees.c',
41 '../third_party/externals/zlib/src/trees.c',
42 '../third_party/externals/zlib/src/uncompr.c',
43 '../third_party/externals/zlib/src/zutil.c',
28 ], 44 ],
29 }, 45 }, { # not skia_zlib_static
30 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], 46 'type': 'none',
31 }], 47 'direct_dependent_settings': {
32 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "nac l"]', { 48 'conditions': [
33 'link_settings': { 'libraries': [ '-lz', ], }, 49 [ 'skia_android_framework', {
34 'conditions': [ 50 'include_dirs': [
35 [ 'skia_android_framework==0', { 51 'external/zlib',
36 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], 52 ],
37 }], 53 }, {
38 ], 54 'defines': [
39 }], 55 'SK_ZLIB_INCLUDE=<zlib.h>',
40 [ 'skia_android_framework', { 56 ],
41 'include_dirs': [ 57 }]
42 'external/zlib', 58 ],
43 ], 59 'link_settings': {
44 }], 60 'conditions': [
45 ], 61 [ 'skia_os == "mac" or skia_os == "ios"', {
46 }, 62 'libraries': [
47 ], 63 '$(SDKROOT)/usr/lib/libz.dylib',
64 ]
65 }, { # skia_os != "mac" and skia_os != "ios"
66 'libraries': [
67 '-lz',
68 ]
69 }],
70 ],
71 }
72 },
73 }
74 ]
75 ]
76 }
77 ]
48 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698