OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 'mojo_variables.gypi', | 7 'mojo_variables.gypi', |
8 ], | 8 ], |
| 9 'target_defaults' : { |
| 10 'include_dirs': [ |
| 11 'src', |
| 12 ], |
| 13 'direct_dependent_settings': { |
| 14 'include_dirs': [ |
| 15 'src', |
| 16 ], |
| 17 }, |
| 18 }, |
9 'targets': [ | 19 'targets': [ |
10 { | 20 { |
11 # GN version: //mojo/edk/system | 21 # GN version: //mojo/edk/system |
12 'target_name': 'mojo_system_impl', | 22 'target_name': 'mojo_system_impl', |
13 'type': '<(component)', | 23 'type': '<(component)', |
14 'dependencies': [ | 24 'dependencies': [ |
15 '../base/base.gyp:base', | 25 '../../base/base.gyp:base', |
16 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 26 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', |
17 ], | 27 ], |
18 'includes': [ | 28 'includes': [ |
19 'mojo_edk_system_impl.gypi', | 29 'mojo_edk_system_impl.gypi', |
20 ], | 30 ], |
21 }, | 31 }, |
22 { | 32 { |
23 # GN version: //mojo/edk/js | 33 # GN version: //mojo/edk/js |
24 'target_name': 'mojo_js_lib', | 34 'target_name': 'mojo_js_lib', |
25 'type': 'static_library', | 35 'type': 'static_library', |
26 'dependencies': [ | 36 'dependencies': [ |
27 '../base/base.gyp:base', | 37 '../../base/base.gyp:base', |
28 '../gin/gin.gyp:gin', | 38 '../../gin/gin.gyp:gin', |
29 '../v8/tools/gyp/v8.gyp:v8', | 39 '../../v8/tools/gyp/v8.gyp:v8', |
30 ], | 40 ], |
31 'export_dependent_settings': [ | 41 'export_dependent_settings': [ |
32 '../base/base.gyp:base', | 42 '../../base/base.gyp:base', |
33 '../gin/gin.gyp:gin', | 43 '../../gin/gin.gyp:gin', |
34 ], | 44 ], |
35 'sources': [ | 45 'sources': [ |
36 # Sources list duplicated in GN build. | 46 # Sources list duplicated in GN build. |
37 'edk/js/core.cc', | 47 'src/mojo/edk/js/core.cc', |
38 'edk/js/core.h', | 48 'src/mojo/edk/js/core.h', |
39 'edk/js/drain_data.cc', | 49 'src/mojo/edk/js/drain_data.cc', |
40 'edk/js/drain_data.h', | 50 'src/mojo/edk/js/drain_data.h', |
41 'edk/js/handle.cc', | 51 'src/mojo/edk/js/handle.cc', |
42 'edk/js/handle.h', | 52 'src/mojo/edk/js/handle.h', |
43 'edk/js/handle_close_observer.h', | 53 'src/mojo/edk/js/handle_close_observer.h', |
44 'edk/js/mojo_runner_delegate.cc', | 54 'src/mojo/edk/js/mojo_runner_delegate.cc', |
45 'edk/js/mojo_runner_delegate.h', | 55 'src/mojo/edk/js/mojo_runner_delegate.h', |
46 'edk/js/support.cc', | 56 'src/mojo/edk/js/support.cc', |
47 'edk/js/support.h', | 57 'src/mojo/edk/js/support.h', |
48 'edk/js/threading.cc', | 58 'src/mojo/edk/js/threading.cc', |
49 'edk/js/threading.h', | 59 'src/mojo/edk/js/threading.h', |
50 'edk/js/waiting_callback.cc', | 60 'src/mojo/edk/js/waiting_callback.cc', |
51 'edk/js/waiting_callback.h', | 61 'src/mojo/edk/js/waiting_callback.h', |
52 ], | 62 ], |
53 }, | 63 }, |
54 { | 64 { |
55 # GN version: //mojo/edk/test:test_support_impl | 65 # GN version: //mojo/edk/test:test_support_impl |
56 'target_name': 'mojo_test_support_impl', | 66 'target_name': 'mojo_test_support_impl', |
57 'type': 'static_library', | 67 'type': 'static_library', |
58 'dependencies': [ | 68 'dependencies': [ |
59 '../base/base.gyp:base', | 69 '../../base/base.gyp:base', |
60 ], | 70 ], |
61 'sources': [ | 71 'sources': [ |
62 'edk/test/test_support_impl.cc', | 72 'src/mojo/edk/test/test_support_impl.cc', |
63 'edk/test/test_support_impl.h', | 73 'src/mojo/edk/test/test_support_impl.h', |
64 ], | 74 ], |
65 }, | 75 }, |
66 { | 76 { |
67 # GN version: //mojo/edk/test:test_support | 77 # GN version: //mojo/edk/test:test_support |
68 'target_name': 'mojo_common_test_support', | 78 'target_name': 'mojo_common_test_support', |
69 'type': 'static_library', | 79 'type': 'static_library', |
70 'dependencies': [ | 80 'dependencies': [ |
71 '../base/base.gyp:base', | 81 '../../base/base.gyp:base', |
72 '../base/base.gyp:test_support_base', | 82 '../../base/base.gyp:test_support_base', |
73 '../testing/gtest.gyp:gtest', | 83 '../../testing/gtest.gyp:gtest', |
74 'mojo_system_impl', | 84 'mojo_system_impl', |
75 ], | 85 ], |
76 'sources': [ | 86 'sources': [ |
77 'edk/test/multiprocess_test_helper.cc', | 87 'src/mojo/edk/test/multiprocess_test_helper.cc', |
78 'edk/test/multiprocess_test_helper.h', | 88 'src/mojo/edk/test/multiprocess_test_helper.h', |
79 'edk/test/test_utils.h', | 89 'src/mojo/edk/test/test_utils.h', |
80 'edk/test/test_utils_posix.cc', | 90 'src/mojo/edk/test/test_utils_posix.cc', |
81 'edk/test/test_utils_win.cc', | 91 'src/mojo/edk/test/test_utils_win.cc', |
82 ], | 92 ], |
83 'conditions': [ | 93 'conditions': [ |
84 ['OS=="ios"', { | 94 ['OS=="ios"', { |
85 'sources!': [ | 95 'sources!': [ |
86 'edk/test/multiprocess_test_helper.cc', | 96 'src/mojo/edk/test/multiprocess_test_helper.cc', |
87 ], | 97 ], |
88 }], | 98 }], |
89 ], | 99 ], |
90 }, | 100 }, |
91 { | 101 { |
92 # GN version: //mojo/edk/test:run_all_unittests | 102 # GN version: //mojo/edk/test:run_all_unittests |
93 'target_name': 'mojo_run_all_unittests', | 103 'target_name': 'mojo_run_all_unittests', |
94 'type': 'static_library', | 104 'type': 'static_library', |
95 'dependencies': [ | 105 'dependencies': [ |
96 '../base/base.gyp:base', | 106 '../../base/base.gyp:base', |
97 '../base/base.gyp:test_support_base', | 107 '../../base/base.gyp:test_support_base', |
98 '../testing/gtest.gyp:gtest', | 108 '../../testing/gtest.gyp:gtest', |
99 'mojo_system_impl', | 109 'mojo_system_impl', |
100 'mojo_public.gyp:mojo_test_support', | 110 'mojo_public.gyp:mojo_test_support', |
101 'mojo_test_support_impl', | 111 'mojo_test_support_impl', |
102 ], | 112 ], |
103 'sources': [ | 113 'sources': [ |
104 'edk/test/run_all_unittests.cc', | 114 'src/mojo/edk/test/run_all_unittests.cc', |
105 ], | 115 ], |
106 }, | 116 }, |
107 { | 117 { |
108 # GN version: //mojo/edk/test:run_all_perftests | 118 # GN version: //mojo/edk/test:run_all_perftests |
109 'target_name': 'mojo_run_all_perftests', | 119 'target_name': 'mojo_run_all_perftests', |
110 'type': 'static_library', | 120 'type': 'static_library', |
111 'dependencies': [ | 121 'dependencies': [ |
112 '../base/base.gyp:test_support_base', | 122 '../../base/base.gyp:test_support_base', |
113 'mojo_edk.gyp:mojo_system_impl', | 123 'mojo_edk.gyp:mojo_system_impl', |
114 'mojo_public.gyp:mojo_test_support', | 124 'mojo_public.gyp:mojo_test_support', |
115 'mojo_test_support_impl', | 125 'mojo_test_support_impl', |
116 ], | 126 ], |
117 'sources': [ | 127 'sources': [ |
118 'edk/test/run_all_perftests.cc', | 128 'src/mojo/edk/test/run_all_perftests.cc', |
119 ], | 129 ], |
120 }, | 130 }, |
121 ], | 131 ], |
122 'conditions': [ | 132 'conditions': [ |
123 ['OS=="win" and target_arch=="ia32"', { | 133 ['OS=="win" and target_arch=="ia32"', { |
124 'targets': [ | 134 'targets': [ |
125 { | 135 { |
126 'target_name': 'mojo_system_impl_win64', | 136 'target_name': 'mojo_system_impl_win64', |
127 'type': '<(component)', | 137 'type': '<(component)', |
128 'dependencies': [ | 138 'dependencies': [ |
129 '../base/base.gyp:base_win64', | 139 '../../base/base.gyp:base_win64', |
130 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations_win64', | 140 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:
dynamic_annotations_win64', |
131 ], | 141 ], |
132 'includes': [ | 142 'includes': [ |
133 'mojo_edk_system_impl.gypi', | 143 'mojo_edk_system_impl.gypi', |
134 ], | 144 ], |
135 'configurations': { | 145 'configurations': { |
136 'Common_Base': { | 146 'Common_Base': { |
137 'msvs_target_platform': 'x64', | 147 'msvs_target_platform': 'x64', |
138 }, | 148 }, |
139 }, | 149 }, |
140 }, | 150 }, |
141 ], | 151 ], |
142 }], | 152 }], |
143 ], | 153 ], |
144 } | 154 } |
OLD | NEW |