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