Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//mojo/public/mojo_application.gni") | 6 import("//mojo/public/mojo_application.gni") |
| 7 import("//mojo/public/mojo_application_manifest.gni") | 7 import("//mojo/public/mojo_application_manifest.gni") |
| 8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
| 9 import("//tools/grit/repack.gni") | 9 import("//tools/grit/repack.gni") |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 "sysui_application.h", | 24 "sysui_application.h", |
| 25 ] | 25 ] |
| 26 | 26 |
| 27 deps = [ | 27 deps = [ |
| 28 "//ash", | 28 "//ash", |
| 29 "//cc", | 29 "//cc", |
| 30 "//cc/surfaces", | 30 "//cc/surfaces", |
| 31 "//components/mus/common:mus_common", | 31 "//components/mus/common:mus_common", |
| 32 "//components/mus/public/cpp", | 32 "//components/mus/public/cpp", |
| 33 "//components/mus/public/interfaces", | 33 "//components/mus/public/interfaces", |
| 34 "//components/resource_provider/public/cpp", | |
| 34 "//components/user_manager", | 35 "//components/user_manager", |
| 35 "//device/bluetooth", | 36 "//device/bluetooth", |
| 36 "//mash/wm/public/interfaces", | 37 "//mash/wm/public/interfaces", |
| 37 "//mojo/common:common_base", | 38 "//mojo/common:common_base", |
| 38 "//mojo/converters/geometry", | 39 "//mojo/converters/geometry", |
| 39 "//mojo/converters/input_events", | 40 "//mojo/converters/input_events", |
| 40 "//mojo/services/tracing/public/cpp", | 41 "//mojo/services/tracing/public/cpp", |
| 41 "//mojo/shell/public/cpp", | 42 "//mojo/shell/public/cpp", |
| 42 "//skia", | 43 "//skia", |
| 43 "//ui/aura", | 44 "//ui/aura", |
| 44 "//ui/events", | 45 "//ui/events", |
| 45 "//ui/events/devices", | 46 "//ui/events/devices", |
| 46 "//ui/gfx", | 47 "//ui/gfx", |
| 47 "//ui/gfx/geometry", | 48 "//ui/gfx/geometry", |
| 48 "//ui/keyboard:mojom", | 49 "//ui/keyboard:mojom", |
| 49 "//ui/message_center", | 50 "//ui/message_center", |
| 50 "//ui/mojo/init", | 51 "//ui/mojo/init", |
| 51 "//ui/platform_window/stub", | 52 "//ui/platform_window/stub", |
| 52 "//ui/resources", | 53 "//ui/resources", |
| 53 "//ui/strings", | 54 "//ui/strings", |
| 54 "//ui/views", | 55 "//ui/views", |
| 55 "//ui/views/mus:for_mojo_application", | 56 "//ui/views/mus:for_mojo_application", |
| 56 ] | 57 ] |
| 57 | 58 |
| 58 data_deps = [ | 59 data_deps = [ |
| 59 "//ash/strings:ash_test_strings", | 60 ":resources_strings", |
| 60 "//ash/resources:ash_test_resources_100_percent", | 61 ":resources_100", |
| 61 "//ash/resources:ash_test_resources_200_percent", | 62 ":resources_200", |
| 62 ] | 63 ] |
| 63 | 64 |
| 64 if (is_chromeos) { | 65 if (is_chromeos) { |
| 65 deps += [ "//chromeos" ] | 66 deps += [ "//chromeos" ] |
| 66 } | 67 } |
| 67 } | 68 } |
| 68 | 69 |
| 69 mojo_application_manifest("manifest") { | 70 mojo_application_manifest("manifest") { |
| 70 application_name = "ash_sysui" | 71 application_name = "ash_sysui" |
| 71 source = "manifest.json" | 72 source = "manifest.json" |
| 72 } | 73 } |
| 73 | 74 |
| 74 mojo_native_application("mus") { | 75 mojo_native_application("mus") { |
| 75 output_name = "ash_sysui" | 76 output_name = "ash_sysui" |
| 76 sources = [ | 77 sources = [ |
| 77 "main.cc", | 78 "main.cc", |
| 78 ] | 79 ] |
| 79 deps = [ | 80 deps = [ |
| 80 ":lib", | 81 ":lib", |
| 81 "//mojo/shell/public/cpp", | 82 "//mojo/shell/public/cpp", |
| 82 ] | 83 ] |
| 83 | 84 |
| 84 data_deps = [ | 85 data_deps = [ |
| 85 ":manifest", | 86 ":manifest", |
| 86 "//components/mus", | 87 "//components/mus", |
| 87 ] | 88 ] |
| 88 } | 89 } |
| 90 | |
| 91 resource_out_dir = "$root_out_dir/$mojo_application_subdir/ash_sysui/resources" | |
|
sky
2016/04/08 21:53:45
Instead of outputting to this location you should
kylechar
2016/04/11 13:16:33
Didn't realize that was a thing. Done. The only th
sky
2016/04/11 15:00:30
I think that's the common pattern, even for non-mu
| |
| 92 | |
| 93 #TODO(msw): Do not load 'test' resources (include sys lang?). | |
| 94 repack("resources_strings") { | |
| 95 sources = [ | |
| 96 "$root_out_dir/ash_test_strings.pak", | |
| 97 ] | |
| 98 output = "$resource_out_dir/ash_resources_strings.pak" | |
| 99 deps = [ | |
| 100 "//ash/strings:ash_test_strings", | |
| 101 ] | |
| 102 } | |
| 103 | |
| 104 repack("resources_100") { | |
| 105 sources = [ | |
| 106 "$root_out_dir/ash_test_resources_100_percent.pak", | |
| 107 ] | |
| 108 output = "$resource_out_dir/ash_resources_100_percent.pak" | |
| 109 deps = [ | |
| 110 "//ash/resources:ash_test_resources_100_percent", | |
| 111 ] | |
| 112 } | |
| 113 | |
| 114 repack("resources_200") { | |
| 115 sources = [ | |
| 116 "$root_out_dir/ash_test_resources_200_percent.pak", | |
| 117 ] | |
| 118 output = "$resource_out_dir/ash_resources_200_percent.pak" | |
| 119 deps = [ | |
| 120 "//ash/resources:ash_test_resources_200_percent", | |
| 121 ] | |
| 122 } | |
| OLD | NEW |