Commit 7c94aa5c authored by rockot's avatar rockot Committed by Commit bot

Add GYP targets for mojo shell and some basic mojo services

BUG=None
R=jam@chromium.org

Review URL: https://codereview.chromium.org/1127203004

Cr-Commit-Position: refs/heads/master@{#330387}
parent cc43e06f
......@@ -53,6 +53,7 @@
'sources': [
'common/common_type_converters.cc',
'common/common_type_converters.h',
'common/data_pipe_file_utils.cc',
'common/data_pipe_utils.cc',
'common/data_pipe_utils.h',
'common/handle_watcher.cc',
......
# Copyright 2015 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.
{
'targets': [{
# GN version: //mojo/services/network/public/interfaces
'target_name': 'network_service_bindings_mojom',
'type': 'static_library',
'variables': {
'mojom_files': [
'services/network/public/interfaces/cookie_store.mojom',
'services/network/public/interfaces/http_connection.mojom',
'services/network/public/interfaces/http_server.mojom',
'services/network/public/interfaces/net_address.mojom',
'services/network/public/interfaces/network_error.mojom',
'services/network/public/interfaces/network_service.mojom',
'services/network/public/interfaces/tcp_bound_socket.mojom',
'services/network/public/interfaces/tcp_connected_socket.mojom',
'services/network/public/interfaces/tcp_server_socket.mojom',
'services/network/public/interfaces/udp_socket.mojom',
'services/network/public/interfaces/url_loader.mojom',
'services/network/public/interfaces/web_socket.mojom',
],
'mojom_include_path': '<(DEPTH)/mojo/services',
},
'includes': [
'../third_party/mojo/mojom_bindings_generator_explicit.gypi',
],
}, {
# GN version: //third_party/mojo_services/src/content_handler/public/interfaces
'target_name': 'content_handler_bindings_mojom',
'type': 'static_library',
'variables': {
'mojom_files': [
'../third_party/mojo_services/src/content_handler/public/interfaces/content_handler.mojom',
],
'mojom_include_path': '<(DEPTH)/mojo/services',
},
'includes': [
'../third_party/mojo/mojom_bindings_generator_explicit.gypi',
],
'dependencies': [
'<(DEPTH)/mojo/mojo_services.gyp:network_service_bindings_mojom',
'<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_application_bindings_mojom',
],
}],
}
# Copyright 2015 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.
{
'targets': [{
'target_name': 'mojo_shell_lib',
'type': 'static_library',
'sources': [
'shell/application_loader.h',
'shell/application_manager.cc',
'shell/application_manager.h',
'shell/data_pipe_peek.cc',
'shell/data_pipe_peek.h',
'shell/fetcher.cc',
'shell/fetcher.h',
'shell/identity.cc',
'shell/identity.h',
'shell/local_fetcher.cc',
'shell/local_fetcher.h',
'shell/native_runner.h',
'shell/network_fetcher.cc',
'shell/network_fetcher.h',
'shell/query_util.cc',
'shell/query_util.h',
'shell/shell_impl.cc',
'shell/shell_impl.h',
'shell/switches.cc',
'shell/switches.h',
'util/filename_util.cc',
'util/filename_util.h',
],
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'<(DEPTH)/crypto/crypto.gyp:crypto',
'<(DEPTH)/mojo/mojo_base.gyp:mojo_common_lib',
'<(DEPTH)/mojo/mojo_base.gyp:mojo_environment_chromium',
'<(DEPTH)/mojo/mojo_base.gyp:mojo_url_type_converters',
'<(DEPTH)/mojo/mojo_services.gyp:content_handler_bindings_mojom',
'<(DEPTH)/mojo/mojo_services.gyp:network_service_bindings_mojom',
'<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_application_bindings_mojom',
'<(DEPTH)/third_party/mojo/mojo_edk.gyp:mojo_system_impl',
'<(DEPTH)/url/url.gyp:url_lib',
],
}, {
'target_name': 'mojo_shell_unittests',
'type': 'executable',
'sources': [
'shell/application_manager_unittest.cc',
'shell/query_util_unittest.cc',
],
'dependencies': [
'<(DEPTH)/mojo/mojo_shell.gyp:mojo_shell_lib',
'<(DEPTH)/mojo/mojo_shell.gyp:mojo_shell_test_bindings',
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/mojo/mojo_base.gyp:mojo_application_chromium',
'<(DEPTH)/mojo/mojo_base.gyp:mojo_common_lib',
'<(DEPTH)/mojo/mojo_base.gyp:mojo_environment_chromium',
'<(DEPTH)/mojo/mojo_base.gyp:mojo_url_type_converters',
'<(DEPTH)/third_party/mojo/mojo_edk.gyp:mojo_run_all_unittests',
'<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_application_base',
'<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/url/url.gyp:url_lib',
]
}, {
'target_name': 'mojo_shell_test_bindings',
'type': 'static_library',
'variables': {
'mojom_files': [
'shell/test.mojom',
],
},
'includes': [
'../third_party/mojo/mojom_bindings_generator_explicit.gypi',
],
}],
}
......@@ -12,6 +12,7 @@
'mojom_generated_outputs': [
'<!@(python <(DEPTH)/third_party/mojo/src/mojo/public/tools/bindings/mojom_list_outputs.py --basedir <(mojom_base_output_dir) <@(mojom_files))',
],
'mojom_include_path%': '<(DEPTH)',
'require_interface_bindings%': 1,
},
# Given mojom files as inputs, generate sources. These sources will be
......@@ -42,7 +43,8 @@
'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_name).stamp',
'mojom_import_args%': [
'-I<(DEPTH)',
'-I<(DEPTH)/third_party/mojo/src'
'-I<(DEPTH)/third_party/mojo/src',
'-I<(mojom_include_path)',
],
},
'inputs': [
......@@ -77,6 +79,7 @@
# preventing the code generator from being directly depended on by the "all"
# target.
'suppress_wildcard': '1',
'hard_dependency': '1',
'direct_dependent_settings': {
# A target directly depending on this action will compile the generated
# sources.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment