diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-21 23:10:37 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-21 23:10:37 +0000 |
commit | dac186fb35facaebb9dfabaa10ded62f04ba50f4 (patch) | |
tree | 764807dbbd56ddc9f5a824738f595027d9c70056 /mojo | |
parent | d767ddb778270c9a401b864b3f3433888ff72a89 (diff) | |
download | chromium_src-dac186fb35facaebb9dfabaa10ded62f04ba50f4.zip chromium_src-dac186fb35facaebb9dfabaa10ded62f04ba50f4.tar.gz chromium_src-dac186fb35facaebb9dfabaa10ded62f04ba50f4.tar.bz2 |
Convert bindings targets in mojo/mojo_services.gypi to GN.
BUG=369643
TEST=None
Review URL: https://codereview.chromium.org/408853005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284533 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo')
-rw-r--r-- | mojo/BUILD.gn | 1 | ||||
-rw-r--r-- | mojo/mojo_services.gypi | 16 | ||||
-rw-r--r-- | mojo/services/BUILD.gn | 20 | ||||
-rw-r--r-- | mojo/services/dbus_echo/BUILD.gn | 12 | ||||
-rw-r--r-- | mojo/services/gles2/BUILD.gn | 27 | ||||
-rw-r--r-- | mojo/services/public/interfaces/geometry/BUILD.gn | 12 | ||||
-rw-r--r-- | mojo/services/public/interfaces/input_events/BUILD.gn | 16 | ||||
-rw-r--r-- | mojo/services/public/interfaces/launcher/BUILD.gn | 16 | ||||
-rw-r--r-- | mojo/services/public/interfaces/native_viewport/BUILD.gn | 18 | ||||
-rw-r--r-- | mojo/services/public/interfaces/navigation/BUILD.gn | 16 | ||||
-rw-r--r-- | mojo/services/public/interfaces/network/BUILD.gn | 14 | ||||
-rw-r--r-- | mojo/services/public/interfaces/surfaces/BUILD.gn | 19 | ||||
-rw-r--r-- | mojo/services/public/interfaces/view_manager/BUILD.gn | 18 | ||||
-rw-r--r-- | mojo/services/public/interfaces/window_manager/BUILD.gn | 12 | ||||
-rw-r--r-- | mojo/services/test_service/BUILD.gn | 13 |
15 files changed, 229 insertions, 1 deletions
diff --git a/mojo/BUILD.gn b/mojo/BUILD.gn index 391bd75..4cb7120 100644 --- a/mojo/BUILD.gn +++ b/mojo/BUILD.gn @@ -5,5 +5,6 @@ group("mojo") { deps = [ "//mojo/public", + "//mojo/services", ] } diff --git a/mojo/mojo_services.gypi b/mojo/mojo_services.gypi index 44e522c..0e16e65 100644 --- a/mojo/mojo_services.gypi +++ b/mojo/mojo_services.gypi @@ -5,6 +5,7 @@ { 'targets': [ { + # GN version: //mojo/services/dbus_echo:bindings 'target_name': 'mojo_echo_bindings', 'type': 'static_library', 'sources': [ @@ -85,6 +86,7 @@ ], }, { + # GN version: //mojo/services/public/interfaces/input_events:bindings 'target_name': 'mojo_input_events_bindings', 'type': 'static_library', 'sources': [ @@ -100,6 +102,7 @@ ], }, { + # GN version: //mojo/services/public/interfaces/geometry:bindings 'target_name': 'mojo_geometry_bindings', 'type': 'static_library', 'sources': [ @@ -224,6 +227,9 @@ ], }, { + # GN version: //mojo/services/gles2:interfaces (for files generated from + # the mojom file) + # GN version: //mojo/services/gles2:bindings 'target_name': 'mojo_gles2_bindings', 'type': 'static_library', 'sources': [ @@ -262,6 +268,7 @@ ], }, { + # GN version: //mojo/services/public/interfaces/native_viewport:bindings 'target_name': 'mojo_native_viewport_bindings', 'type': 'static_library', 'sources': [ @@ -330,6 +337,7 @@ ], }, { + # GN version: //mojo/services/public/interfaces/navigation:bindings 'target_name': 'mojo_navigation_bindings', 'type': 'static_library', 'sources': [ @@ -345,6 +353,7 @@ ], }, { + # GN version: //mojo/services/public/interfaces/network:bindings 'target_name': 'mojo_network_bindings', 'type': 'static_library', 'sources': [ @@ -433,6 +442,7 @@ ], }, { + # GN version: //mojo/services/public/interfaces/launcher:bindings 'target_name': 'mojo_launcher_bindings', 'type': 'static_library', 'sources': [ @@ -466,6 +476,7 @@ ], }, { + # GN version: //mojo/services/public/interfaces/view_manager:bindings 'target_name': 'mojo_view_manager_bindings', 'type': 'static_library', 'sources': [ @@ -554,6 +565,7 @@ ], }, { + # GN version: //mojo/services/public/interfaces/surfaces:bindings 'target_name': 'mojo_surfaces_bindings', 'type': 'static_library', 'sources': [ @@ -572,12 +584,13 @@ ], }, { + # GN version: //mojo/services/test_service:bindings 'target_name': 'mojo_test_service_bindings', 'type': 'static_library', 'sources': [ # TODO(tim): Move to services/public/interfaces? - 'services/test_service/test_service.mojom', 'services/test_service/test_request_tracker.mojom', + 'services/test_service/test_service.mojom', ], 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], 'export_dependent_settings': [ @@ -634,6 +647,7 @@ ], }, { + # GN version: //mojo/services/public/interfaces/window_manager:core_bindings 'target_name': 'mojo_core_window_manager_bindings', 'type': 'static_library', 'sources': [ diff --git a/mojo/services/BUILD.gn b/mojo/services/BUILD.gn new file mode 100644 index 0000000..ec44710 --- /dev/null +++ b/mojo/services/BUILD.gn @@ -0,0 +1,20 @@ +# 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. + +group("services") { + deps = [ + "//mojo/services/dbus_echo:bindings", + "//mojo/services/gles2:bindings", + "//mojo/services/public/interfaces/input_events:bindings", + "//mojo/services/public/interfaces/geometry:bindings", + "//mojo/services/public/interfaces/native_viewport:bindings", + "//mojo/services/public/interfaces/navigation:bindings", + "//mojo/services/public/interfaces/network:bindings", + "//mojo/services/public/interfaces/launcher:bindings", + "//mojo/services/public/interfaces/view_manager:bindings", + "//mojo/services/public/interfaces/surfaces:bindings", + "//mojo/services/public/interfaces/window_manager:core_bindings", + "//mojo/services/test_service:bindings", + ] +} diff --git a/mojo/services/dbus_echo/BUILD.gn b/mojo/services/dbus_echo/BUILD.gn new file mode 100644 index 0000000..945c5b3 --- /dev/null +++ b/mojo/services/dbus_echo/BUILD.gn @@ -0,0 +1,12 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_echo_bindings +mojom("bindings") { + sources = [ + "echo.mojom", + ] +} diff --git a/mojo/services/gles2/BUILD.gn b/mojo/services/gles2/BUILD.gn new file mode 100644 index 0000000..0b61b7a --- /dev/null +++ b/mojo/services/gles2/BUILD.gn @@ -0,0 +1,27 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_gles2_bindings +mojom("interfaces") { + sources = [ + "command_buffer.mojom", + ] +} + +# GYP version: mojo/mojo_services.gypi:mojo_gles2_bindings +source_set("bindings") { + sources = [ + "command_buffer_type_conversions.cc", + "command_buffer_type_conversions.h", + "mojo_buffer_backing.cc", + "mojo_buffer_backing.h", + ] + + deps = [ + ":interfaces", + "//gpu/command_buffer/common", + ] +} diff --git a/mojo/services/public/interfaces/geometry/BUILD.gn b/mojo/services/public/interfaces/geometry/BUILD.gn new file mode 100644 index 0000000..fc3ae6e --- /dev/null +++ b/mojo/services/public/interfaces/geometry/BUILD.gn @@ -0,0 +1,12 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_geometry_bindings +mojom("bindings") { + sources = [ + "geometry.mojom", + ] +} diff --git a/mojo/services/public/interfaces/input_events/BUILD.gn b/mojo/services/public/interfaces/input_events/BUILD.gn new file mode 100644 index 0000000..a1e1158 --- /dev/null +++ b/mojo/services/public/interfaces/input_events/BUILD.gn @@ -0,0 +1,16 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_input_events_bindings +mojom("bindings") { + sources = [ + "input_events.mojom", + ] + + deps = [ + "//mojo/services/public/interfaces/geometry:bindings", + ] +} diff --git a/mojo/services/public/interfaces/launcher/BUILD.gn b/mojo/services/public/interfaces/launcher/BUILD.gn new file mode 100644 index 0000000..49dce48 --- /dev/null +++ b/mojo/services/public/interfaces/launcher/BUILD.gn @@ -0,0 +1,16 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_launcher_bindings +mojom("bindings") { + sources = [ + "launcher.mojom", + ] + + deps = [ + "//mojo/services/public/interfaces/navigation:bindings", + ] +} diff --git a/mojo/services/public/interfaces/native_viewport/BUILD.gn b/mojo/services/public/interfaces/native_viewport/BUILD.gn new file mode 100644 index 0000000..eeeb21b --- /dev/null +++ b/mojo/services/public/interfaces/native_viewport/BUILD.gn @@ -0,0 +1,18 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_native_viewport_bindings +mojom("bindings") { + sources = [ + "native_viewport.mojom", + ] + + deps = [ + "//mojo/services/gles2:bindings", + "//mojo/services/public/interfaces/geometry:bindings", + "//mojo/services/public/interfaces/input_events:bindings", + ] +} diff --git a/mojo/services/public/interfaces/navigation/BUILD.gn b/mojo/services/public/interfaces/navigation/BUILD.gn new file mode 100644 index 0000000..e4d186e --- /dev/null +++ b/mojo/services/public/interfaces/navigation/BUILD.gn @@ -0,0 +1,16 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_navigation_bindings +mojom("bindings") { + sources = [ + "navigation.mojom", + ] + + deps = [ + "//mojo/services/public/interfaces/network:bindings", + ] +} diff --git a/mojo/services/public/interfaces/network/BUILD.gn b/mojo/services/public/interfaces/network/BUILD.gn new file mode 100644 index 0000000..5b8dba1 --- /dev/null +++ b/mojo/services/public/interfaces/network/BUILD.gn @@ -0,0 +1,14 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_network_bindings +mojom("bindings") { + sources = [ + "network_error.mojom", + "network_service.mojom", + "url_loader.mojom", + ] +} diff --git a/mojo/services/public/interfaces/surfaces/BUILD.gn b/mojo/services/public/interfaces/surfaces/BUILD.gn new file mode 100644 index 0000000..77c9395 --- /dev/null +++ b/mojo/services/public/interfaces/surfaces/BUILD.gn @@ -0,0 +1,19 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_surfaces_bindings +mojom("bindings") { + sources = [ + "surfaces.mojom", + "surface_id.mojom", + "quads.mojom", + ] + + deps = [ + "//mojo/services/public/interfaces/geometry:bindings", + "//mojo/services/public/interfaces/native_viewport:bindings", + ] +} diff --git a/mojo/services/public/interfaces/view_manager/BUILD.gn b/mojo/services/public/interfaces/view_manager/BUILD.gn new file mode 100644 index 0000000..9e1d6f0 --- /dev/null +++ b/mojo/services/public/interfaces/view_manager/BUILD.gn @@ -0,0 +1,18 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_view_manager_bindings +mojom("bindings") { + sources = [ + "view_manager.mojom", + "view_manager_constants.mojom", + ] + + deps = [ + "//mojo/services/public/interfaces/geometry:bindings", + "//mojo/services/public/interfaces/input_events:bindings", + ] +} diff --git a/mojo/services/public/interfaces/window_manager/BUILD.gn b/mojo/services/public/interfaces/window_manager/BUILD.gn new file mode 100644 index 0000000..d915bd6 --- /dev/null +++ b/mojo/services/public/interfaces/window_manager/BUILD.gn @@ -0,0 +1,12 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_core_window_manager_bindings +mojom("core_bindings") { + sources = [ + "window_manager.mojom", + ] +} diff --git a/mojo/services/test_service/BUILD.gn b/mojo/services/test_service/BUILD.gn new file mode 100644 index 0000000..684826f --- /dev/null +++ b/mojo/services/test_service/BUILD.gn @@ -0,0 +1,13 @@ +# 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +# GYP version: mojo/mojo_services.gypi:mojo_test_service_bindings +mojom("bindings") { + sources = [ + "test_request_tracker.mojom", + "test_service.mojom", + ] +} |