summaryrefslogtreecommitdiffstats
path: root/mojo/mojo_shell.gyp
blob: 26144ab76ef92ca208e9c57b57988fec186fcaf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# 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': [
      'services/catalog/catalog.cc',
      'services/catalog/catalog.h',
      'services/catalog/entry.cc',
      'services/catalog/entry.h',
      'services/catalog/factory.cc',
      'services/catalog/factory.h',
      'services/catalog/store.cc',
      'services/catalog/store.h',
      'shell/loader.h',
      'shell/connect_params.cc',
      'shell/connect_params.h',
      'shell/connect_util.cc',
      'shell/connect_util.h',
      'shell/native_runner.h',
      'shell/native_runner_delegate.h',
      'shell/shell.cc',
      'shell/shell.h',
      'shell/switches.cc',
      'shell/switches.cc',
      '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)/mojo/mojo_base.gyp:mojo_application_base',
      '<(DEPTH)/mojo/mojo_base.gyp:mojo_application_bindings',
      '<(DEPTH)/mojo/mojo_base.gyp:mojo_common_lib',
      '<(DEPTH)/mojo/mojo_base.gyp:mojo_url_type_converters',
      '<(DEPTH)/net/net.gyp:net',
      '<(DEPTH)/url/url.gyp:url_lib',
    ],
    'export_dependent_settings': [
      '<(DEPTH)/mojo/mojo_base.gyp:mojo_application_bindings',
    ],
  }, {
    'target_name': 'mojo_shell_unittests',
    'type': 'executable',
    'sources': [
      'shell/tests/loader_unittest.cc',
    ],
    'dependencies': [
      'mojo_shell_lib',
      'mojo_shell_test_bindings',
      '<(DEPTH)/base/base.gyp:base',
      '<(DEPTH)/mojo/mojo_base.gyp:mojo_application_base',
      '<(DEPTH)/mojo/mojo_base.gyp:mojo_common_lib',
      '<(DEPTH)/mojo/mojo_base.gyp:mojo_url_type_converters',
      '<(DEPTH)/mojo/mojo_edk.gyp:mojo_run_all_unittests',
      '<(DEPTH)/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/tests/test.mojom',
      ],
    },
    'includes': [
      'mojom_bindings_generator_explicit.gypi',
    ],
  }, {
    'target_name': 'mojo_runner_common_lib',
    'type': 'static_library',
    'sources': [
      'shell/runner/common/client_util.cc',
      'shell/runner/common/client_util.h',
      'shell/runner/common/switches.cc',
      'shell/runner/common/switches.h',
    ],
    'include_dirs': [
      '..',
    ],
    'dependencies': [
      '<(DEPTH)/base/base.gyp:base',
      '<(DEPTH)/mojo/mojo_base.gyp:mojo_application_bindings',
      '<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_impl',
      '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings',
      '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_system',
    ],
    'export_dependent_settings': [
      '<(DEPTH)/mojo/mojo_base.gyp:mojo_application_bindings',
    ],
  }, {
    'target_name': 'mojo_runner_host_lib',
    'type': 'static_library',
    'sources': [
      'shell/runner/host/child_process.cc',
      'shell/runner/host/child_process.h',
      'shell/runner/host/child_process_base.cc',
      'shell/runner/host/child_process_base.h',
      'shell/runner/host/child_process_host.cc',
      'shell/runner/host/child_process_host.h',
      'shell/runner/host/in_process_native_runner.cc',
      'shell/runner/host/in_process_native_runner.h',
      'shell/runner/host/out_of_process_native_runner.cc',
      'shell/runner/host/out_of_process_native_runner.h',
      'shell/runner/host/native_application_support.cc',
      'shell/runner/host/native_application_support.h',
      'shell/runner/init.cc',
      'shell/runner/init.h',
    ],
    'dependencies': [
      'mojo_runner_common_lib',
      'mojo_shell_lib',
      '<(DEPTH)/base/base.gyp:base',
      '<(DEPTH)/base/base.gyp:base_i18n',
      '<(DEPTH)/base/base.gyp:base_static',
      '<(DEPTH)/mojo/mojo_base.gyp:mojo_application_bindings',
      '<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_impl',
      '<(DEPTH)/mojo/mojo_platform_handle.gyp:platform_handle',
      '<(DEPTH)/mojo/mojo_public.gyp:mojo_message_pump_lib',
    ],
    'export_dependent_settings': [
      '<(DEPTH)/mojo/mojo_base.gyp:mojo_application_bindings',
    ],
    'conditions': [
      ['OS=="linux"', {
        'sources': [
          'shell/runner/host/linux_sandbox.cc',
          'shell/runner/host/linux_sandbox.h',
        ],
        'dependencies': [
          '<(DEPTH)/sandbox/sandbox.gyp:sandbox',
          '<(DEPTH)/sandbox/sandbox.gyp:sandbox_services',
          '<(DEPTH)/sandbox/sandbox.gyp:seccomp_bpf',
          '<(DEPTH)/sandbox/sandbox.gyp:seccomp_bpf_helpers',
        ],
      }],
      ['OS=="mac"', {
        'sources': [
          'shell/runner/host/mach_broker.cc',
          'shell/runner/host/mach_broker.h',
        ],
      }],
    ],
  }],
}