OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 # Included to get 'mac_bundle_id' and other variables. | 7 # Included to get 'mac_bundle_id' and other variables. |
8 '../build/chrome_settings.gypi', | 8 '../build/chrome_settings.gypi', |
9 ], | 9 ], |
10 'variables': { | 10 'variables': { |
(...skipping 16 matching lines...) Expand all Loading... |
27 # This protobuf is equivalent to chrome_settings.proto but shares messages | 27 # This protobuf is equivalent to chrome_settings.proto but shares messages |
28 # for policies of the same type, so that less classes have to be generated | 28 # for policies of the same type, so that less classes have to be generated |
29 # and compiled. | 29 # and compiled. |
30 'cloud_policy_proto_path': | 30 'cloud_policy_proto_path': |
31 '<(policy_out_dir)/policy/cloud_policy.proto', | 31 '<(policy_out_dir)/policy/cloud_policy.proto', |
32 }, | 32 }, |
33 'conditions': [ | 33 'conditions': [ |
34 ['component=="static_library"', { | 34 ['component=="static_library"', { |
35 'targets': [ | 35 'targets': [ |
36 { | 36 { |
| 37 # GN version: //components/policy:policy_component |
37 'target_name': 'policy_component', | 38 'target_name': 'policy_component', |
38 'type': 'none', | 39 'type': 'none', |
39 'dependencies': [ | 40 'dependencies': [ |
40 'policy_component_common', | 41 'policy_component_common', |
41 'policy_component_browser', | 42 'policy_component_browser', |
42 ], | 43 ], |
43 }, | 44 }, |
44 { | 45 { |
| 46 # GN version: //components/policy:policy_component_common |
45 'target_name': 'policy_component_common', | 47 'target_name': 'policy_component_common', |
46 'type': 'static_library', | 48 'type': 'static_library', |
47 'includes': [ | 49 'includes': [ |
48 'policy/policy_common.gypi', | 50 'policy/policy_common.gypi', |
49 ], | 51 ], |
50 }, | 52 }, |
51 { | 53 { |
| 54 # GN version: //components/policy:policy_component_browser |
52 'target_name': 'policy_component_browser', | 55 'target_name': 'policy_component_browser', |
53 'type': 'static_library', | 56 'type': 'static_library', |
54 'dependencies': [ | 57 'dependencies': [ |
55 'policy_component_common', | 58 'policy_component_common', |
56 ], | 59 ], |
57 'includes': [ | 60 'includes': [ |
58 'policy/policy_browser.gypi', | 61 'policy/policy_browser.gypi', |
59 ], | 62 ], |
60 }, | 63 }, |
61 ], | 64 ], |
62 }, { # component=="static_library" | 65 }, { # component=="static_library" |
63 'targets': [ | 66 'targets': [ |
64 { | 67 { |
| 68 # GN version: //components/policy:policy_component |
65 'target_name': 'policy_component', | 69 'target_name': 'policy_component', |
66 'type': 'shared_library', | 70 'type': 'shared_library', |
67 'includes': [ | 71 'includes': [ |
68 'policy/policy_common.gypi', | 72 'policy/policy_common.gypi', |
69 'policy/policy_browser.gypi', | 73 'policy/policy_browser.gypi', |
70 ], | 74 ], |
71 }, | 75 }, |
72 { | 76 { |
| 77 # GN version: //components/policy:policy_component_common |
73 'target_name': 'policy_component_common', | 78 'target_name': 'policy_component_common', |
74 'type': 'none', | 79 'type': 'none', |
75 'dependencies': [ | 80 'dependencies': [ |
76 'policy_component', | 81 'policy_component', |
77 ], | 82 ], |
78 }, | 83 }, |
79 { | 84 { |
| 85 # GN version: //components/policy:policy_component_browser |
80 'target_name': 'policy_component_browser', | 86 'target_name': 'policy_component_browser', |
81 'type': 'none', | 87 'type': 'none', |
82 'dependencies': [ | 88 'dependencies': [ |
83 'policy_component', | 89 'policy_component', |
84 ], | 90 ], |
85 }, | 91 }, |
86 ], | 92 ], |
87 }], | 93 }], |
88 ['configuration_policy==1', { | 94 ['configuration_policy==1', { |
89 'targets': [ | 95 'targets': [ |
90 { | 96 { |
| 97 # GN version: //components/policy:cloud_policy_code_generate |
91 'target_name': 'cloud_policy_code_generate', | 98 'target_name': 'cloud_policy_code_generate', |
92 'type': 'none', | 99 'type': 'none', |
93 'actions': [ | 100 'actions': [ |
94 { | 101 { |
95 'inputs': [ | 102 'inputs': [ |
96 'policy/resources/policy_templates.json', | 103 'policy/resources/policy_templates.json', |
97 '<(generate_policy_source_script_path)', | 104 '<(generate_policy_source_script_path)', |
98 ], | 105 ], |
99 'outputs': [ | 106 'outputs': [ |
100 '<(policy_constant_header_path)', | 107 '<(policy_constant_header_path)', |
(...skipping 19 matching lines...) Expand all Loading... |
120 }, | 127 }, |
121 ], | 128 ], |
122 'direct_dependent_settings': { | 129 'direct_dependent_settings': { |
123 'include_dirs': [ | 130 'include_dirs': [ |
124 '<(policy_out_dir)', | 131 '<(policy_out_dir)', |
125 '<(protoc_out_dir)', | 132 '<(protoc_out_dir)', |
126 ], | 133 ], |
127 }, | 134 }, |
128 }, | 135 }, |
129 { | 136 { |
| 137 # GN version: //components/policy:cloud_policy_proto_generated_compile |
130 'target_name': 'cloud_policy_proto_generated_compile', | 138 'target_name': 'cloud_policy_proto_generated_compile', |
131 'type': '<(component)', | 139 'type': '<(component)', |
132 'sources': [ | 140 'sources': [ |
133 '<(cloud_policy_proto_path)', | 141 '<(cloud_policy_proto_path)', |
134 ], | 142 ], |
135 'variables': { | 143 'variables': { |
136 'proto_in_dir': '<(policy_out_dir)/policy', | 144 'proto_in_dir': '<(policy_out_dir)/policy', |
137 'proto_out_dir': 'policy/proto', | 145 'proto_out_dir': 'policy/proto', |
138 'cc_generator_options': 'dllexport_decl=POLICY_PROTO_EXPORT:', | 146 'cc_generator_options': 'dllexport_decl=POLICY_PROTO_EXPORT:', |
139 'cc_include': 'components/policy/policy_proto_export.h', | 147 'cc_include': 'components/policy/policy_proto_export.h', |
140 }, | 148 }, |
141 'dependencies': [ | 149 'dependencies': [ |
142 'cloud_policy_code_generate', | 150 'cloud_policy_code_generate', |
143 ], | 151 ], |
144 'includes': [ | 152 'includes': [ |
145 '../build/protoc.gypi', | 153 '../build/protoc.gypi', |
146 ], | 154 ], |
147 'defines': [ | 155 'defines': [ |
148 'POLICY_PROTO_COMPILATION', | 156 'POLICY_PROTO_COMPILATION', |
149 ], | 157 ], |
150 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 158 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
151 'msvs_disabled_warnings': [4267, ], | 159 'msvs_disabled_warnings': [4267, ], |
152 }, | 160 }, |
153 { | 161 { |
154 # This target builds the "full" protobuf, used for tests only. | 162 # This target builds the "full" protobuf, used for tests only. |
| 163 # GN version: //components/policy:chrome_settings_proto_generated_comp
ile |
155 'target_name': 'chrome_settings_proto_generated_compile', | 164 'target_name': 'chrome_settings_proto_generated_compile', |
156 'type': 'static_library', | 165 'type': 'static_library', |
157 'sources': [ | 166 'sources': [ |
158 '<(chrome_settings_proto_path)', | 167 '<(chrome_settings_proto_path)', |
159 ], | 168 ], |
160 'variables': { | 169 'variables': { |
161 'proto_in_dir': '<(policy_out_dir)/policy', | 170 'proto_in_dir': '<(policy_out_dir)/policy', |
162 'proto_out_dir': 'policy/proto', | 171 'proto_out_dir': 'policy/proto', |
163 }, | 172 }, |
164 'dependencies': [ | 173 'dependencies': [ |
165 'cloud_policy_code_generate', | 174 'cloud_policy_code_generate', |
166 'cloud_policy_proto_generated_compile', | 175 'cloud_policy_proto_generated_compile', |
167 ], | 176 ], |
168 'includes': [ | 177 'includes': [ |
169 '../build/protoc.gypi', | 178 '../build/protoc.gypi', |
170 ], | 179 ], |
171 }, | 180 }, |
172 { | 181 { |
| 182 # GN version: //components/policy |
173 'target_name': 'policy', | 183 'target_name': 'policy', |
174 'type': 'static_library', | 184 'type': 'static_library', |
175 'hard_dependency': 1, | 185 'hard_dependency': 1, |
176 'direct_dependent_settings': { | 186 'direct_dependent_settings': { |
177 'include_dirs': [ | 187 'include_dirs': [ |
178 '<(policy_out_dir)', | 188 '<(policy_out_dir)', |
179 '<(protoc_out_dir)', | 189 '<(protoc_out_dir)', |
180 ], | 190 ], |
181 }, | 191 }, |
182 'sources': [ | 192 'sources': [ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 'sources!': [ | 236 'sources!': [ |
227 'policy/proto/device_management_local.proto', | 237 'policy/proto/device_management_local.proto', |
228 ], | 238 ], |
229 }], | 239 }], |
230 ], | 240 ], |
231 'defines': [ | 241 'defines': [ |
232 'POLICY_PROTO_COMPILATION', | 242 'POLICY_PROTO_COMPILATION', |
233 ], | 243 ], |
234 }, | 244 }, |
235 { | 245 { |
| 246 # GN version: //components/policy:test_support |
236 'target_name': 'policy_test_support', | 247 'target_name': 'policy_test_support', |
237 'type': 'none', | 248 'type': 'none', |
238 'hard_dependency': 1, | 249 'hard_dependency': 1, |
239 'direct_dependent_settings': { | 250 'direct_dependent_settings': { |
240 'include_dirs': [ | 251 'include_dirs': [ |
241 '<(policy_out_dir)', | 252 '<(policy_out_dir)', |
242 '<(protoc_out_dir)', | 253 '<(protoc_out_dir)', |
243 ], | 254 ], |
244 }, | 255 }, |
245 'dependencies': [ | 256 'dependencies': [ |
246 'chrome_settings_proto_generated_compile', | 257 'chrome_settings_proto_generated_compile', |
247 'policy', | 258 'policy', |
248 ], | 259 ], |
249 }, | 260 }, |
250 { | 261 { |
| 262 # GN version: //components/policy:policy_component_test_support |
251 'target_name': 'policy_component_test_support', | 263 'target_name': 'policy_component_test_support', |
252 'type': 'static_library', | 264 'type': 'static_library', |
253 # This must be undefined so that POLICY_EXPORT works correctly in | 265 # This must be undefined so that POLICY_EXPORT works correctly in |
254 # the static_library build. | 266 # the static_library build. |
255 'defines!': [ | 267 'defines!': [ |
256 'POLICY_COMPONENT_IMPLEMENTATION', | 268 'POLICY_COMPONENT_IMPLEMENTATION', |
257 ], | 269 ], |
258 'dependencies': [ | 270 'dependencies': [ |
259 'cloud_policy_proto', | 271 'cloud_policy_proto', |
260 'policy_component', | 272 'policy_component', |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 'message': | 444 'message': |
433 'Copy the Localizable.strings files to the manifest bundle', | 445 'Copy the Localizable.strings files to the manifest bundle', |
434 'process_outputs_as_mac_bundle_resources': 1, | 446 'process_outputs_as_mac_bundle_resources': 1, |
435 }, | 447 }, |
436 ], | 448 ], |
437 }, | 449 }, |
438 ], | 450 ], |
439 }], | 451 }], |
440 ], | 452 ], |
441 } | 453 } |
OLD | NEW |