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

Unified Diff: ui/gfx/BUILD.gn

Issue 278253002: Port gfx_jni_headers target to 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/BUILD.gn
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn
index 9a3463d6a3bbffacbd269afa99a1b85fc4937adc..ea1a2defdd088917bc114822f6655e96b78ba3e3 100644
--- a/ui/gfx/BUILD.gn
+++ b/ui/gfx/BUILD.gn
@@ -3,8 +3,10 @@
# found in the LICENSE file.
import("//build/config/ui.gni")
+
if (is_android) {
import("//build/config/android/config.gni")
+ import("//build/config/android/rules.gni")
}
# Several targets want to include this header file, and some of them are
@@ -286,7 +288,7 @@ component("gfx") {
deps += [ "//base:base_java" ]
}
- deps += [ ":jni_headers" ]
+ deps += [ ":gfx_jni_headers" ]
libs = [
"android",
"jnigraphics",
@@ -496,7 +498,14 @@ test("gfx_unittests") {
}
if (is_android) {
- # TODO(brettw) gfx_jni_headers
+ generate_jni("gfx_jni_headers") {
+ sources = [
+ "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
+ "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
+ "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
+ ]
+ jni_package = "gfx"
+ }
}
if (use_x11) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698