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

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: Initial version from https://codereview.chromium.org/1129743003 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
« no previous file with comments | « src/startup-data-util.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 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 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 }, { 1634 }, {
1633 'dependencies': ['js2c'], 1635 'dependencies': ['js2c'],
1634 }], 1636 }],
1635 ], 1637 ],
1636 'actions': [{ 1638 'actions': [{
1637 'action_name': 'concatenate_natives_blob', 1639 'action_name': 'concatenate_natives_blob',
1638 'inputs': [ 1640 'inputs': [
1639 '../../tools/concatenate-files.py', 1641 '../../tools/concatenate-files.py',
1640 '<(SHARED_INTERMEDIATE_DIR)/libraries.bin', 1642 '<(SHARED_INTERMEDIATE_DIR)/libraries.bin',
1641 '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental.bin', 1643 '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental.bin',
1644 '<(SHARED_INTERMEDIATE_DIR)/libraries-extras.bin',
1642 ], 1645 ],
1643 'conditions': [ 1646 'conditions': [
1644 ['want_separate_host_toolset==1', { 1647 ['want_separate_host_toolset==1', {
1645 'target_conditions': [ 1648 'target_conditions': [
1646 ['_toolset=="host"', { 1649 ['_toolset=="host"', {
1647 'outputs': [ 1650 'outputs': [
1648 '<(PRODUCT_DIR)/natives_blob_host.bin', 1651 '<(PRODUCT_DIR)/natives_blob_host.bin',
1649 ], 1652 ],
1650 'action': [ 1653 'action': [
1651 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob_host .bin' 1654 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob_host .bin'
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1738 '../../src/harmony-array-includes.js', 1741 '../../src/harmony-array-includes.js',
1739 '../../src/harmony-tostring.js', 1742 '../../src/harmony-tostring.js',
1740 '../../src/harmony-typedarray.js', 1743 '../../src/harmony-typedarray.js',
1741 '../../src/harmony-regexp.js', 1744 '../../src/harmony-regexp.js',
1742 '../../src/harmony-reflect.js', 1745 '../../src/harmony-reflect.js',
1743 '../../src/harmony-spread.js', 1746 '../../src/harmony-spread.js',
1744 '../../src/harmony-object.js' 1747 '../../src/harmony-object.js'
1745 ], 1748 ],
1746 'libraries_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries.bin', 1749 'libraries_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries.bin',
1747 'libraries_experimental_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries -experimental.bin', 1750 'libraries_experimental_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries -experimental.bin',
1751 'libraries_extras_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries-extra s.bin',
1748 }, 1752 },
1749 'actions': [ 1753 'actions': [
1750 { 1754 {
1751 'action_name': 'js2c', 1755 'action_name': 'js2c',
1752 'inputs': [ 1756 'inputs': [
1753 '../../tools/js2c.py', 1757 '../../tools/js2c.py',
1754 '<@(library_files)', 1758 '<@(library_files)',
1755 '<@(i18n_library_files)', 1759 '<@(i18n_library_files)'
1756 '<@(v8_extra_library_files)',
1757 ], 1760 ],
1758 'outputs': [ 1761 'outputs': [
1759 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 1762 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
1760 ], 1763 ],
1761 'action': [ 1764 'action': [
1762 'python', 1765 'python',
1763 '../../tools/js2c.py', 1766 '../../tools/js2c.py',
1764 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 1767 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
1765 'CORE', 1768 'CORE',
1766 '<@(library_files)', 1769 '<@(library_files)',
1767 '<@(i18n_library_files)', 1770 '<@(i18n_library_files)'
1768 '--extra',
1769 '<@(v8_extra_library_files)',
1770 ], 1771 ],
1771 'conditions': [ 1772 'conditions': [
1772 [ 'v8_use_external_startup_data==1', { 1773 [ 'v8_use_external_startup_data==1', {
1773 'outputs': ['<@(libraries_bin_file)'], 1774 'outputs': ['<@(libraries_bin_file)'],
1774 'action': [ 1775 'action': [
1775 '--startup_blob', '<@(libraries_bin_file)', 1776 '--startup_blob', '<@(libraries_bin_file)',
1776 ], 1777 ],
1777 }], 1778 }],
1778 ], 1779 ],
1779 }, 1780 },
(...skipping 15 matching lines...) Expand all
1795 ], 1796 ],
1796 'conditions': [ 1797 'conditions': [
1797 [ 'v8_use_external_startup_data==1', { 1798 [ 'v8_use_external_startup_data==1', {
1798 'outputs': ['<@(libraries_experimental_bin_file)'], 1799 'outputs': ['<@(libraries_experimental_bin_file)'],
1799 'action': [ 1800 'action': [
1800 '--startup_blob', '<@(libraries_experimental_bin_file)' 1801 '--startup_blob', '<@(libraries_experimental_bin_file)'
1801 ], 1802 ],
1802 }], 1803 }],
1803 ], 1804 ],
1804 }, 1805 },
1806 {
1807 'action_name': 'js2c_extras',
1808 'inputs': [
1809 '../../tools/js2c.py',
1810 '<@(v8_extra_library_files)',
1811 ],
1812 'outputs': [
1813 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
1814 ],
1815 'action': [
1816 'python',
1817 '../../tools/js2c.py',
1818 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
1819 'EXTRAS',
1820 '<@(v8_extra_library_files)',
1821 ],
1822 'conditions': [
1823 [ 'v8_use_external_startup_data==1', {
1824 'outputs': ['<@(libraries_extras_bin_file)'],
1825 'action': [
1826 '--startup_blob', '<@(libraries_extras_bin_file)',
1827 ],
1828 }],
1829 ],
1830 },
1805 ], 1831 ],
1806 }, 1832 },
1807 { 1833 {
1808 'target_name': 'postmortem-metadata', 1834 'target_name': 'postmortem-metadata',
1809 'type': 'none', 1835 'type': 'none',
1810 'variables': { 1836 'variables': {
1811 'heapobject_files': [ 1837 'heapobject_files': [
1812 '../../src/objects.h', 1838 '../../src/objects.h',
1813 '../../src/objects-inl.h', 1839 '../../src/objects-inl.h',
1814 ], 1840 ],
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 }], 1877 }],
1852 ['want_separate_host_toolset==1', { 1878 ['want_separate_host_toolset==1', {
1853 'toolsets': ['host'], 1879 'toolsets': ['host'],
1854 }, { 1880 }, {
1855 'toolsets': ['target'], 1881 'toolsets': ['target'],
1856 }], 1882 }],
1857 ], 1883 ],
1858 }, 1884 },
1859 ], 1885 ],
1860 } 1886 }
OLDNEW
« no previous file with comments | « src/startup-data-util.cc ('k') | tools/js2c.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698