| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 if (is_android) { | |
| 6 import("//build/config/android/config.gni") | |
| 7 import("//build/config/android/rules.gni") | |
| 8 } | |
| 9 | |
| 10 # Only //chrome should ever depend on this. Code in //blimp/client/* should | |
| 11 # instead use //blimp/client/public:public_headers directly. This target | |
| 12 # differs from :public_headers by pulling in the appropriate implementation | |
| 13 # as well as the headers. | |
| 14 group("public") { | |
| 15 visibility = [ "//chrome/*" ] | |
| 16 | |
| 17 deps = [ | |
| 18 ":public_headers", | |
| 19 "//blimp/client/core:core_shim", | |
| 20 ] | |
| 21 } | |
| 22 | |
| 23 # All code in //blimp/client/* should depend on this target instead of | |
| 24 # //blimp/client/public to ensure there are no circular dependencies or | |
| 25 # duplicate symbols regardless of whether enable_blimp_client is set or not. | |
| 26 source_set("public_headers") { | |
| 27 visibility = [ | |
| 28 "//blimp/client/*", | |
| 29 "//blimp/test/*", | |
| 30 ] | |
| 31 | |
| 32 sources = [ | |
| 33 "blimp_client_context.h", | |
| 34 "blimp_client_context_delegate.h", | |
| 35 "compositor/compositor_dependencies.h", | |
| 36 "contents/blimp_contents.h", | |
| 37 "contents/blimp_contents_observer.cc", | |
| 38 "contents/blimp_contents_observer.h", | |
| 39 "contents/blimp_contents_view.h", | |
| 40 "contents/blimp_navigation_controller.h", | |
| 41 "resources/blimp_strings.h", | |
| 42 "session/assignment.cc", | |
| 43 "session/assignment.h", | |
| 44 ] | |
| 45 | |
| 46 public_deps = [ | |
| 47 "//base", | |
| 48 "//cc/surfaces:surface_id", | |
| 49 "//components/keyed_service/core", | |
| 50 "//components/prefs:prefs", | |
| 51 "//net", | |
| 52 "//ui/gfx:native_widget_types", | |
| 53 "//url", | |
| 54 ] | |
| 55 | |
| 56 if (is_android) { | |
| 57 sources += [ "android/blimp_jni_registrar.h" ] | |
| 58 } | |
| 59 } | |
| 60 | |
| 61 if (is_android) { | |
| 62 # Only //chrome should ever depend on this. Code in //blimp/client/* should | |
| 63 # instead use //blimp/client/public:public_headers_java directly. This target | |
| 64 # differs from :public_headers_java by pulling in the appropriate | |
| 65 # implementation as well as the headers. | |
| 66 java_group("public_java") { | |
| 67 visibility = [ "//chrome/*" ] | |
| 68 | |
| 69 deps = [ | |
| 70 ":public_headers_java", | |
| 71 "//blimp/client/core:core_shim_java", | |
| 72 ] | |
| 73 } | |
| 74 | |
| 75 # All code in //blimp/client/* should depend on this target instead of | |
| 76 # //blimp/client/public:public_java to ensure there are no circular | |
| 77 # dependencies or duplicate files regardless of whether enable_blimp_client is | |
| 78 # set or not. | |
| 79 android_library("public_headers_java") { | |
| 80 visibility = [ "//blimp/client/*" ] | |
| 81 | |
| 82 java_files = [ | |
| 83 "android/java/src/org/chromium/blimp_public/contents/BlimpContents.java", | |
| 84 "android/java/src/org/chromium/blimp_public/contents/BlimpContentsObserver
.java", | |
| 85 "android/java/src/org/chromium/blimp_public/contents/BlimpNavigationContro
ller.java", | |
| 86 "android/java/src/org/chromium/blimp_public/contents/EmptyBlimpContentsObs
erver.java", | |
| 87 "android/java/src/org/chromium/blimp_public/BlimpClientContext.java", | |
| 88 "android/java/src/org/chromium/blimp_public/BlimpClientContextDelegate.jav
a", | |
| 89 ] | |
| 90 | |
| 91 deps = [ | |
| 92 "//third_party/android_tools:android_support_annotations_java", | |
| 93 "//ui/android:ui_java", | |
| 94 ] | |
| 95 | |
| 96 # The enums are added here for convenience for embedders, so they can still | |
| 97 # only depend on :public_java. | |
| 98 srcjar_deps = [ ":public_headers_java_enums_srcjar" ] | |
| 99 } | |
| 100 | |
| 101 java_cpp_enum("public_headers_java_enums_srcjar") { | |
| 102 visibility = [ ":*" ] | |
| 103 | |
| 104 sources = [ | |
| 105 "session/assignment.h", | |
| 106 ] | |
| 107 } | |
| 108 } | |
| OLD | NEW |