Better generate_gradle.py Namely, fewer projects, instrumentation tests actually in androidTests, junit tests in tests.
Also clean up jinja + script
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/698728ae3b1ceb1cef98276d6e7fc06a1a63336f commit 698728ae3b1ceb1cef98276d6e7fc06a1a63336f Author: wnwen <wnwen@chromium.org> Date: Thu Jan 12 17:37:23 2017 Android: Split up build.gradle.jinja Increase ninja concurrency from 50 to 1000. Load templates from script directory. No visible changes except some whitespace differences. BUG= 680217 Review-Url: https://codereview.chromium.org/2621413002 Cr-Commit-Position: refs/heads/master@{#443278} [rename] https://crrev.com/698728ae3b1ceb1cef98276d6e7fc06a1a63336f/build/android/gradle/android.jinja [add] https://crrev.com/698728ae3b1ceb1cef98276d6e7fc06a1a63336f/build/android/gradle/dependencies.jinja [modify] https://crrev.com/698728ae3b1ceb1cef98276d6e7fc06a1a63336f/build/android/gradle/generate_gradle.py [add] https://crrev.com/698728ae3b1ceb1cef98276d6e7fc06a1a63336f/build/android/gradle/java.jinja [add] https://crrev.com/698728ae3b1ceb1cef98276d6e7fc06a1a63336f/build/android/gradle/root.jinja [modify] https://crrev.com/698728ae3b1ceb1cef98276d6e7fc06a1a63336f/build/android/gyp/jinja_template.py
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/5ee39c9a1b872d95800d7527dbc2ffe7b16cab93 commit 5ee39c9a1b872d95800d7527dbc2ffe7b16cab93 Author: wnwen <wnwen@chromium.org> Date: Thu Jan 19 18:40:27 2017 Android: Instrumentation tests in gradle Add instrumentation tests as androidTest for gradle projects. May require more tweaking to get all the dependencies/files generated. BUG= 680217 Review-Url: https://codereview.chromium.org/2633533002 Cr-Commit-Position: refs/heads/master@{#444800} [modify] https://crrev.com/5ee39c9a1b872d95800d7527dbc2ffe7b16cab93/build/android/gradle/android.jinja [modify] https://crrev.com/5ee39c9a1b872d95800d7527dbc2ffe7b16cab93/build/android/gradle/dependencies.jinja [modify] https://crrev.com/5ee39c9a1b872d95800d7527dbc2ffe7b16cab93/build/android/gradle/generate_gradle.py [modify] https://crrev.com/5ee39c9a1b872d95800d7527dbc2ffe7b16cab93/build/android/gradle/java.jinja [modify] https://crrev.com/5ee39c9a1b872d95800d7527dbc2ffe7b16cab93/build/android/gyp/write_build_config.py
This is about it for now, junit might come later, but we'll have to avoid compiling anything not in android sdk in the same module due to using the android application plugin.
Comment 1 by wnwen@chromium.org
, Jan 11 2017