OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 'variables': { | 5 'variables': { |
6 'chromium_code': 1, | 6 'chromium_code': 1, |
7 | 7 |
8 'variables': { | 8 'variables': { |
9 'version_py_path': 'tools/build/version.py', | 9 'version_py_path': 'tools/build/version.py', |
10 'version_path': 'VERSION', | 10 'version_path': 'VERSION', |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 ], | 129 ], |
130 }], | 130 }], |
131 ], # conditions | 131 ], # conditions |
132 }, # variables | 132 }, # variables |
133 'includes': [ | 133 'includes': [ |
134 # Place some targets in gypi files to reduce contention on this file. | 134 # Place some targets in gypi files to reduce contention on this file. |
135 # By using an include, we keep everything in a single xcodeproj file. | 135 # By using an include, we keep everything in a single xcodeproj file. |
136 # Note on Win64 targets: targets that end with win64 be used | 136 # Note on Win64 targets: targets that end with win64 be used |
137 # on 64-bit Windows only. Targets that end with nacl_win64 should be used | 137 # on 64-bit Windows only. Targets that end with nacl_win64 should be used |
138 # by Native Client only. | 138 # by Native Client only. |
| 139 'app/policy/policy_templates.gypi', |
139 'chrome_browser.gypi', | 140 'chrome_browser.gypi', |
140 'chrome_common.gypi', | 141 'chrome_common.gypi', |
141 'chrome_dll.gypi', | 142 'chrome_dll.gypi', |
142 'chrome_exe.gypi', | 143 'chrome_exe.gypi', |
143 'chrome_installer.gypi', | 144 'chrome_installer.gypi', |
144 'chrome_installer_util.gypi', | 145 'chrome_installer_util.gypi', |
145 'chrome_renderer.gypi', | 146 'chrome_renderer.gypi', |
146 'chrome_tests.gypi', | 147 'chrome_tests.gypi', |
147 'common_constants.gypi', | 148 'common_constants.gypi', |
148 'nacl.gypi', | 149 'nacl.gypi', |
(...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1811 'tools/crash_service/main.cc', | 1812 'tools/crash_service/main.cc', |
1812 ], | 1813 ], |
1813 'msvs_settings': { | 1814 'msvs_settings': { |
1814 'VCLinkerTool': { | 1815 'VCLinkerTool': { |
1815 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | 1816 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
1816 }, | 1817 }, |
1817 }, | 1818 }, |
1818 }, | 1819 }, |
1819 ]}, # 'targets' | 1820 ]}, # 'targets' |
1820 ], # OS=="win" | 1821 ], # OS=="win" |
1821 ['OS=="win" or OS=="mac" or OS=="linux"', | |
1822 { 'targets': [ | |
1823 { | |
1824 # policy_templates has different inputs and outputs, so it can't use | |
1825 # the rules of chrome_strings | |
1826 'target_name': 'policy_templates', | |
1827 'type': 'none', | |
1828 'variables': { | |
1829 'grd_path': 'app/policy/policy_templates.grd', | |
1830 'template_files': [ | |
1831 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(grd_path))' | |
1832 ] | |
1833 }, | |
1834 'actions': [ | |
1835 { | |
1836 'action_name': 'policy_templates', | |
1837 'variables': { | |
1838 'conditions': [ | |
1839 ['branding=="Chrome"', { | |
1840 # TODO(mmoss) The .grd files look for _google_chrome, but fo
r | |
1841 # consistency they should look for GOOGLE_CHROME_BUILD like
C++. | |
1842 # Clean this up when Windows moves to gyp. | |
1843 'chrome_build': '_google_chrome', | |
1844 }, { # else: branding!="Chrome" | |
1845 'chrome_build': '_chromium', | |
1846 }], | |
1847 ], | |
1848 }, | |
1849 'inputs': [ | |
1850 '<!@(<(grit_info_cmd) --inputs <(grd_path))', | |
1851 ], | |
1852 'outputs': [ | |
1853 '<@(template_files)' | |
1854 ], | |
1855 'action': [ | |
1856 '<@(grit_cmd)', | |
1857 '-i', '<(grd_path)', 'build', | |
1858 '-o', '<(grit_out_dir)', | |
1859 '-D', '<(chrome_build)' | |
1860 ], | |
1861 'conditions': [ | |
1862 ['chromeos==1', { | |
1863 'action': ['-D', 'chromeos'], | |
1864 }], | |
1865 ['use_titlecase_in_grd_files==1', { | |
1866 'action': ['-D', 'use_titlecase'], | |
1867 }], | |
1868 ['OS == "mac"', { | |
1869 'action': ['-D', 'mac_bundle_id=<(mac_bundle_id)'], | |
1870 }], | |
1871 ], | |
1872 'message': 'Generating policy templates from <(grd_path)', | |
1873 }, | |
1874 ], | |
1875 'direct_dependent_settings': { | |
1876 'include_dirs': [ | |
1877 '<(grit_out_dir)', | |
1878 ], | |
1879 }, | |
1880 'conditions': [ | |
1881 ['OS=="win"', { | |
1882 'actions': [ | |
1883 { | |
1884 # Add all the templates generated at the previous step into | |
1885 # a zip archive. | |
1886 'action_name': 'pack_templates', | |
1887 'variables': { | |
1888 'zip_script': | |
1889 'tools/build/win/make_zip_with_relative_entries.py' | |
1890 }, | |
1891 'inputs': [ | |
1892 '<@(template_files)', | |
1893 '<(zip_script)' | |
1894 ], | |
1895 'outputs': [ | |
1896 '<(PRODUCT_DIR)/policy_templates.zip' | |
1897 ], | |
1898 'action': [ | |
1899 'python', | |
1900 '<(zip_script)', | |
1901 '<@(_outputs)', | |
1902 '<(grit_out_dir)/app/policy', | |
1903 '<@(template_files)' | |
1904 ], | |
1905 'message': 'Packing generated templates into <(_outputs)', | |
1906 } | |
1907 ] | |
1908 }], | |
1909 ['OS=="win"', { | |
1910 'dependencies': ['../build/win/system.gyp:cygwin'], | |
1911 }], | |
1912 ], | |
1913 }, | |
1914 ]}, # 'targets' | |
1915 ], # OS=="win" or OS=="mac" or OS=="linux" | |
1916 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | 1822 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
1917 'targets': [{ | 1823 'targets': [{ |
1918 'target_name': 'packed_resources', | 1824 'target_name': 'packed_resources', |
1919 'type': 'none', | 1825 'type': 'none', |
1920 'variables': { | 1826 'variables': { |
1921 'repack_path': '../tools/data_pack/repack.py', | 1827 'repack_path': '../tools/data_pack/repack.py', |
1922 }, | 1828 }, |
1923 'actions': [ | 1829 'actions': [ |
1924 # TODO(mark): These actions are duplicated for the Mac in the | 1830 # TODO(mark): These actions are duplicated for the Mac in the |
1925 # chrome_dll target. Can they be unified? | 1831 # chrome_dll target. Can they be unified? |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2003 }], # targets | 1909 }], # targets |
2004 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 1910 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
2005 ], # 'conditions' | 1911 ], # 'conditions' |
2006 } | 1912 } |
2007 | 1913 |
2008 # Local Variables: | 1914 # Local Variables: |
2009 # tab-width:2 | 1915 # tab-width:2 |
2010 # indent-tabs-mode:nil | 1916 # indent-tabs-mode:nil |
2011 # End: | 1917 # End: |
2012 # vim: set expandtab tabstop=2 shiftwidth=2: | 1918 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |