diff options
author | cjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 00:11:03 +0000 |
---|---|---|
committer | cjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 00:11:03 +0000 |
commit | 26046b5fe46738a9c214a64862831e9417f27850 (patch) | |
tree | 54071de6ea72c3d5652eff37ff38f2c0483de5df /BUILD.gn | |
parent | cbba05a61cec41f996321156e14d2a0ec306451e (diff) | |
download | chromium_src-26046b5fe46738a9c214a64862831e9417f27850.zip chromium_src-26046b5fe46738a9c214a64862831e9417f27850.tar.gz chromium_src-26046b5fe46738a9c214a64862831e9417f27850.tar.bz2 |
[Android][gn] Add android resources templates
This adds support for android resources to gn.
Two new templates are introduced:
java_string_grd: This is like gyp's build/java_strings_grd.gypi. It runs
grit and generates Android strings.xml files and then zips them
together.
android_resources: This is the target for android resources. It is
mostly a wrapper around process_resources.py. This is *not part* of
android_library (like it is in gyp). Making these two things separate is
more like facebook's BUCK and google's internal build rules (and gyp's
java.gypi and java_apk.gypi have gotten way too big and complicated).
Changes to the actual build scripts are very minor except for the added
support for andoid_resources to write_build_config.py. Building
resources requires getting all the transitive resource dependencies, and
so this reuses the simple sorted transitive dependency thing from
write_ordered_libraries.py.
TBR=rch@chromium.org
BUG=359249
Review URL: https://codereview.chromium.org/361633002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283293 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -141,6 +141,10 @@ group("root") { } if (is_android) { + deps += [ + "//ui/android:ui_java" + ] + deps -= [ "//cc", "//chrome/browser", # Blocked on content. |