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

Side by Side Diff: third_party/expat/BUILD.gn

Issue 289973006: Make skia compile in Android GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « skia/BUILD.gn ('k') | tools/gn/secondary/third_party/freetype/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 if (is_android) {
6 import("//build/config/android/config.gni")
7 }
8
5 if (is_linux) { 9 if (is_linux) {
6 config("expat_config") { 10 config("expat_config") {
7 libs = [ "expat" ] 11 libs = [ "expat" ]
8 } 12 }
9 13
10 group("expat") { 14 group("expat") {
11 direct_dependent_configs = [ ":expat_config" ] 15 direct_dependent_configs = [ ":expat_config" ]
12 } 16 }
13 17
14 # TODO(GYP) Android needs direct dependent includes of 18 # TODO(GYP) Android needs direct dependent includes of
15 # <android_src>/external/expat/lib 19 # <android_src>/external/expat/lib
16 } else { 20 } else {
17 config("expat_config") { 21 config("expat_config") {
18 include_dirs = [ "files/lib" ] 22 include_dirs = [ "files/lib" ]
23 if (is_android) {
24 include_dirs += [ "$android_src/external/expat/lib" ]
25 }
19 defines = [ "XML_STATIC" ] 26 defines = [ "XML_STATIC" ]
20 } 27 }
21 28
22 static_library("expat") { 29 static_library("expat") {
23 sources = [ 30 sources = [
24 "files/lib/expat.h", 31 "files/lib/expat.h",
25 "files/lib/xmlparse.c", 32 "files/lib/xmlparse.c",
26 "files/lib/xmlrole.c", 33 "files/lib/xmlrole.c",
27 "files/lib/xmltok.c", 34 "files/lib/xmltok.c",
28 ] 35 ]
29 36
37 direct_dependent_configs = [ ":expat_config" ]
38
30 defines = [ "_LIB" ] 39 defines = [ "_LIB" ]
31 if (is_win) { 40 if (is_win) {
32 defines += [ "COMPILED_FROM_DSP" ] 41 defines += [ "COMPILED_FROM_DSP" ]
33 } else { 42 } else {
34 defines += [ "HAVE_EXPAT_CONFIG_H" ] 43 defines += [ "HAVE_EXPAT_CONFIG_H" ]
35 } 44 }
36 } 45 }
37 } 46 }
OLDNEW
« no previous file with comments | « skia/BUILD.gn ('k') | tools/gn/secondary/third_party/freetype/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698