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 source_set("common") { | 5 import("//testing/test.gni") |
| 6 |
| 7 component("mus_common") { |
6 sources = [ | 8 sources = [ |
7 "args.cc", | 9 "args.cc", |
8 "args.h", | 10 "args.h", |
| 11 "event_param_traits.cc", |
| 12 "event_param_traits.h", |
| 13 "event_param_traits_macros.h", |
| 14 "mus_common_export.h", |
9 "transient_window_utils.h", | 15 "transient_window_utils.h", |
10 "types.h", | 16 "types.h", |
11 "util.h", | 17 "util.h", |
12 "window_tracker.h", | 18 "window_tracker.h", |
13 ] | 19 ] |
| 20 |
| 21 defines = [ "MUS_IPC_IMPLEMENTATION" ] |
| 22 |
14 deps = [ | 23 deps = [ |
15 "//components/mus/public/interfaces", | 24 "//components/mus/public/interfaces", |
| 25 "//ipc:ipc", |
| 26 "//mojo/public/c/system:for_component", |
| 27 "//ui/events:events", |
| 28 "//ui/gfx/ipc", |
16 ] | 29 ] |
17 } | 30 } |
| 31 |
| 32 test("mus_common_unittests") { |
| 33 sources = [ |
| 34 "event_param_traits_unittest.cc", |
| 35 ] |
| 36 public_deps = [ |
| 37 ":mus_common", |
| 38 ] |
| 39 deps = [ |
| 40 "//base", |
| 41 "//base/test:run_all_unittests", |
| 42 "//base/test:test_config", |
| 43 "//ipc:ipc", |
| 44 "//mojo/edk/test:test_support", |
| 45 "//testing/gtest", |
| 46 "//ui/events:events", |
| 47 "//ui/gfx:test_support", |
| 48 "//ui/gfx/ipc", |
| 49 ] |
| 50 } |
OLD | NEW |