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

Side by Side Diff: gyp/libpng.gyp

Issue 930283002: Add SkCodec, including PNG implementation. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: On Android, make SkCodec build mainline libpng. Created 5 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
OLDNEW
1 # Copyright 2014 Google Inc. 1 # Copyright 2014 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 { 6 {
7 'variables': { 7 'variables': {
8 'skia_warnings_as_errors': 0, 8 'skia_warnings_as_errors': 0,
9 }, 9 },
10 'targets': [ 10 'targets': [
11 { 11 {
12 'target_name': 'libpng', 12 'target_name': 'libpng',
13 'conditions': [ 13 'conditions': [
14 [ 'skia_libpng_static', 14 [ 'skia_libpng_static',
15 { 15 {
16 'type': 'static_library', 16 'type': 'static_library',
17 'include_dirs': [ 17 'include_dirs': [
18 '../third_party/externals/libpng', 18 '../third_party/externals/libpng',
19 ], 19 ],
20 'dependencies': [ 20 'dependencies': [
21 'zlib.gyp:zlib', 21 'zlib.gyp:zlib',
22 ], 22 ],
23 'export_dependent_settings': [
24 'zlib.gyp:zlib',
25 ],
26 'direct_dependent_settings': { 23 'direct_dependent_settings': {
27 'include_dirs': [ 24 'include_dirs': [
28 '../third_party/externals/libpng', 25 '../third_party/externals/libpng',
29 ], 26 ],
30 }, 27 },
31 'cflags': [ 28 'cflags': [
32 '-w', 29 '-w',
33 '-fvisibility=hidden', 30 '-fvisibility=hidden',
34 ], 31 ],
32 'actions': [
33 {
34 'action_name': 'generate_pngconf',
35 'variables' : {
36 'prebuilt': '../third_party/externals/libpng/scripts/pnglibcon f.h.prebuilt',
37 'generated': '../third_party/externals/libpng/pnglibconf.h',
38 },
39 'inputs': [
40 '<(prebuilt)',
41 ],
42 'outputs': [
43 '<(generated)',
44 ],
45 'action': ['python', 'copy_file.py', '<(prebuilt)', '<(generated )'],
46 },
47 ],
35 'sources': [ 48 'sources': [
36 '../third_party/externals/libpng/png.c', 49 '../third_party/externals/libpng/png.c',
37 '../third_party/externals/libpng/pngerror.c', 50 '../third_party/externals/libpng/pngerror.c',
38 '../third_party/externals/libpng/pnggccrd.c',
39 '../third_party/externals/libpng/pngget.c', 51 '../third_party/externals/libpng/pngget.c',
40 '../third_party/externals/libpng/pngmem.c', 52 '../third_party/externals/libpng/pngmem.c',
41 '../third_party/externals/libpng/pngpread.c', 53 '../third_party/externals/libpng/pngpread.c',
42 '../third_party/externals/libpng/pngread.c', 54 '../third_party/externals/libpng/pngread.c',
43 '../third_party/externals/libpng/pngrio.c', 55 '../third_party/externals/libpng/pngrio.c',
44 '../third_party/externals/libpng/pngrtran.c', 56 '../third_party/externals/libpng/pngrtran.c',
45 '../third_party/externals/libpng/pngrutil.c', 57 '../third_party/externals/libpng/pngrutil.c',
46 '../third_party/externals/libpng/pngset.c', 58 '../third_party/externals/libpng/pngset.c',
47 '../third_party/externals/libpng/pngtrans.c', 59 '../third_party/externals/libpng/pngtrans.c',
48 '../third_party/externals/libpng/pngvcrd.c',
49 '../third_party/externals/libpng/pngwio.c', 60 '../third_party/externals/libpng/pngwio.c',
50 '../third_party/externals/libpng/pngwrite.c', 61 '../third_party/externals/libpng/pngwrite.c',
51 '../third_party/externals/libpng/pngwtran.c', 62 '../third_party/externals/libpng/pngwtran.c',
52 '../third_party/externals/libpng/pngwutil.c', 63 '../third_party/externals/libpng/pngwutil.c',
53 ], 64 ],
54 }, { # not skia_libpng_static 65 }, { # not skia_libpng_static
55 'type': 'none', 66 'type': 'none',
56 'conditions': [ 67 'dependencies': [
57 [ 'skia_os == "android"', 68 'zlib.gyp:zlib',
58 { 69 ],
59 # TODO(halcanary): merge all png targets into this file. 70 'export_dependent_settings': [
60 'dependencies': [ 71 'zlib.gyp:zlib',
61 'android_deps.gyp:png', 72 ],
62 ], 73 'direct_dependent_settings': {
63 'export_dependent_settings': [ 74 'link_settings': {
64 'android_deps.gyp:png', 75 'libraries': [
65 ], 76 '-lpng',
66 }, { # skia_os != "android" 77 ],
67 'dependencies': [ 78 },
68 'zlib.gyp:zlib', 79 },
69 ],
70 'export_dependent_settings': [
71 'zlib.gyp:zlib',
72 ],
73 'direct_dependent_settings': {
74 'link_settings': {
75 'libraries': [
76 '-lpng',
77 ],
78 },
79 },
80 }
81 ]
82 ]
83 } 80 }
84 ] 81 ]
85 ], 82 ],
86 }, 83 },
87 ] 84 ]
88 } 85 }
OLDNEW
« dm/DMSrcSink.cpp ('K') | « gyp/copy_file.py ('k') | gyp/skia_lib.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698