OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'includes': [ | 9 'includes': [ |
10 '../build/common.gypi', | 10 '../build/common.gypi', |
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 'app/google_update_client.cc', | 1321 'app/google_update_client.cc', |
1322 'app/google_update_client.h', | 1322 'app/google_update_client.h', |
1323 'app/keystone_glue.h', | 1323 'app/keystone_glue.h', |
1324 'app/keystone_glue.m', | 1324 'app/keystone_glue.m', |
1325 'app/scoped_ole_initializer.h', | 1325 'app/scoped_ole_initializer.h', |
1326 ], | 1326 ], |
1327 'mac_bundle_resources': [ | 1327 'mac_bundle_resources': [ |
1328 'app/nibs/en.lproj/BrowserWindow.xib', | 1328 'app/nibs/en.lproj/BrowserWindow.xib', |
1329 'app/nibs/en.lproj/MainMenu.xib', | 1329 'app/nibs/en.lproj/MainMenu.xib', |
1330 'app/nibs/en.lproj/TabContents.xib', | 1330 'app/nibs/en.lproj/TabContents.xib', |
1331 'app/theme/chromium/chromium.icns', | |
1332 'app/theme/back.pdf', | 1331 'app/theme/back.pdf', |
1333 'app/theme/forward.pdf', | 1332 'app/theme/forward.pdf', |
1334 'app/theme/go.pdf', | 1333 'app/theme/go.pdf', |
1335 'app/theme/grow_box.png', | 1334 'app/theme/grow_box.png', |
1336 'app/theme/newtab.pdf', | 1335 'app/theme/newtab.pdf', |
1337 'app/theme/reload.pdf', | 1336 'app/theme/reload.pdf', |
1338 'app/theme/sadtab.png', | 1337 'app/theme/sadtab.png', |
1339 'app/theme/star.pdf', | 1338 'app/theme/star.pdf', |
1340 'app/theme/starred.pdf', | 1339 'app/theme/starred.pdf', |
1341 'app/theme/stop.pdf', | 1340 'app/theme/stop.pdf', |
1342 'app/app-Info.plist', | 1341 'app/app-Info.plist', |
1343 ], | 1342 ], |
1344 # TODO(mark): Come up with a fancier way to do this. It should only | 1343 # TODO(mark): Come up with a fancier way to do this. It should only |
1345 # be necessary to list app-Info.plist once, not the three times it is | 1344 # be necessary to list app-Info.plist once, not the three times it is |
1346 # listed here. | 1345 # listed here. |
1347 'mac_bundle_resources!': [ | 1346 'mac_bundle_resources!': [ |
1348 'app/app-Info.plist', | 1347 'app/app-Info.plist', |
1349 ], | 1348 ], |
1350 'xcode_settings': { | 1349 'xcode_settings': { |
1351 'INFOPLIST_FILE': 'app/app-Info.plist', | 1350 'INFOPLIST_FILE': 'app/app-Info.plist', |
1352 }, | 1351 }, |
1353 'conditions': [ | 1352 'conditions': [ |
1354 ['OS=="mac"', { | 1353 ['OS=="mac"', { |
1355 'product_name': 'Chromium', | 1354 # 'branding' is a variable defined in common.gypi |
| 1355 # (e.g. "Chromium", "Chrome") |
| 1356 » 'product_name': '<(branding)', |
| 1357 » 'conditions': [ |
| 1358 ['branding=="Chrome"', { |
| 1359 'mac_bundle_resources': ['app/theme/google_chrome/chrome.icns'], |
| 1360 }, { # else: branding!="Chrome" |
| 1361 'mac_bundle_resources': ['app/theme/chromium/chromium.icns'], |
| 1362 }], |
| 1363 ], |
1356 }], | 1364 }], |
1357 ['OS!="win"', { | 1365 ['OS!="win"', { |
1358 'variables': { | 1366 'variables': { |
1359 'repack_path': '../tools/data_pack/repack.py', | 1367 'repack_path': '../tools/data_pack/repack.py', |
1360 }, | 1368 }, |
1361 'actions': [ | 1369 'actions': [ |
1362 { | 1370 { |
1363 'action_name': 'repack_chrome', | 1371 'action_name': 'repack_chrome', |
1364 'variables': { | 1372 'variables': { |
1365 'pak_inputs': [ | 1373 'pak_inputs': [ |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1739 'common/os_exchange_data_unittest.cc', | 1747 'common/os_exchange_data_unittest.cc', |
1740 'common/pref_service_unittest.cc', | 1748 'common/pref_service_unittest.cc', |
1741 'common/time_format_unittest.cc', | 1749 'common/time_format_unittest.cc', |
1742 'renderer/render_view_unittest.cc', | 1750 'renderer/render_view_unittest.cc', |
1743 'renderer/render_widget_unittest.cc', | 1751 'renderer/render_widget_unittest.cc', |
1744 ], | 1752 ], |
1745 }], | 1753 }], |
1746 ], | 1754 ], |
1747 }, | 1755 }, |
1748 ], | 1756 ], |
| 1757 # On Mac only, add a project target called "package_app" that only |
| 1758 # runs a shell script (package_chrome.sh). |
| 1759 'conditions': [ |
| 1760 ['OS=="mac"', |
| 1761 { 'targets': [ |
| 1762 { |
| 1763 'target_name': 'package_app', |
| 1764 # do NOT place this in the 'all' list; most won't want it. |
| 1765 # In gyp, booleans are 0/1 not True/False. |
| 1766 'suppress_wildcard': 1, |
| 1767 'type': 'none', |
| 1768 'dependencies': [ |
| 1769 'app', |
| 1770 ], |
| 1771 'actions': [ |
| 1772 { |
| 1773 'inputs': [], |
| 1774 'outputs': [], |
| 1775 'action_name': 'package_chrome', |
| 1776 'action': ['tools/mac/package_chrome.sh' ], |
| 1777 }, |
| 1778 ], # 'actions' |
| 1779 }, |
| 1780 ]}, # 'targets' |
| 1781 ], # OS=="mac" |
| 1782 ], # 'conditions' |
1749 } | 1783 } |
OLD | NEW |