| 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 'target_defaults' : { | |
| 10 'include_dirs': [ | |
| 11 # TODO(use_chrome_edk): since we include a few headers from src/mojo/edk, | |
| 12 # we need their includes to be searched first (i.e. otherwise when | |
| 13 # embedder.cc in third_party includes core.h from src/mojo/edk, and the | |
| 14 # latter includes mojo/edk/system/memory.h, the header from third_party | |
| 15 # would incorrectly get chosen). | |
| 16 '../..', | |
| 17 ], | |
| 18 }, | |
| 19 'targets': [ | |
| 20 { | |
| 21 # GN version: //mojo/edk/system | |
| 22 'target_name': 'mojo_system_impl', | |
| 23 'type': '<(component)', | |
| 24 'dependencies': [ | |
| 25 '../../base/base.gyp:base', | |
| 26 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', | |
| 27 # TODO(use_chrome_edk): so that EDK in third_party can choose the EDK in | |
| 28 # src/mojo if the command line flag is specified. It has to since we can | |
| 29 # only have one definition of the Mojo primitives. | |
| 30 '../../mojo/mojo_edk.gyp:mojo_system_impl2', | |
| 31 ], | |
| 32 'includes': [ | |
| 33 'mojo_edk_system_impl.gypi', | |
| 34 ], | |
| 35 }, | |
| 36 { | |
| 37 # GN version: //mojo/edk/js | |
| 38 'target_name': 'mojo_js_lib', | |
| 39 'type': 'static_library', | |
| 40 'dependencies': [ | |
| 41 '../../base/base.gyp:base', | |
| 42 '../../gin/gin.gyp:gin', | |
| 43 '../../v8/tools/gyp/v8.gyp:v8', | |
| 44 ], | |
| 45 'export_dependent_settings': [ | |
| 46 '../../base/base.gyp:base', | |
| 47 '../../gin/gin.gyp:gin', | |
| 48 ], | |
| 49 'sources': [ | |
| 50 # Sources list duplicated in GN build. | |
| 51 'src/mojo/edk/js/core.cc', | |
| 52 'src/mojo/edk/js/core.h', | |
| 53 'src/mojo/edk/js/drain_data.cc', | |
| 54 'src/mojo/edk/js/drain_data.h', | |
| 55 'src/mojo/edk/js/handle.cc', | |
| 56 'src/mojo/edk/js/handle.h', | |
| 57 'src/mojo/edk/js/handle_close_observer.h', | |
| 58 'src/mojo/edk/js/mojo_runner_delegate.cc', | |
| 59 'src/mojo/edk/js/mojo_runner_delegate.h', | |
| 60 'src/mojo/edk/js/support.cc', | |
| 61 'src/mojo/edk/js/support.h', | |
| 62 'src/mojo/edk/js/threading.cc', | |
| 63 'src/mojo/edk/js/threading.h', | |
| 64 'src/mojo/edk/js/waiting_callback.cc', | |
| 65 'src/mojo/edk/js/waiting_callback.h', | |
| 66 ], | |
| 67 }, | |
| 68 { | |
| 69 # GN version: //mojo/edk/test:test_support_impl | |
| 70 'target_name': 'mojo_test_support_impl', | |
| 71 'type': 'static_library', | |
| 72 'dependencies': [ | |
| 73 '../../base/base.gyp:base', | |
| 74 ], | |
| 75 'sources': [ | |
| 76 'src/mojo/edk/test/test_support_impl.cc', | |
| 77 'src/mojo/edk/test/test_support_impl.h', | |
| 78 ], | |
| 79 }, | |
| 80 { | |
| 81 # GN version: //mojo/edk/test:test_support | |
| 82 'target_name': 'mojo_common_test_support', | |
| 83 'type': 'static_library', | |
| 84 'dependencies': [ | |
| 85 '../../base/base.gyp:base', | |
| 86 '../../base/base.gyp:test_support_base', | |
| 87 '../../testing/gtest.gyp:gtest', | |
| 88 'mojo_system_impl', | |
| 89 ], | |
| 90 'sources': [ | |
| 91 'src/mojo/edk/test/multiprocess_test_helper.cc', | |
| 92 'src/mojo/edk/test/multiprocess_test_helper.h', | |
| 93 'src/mojo/edk/test/scoped_ipc_support.cc', | |
| 94 'src/mojo/edk/test/scoped_ipc_support.h', | |
| 95 'src/mojo/edk/test/test_utils.h', | |
| 96 'src/mojo/edk/test/test_utils_posix.cc', | |
| 97 'src/mojo/edk/test/test_utils_win.cc', | |
| 98 ], | |
| 99 'conditions': [ | |
| 100 ['OS=="ios"', { | |
| 101 'sources!': [ | |
| 102 'src/mojo/edk/test/multiprocess_test_helper.cc', | |
| 103 ], | |
| 104 }], | |
| 105 ], | |
| 106 }, | |
| 107 { | |
| 108 # GN version: //mojo/edk/test:run_all_unittests | |
| 109 'target_name': 'mojo_run_all_unittests', | |
| 110 'type': 'static_library', | |
| 111 'dependencies': [ | |
| 112 '../../base/base.gyp:base', | |
| 113 '../../base/base.gyp:test_support_base', | |
| 114 '../../testing/gtest.gyp:gtest', | |
| 115 'mojo_system_impl', | |
| 116 'mojo_public.gyp:mojo_public_test_support', | |
| 117 'mojo_test_support_impl', | |
| 118 ], | |
| 119 'sources': [ | |
| 120 'src/mojo/edk/test/run_all_unittests.cc', | |
| 121 ], | |
| 122 }, | |
| 123 { | |
| 124 # GN version: //mojo/edk/test:run_all_perftests | |
| 125 'target_name': 'mojo_run_all_perftests', | |
| 126 'type': 'static_library', | |
| 127 'dependencies': [ | |
| 128 '../../base/base.gyp:test_support_base', | |
| 129 'mojo_edk.gyp:mojo_system_impl', | |
| 130 'mojo_public.gyp:mojo_public_test_support', | |
| 131 'mojo_test_support_impl', | |
| 132 ], | |
| 133 'sources': [ | |
| 134 'src/mojo/edk/test/run_all_perftests.cc', | |
| 135 ], | |
| 136 }, | |
| 137 ], | |
| 138 'conditions': [ | |
| 139 ['OS=="win" and target_arch=="ia32"', { | |
| 140 'targets': [ | |
| 141 { | |
| 142 'target_name': 'mojo_system_impl_win64', | |
| 143 'type': '<(component)', | |
| 144 'dependencies': [ | |
| 145 '../../base/base.gyp:base_win64', | |
| 146 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:
dynamic_annotations_win64', | |
| 147 ], | |
| 148 'includes': [ | |
| 149 'mojo_edk_system_impl.gypi', | |
| 150 ], | |
| 151 'configurations': { | |
| 152 'Common_Base': { | |
| 153 'msvs_target_platform': 'x64', | |
| 154 }, | |
| 155 }, | |
| 156 }, | |
| 157 ], | |
| 158 }], | |
| 159 ], | |
| 160 } | |
| OLD | NEW |