OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 config("libpng_config") { | |
6 include_dirs = [ | |
7 ".", | |
8 ] | |
9 | |
10 defines = [ | |
11 "CHROME_PNG_WRITE_SUPPORT", | |
12 "PNG_USER_CONFIG", | |
13 ] | |
14 if (is_android) { | |
15 #'toolsets': ['target', 'host'], | |
16 defines += [ | |
17 "CHROME_PNG_READ_PACK_SUPPORT", # Required by freetype. | |
18 ] | |
19 } | |
20 } | |
21 | |
22 static_library("libpng") { | |
23 sources = [ | |
24 "png.c", | |
25 "png.h", | |
26 "pngconf.h", | |
27 "pngerror.c", | |
28 "pnggccrd.c", | |
29 "pngget.c", | |
30 "pngmem.c", | |
31 "pngpread.c", | |
32 "pngread.c", | |
33 "pngrio.c", | |
34 "pngrtran.c", | |
35 "pngrutil.c", | |
36 "pngset.c", | |
37 "pngtrans.c", | |
38 "pngusr.h", | |
39 "pngvcrd.c", | |
40 "pngwio.c", | |
41 "pngwrite.c", | |
42 "pngwtran.c", | |
43 "pngwutil.c", | |
44 ] | |
45 | |
46 defines = [ | |
47 "CHROME_PNG_WRITE_SUPPORT", | |
48 "PNG_USER_CONFIG", | |
49 ] | |
50 | |
51 direct_dependent_configs = [ ":libpng_config" ] | |
52 | |
53 configs -= "//build/config/compiler:chromium_code" | |
54 configs += "//build/config/compiler:no_chromium_code" | |
55 | |
56 #'export_dependent_settings': [ | |
brettw
2014/01/08 05:26:50
This would turn into:
forward_dependent_configs_fr
tfarina
2014/01/09 01:18:42
Done.
| |
57 # '../zlib/zlib.gyp:zlib', | |
58 #], | |
59 | |
60 if (is_win) { | |
61 # TODO(jschuh): http://crbug.com/167187 | |
62 #'msvs_disabled_warnings': [ 4267 ], | |
63 #'type': '<(component)', | |
64 | |
65 #if (component=="shared_library"') { | |
brettw
2014/01/08 05:26:50
Substitute component -> component_mode and I think
tfarina
2014/01/09 01:18:42
Done.
| |
66 # defines = [ | |
67 # "PNG_BUILD_DLL", | |
68 # "PNG_NO_MODULEDEF", | |
69 # ] | |
70 # 'direct_dependent_settings': { | |
brettw
2014/01/08 05:26:50
Put this in the config above (in a component mode
tfarina
2014/01/09 01:18:42
Done.
| |
71 # defines = [ | |
72 # "PNG_USE_DLL", | |
73 # ] | |
74 # }, | |
75 } else { | |
76 #['OS!="win"', {'product_name': 'png'}], | |
brettw
2014/01/08 05:26:50
I'd just delete this.
tfarina
2014/01/09 01:18:42
Done.
| |
77 #'type': 'static_library', | |
78 } | |
79 | |
80 deps = [ | |
81 "//third_party/zlib", | |
82 ] | |
83 } | |
OLD | NEW |