OLD | NEW |
---|---|
1 { | 1 { |
2 'variables': { | |
3 'version_py': '../../chrome/tools/build/version.py', | |
4 'VERSION': '../../chrome/VERSION', | |
5 # 'BRANDING' is set in the 'conditions' section at the bottom. | |
6 }, | |
2 'includes': [ | 7 'includes': [ |
3 '../../build/common.gypi', | 8 '../../build/common.gypi', |
4 ], | 9 ], |
5 'targets': [ | 10 'targets': [ |
6 { | 11 { |
12 'target_name': 'gcapi_dll', | |
13 'type': 'shared_library', | |
14 'msvs_guid': 'B802A2FE-E4E2-4F5A-905A-D5128875C954', | |
15 'dependencies': [ | |
16 '../../google_update/google_update.gyp:google_update', | |
17 ], | |
18 'include_dirs': [ | |
19 '../..', | |
20 ], | |
21 'sources': [ | |
22 'gcapi/gcapi.cc', | |
23 'gcapi/gcapi.h', | |
24 ], | |
25 }, | |
26 { | |
27 'target_name': 'gcapi_lib', | |
28 'type': 'static_library', | |
29 'msvs_guid': 'CD2FD73A-6AAB-4886-B887-760D18E8B635', | |
30 'dependencies': [ | |
31 '../../google_update/google_update.gyp:google_update', | |
32 ], | |
33 'include_dirs': [ | |
34 '../..', | |
35 ], | |
36 'sources': [ | |
37 'gcapi/gcapi.cc', | |
38 'gcapi/gcapi.h', | |
39 ], | |
40 }, | |
41 { | |
42 'target_name': 'gcapi_test', | |
Mark Mentovai
2009/05/27 17:26:19
Seems weird to bring in both the _dll and the _lib
sgk
2009/05/27 21:02:30
This duplicates the current behavior as best as I
| |
43 'type': 'executable', | |
44 'msvs_guid': 'B64B396B-8EF1-4B6B-A07E-48D40EB961AB', | |
45 'dependencies': [ | |
46 'gcapi_dll', | |
47 'gcapi_lib', | |
48 ], | |
49 'include_dirs': [ | |
50 '../..', | |
51 ], | |
52 'sources': [ | |
53 'gcapi/gcapi_test.cc', | |
54 'gcapi/gcapi_test.rc', | |
55 'gcapi/resource.h', | |
56 ], | |
57 }, | |
58 { | |
59 'target_name': 'installer_unittests', | |
60 'type': 'executable', | |
61 'msvs_guid': '903F8C1E-537A-4C9E-97BE-075147CBE769', | |
62 'dependencies': [ | |
63 'installer_util', | |
64 'installer_util_strings', | |
65 '../../base/base.gyp:base', | |
66 '../../testing/gtest.gyp:gtest', | |
67 ], | |
68 'include_dirs': [ | |
69 '../..', | |
70 ], | |
71 'sources': [ | |
72 'setup/compat_checks_unittest.cc', | |
73 'setup/setup_constants.cc', | |
74 'util/copy_tree_work_item_unittest.cc', | |
75 'util/create_dir_work_item_unittest.cc', | |
76 'util/create_reg_key_work_item_unittest.cc', | |
77 'util/delete_reg_value_work_item_unittest.cc', | |
78 'util/delete_tree_work_item_unittest.cc', | |
79 'util/google_chrome_distribution_unittest.cc', | |
80 'util/helper_unittest.cc', | |
81 'util/installer_unittests.rc', | |
82 'util/installer_unittests_resource.h', | |
83 'util/move_tree_work_item_unittest.cc', | |
84 'util/run_all_unittests.cc', | |
85 'util/set_reg_value_work_item_unittest.cc', | |
86 'util/work_item_list_unittest.cc', | |
87 ], | |
88 }, | |
89 { | |
7 'target_name': 'installer_util', | 90 'target_name': 'installer_util', |
8 'type': '<(library)', | 91 'type': '<(library)', |
92 'msvs_guid': 'EFBB1436-A63F-4CD8-9E99-B89226E782EC', | |
9 'dependencies': [ | 93 'dependencies': [ |
10 'installer_util_strings', | 94 'installer_util_strings', |
11 '../chrome.gyp:common', | 95 '../chrome.gyp:common', |
12 '../chrome.gyp:chrome_resources', | 96 '../chrome.gyp:chrome_resources', |
13 '../chrome.gyp:chrome_strings', | 97 '../chrome.gyp:chrome_strings', |
14 '../../net/net.gyp:net_resources', | 98 '../../net/net.gyp:net_resources', |
15 '../../media/media.gyp:media', | 99 '../../media/media.gyp:media', |
16 '../../skia/skia.gyp:skia', | 100 '../../skia/skia.gyp:skia', |
17 '../../third_party/icu38/icu38.gyp:icui18n', | 101 '../../third_party/icu38/icu38.gyp:icui18n', |
18 '../../third_party/icu38/icu38.gyp:icuuc', | 102 '../../third_party/icu38/icu38.gyp:icuuc', |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 'util/version.h', | 157 'util/version.h', |
74 'util/work_item.cc', | 158 'util/work_item.cc', |
75 'util/work_item.h', | 159 'util/work_item.h', |
76 'util/work_item_list.cc', | 160 'util/work_item_list.cc', |
77 'util/work_item_list.h', | 161 'util/work_item_list.h', |
78 ], | 162 ], |
79 }, | 163 }, |
80 { | 164 { |
81 'target_name': 'installer_util_strings', | 165 'target_name': 'installer_util_strings', |
82 'type': 'none', | 166 'type': 'none', |
167 'msvs_guid': '0026A376-C4F1-4575-A1BA-578C69F07013', | |
83 'actions': [ | 168 'actions': [ |
84 { | 169 { |
85 # TODO(sgk): Clean this up so that we pass in the | 170 # TODO(sgk): Clean this up so that we pass in the |
86 # file names to the script instead of having it hard-code | 171 # file names to the script instead of having it hard-code |
87 # matching path names internally. | 172 # matching path names internally. |
88 'action_name': 'installer_util_strings', | 173 'action_name': 'installer_util_strings', |
89 'inputs': [ | 174 'inputs': [ |
90 'util/prebuild/create_string_rc.py', | 175 'util/prebuild/create_string_rc.py', |
91 '../app/generated_resources.grd', | 176 '../app/generated_resources.grd', |
92 ], | 177 ], |
(...skipping 13 matching lines...) Expand all Loading... | |
106 ], | 191 ], |
107 'msvs_cygwin_shell': 0, | 192 'msvs_cygwin_shell': 0, |
108 }, | 193 }, |
109 ], | 194 ], |
110 'direct_dependent_settings': { | 195 'direct_dependent_settings': { |
111 'include_dirs': [ | 196 'include_dirs': [ |
112 '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings', | 197 '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings', |
113 ], | 198 ], |
114 }, | 199 }, |
115 }, | 200 }, |
201 { | |
202 'target_name': 'mini_installer', | |
203 'type': 'executable', | |
204 'msvs_guid': '24A5AC7C-280B-4899-9153-6BA570A081E7', | |
205 'dependencies': [ | |
206 '../chrome.gyp:app', | |
207 '../chrome.gyp:chrome_dll', | |
208 ], | |
209 'include_dirs': [ | |
210 '../..', | |
211 '<(PRODUCT_DIR)', | |
212 '<(INTERMEDIATE_DIR)', | |
213 ], | |
214 'sources': [ | |
215 'mini_installer/chrome.release', | |
216 'mini_installer/mini_installer.cc', | |
217 'mini_installer/mini_installer.h', | |
218 'mini_installer/mini_installer.ico', | |
219 'mini_installer/mini_installer.rc', | |
220 'mini_installer/mini_installer_exe_version.rc.version', | |
221 'mini_installer/mini_installer_resource.h', | |
222 'mini_installer/pe_resource.cc', | |
223 'mini_installer/pe_resource.h', | |
224 ], | |
225 'msvs_settings': { | |
226 'VCLinkerTool': { | |
227 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | |
228 }, | |
229 }, | |
230 'rules': [ | |
231 { | |
232 'rule_name': 'mini_installer_version', | |
233 'extension': 'version', | |
234 'variables': { | |
235 'template_input_path': 'mini_installer/mini_installer_exe_version.rc .version', | |
236 'template_output_path': | |
237 '<(INTERMEDIATE_DIR)/mini_installer_exe_version.rc', | |
238 }, | |
239 'inputs': [ | |
240 '<(template_input_path)', | |
241 '<(VERSION)', | |
242 '<(BRANDING)', | |
243 ], | |
244 'outputs': [ | |
245 # Use a non-existant output so this action always runs and | |
246 # generates version information, e.g. to capture revision | |
247 # changes, which aren't captured by file dependencies. | |
248 '<(INTERMEDIATE_DIR)/mini_installer_version.bogus', | |
249 | |
250 # And this is the real output, so that the build system knows | |
251 # what action generates it. | |
252 '<(template_output_path)', | |
253 ], | |
254 'action': [ | |
255 'python', | |
256 '<(version_py)', | |
257 '-f', '<(VERSION)', | |
258 '-f', '<(BRANDING)', | |
259 '<(template_input_path)', | |
260 '<(template_output_path)', | |
261 ], | |
262 'process_outputs_as_sources': 1, | |
263 'message': 'Generating version information' | |
264 }, | |
265 { | |
266 'rule_name': 'installer_archive', | |
267 'extension': 'release', | |
268 'variables': { | |
269 'create_installer_archive_py_path': | |
270 '../tools/build/win/create_installer_archive.py', | |
271 'template_output_path': | |
272 '<(INTERMEDIATE_DIR)/mini_installer_exe_version.rc', | |
273 }, | |
274 'inputs': [ | |
275 '<(create_installer_archive_py_path)', | |
276 '<(PRODUCT_DIR)/chrome.exe', | |
277 '<(PRODUCT_DIR)/chrome.dll', | |
278 '<(PRODUCT_DIR)/locales/en-US.dll', | |
279 '<(PRODUCT_DIR)/icudt38.dll', | |
280 ], | |
281 'outputs': [ | |
282 'xxx.out', | |
283 '<(PRODUCT_DIR)/<(RULE_INPUT_NAME).7z', | |
284 '<(PRODUCT_DIR)/<(RULE_INPUT_NAME).packed.7z', | |
285 '<(PRODUCT_DIR)/setup.ex_', | |
286 '<(PRODUCT_DIR)/packed_files.txt', | |
287 ], | |
288 'action': [ | |
289 'python', | |
290 '<(create_installer_archive_py_path)', | |
291 '--output_dir=<(PRODUCT_DIR)', | |
292 '--input_file=<(RULE_INPUT_PATH)', | |
293 # TODO(sgk): may just use environment variables | |
294 #'--distribution=$(CHROMIUM_BUILD)', | |
295 '--distribution=_google_chrome', | |
296 ], | |
297 }, | |
298 ], | |
299 }, | |
300 { | |
301 'target_name': 'mini_installer_test', | |
302 'type': 'executable', | |
303 'msvs_guid': '4B6E199A-034A-49BD-AB93-458DD37E45B1', | |
304 'dependencies': [ | |
305 'installer_util', | |
306 '../../base/base.gyp:base', | |
307 '../../testing/gtest.gyp:gtest', | |
308 ], | |
309 'include_dirs': [ | |
310 '../..', | |
311 ], | |
312 'sources': [ | |
313 'setup/setup_constants.cc', | |
314 'util/run_all_unittests.cc', | |
315 '../test/mini_installer_test/chrome_mini_installer.cc', | |
316 '../test/mini_installer_test/chrome_mini_installer.h', | |
317 '../test/mini_installer_test/mini_installer_test_constants.cc', | |
318 '../test/mini_installer_test/mini_installer_test_constants.h', | |
319 '../test/mini_installer_test/test.cc', | |
320 ], | |
321 }, | |
322 { | |
323 'target_name': 'setup', | |
324 'type': 'executable', | |
325 'msvs_guid': '21C76E6E-8B38-44D6-8148-B589C13B9554', | |
326 'dependencies': [ | |
327 'installer_util', | |
328 'installer_util_strings', | |
329 '../chrome.gyp:app', | |
330 '../chrome.gyp:chrome_dll', | |
331 '../../build/win/system.gyp:cygwin', | |
332 '../../courgette/courgette.gyp:courgette_lib', | |
333 '../../third_party/bspatch/bspatch.gyp:bspatch', | |
334 ], | |
335 'include_dirs': [ | |
336 '../..', | |
337 '<(INTERMEDIATE_DIR)', | |
338 '<(SHARED_INTERMEDIATE_DIR)', | |
339 ], | |
340 'sources': [ | |
341 'mini_installer/chrome.release', | |
342 'setup/install.cc', | |
343 'setup/main.cc', | |
344 'setup/setup.cc', | |
345 'setup/setup.h', | |
346 'setup/setup.ico', | |
347 'setup/setup.rc', | |
348 'setup/setup_constants.cc', | |
349 'setup/setup_constants.h', | |
350 'setup/setup_exe_version.rc.version', | |
351 'setup/setup_resource.h', | |
352 'setup/uninstall.cc', | |
353 'setup/uninstall.h', | |
354 ], | |
355 'msvs_settings': { | |
356 'VCLinkerTool': { | |
357 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | |
358 }, | |
359 }, | |
360 'rules': [ | |
361 { | |
362 'rule_name': 'setup_version', | |
363 'extension': 'version', | |
364 'variables': { | |
365 'version_py': '../../chrome/tools/build/version.py', | |
366 'VERSION': '../../chrome/VERSION', | |
367 'template_input_path': 'setup/setup_exe_version.rc.version', | |
368 'template_output_path': | |
369 '<(SHARED_INTERMEDIATE_DIR)/setup_exe_version.rc', | |
370 }, | |
371 'inputs': [ | |
372 '<(template_input_path)', | |
373 '<(VERSION)', | |
374 '<(BRANDING)', | |
375 ], | |
376 'outputs': [ | |
377 # Use a non-existant output so this action always runs and | |
378 # generates version information, e.g. to capture revision | |
379 # changes, which aren't captured by file dependencies. | |
380 '<(SHARED_INTERMEDIATE_DIR)/setup_exe_version.bogus', | |
381 | |
382 # And this is the real output, so that the build system knows | |
383 # what action generates it. | |
384 '<(template_output_path)', | |
385 ], | |
386 'action': [ | |
387 'python', | |
388 '<(version_py)', | |
389 '-f', '<(VERSION)', | |
390 '-f', '<(BRANDING)', | |
391 '<(template_input_path)', | |
392 '<(template_output_path)', | |
393 ], | |
394 'process_outputs_as_sources': 1, | |
395 'message': 'Generating version information' | |
396 }, | |
397 { | |
398 'rule_name': 'server_dlls', | |
399 'extension': 'release', | |
400 'variables': { | |
401 'scan_server_dlls_py' : '../tools/build/win/scan_server_dlls.py', | |
402 }, | |
403 'inputs': [ | |
404 '<scan_server_dlls_py)', | |
405 '<(PRODUCT_DIR)/chrome.exe', | |
406 '<(PRODUCT_DIR)/chrome.dll', | |
407 '<(PRODUCT_DIR)/locales/en-US.dll', | |
408 '<(PRODUCT_DIR)/icudt38.dll', | |
409 ], | |
410 'outputs': [ | |
411 '<(INTERMEDIATE_DIR)/registered_dlls.h', | |
412 ], | |
413 'action': [ | |
414 'python', | |
415 '<(scan_server_dlls_py)', | |
416 '--output_dir=<(INTERMEDIATE_DIR)', | |
417 '--input_file=<(RULE_INPUT_PATH)', | |
418 '--header_output_dir=<(INTERMEDIATE_DIR)', | |
419 # TODO(sgk): may just use environment variables | |
420 #'--distribution=$(CHROMIUM_BUILD)', | |
421 '--distribution=_google_chrome', | |
422 ], | |
423 }, | |
424 ], | |
425 }, | |
426 ], | |
427 'conditions': [ | |
428 [ 'branding == "Chrome"', { | |
429 'variables': { | |
430 'BRANDING': '../../chrome/app/theme/google_chrome/BRANDING', | |
431 }, | |
432 }, { # else branding!="Chrome" | |
433 'variables': { | |
434 'BRANDING': '../../chrome/app/theme/chromium/BRANDING', | |
435 }, | |
436 }], | |
116 ], | 437 ], |
117 } | 438 } |
OLD | NEW |