| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 import("//services/service_manager/public/cpp/service.gni") | 7 import("//services/service_manager/public/cpp/service.gni") |
| 8 import("//services/service_manager/public/service_manifest.gni") | 8 import("//services/service_manager/public/service_manifest.gni") |
| 9 import("//services/service_manager/public/constants.gni") | |
| 10 import("//tools/grit/repack.gni") | 9 import("//tools/grit/repack.gni") |
| 11 | 10 |
| 12 group("all") { | 11 group("all") { |
| 13 testonly = true | 12 testonly = true |
| 14 deps = [ | 13 deps = [ |
| 15 ":ui", | 14 ":ui", |
| 16 "//services/ui/ime/test_ime_driver", | 15 "//services/ui/ime/test_ime_driver", |
| 17 "//services/ui/test_wm", | 16 "//services/ui/test_wm", |
| 18 ] | 17 ] |
| 19 } | 18 } |
| 20 | 19 |
| 21 service("ui") { | 20 service("ui") { |
| 22 sources = [ | 21 sources = [ |
| 23 "main.cc", | 22 "main.cc", |
| 24 ] | 23 ] |
| 25 | 24 |
| 26 deps = [ | 25 deps = [ |
| 27 ":copy_gl_libraries", | |
| 28 ":lib", | 26 ":lib", |
| 29 ":resources_100", | 27 ":resources_100", |
| 30 ":resources_200", | 28 ":resources_200", |
| 31 ":resources_strings", | 29 ":resources_strings", |
| 32 "//services/service_manager/public/cpp:sources", | 30 "//services/service_manager/public/cpp:sources", |
| 33 "//services/tracing/public/interfaces", | 31 "//services/tracing/public/interfaces", |
| 34 ] | 32 ] |
| 35 | 33 |
| 36 data_deps = [ | 34 data_deps = [ |
| 37 ":copy_gl_libraries", | |
| 38 ":manifest", | 35 ":manifest", |
| 39 "//services/ui/ime/test_ime_driver", | 36 "//services/ui/ime/test_ime_driver", |
| 40 ] | 37 ] |
| 41 | |
| 42 resources = [ | |
| 43 "$root_out_dir/mus_app_resources_strings.pak", | |
| 44 "$root_out_dir/mus_app_resources_100.pak", | |
| 45 "$root_out_dir/mus_app_resources_200.pak", | |
| 46 ] | |
| 47 } | 38 } |
| 48 | 39 |
| 49 service_manifest("manifest") { | 40 service_manifest("manifest") { |
| 50 name = "ui" | 41 name = "ui" |
| 51 source = "manifest.json" | 42 source = "manifest.json" |
| 52 } | 43 } |
| 53 | 44 |
| 54 copy("copy_gl_libraries") { | |
| 55 deps = [ | |
| 56 "//third_party/mesa:osmesa", | |
| 57 ] | |
| 58 | |
| 59 if (is_win) { | |
| 60 deps += [ | |
| 61 "//third_party/angle:libEGL", | |
| 62 "//third_party/angle:libGLESv2", | |
| 63 ] | |
| 64 | |
| 65 sources = [ | |
| 66 "$root_shlib_dir/libEGL.dll", | |
| 67 "$root_shlib_dir/libGLESv2.dll", | |
| 68 "$root_shlib_dir/osmesa.dll", | |
| 69 ] | |
| 70 } else if (is_android || is_linux) { | |
| 71 sources = [ | |
| 72 "$root_shlib_dir/libosmesa.so", | |
| 73 ] | |
| 74 } else { | |
| 75 sources = [] | |
| 76 } | |
| 77 | |
| 78 outputs = [ | |
| 79 "$root_out_dir/$packages_directory/ui/{{source_file_part}}", | |
| 80 ] | |
| 81 } | |
| 82 | |
| 83 source_set("lib") { | 45 source_set("lib") { |
| 84 sources = [ | 46 sources = [ |
| 85 "service.cc", | 47 "service.cc", |
| 86 "service.h", | 48 "service.h", |
| 87 ] | 49 ] |
| 88 | 50 |
| 89 public_deps = [ | 51 public_deps = [ |
| 90 "//services/ui/common:mus_common", | 52 "//services/ui/common:mus_common", |
| 91 ] | 53 ] |
| 92 deps = [ | 54 deps = [ |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 110 |
| 149 repack("resources_200") { | 111 repack("resources_200") { |
| 150 sources = [ | 112 sources = [ |
| 151 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak", | 113 "$root_gen_dir/ui/resources/ui_resources_200_percent.pak", |
| 152 ] | 114 ] |
| 153 output = "$root_out_dir/mus_app_resources_200.pak" | 115 output = "$root_out_dir/mus_app_resources_200.pak" |
| 154 deps = [ | 116 deps = [ |
| 155 "//ui/resources", | 117 "//ui/resources", |
| 156 ] | 118 ] |
| 157 } | 119 } |
| OLD | NEW |