Chromium Code Reviews| Index: mojo/converters/BUILD.gn |
| diff --git a/mojo/converters/BUILD.gn b/mojo/converters/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..584d7a4c30c157a833d8b4ddfe9ef8d2a100d866 |
| --- /dev/null |
| +++ b/mojo/converters/BUILD.gn |
| @@ -0,0 +1,69 @@ |
| +# Copyright 2014 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +# GYP version: mojo/mojo_converters.gypi:mojo_converters |
| +component("converters") { |
|
msw
2014/10/09 19:23:09
Should we have consistent naming between GYP's "mo
jamesr
2014/10/09 19:30:54
The unit test executable names all have mojo_ pref
msw
2014/10/10 00:28:58
Thanks for the naming explanations, that makes sen
|
| + public_deps = [ |
| + "//ui/gfx", |
| + ] |
| + deps = [ |
| + "//base", |
| + "//cc", |
| + "//cc/surfaces", |
| + "//gpu", |
| + "//skia", |
| + "//ui/events", |
| + "//ui/gfx/geometry", |
| + "//mojo/environment:chromium", |
| + "//mojo/public/c/system:for_component", |
| + "//mojo/services/public/interfaces/geometry", |
| + "//mojo/services/public/interfaces/input_events", |
| + "//mojo/services/public/interfaces/surfaces:surface_id", |
| + "//mojo/services/public/interfaces/surfaces", |
| + ] |
| + |
| + defines = [ |
| + "MOJO_CONVERTERS_IMPLEMENTATION", |
|
jamesr
2014/10/09 19:30:54
why put all converters in one component? seems lik
msw
2014/10/10 00:28:58
Done, I misunderstood this as your intention, but
|
| + ] |
| + |
| + sources = [ |
| + "geometry_type_converters.cc", |
| + "geometry_type_converters.h", |
| + "input_event_names.h", |
| + "input_events_type_converters.cc", |
| + "input_events_type_converters.h", |
| + "mojo_converters_export.h", |
| + "mojo_extended_key_event_data.cc", |
| + "mojo_extended_key_event_data.h", |
| + "surfaces_type_converters.cc", |
| + "surfaces_type_converters.h", |
| + "surfaces_utils.cc", |
| + "surfaces_utils.h", |
| + ] |
| +} |
| + |
| +# GYP version: mojo/mojo_converters.gypi:mojo_converters_unittests |
| +test("converters_unittests") { |
|
msw
2014/10/09 19:23:09
Should I split the test target into it's own sub-d
|
| + deps = [ |
| + "//base", |
| + "//base/test:test_support", |
| + "//cc", |
| + "//cc/surfaces", |
| + "//gpu", |
| + "//mojo/converters", |
| + "//mojo/edk/test:run_all_unittests", |
| + "//mojo/environment:chromium", |
| + "//mojo/services/public/interfaces/geometry", |
| + "//mojo/services/public/interfaces/surfaces", |
| + "//skia", |
| + "//testing/gtest", |
| + "//ui/gfx", |
| + "//ui/gfx/geometry", |
| + "//ui/gfx:test_support", |
| + ] |
| + |
| + sources = [ |
| + "surface_unittest.cc" |
| + ] |
| +} |