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

Side by Side Diff: tools/gn/secondary/third_party/libpng/BUILD.gn

Issue 123613008: Add BUILD.gn file to build libpng. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android fix Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698