summaryrefslogtreecommitdiffstats
path: root/device/devices_app
diff options
context:
space:
mode:
authorrockot <rockot@chromium.org>2015-09-04 14:28:28 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-04 21:28:56 +0000
commit78bd05d78b288b23622e24dc049446fd0f61cb6e (patch)
tree334a44bbdd8fadd5fa8c1b4a67e0aab7cc0ac19a /device/devices_app
parent0179090eb844b39ea55bd70e8e2202c4d3a81026 (diff)
downloadchromium_src-78bd05d78b288b23622e24dc049446fd0f61cb6e.zip
chromium_src-78bd05d78b288b23622e24dc049446fd0f61cb6e.tar.gz
chromium_src-78bd05d78b288b23622e24dc049446fd0f61cb6e.tar.bz2
Disable the standalone devices app in component builds
Native Mojo apps don't work in component builds and we don't need them to. Disabling these targets avoids some warning spam when building the world. BUG=527261 TBR=reillyg@chromium.org Review URL: https://codereview.chromium.org/1318963005 Cr-Commit-Position: refs/heads/master@{#347490}
Diffstat (limited to 'device/devices_app')
-rw-r--r--device/devices_app/BUILD.gn58
1 files changed, 30 insertions, 28 deletions
diff --git a/device/devices_app/BUILD.gn b/device/devices_app/BUILD.gn
index 1621e11..bb89b70 100644
--- a/device/devices_app/BUILD.gn
+++ b/device/devices_app/BUILD.gn
@@ -34,40 +34,42 @@ source_set("lib") {
]
}
-mojo_native_application("devices") {
- sources = [
- "main.cc",
- ]
+if (!is_component_build) {
+ mojo_native_application("devices") {
+ sources = [
+ "main.cc",
+ ]
- deps = [
- "//base",
- "//device/devices_app/public/cpp:factory",
- "//mojo/application/public/cpp",
- ]
+ deps = [
+ "//base",
+ "//device/devices_app/public/cpp:factory",
+ "//mojo/application/public/cpp",
+ ]
- public_deps = [
- ":lib",
- ]
-}
+ public_deps = [
+ ":lib",
+ ]
+ }
-mojo_native_application("apptests") {
- output_name = "devices_apptests"
+ mojo_native_application("apptests") {
+ output_name = "devices_apptests"
- testonly = true
+ testonly = true
- sources = [
- "devices_apptest.cc",
- ]
+ sources = [
+ "devices_apptest.cc",
+ ]
- deps = [
- "//base",
- "//mojo/application/public/cpp:test_support",
- ]
+ deps = [
+ "//base",
+ "//mojo/application/public/cpp:test_support",
+ ]
- public_deps = [
- ":lib",
- "//device/devices_app/usb/public/interfaces",
- ]
+ public_deps = [
+ ":lib",
+ "//device/devices_app/usb/public/interfaces",
+ ]
- data_deps = [ ":devices" ]
+ data_deps = [ ":devices" ]
+ }
}