Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 group("common") { | |
| 8 deps = [ | |
| 9 ":common_base", | |
| 10 ":url_type_converters", | |
| 11 ] | |
| 12 } | |
| 13 | |
| 7 # GYP version: mojo/mojo_base.gyp:mojo_common_lib | 14 # GYP version: mojo/mojo_base.gyp:mojo_common_lib |
| 8 component("common") { | 15 component("common_base") { |
| 9 output_name = "mojo_common_lib" | 16 output_name = "mojo_common_lib" |
| 10 | 17 |
| 11 sources = [ | 18 sources = [ |
| 12 "common_type_converters.cc", | 19 "common_type_converters.cc", |
| 13 "common_type_converters.h", | 20 "common_type_converters.h", |
| 14 "data_pipe_utils.cc", | 21 "data_pipe_utils.cc", |
| 15 "data_pipe_utils.h", | 22 "data_pipe_utils.h", |
| 16 "handle_watcher.cc", | 23 "handle_watcher.cc", |
| 17 "handle_watcher.h", | 24 "handle_watcher.h", |
| 18 "message_pump_mojo.cc", | 25 "message_pump_mojo.cc", |
| 19 "message_pump_mojo.h", | 26 "message_pump_mojo.h", |
| 20 "message_pump_mojo_handler.h", | 27 "message_pump_mojo_handler.h", |
| 21 "time_helper.cc", | 28 "time_helper.cc", |
| 22 "time_helper.h", | 29 "time_helper.h", |
| 23 ] | 30 ] |
| 24 | 31 |
| 25 defines = [ "MOJO_COMMON_IMPLEMENTATION" ] | 32 defines = [ "MOJO_COMMON_IMPLEMENTATION" ] |
| 26 | 33 |
| 27 deps = [ | 34 deps = [ |
| 28 "//base", | 35 "//base", |
| 29 "//base/third_party/dynamic_annotations", | 36 "//base/third_party/dynamic_annotations", |
| 30 "//third_party/mojo/src/mojo/public/c/system:for_component", | 37 "//third_party/mojo/src/mojo/public/c/system:for_component", |
| 38 ] | |
| 39 } | |
| 40 | |
| 41 # GYP version: mojo/mojo_base.gyp:mojo_url_type_converters | |
| 42 source_set("url_type_converters") { | |
| 43 sources = [ | |
| 44 "url_type_converters.cc", | |
| 45 "url_type_converters.h", | |
| 46 ] | |
| 47 | |
| 48 include_dirs = [ "../../third_party/mojo/src/" ] | |
|
jamesr
2015/03/05 18:33:22
write this as
//third_party/mojo/src/
all deps i
| |
| 49 | |
| 50 deps = [ | |
| 51 ":common_base", | |
| 52 "//base", | |
| 53 "//base/third_party/dynamic_annotations", | |
| 31 "//url", | 54 "//url", |
| 32 ] | 55 ] |
| 33 } | 56 } |
| 34 | 57 |
| 35 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests | 58 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests |
| 36 test("mojo_common_unittests") { | 59 test("mojo_common_unittests") { |
| 37 deps = [ | 60 deps = [ |
| 38 ":common", | 61 ":common", |
| 39 "//base", | 62 "//base", |
| 40 "//base:message_loop_tests", | 63 "//base:message_loop_tests", |
| 41 "//mojo/environment:chromium", | 64 "//mojo/environment:chromium", |
| 42 "//testing/gtest", | 65 "//testing/gtest", |
| 43 "//third_party/mojo/src/mojo/edk/test:run_all_unittests", | 66 "//third_party/mojo/src/mojo/edk/test:run_all_unittests", |
| 44 "//third_party/mojo/src/mojo/edk/test:test_support", | 67 "//third_party/mojo/src/mojo/edk/test:test_support", |
| 45 "//third_party/mojo/src/mojo/public/cpp/bindings", | 68 "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 46 "//third_party/mojo/src/mojo/public/cpp/test_support:test_utils", | 69 "//third_party/mojo/src/mojo/public/cpp/test_support:test_utils", |
| 47 "//url", | 70 "//url", |
| 48 ] | 71 ] |
| 49 | 72 |
| 50 sources = [ | 73 sources = [ |
| 51 "common_type_converters_unittest.cc", | 74 "common_type_converters_unittest.cc", |
| 52 "handle_watcher_unittest.cc", | 75 "handle_watcher_unittest.cc", |
| 53 "message_pump_mojo_unittest.cc", | 76 "message_pump_mojo_unittest.cc", |
| 54 ] | 77 ] |
| 55 } | 78 } |
| OLD | NEW |