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

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

Issue 1129743003: Make V8 extras a separate type of native (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add BUILD.gn; fix build errors with no extras Created 5 years, 7 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
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 ], 173 ],
174 'dependencies': [ 174 'dependencies': [
175 'v8_base', 175 'v8_base',
176 ], 176 ],
177 'include_dirs+': [ 177 'include_dirs+': [
178 '../..', 178 '../..',
179 ], 179 ],
180 'sources': [ 180 'sources': [
181 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 181 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
182 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 182 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
183 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
183 '<(INTERMEDIATE_DIR)/snapshot.cc', 184 '<(INTERMEDIATE_DIR)/snapshot.cc',
184 ], 185 ],
185 'actions': [ 186 'actions': [
186 { 187 {
187 'action_name': 'run_mksnapshot', 188 'action_name': 'run_mksnapshot',
188 'inputs': [ 189 'inputs': [
189 '<(mksnapshot_exec)', 190 '<(mksnapshot_exec)',
190 '<(embed_script)', 191 '<(embed_script)',
191 ], 192 ],
192 'outputs': [ 193 'outputs': [
(...skipping 24 matching lines...) Expand all
217 'type': 'static_library', 218 'type': 'static_library',
218 'dependencies': [ 219 'dependencies': [
219 'v8_base', 220 'v8_base',
220 ], 221 ],
221 'include_dirs+': [ 222 'include_dirs+': [
222 '../..', 223 '../..',
223 ], 224 ],
224 'sources': [ 225 'sources': [
225 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 226 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
226 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 227 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
228 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
227 '../../src/snapshot/snapshot-empty.cc', 229 '../../src/snapshot/snapshot-empty.cc',
228 ], 230 ],
229 'conditions': [ 231 'conditions': [
230 ['want_separate_host_toolset==1', { 232 ['want_separate_host_toolset==1', {
231 'toolsets': ['host', 'target'], 233 'toolsets': ['host', 'target'],
232 'dependencies': ['js2c#host'], 234 'dependencies': ['js2c#host'],
233 }, { 235 }, {
234 'toolsets': ['target'], 236 'toolsets': ['target'],
235 'dependencies': ['js2c'], 237 'dependencies': ['js2c'],
236 }], 238 }],
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 }, { 1628 }, {
1627 'dependencies': ['js2c'], 1629 'dependencies': ['js2c'],
1628 }], 1630 }],
1629 ], 1631 ],
1630 'actions': [{ 1632 'actions': [{
1631 'action_name': 'concatenate_natives_blob', 1633 'action_name': 'concatenate_natives_blob',
1632 'inputs': [ 1634 'inputs': [
1633 '../../tools/concatenate-files.py', 1635 '../../tools/concatenate-files.py',
1634 '<(SHARED_INTERMEDIATE_DIR)/libraries.bin', 1636 '<(SHARED_INTERMEDIATE_DIR)/libraries.bin',
1635 '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental.bin', 1637 '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental.bin',
1638 '<(SHARED_INTERMEDIATE_DIR)/libraries-extras.bin',
1636 ], 1639 ],
1637 'conditions': [ 1640 'conditions': [
1638 ['want_separate_host_toolset==1', { 1641 ['want_separate_host_toolset==1', {
1639 'target_conditions': [ 1642 'target_conditions': [
1640 ['_toolset=="host"', { 1643 ['_toolset=="host"', {
1641 'outputs': [ 1644 'outputs': [
1642 '<(PRODUCT_DIR)/natives_blob_host.bin', 1645 '<(PRODUCT_DIR)/natives_blob_host.bin',
1643 ], 1646 ],
1644 'action': [ 1647 'action': [
1645 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob_host .bin' 1648 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob_host .bin'
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1731 '../../src/harmony-array.js', 1734 '../../src/harmony-array.js',
1732 '../../src/harmony-array-includes.js', 1735 '../../src/harmony-array-includes.js',
1733 '../../src/harmony-tostring.js', 1736 '../../src/harmony-tostring.js',
1734 '../../src/harmony-typedarray.js', 1737 '../../src/harmony-typedarray.js',
1735 '../../src/harmony-regexp.js', 1738 '../../src/harmony-regexp.js',
1736 '../../src/harmony-reflect.js', 1739 '../../src/harmony-reflect.js',
1737 '../../src/harmony-spread.js' 1740 '../../src/harmony-spread.js'
1738 ], 1741 ],
1739 'libraries_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries.bin', 1742 'libraries_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries.bin',
1740 'libraries_experimental_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries -experimental.bin', 1743 'libraries_experimental_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries -experimental.bin',
1744 'libraries_extras_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries-extra s.bin',
1741 }, 1745 },
1742 'actions': [ 1746 'actions': [
1743 { 1747 {
1744 'action_name': 'js2c', 1748 'action_name': 'js2c',
1745 'inputs': [ 1749 'inputs': [
1746 '../../tools/js2c.py', 1750 '../../tools/js2c.py',
1747 '<@(library_files)', 1751 '<@(library_files)',
1748 '<@(i18n_library_files)', 1752 '<@(i18n_library_files)'
1749 '<@(v8_extra_library_files)',
1750 ], 1753 ],
1751 'outputs': [ 1754 'outputs': [
1752 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 1755 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
1753 ], 1756 ],
1754 'action': [ 1757 'action': [
1755 'python', 1758 'python',
1756 '../../tools/js2c.py', 1759 '../../tools/js2c.py',
1757 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 1760 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
1758 'CORE', 1761 'CORE',
1759 '<@(library_files)', 1762 '<@(library_files)',
1760 '<@(i18n_library_files)', 1763 '<@(i18n_library_files)'
1761 '--extra',
1762 '<@(v8_extra_library_files)',
1763 ], 1764 ],
1764 'conditions': [ 1765 'conditions': [
1765 [ 'v8_use_external_startup_data==1', { 1766 [ 'v8_use_external_startup_data==1', {
1766 'outputs': ['<@(libraries_bin_file)'], 1767 'outputs': ['<@(libraries_bin_file)'],
1767 'action': [ 1768 'action': [
1768 '--startup_blob', '<@(libraries_bin_file)', 1769 '--startup_blob', '<@(libraries_bin_file)',
1769 ], 1770 ],
1770 }], 1771 }],
1771 ], 1772 ],
1772 }, 1773 },
(...skipping 15 matching lines...) Expand all
1788 ], 1789 ],
1789 'conditions': [ 1790 'conditions': [
1790 [ 'v8_use_external_startup_data==1', { 1791 [ 'v8_use_external_startup_data==1', {
1791 'outputs': ['<@(libraries_experimental_bin_file)'], 1792 'outputs': ['<@(libraries_experimental_bin_file)'],
1792 'action': [ 1793 'action': [
1793 '--startup_blob', '<@(libraries_experimental_bin_file)' 1794 '--startup_blob', '<@(libraries_experimental_bin_file)'
1794 ], 1795 ],
1795 }], 1796 }],
1796 ], 1797 ],
1797 }, 1798 },
1799 {
1800 'action_name': 'js2c_extras',
1801 'inputs': [
1802 '../../tools/js2c.py',
1803 '<@(v8_extra_library_files)',
1804 ],
1805 'outputs': [
1806 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
1807 ],
1808 'action': [
1809 'python',
1810 '../../tools/js2c.py',
1811 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
1812 'EXTRAS',
1813 '<@(v8_extra_library_files)',
1814 ],
1815 'conditions': [
1816 [ 'v8_use_external_startup_data==1', {
1817 'outputs': ['<@(libraries_extras_bin_file)'],
1818 'action': [
1819 '--startup_blob', '<@(libraries_extras_bin_file)',
1820 ],
1821 }],
1822 ],
1823 },
1798 ], 1824 ],
1799 }, 1825 },
1800 { 1826 {
1801 'target_name': 'postmortem-metadata', 1827 'target_name': 'postmortem-metadata',
1802 'type': 'none', 1828 'type': 'none',
1803 'variables': { 1829 'variables': {
1804 'heapobject_files': [ 1830 'heapobject_files': [
1805 '../../src/objects.h', 1831 '../../src/objects.h',
1806 '../../src/objects-inl.h', 1832 '../../src/objects-inl.h',
1807 ], 1833 ],
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1844 }], 1870 }],
1845 ['want_separate_host_toolset==1', { 1871 ['want_separate_host_toolset==1', {
1846 'toolsets': ['host'], 1872 'toolsets': ['host'],
1847 }, { 1873 }, {
1848 'toolsets': ['target'], 1874 'toolsets': ['target'],
1849 }], 1875 }],
1850 ], 1876 ],
1851 }, 1877 },
1852 ], 1878 ],
1853 } 1879 }
OLDNEW
« no previous file with comments | « src/snapshot/natives.h ('k') | tools/js2c.py » ('j') | tools/js2c.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698