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

Side by Side Diff: 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: rebase 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
15 if (is_android) {
16 #'toolsets': ['target', 'host'],
17 defines += [
18 "CHROME_PNG_READ_PACK_SUPPORT", # Required by freetype.
19 ]
20 }
21
22 if (is_win) {
23 if (component_mode == "shared_library") {
24 defines += [
25 "PNG_USE_DLL",
26 "PNG_NO_MODULEDEF",
27 ]
28 }
29 }
30 }
31
32 static_library("libpng") {
33 sources = [
34 "png.c",
35 "png.h",
36 "pngconf.h",
37 "pngerror.c",
38 "pnggccrd.c",
39 "pngget.c",
40 "pngmem.c",
41 "pngpread.c",
42 "pngread.c",
43 "pngrio.c",
44 "pngrtran.c",
45 "pngrutil.c",
46 "pngset.c",
47 "pngtrans.c",
48 "pngusr.h",
49 "pngvcrd.c",
50 "pngwio.c",
51 "pngwrite.c",
52 "pngwtran.c",
53 "pngwutil.c",
54 ]
55
56 configs -= "//build/config/compiler:chromium_code"
57 configs += "//build/config/compiler:no_chromium_code"
58
59 forward_dependent_configs_from = [ "//third_party/zlib" ]
60
61 direct_dependent_configs = [ ":libpng_config" ]
62
63 deps = [
64 "//third_party/zlib",
65 ]
66 }
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