Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: tools/gyp/v8.gyp

Issue 1310273009: Remove all gyp BUILD rules with multiple outputs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/snapshot/mksnapshot.cc ('k') | tools/js2c.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 ], 203 ],
204 'conditions': [ 204 'conditions': [
205 ['v8_random_seed!=0', { 205 ['v8_random_seed!=0', {
206 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], 206 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
207 }], 207 }],
208 ], 208 ],
209 }, 209 },
210 'action': [ 210 'action': [
211 '<(mksnapshot_exec)', 211 '<(mksnapshot_exec)',
212 '<@(mksnapshot_flags)', 212 '<@(mksnapshot_flags)',
213 '<@(INTERMEDIATE_DIR)/snapshot.cc', 213 '--startup_src', '<@(INTERMEDIATE_DIR)/snapshot.cc',
214 '<(embed_script)', 214 '<(embed_script)',
215 ], 215 ],
216 }, 216 },
217 ], 217 ],
218 }, 218 },
219 { 219 {
220 'target_name': 'v8_nosnapshot', 220 'target_name': 'v8_nosnapshot',
221 'type': 'static_library', 221 'type': 'static_library',
222 'dependencies': [ 222 'dependencies': [
223 'v8_base', 223 'v8_base',
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 ['v8_random_seed!=0', { 307 ['v8_random_seed!=0', {
308 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], 308 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
309 }], 309 }],
310 ], 310 ],
311 }, 311 },
312 'conditions': [ 312 'conditions': [
313 ['want_separate_host_toolset==1', { 313 ['want_separate_host_toolset==1', {
314 'target_conditions': [ 314 'target_conditions': [
315 ['_toolset=="host"', { 315 ['_toolset=="host"', {
316 'outputs': [ 316 'outputs': [
317 '<(INTERMEDIATE_DIR)/snapshot.cc',
318 '<(PRODUCT_DIR)/snapshot_blob_host.bin', 317 '<(PRODUCT_DIR)/snapshot_blob_host.bin',
319 ], 318 ],
320 'action': [ 319 'action': [
321 '<(mksnapshot_exec)', 320 '<(mksnapshot_exec)',
322 '<@(mksnapshot_flags)', 321 '<@(mksnapshot_flags)',
323 '<@(INTERMEDIATE_DIR)/snapshot.cc',
324 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin ', 322 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin ',
325 '<(embed_script)', 323 '<(embed_script)',
326 ], 324 ],
327 }, { 325 }, {
328 'outputs': [ 326 'outputs': [
329 '<(INTERMEDIATE_DIR)/snapshot.cc',
330 '<(PRODUCT_DIR)/snapshot_blob.bin', 327 '<(PRODUCT_DIR)/snapshot_blob.bin',
331 ], 328 ],
332 'action': [ 329 'action': [
333 '<(mksnapshot_exec)', 330 '<(mksnapshot_exec)',
334 '<@(mksnapshot_flags)', 331 '<@(mksnapshot_flags)',
335 '<@(INTERMEDIATE_DIR)/snapshot.cc',
336 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', 332 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
337 '<(embed_script)', 333 '<(embed_script)',
338 ], 334 ],
339 }], 335 }],
340 ], 336 ],
341 }, { 337 }, {
342 'outputs': [ 338 'outputs': [
343 '<(INTERMEDIATE_DIR)/snapshot.cc',
344 '<(PRODUCT_DIR)/snapshot_blob.bin', 339 '<(PRODUCT_DIR)/snapshot_blob.bin',
345 ], 340 ],
346 'action': [ 341 'action': [
347 '<(mksnapshot_exec)', 342 '<(mksnapshot_exec)',
348 '<@(mksnapshot_flags)', 343 '<@(mksnapshot_flags)',
349 '<@(INTERMEDIATE_DIR)/snapshot.cc',
350 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', 344 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
351 '<(embed_script)', 345 '<(embed_script)',
352 ], 346 ],
353 }], 347 }],
354 ], 348 ],
355 }, 349 },
356 ], 350 ],
357 }], 351 }],
358 ], 352 ],
359 }, 353 },
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1846 'libraries_experimental_extras_bin_file': '<(SHARED_INTERMEDIATE_DIR)/li braries-experimental-extras.bin', 1840 'libraries_experimental_extras_bin_file': '<(SHARED_INTERMEDIATE_DIR)/li braries-experimental-extras.bin',
1847 }, 1841 },
1848 'actions': [ 1842 'actions': [
1849 { 1843 {
1850 'action_name': 'js2c', 1844 'action_name': 'js2c',
1851 'inputs': [ 1845 'inputs': [
1852 '../../tools/js2c.py', 1846 '../../tools/js2c.py',
1853 '<@(library_files)', 1847 '<@(library_files)',
1854 '<@(i18n_library_files)' 1848 '<@(i18n_library_files)'
1855 ], 1849 ],
1856 'outputs': [ 1850 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/libraries.cc'],
1857 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
1858 ],
1859 'action': [ 1851 'action': [
1860 'python', 1852 'python',
1861 '../../tools/js2c.py', 1853 '../../tools/js2c.py',
1862 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 1854 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
1863 'CORE', 1855 'CORE',
1864 '<@(library_files)', 1856 '<@(library_files)',
1865 '<@(i18n_library_files)' 1857 '<@(i18n_library_files)'
1866 ], 1858 ],
1867 'conditions': [ 1859 },
1868 [ 'v8_use_external_startup_data==1', { 1860 {
1869 'outputs': ['<@(libraries_bin_file)'], 1861 'action_name': 'js2c_bin',
1870 'action': [ 1862 'inputs': [
1871 '--startup_blob', '<@(libraries_bin_file)', 1863 '../../tools/js2c.py',
1872 ], 1864 '<@(library_files)',
1873 }], 1865 '<@(i18n_library_files)'
1866 ],
1867 'outputs': ['<@(libraries_bin_file)'],
1868 'action': [
1869 'python',
1870 '../../tools/js2c.py',
1871 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
1872 'CORE',
1873 '<@(library_files)',
1874 '<@(i18n_library_files)',
1875 '--startup_blob', '<@(libraries_bin_file)',
1876 '--nojs',
1874 ], 1877 ],
1875 }, 1878 },
1876 { 1879 {
1877 'action_name': 'js2c_experimental', 1880 'action_name': 'js2c_experimental',
1878 'inputs': [ 1881 'inputs': [
1879 '../../tools/js2c.py', 1882 '../../tools/js2c.py',
1880 '<@(experimental_library_files)', 1883 '<@(experimental_library_files)',
1881 ], 1884 ],
1882 'outputs': [ 1885 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc'],
1883 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
1884 ],
1885 'action': [ 1886 'action': [
1886 'python', 1887 'python',
1887 '../../tools/js2c.py', 1888 '../../tools/js2c.py',
1888 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 1889 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
1889 'EXPERIMENTAL', 1890 'EXPERIMENTAL',
1890 '<@(experimental_library_files)' 1891 '<@(experimental_library_files)'
1891 ], 1892 ],
1892 'conditions': [ 1893 },
1893 [ 'v8_use_external_startup_data==1', { 1894 {
1894 'outputs': ['<@(libraries_experimental_bin_file)'], 1895 'action_name': 'js2c_experimental_bin',
1895 'action': [ 1896 'inputs': [
1896 '--startup_blob', '<@(libraries_experimental_bin_file)' 1897 '../../tools/js2c.py',
1897 ], 1898 '<@(experimental_library_files)',
1898 }], 1899 ],
1900 'outputs': ['<@(libraries_experimental_bin_file)'],
1901 'action': [
1902 'python',
1903 '../../tools/js2c.py',
1904 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
1905 'EXPERIMENTAL',
1906 '<@(experimental_library_files)',
1907 '--startup_blob', '<@(libraries_experimental_bin_file)',
1908 '--nojs',
1899 ], 1909 ],
1900 }, 1910 },
1901 { 1911 {
1902 'action_name': 'js2c_code_stubs', 1912 'action_name': 'js2c_code_stubs',
1903 'inputs': [ 1913 'inputs': [
1904 '../../tools/js2c.py', 1914 '../../tools/js2c.py',
1905 '<@(code_stub_library_files)', 1915 '<@(code_stub_library_files)',
1906 ], 1916 ],
1907 'outputs': [ 1917 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/code-stub-libraries.cc'],
1908 '<(SHARED_INTERMEDIATE_DIR)/code-stub-libraries.cc',
1909 ],
1910 'action': [ 1918 'action': [
1911 'python', 1919 'python',
1912 '../../tools/js2c.py', 1920 '../../tools/js2c.py',
1913 '<(SHARED_INTERMEDIATE_DIR)/code-stub-libraries.cc', 1921 '<(SHARED_INTERMEDIATE_DIR)/code-stub-libraries.cc',
1914 'CODE_STUB', 1922 'CODE_STUB',
1915 '<@(code_stub_library_files)' 1923 '<@(code_stub_library_files)'
1916 ], 1924 ],
1917 'conditions': [ 1925 },
1918 [ 'v8_use_external_startup_data==1', { 1926 {
1919 'outputs': ['<@(libraries_code_stub_bin_file)'], 1927 'action_name': 'js2c_code_stubs_bin',
1920 'action': [ 1928 'inputs': [
1921 '--startup_blob', '<@(libraries_code_stub_bin_file)' 1929 '../../tools/js2c.py',
1922 ], 1930 '<@(code_stub_library_files)',
1923 }], 1931 ],
1932 'outputs': ['<@(libraries_code_stub_bin_file)'],
1933 'action': [
1934 'python',
1935 '../../tools/js2c.py',
1936 '<(SHARED_INTERMEDIATE_DIR)/code-stub-libraries.cc',
1937 'CODE_STUB',
1938 '<@(code_stub_library_files)',
1939 '--startup_blob', '<@(libraries_code_stub_bin_file)',
1940 '--nojs',
1924 ], 1941 ],
1925 }, 1942 },
1926 { 1943 {
1927 'action_name': 'js2c_extras', 1944 'action_name': 'js2c_extras',
1928 'inputs': [ 1945 'inputs': [
1929 '../../tools/js2c.py', 1946 '../../tools/js2c.py',
1930 '<@(v8_extra_library_files)', 1947 '<@(v8_extra_library_files)',
1931 ], 1948 ],
1932 'outputs': [ 1949 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc'],
1933 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
1934 ],
1935 'action': [ 1950 'action': [
1936 'python', 1951 'python',
1937 '../../tools/js2c.py', 1952 '../../tools/js2c.py',
1938 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc', 1953 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
1939 'EXTRAS', 1954 'EXTRAS',
1940 '<@(v8_extra_library_files)', 1955 '<@(v8_extra_library_files)',
1941 ], 1956 ],
1942 'conditions': [ 1957 },
1943 [ 'v8_use_external_startup_data==1', { 1958 {
1944 'outputs': ['<@(libraries_extras_bin_file)'], 1959 'action_name': 'js2c_extras_bin',
1945 'action': [ 1960 'inputs': [
1946 '--startup_blob', '<@(libraries_extras_bin_file)', 1961 '../../tools/js2c.py',
1947 ], 1962 '<@(v8_extra_library_files)',
1948 }], 1963 ],
1964 'outputs': ['<@(libraries_extras_bin_file)'],
1965 'action': [
1966 'python',
1967 '../../tools/js2c.py',
1968 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
1969 'EXTRAS',
1970 '<@(v8_extra_library_files)',
1971 '--startup_blob', '<@(libraries_extras_bin_file)',
1972 '--nojs',
1949 ], 1973 ],
1950 }, 1974 },
1951 { 1975 {
1952 'action_name': 'js2c_experimental_extras', 1976 'action_name': 'js2c_experimental_extras',
1953 'inputs': [ 1977 'inputs': [
1954 '../../tools/js2c.py', 1978 '../../tools/js2c.py',
1955 '<@(v8_experimental_extra_library_files)', 1979 '<@(v8_experimental_extra_library_files)',
1956 ], 1980 ],
1957 'outputs': [ 1981 'outputs': [
1958 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc', 1982 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
1959 ], 1983 ],
1960 'action': [ 1984 'action': [
1961 'python', 1985 'python',
1962 '../../tools/js2c.py', 1986 '../../tools/js2c.py',
1963 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc', 1987 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
1964 'EXPERIMENTAL_EXTRAS', 1988 'EXPERIMENTAL_EXTRAS',
1965 '<@(v8_experimental_extra_library_files)', 1989 '<@(v8_experimental_extra_library_files)',
1966 ], 1990 ],
1967 'conditions': [ 1991 },
1968 [ 'v8_use_external_startup_data==1', { 1992 {
1969 'outputs': ['<@(libraries_experimental_extras_bin_file)'], 1993 'action_name': 'js2c_experimental_extras_bin',
1970 'action': [ 1994 'inputs': [
1971 '--startup_blob', '<@(libraries_experimental_extras_bin_file)', 1995 '../../tools/js2c.py',
1972 ], 1996 '<@(v8_experimental_extra_library_files)',
1973 }], 1997 ],
1998 'outputs': ['<@(libraries_experimental_extras_bin_file)'],
1999 'action': [
2000 'python',
2001 '../../tools/js2c.py',
2002 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
2003 'EXPERIMENTAL_EXTRAS',
2004 '<@(v8_experimental_extra_library_files)',
2005 '--startup_blob', '<@(libraries_experimental_extras_bin_file)',
2006 '--nojs',
1974 ], 2007 ],
1975 }, 2008 },
1976 ], 2009 ],
1977 }, 2010 },
1978 { 2011 {
1979 'target_name': 'postmortem-metadata', 2012 'target_name': 'postmortem-metadata',
1980 'type': 'none', 2013 'type': 'none',
1981 'variables': { 2014 'variables': {
1982 'heapobject_files': [ 2015 'heapobject_files': [
1983 '../../src/objects.h', 2016 '../../src/objects.h',
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2022 }], 2055 }],
2023 ['want_separate_host_toolset==1', { 2056 ['want_separate_host_toolset==1', {
2024 'toolsets': ['host'], 2057 'toolsets': ['host'],
2025 }, { 2058 }, {
2026 'toolsets': ['target'], 2059 'toolsets': ['target'],
2027 }], 2060 }],
2028 ], 2061 ],
2029 }, 2062 },
2030 ], 2063 ],
2031 } 2064 }
OLDNEW
« no previous file with comments | « src/snapshot/mksnapshot.cc ('k') | tools/js2c.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698