OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'includes': [ |
| 7 'mojo_variables.gypi', |
| 8 ], |
| 9 'targets': [ |
| 10 { |
| 11 'target_name': 'mojo_public', |
| 12 'type': 'none', |
| 13 'dependencies': [ |
| 14 'mojo_js_bindings', |
| 15 'mojo_public_test_interfaces', |
| 16 'mojo_public_test_utils', |
| 17 'mojo_system', |
| 18 'mojo_utility', |
| 19 ], |
| 20 }, |
| 21 { |
| 22 'target_name': 'mojo_public_none', |
| 23 'type': 'none', |
| 24 }, |
| 25 { |
| 26 # GN version: //mojo/public/c/system |
| 27 'target_name': 'mojo_system', |
| 28 'type': 'static_library', |
| 29 'defines': [ |
| 30 'MOJO_SYSTEM_IMPLEMENTATION', |
| 31 ], |
| 32 'include_dirs': [ |
| 33 '..', |
| 34 ], |
| 35 'direct_dependent_settings': { |
| 36 'include_dirs': [ |
| 37 '..', |
| 38 ], |
| 39 }, |
| 40 'all_dependent_settings': { |
| 41 'conditions': [ |
| 42 # We need to be able to call the MojoSetSystemThunks() function in |
| 43 # system_thunks.cc |
| 44 ['OS=="android"', { |
| 45 'ldflags!': [ |
| 46 '-Wl,--exclude-libs=ALL', |
| 47 ], |
| 48 }], |
| 49 ], |
| 50 }, |
| 51 'sources': [ |
| 52 'public/c/system/buffer.h', |
| 53 'public/c/system/core.h', |
| 54 'public/c/system/data_pipe.h', |
| 55 'public/c/system/functions.h', |
| 56 'public/c/system/macros.h', |
| 57 'public/c/system/message_pipe.h', |
| 58 'public/c/system/system_export.h', |
| 59 'public/c/system/types.h', |
| 60 'public/platform/native/system_thunks.cc', |
| 61 'public/platform/native/system_thunks.h', |
| 62 ], |
| 63 }, |
| 64 { |
| 65 # GN version: //mojo/public/cpp/bindings |
| 66 'target_name': 'mojo_cpp_bindings', |
| 67 'type': 'static_library', |
| 68 'include_dirs': [ |
| 69 '..' |
| 70 ], |
| 71 'sources': [ |
| 72 'public/cpp/bindings/array.h', |
| 73 'public/cpp/bindings/binding.h', |
| 74 'public/cpp/bindings/callback.h', |
| 75 'public/cpp/bindings/error_handler.h', |
| 76 'public/cpp/bindings/interface_impl.h', |
| 77 'public/cpp/bindings/interface_ptr.h', |
| 78 'public/cpp/bindings/interface_request.h', |
| 79 'public/cpp/bindings/message.h', |
| 80 'public/cpp/bindings/message_filter.h', |
| 81 'public/cpp/bindings/no_interface.h', |
| 82 'public/cpp/bindings/string.h', |
| 83 'public/cpp/bindings/strong_binding.h', |
| 84 'public/cpp/bindings/type_converter.h', |
| 85 'public/cpp/bindings/lib/array_internal.h', |
| 86 'public/cpp/bindings/lib/array_internal.cc', |
| 87 'public/cpp/bindings/lib/array_serialization.h', |
| 88 'public/cpp/bindings/lib/bindings_internal.h', |
| 89 'public/cpp/bindings/lib/bindings_serialization.cc', |
| 90 'public/cpp/bindings/lib/bindings_serialization.h', |
| 91 'public/cpp/bindings/lib/bounds_checker.cc', |
| 92 'public/cpp/bindings/lib/bounds_checker.h', |
| 93 'public/cpp/bindings/lib/buffer.h', |
| 94 'public/cpp/bindings/lib/callback_internal.h', |
| 95 'public/cpp/bindings/lib/connector.cc', |
| 96 'public/cpp/bindings/lib/connector.h', |
| 97 'public/cpp/bindings/lib/filter_chain.cc', |
| 98 'public/cpp/bindings/lib/filter_chain.h', |
| 99 'public/cpp/bindings/lib/fixed_buffer.cc', |
| 100 'public/cpp/bindings/lib/fixed_buffer.h', |
| 101 'public/cpp/bindings/lib/interface_ptr_internal.h', |
| 102 'public/cpp/bindings/lib/map_data_internal.h', |
| 103 'public/cpp/bindings/lib/map_internal.h', |
| 104 'public/cpp/bindings/lib/map_serialization.h', |
| 105 'public/cpp/bindings/lib/message.cc', |
| 106 'public/cpp/bindings/lib/message_builder.cc', |
| 107 'public/cpp/bindings/lib/message_builder.h', |
| 108 'public/cpp/bindings/lib/message_filter.cc', |
| 109 'public/cpp/bindings/lib/message_header_validator.cc', |
| 110 'public/cpp/bindings/lib/message_header_validator.h', |
| 111 'public/cpp/bindings/lib/message_internal.h', |
| 112 'public/cpp/bindings/lib/message_queue.cc', |
| 113 'public/cpp/bindings/lib/message_queue.h', |
| 114 'public/cpp/bindings/lib/no_interface.cc', |
| 115 'public/cpp/bindings/lib/router.cc', |
| 116 'public/cpp/bindings/lib/router.h', |
| 117 'public/cpp/bindings/lib/shared_data.h', |
| 118 'public/cpp/bindings/lib/shared_ptr.h', |
| 119 'public/cpp/bindings/lib/string_serialization.h', |
| 120 'public/cpp/bindings/lib/string_serialization.cc', |
| 121 'public/cpp/bindings/lib/validate_params.h', |
| 122 'public/cpp/bindings/lib/validation_errors.cc', |
| 123 'public/cpp/bindings/lib/validation_errors.h', |
| 124 ], |
| 125 }, |
| 126 { |
| 127 # GN version: //mojo/public/js |
| 128 'target_name': 'mojo_js_bindings', |
| 129 'type': 'static_library', |
| 130 'include_dirs': [ |
| 131 '..' |
| 132 ], |
| 133 'sources': [ |
| 134 'public/js/constants.cc', |
| 135 'public/js/constants.h', |
| 136 ], |
| 137 }, |
| 138 { |
| 139 # GN version: //mojo/public/cpp/environment:standalone |
| 140 'target_name': 'mojo_environment_standalone', |
| 141 'type': 'static_library', |
| 142 'sources': [ |
| 143 'public/c/environment/async_waiter.h', |
| 144 'public/c/environment/logger.h', |
| 145 'public/cpp/environment/async_waiter.h', |
| 146 'public/cpp/environment/environment.h', |
| 147 'public/cpp/environment/lib/async_waiter.cc', |
| 148 'public/cpp/environment/lib/default_async_waiter.cc', |
| 149 'public/cpp/environment/lib/default_async_waiter.h', |
| 150 'public/cpp/environment/lib/default_logger.cc', |
| 151 'public/cpp/environment/lib/default_logger.h', |
| 152 'public/cpp/environment/lib/environment.cc', |
| 153 'public/cpp/environment/lib/logging.cc', |
| 154 'public/cpp/environment/logging.h', |
| 155 ], |
| 156 'include_dirs': [ |
| 157 '..', |
| 158 ], |
| 159 }, |
| 160 { |
| 161 # GN version: //mojo/public/cpp/utility |
| 162 'target_name': 'mojo_utility', |
| 163 'type': 'static_library', |
| 164 'sources': [ |
| 165 'public/cpp/utility/mutex.h', |
| 166 'public/cpp/utility/run_loop.h', |
| 167 'public/cpp/utility/run_loop_handler.h', |
| 168 'public/cpp/utility/thread.h', |
| 169 'public/cpp/utility/lib/mutex.cc', |
| 170 'public/cpp/utility/lib/run_loop.cc', |
| 171 'public/cpp/utility/lib/thread.cc', |
| 172 'public/cpp/utility/lib/thread_local.h', |
| 173 'public/cpp/utility/lib/thread_local_posix.cc', |
| 174 'public/cpp/utility/lib/thread_local_win.cc', |
| 175 ], |
| 176 'conditions': [ |
| 177 # See crbug.com/342893: |
| 178 ['OS=="win"', { |
| 179 'sources!': [ |
| 180 'public/cpp/utility/mutex.h', |
| 181 'public/cpp/utility/thread.h', |
| 182 'public/cpp/utility/lib/mutex.cc', |
| 183 'public/cpp/utility/lib/thread.cc', |
| 184 ], |
| 185 }], |
| 186 ], |
| 187 'include_dirs': [ |
| 188 '..', |
| 189 ], |
| 190 }, |
| 191 { |
| 192 'target_name': 'mojo_application_bindings_mojom', |
| 193 'type': 'none', |
| 194 'variables': { |
| 195 'mojom_files': [ |
| 196 'public/interfaces/application/application.mojom', |
| 197 'public/interfaces/application/service_provider.mojom', |
| 198 'public/interfaces/application/shell.mojom', |
| 199 ], |
| 200 }, |
| 201 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], |
| 202 }, |
| 203 { |
| 204 # GN version: //mojo/public/interfaces/application:application |
| 205 'target_name': 'mojo_application_bindings', |
| 206 'type': 'static_library', |
| 207 'dependencies': [ |
| 208 'mojo_application_bindings_mojom', |
| 209 'mojo_cpp_bindings', |
| 210 ], |
| 211 'export_dependent_settings': [ |
| 212 'mojo_cpp_bindings', |
| 213 ], |
| 214 }, |
| 215 { |
| 216 # GN version: //mojo/public/cpp/application |
| 217 'target_name': 'mojo_application_base', |
| 218 'type': 'static_library', |
| 219 'sources': [ |
| 220 'public/cpp/application/application_connection.h', |
| 221 'public/cpp/application/application_delegate.h', |
| 222 'public/cpp/application/application_impl.h', |
| 223 'public/cpp/application/connect.h', |
| 224 'public/cpp/application/interface_factory.h', |
| 225 'public/cpp/application/interface_factory_impl.h', |
| 226 'public/cpp/application/lib/application_connection.cc', |
| 227 'public/cpp/application/lib/application_delegate.cc', |
| 228 'public/cpp/application/lib/application_impl.cc', |
| 229 'public/cpp/application/lib/service_provider_impl.cc', |
| 230 'public/cpp/application/lib/service_connector.cc', |
| 231 'public/cpp/application/lib/service_connector.h', |
| 232 'public/cpp/application/lib/service_registry.cc', |
| 233 'public/cpp/application/lib/service_registry.h', |
| 234 'public/cpp/application/lib/weak_service_provider.cc', |
| 235 'public/cpp/application/lib/weak_service_provider.h', |
| 236 'public/cpp/application/service_provider_impl.h', |
| 237 ], |
| 238 'dependencies': [ |
| 239 'mojo_application_bindings', |
| 240 ], |
| 241 'export_dependent_settings': [ |
| 242 'mojo_application_bindings', |
| 243 ], |
| 244 }, |
| 245 { |
| 246 # GN version: //mojo/public/cpp/application:standalone" |
| 247 'target_name': 'mojo_application_standalone', |
| 248 'type': 'static_library', |
| 249 'sources': [ |
| 250 'public/cpp/application/lib/application_runner.cc', |
| 251 'public/cpp/application/application_runner.h', |
| 252 ], |
| 253 'dependencies': [ |
| 254 'mojo_application_base', |
| 255 'mojo_environment_standalone', |
| 256 ], |
| 257 'export_dependent_settings': [ |
| 258 'mojo_application_base', |
| 259 ], |
| 260 }, |
| 261 { |
| 262 # GN version: //mojo/public/c/test_support |
| 263 'target_name': 'mojo_test_support', |
| 264 'defines': [ |
| 265 'MOJO_TEST_SUPPORT_IMPLEMENTATION', |
| 266 ], |
| 267 'include_dirs': [ |
| 268 '..', |
| 269 ], |
| 270 'direct_dependent_settings': { |
| 271 'include_dirs': [ |
| 272 '..', |
| 273 ], |
| 274 }, |
| 275 'sources': [ |
| 276 'public/c/test_support/test_support.h', |
| 277 'public/c/test_support/test_support_export.h', |
| 278 # TODO(vtl): Convert this to thunks http://crbug.com/386799 |
| 279 'public/tests/test_support_private.cc', |
| 280 'public/tests/test_support_private.h', |
| 281 ], |
| 282 'conditions': [ |
| 283 ['OS=="ios"', { |
| 284 'type': 'static_library', |
| 285 }, { |
| 286 'type': 'shared_library', |
| 287 }], |
| 288 ['OS=="mac"', { |
| 289 'xcode_settings': { |
| 290 # Make it a run-path dependent library. |
| 291 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
| 292 }, |
| 293 }], |
| 294 ], |
| 295 }, |
| 296 { |
| 297 # GN version: //mojo/public/cpp/test_support:test_utils |
| 298 'target_name': 'mojo_public_test_utils', |
| 299 'type': 'static_library', |
| 300 'dependencies': [ |
| 301 '../base/base.gyp:base', |
| 302 '../testing/gtest.gyp:gtest', |
| 303 'mojo_test_support', |
| 304 ], |
| 305 'sources': [ |
| 306 'public/cpp/test_support/lib/test_support.cc', |
| 307 'public/cpp/test_support/lib/test_utils.cc', |
| 308 'public/cpp/test_support/test_utils.h', |
| 309 ], |
| 310 }, |
| 311 { |
| 312 # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_test_u
tils |
| 313 'target_name': 'mojo_public_bindings_test_utils', |
| 314 'type': 'static_library', |
| 315 'dependencies': [ |
| 316 '../base/base.gyp:base', |
| 317 ], |
| 318 'sources': [ |
| 319 'public/cpp/bindings/tests/validation_test_input_parser.cc', |
| 320 'public/cpp/bindings/tests/validation_test_input_parser.h', |
| 321 ], |
| 322 }, |
| 323 { |
| 324 'target_name': 'mojo_public_test_interfaces_mojom', |
| 325 'type': 'none', |
| 326 'variables': { |
| 327 'mojom_files': [ |
| 328 'public/interfaces/bindings/tests/math_calculator.mojom', |
| 329 'public/interfaces/bindings/tests/no_module.mojom', |
| 330 'public/interfaces/bindings/tests/rect.mojom', |
| 331 'public/interfaces/bindings/tests/regression_tests.mojom', |
| 332 'public/interfaces/bindings/tests/regression_tests_import.mojom', |
| 333 'public/interfaces/bindings/tests/sample_factory.mojom', |
| 334 'public/interfaces/bindings/tests/sample_import.mojom', |
| 335 'public/interfaces/bindings/tests/sample_import2.mojom', |
| 336 'public/interfaces/bindings/tests/sample_interfaces.mojom', |
| 337 'public/interfaces/bindings/tests/sample_service.mojom', |
| 338 'public/interfaces/bindings/tests/serialization_test_structs.mojom', |
| 339 'public/interfaces/bindings/tests/test_structs.mojom', |
| 340 'public/interfaces/bindings/tests/validation_test_interfaces.mojom', |
| 341 ], |
| 342 }, |
| 343 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], |
| 344 }, |
| 345 { |
| 346 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces |
| 347 'target_name': 'mojo_public_test_interfaces', |
| 348 'type': 'static_library', |
| 349 'export_dependent_settings': [ |
| 350 'mojo_cpp_bindings', |
| 351 ], |
| 352 'dependencies': [ |
| 353 'mojo_public_test_interfaces_mojom', |
| 354 'mojo_cpp_bindings', |
| 355 ], |
| 356 }, |
| 357 ], |
| 358 'conditions': [ |
| 359 ['OS == "android"', { |
| 360 'targets': [ |
| 361 { |
| 362 # GN version: //mojo/public/java_system |
| 363 'target_name': 'mojo_public_java', |
| 364 'type': 'none', |
| 365 'variables': { |
| 366 'java_in_dir': 'public/java/system', |
| 367 }, |
| 368 'includes': [ '../build/java.gypi' ], |
| 369 }, |
| 370 { |
| 371 # GN version: //mojo/public/java_bindings |
| 372 'target_name': 'mojo_bindings_java', |
| 373 'type': 'none', |
| 374 'variables': { |
| 375 'java_in_dir': 'public/java/bindings', |
| 376 }, |
| 377 'dependencies': [ |
| 378 'mojo_public_java', |
| 379 ], |
| 380 'includes': [ '../build/java.gypi' ], |
| 381 }, |
| 382 ], |
| 383 }], |
| 384 ], |
| 385 } |
OLD | NEW |