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

Side by Side Diff: blimp/client/core/BUILD.gn

Issue 2059443002: Java versions of BlimpContents[,Observer] and BlimpNavigationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-with-blimp
Patch Set: git merge origin/master - track master Created 4 years, 6 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 import("//build/config/android/rules.gni")
8 }
9
5 source_set("core") { 10 source_set("core") {
6 visibility = [ "//blimp/*" ] 11 visibility = [ "//blimp/*" ]
7 12
8 sources = [ 13 sources = [
9 "blimp_contents_impl.cc", 14 "blimp_contents_impl.cc",
10 "blimp_contents_impl.h", 15 "blimp_contents_impl.h",
11 "blimp_navigation_controller_delegate.h", 16 "blimp_navigation_controller_delegate.h",
12 "blimp_navigation_controller_impl.cc", 17 "blimp_navigation_controller_impl.cc",
13 "blimp_navigation_controller_impl.h", 18 "blimp_navigation_controller_impl.h",
14 ] 19 ]
15 20
16 deps = [ 21 deps = [
17 "//base", 22 "//base",
18 "//blimp/client/core/public", 23 "//blimp/client/core/public",
19 "//url", 24 "//url",
20 ] 25 ]
26
27 if (is_android) {
28 sources += [
29 "android/blimp_contents_factory.cc",
30 "android/blimp_contents_factory.h",
31 "android/blimp_contents_impl_android.cc",
32 "android/blimp_contents_impl_android.h",
33 "android/blimp_contents_observer_proxy.cc",
34 "android/blimp_contents_observer_proxy.h",
35 "android/blimp_navigation_controller_impl_android.cc",
36 "android/blimp_navigation_controller_impl_android.h",
37 ]
38
39 deps += [ "//blimp/client/core:core_jni_headers" ]
40 }
21 } 41 }
22 42
23 source_set("unit_tests") { 43 source_set("unit_tests") {
24 testonly = true 44 testonly = true
25 45
26 sources = [ 46 sources = [
27 "blimp_contents_impl_unittest.cc", 47 "blimp_contents_impl_unittest.cc",
28 "blimp_navigation_controller_impl_unittest.cc", 48 "blimp_navigation_controller_impl_unittest.cc",
29 ] 49 ]
30 50
31 deps = [ 51 deps = [
32 "//base", 52 "//base",
33 "//blimp/client/core", 53 "//blimp/client/core",
34 "//blimp/client/core/public", 54 "//blimp/client/core/public",
35 "//testing/gtest", 55 "//testing/gtest",
36 "//url", 56 "//url",
37 ] 57 ]
38 } 58 }
59
60 if (is_android) {
61 android_library("core_java") {
62 visibility = [ "//blimp/*" ]
63
64 java_files = [
65 "android/java/src/org/chromium/blimp/core/BlimpContentsFactory.java",
66 "android/java/src/org/chromium/blimp/core/BlimpContentsImpl.java",
67 "android/java/src/org/chromium/blimp/core/BlimpContentsObserverProxy.java" ,
68 "android/java/src/org/chromium/blimp/core/BlimpNavigationControllerImpl.ja va",
69 ]
70
71 deps = [
72 "//base:base_java",
73 "//blimp/client/core/public:public_java",
74 ]
75 }
76
77 generate_jni("core_jni_headers") {
78 sources = [
79 "android/java/src/org/chromium/blimp/core/BlimpContentsFactory.java",
80 "android/java/src/org/chromium/blimp/core/BlimpContentsImpl.java",
81 "android/java/src/org/chromium/blimp/core/BlimpContentsObserverProxy.java" ,
82 "android/java/src/org/chromium/blimp/core/BlimpNavigationControllerImpl.ja va",
83 ]
84
85 jni_package = "blimp"
86 }
87 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698