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

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

Issue 6901090: Add support for startup data (snapshot) compression. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: The version I'll commit Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/snapshot-empty.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2011 the V8 project authors. All rights reserved. 1 # Copyright 2011 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 12 matching lines...) Expand all
23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 { 28 {
29 'variables': { 29 'variables': {
30 'use_system_v8%': 0, 30 'use_system_v8%': 0,
31 'msvs_use_common_release': 0, 31 'msvs_use_common_release': 0,
32 'gcc_version%': 'unknown', 32 'gcc_version%': 'unknown',
33 'v8_compress_startup_data%': 'false',
33 'v8_target_arch%': '<(target_arch)', 34 'v8_target_arch%': '<(target_arch)',
34 'v8_use_snapshot%': 'true', 35 'v8_use_snapshot%': 'true',
35 'v8_use_liveobjectlist%': 'false', 36 'v8_use_liveobjectlist%': 'false',
36 }, 37 },
37 'conditions': [ 38 'conditions': [
38 ['use_system_v8==0', { 39 ['use_system_v8==0', {
39 'target_defaults': { 40 'target_defaults': {
40 'defines': [ 41 'defines': [
41 'ENABLE_LOGGING_AND_PROFILING', 42 'ENABLE_LOGGING_AND_PROFILING',
42 'ENABLE_DEBUGGER_SUPPORT', 43 'ENABLE_DEBUGGER_SUPPORT',
(...skipping 26 matching lines...) Expand all
69 ], 70 ],
70 }], 71 }],
71 ['v8_use_liveobjectlist=="true"', { 72 ['v8_use_liveobjectlist=="true"', {
72 'defines': [ 73 'defines': [
73 'ENABLE_DEBUGGER_SUPPORT', 74 'ENABLE_DEBUGGER_SUPPORT',
74 'INSPECTOR', 75 'INSPECTOR',
75 'OBJECT_PRINT', 76 'OBJECT_PRINT',
76 'LIVEOBJECTLIST', 77 'LIVEOBJECTLIST',
77 ], 78 ],
78 }], 79 }],
80 ['v8_compress_startup_data=="bz2"', {
81 'defines': [
82 'COMPRESS_STARTUP_DATA_BZ2',
83 ],
84 }],
79 ], 85 ],
80 'configurations': { 86 'configurations': {
81 'Debug': { 87 'Debug': {
82 'defines': [ 88 'defines': [
83 'DEBUG', 89 'DEBUG',
84 '_DEBUG', 90 '_DEBUG',
85 'ENABLE_DISASSEMBLER', 91 'ENABLE_DISASSEMBLER',
86 'V8_ENABLE_CHECKS', 92 'V8_ENABLE_CHECKS',
87 'OBJECT_PRINT', 93 'OBJECT_PRINT',
88 ], 94 ],
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 '../../src/x64/regexp-macro-assembler-x64.cc', 650 '../../src/x64/regexp-macro-assembler-x64.cc',
645 '../../src/x64/regexp-macro-assembler-x64.h', 651 '../../src/x64/regexp-macro-assembler-x64.h',
646 '../../src/x64/stub-cache-x64.cc', 652 '../../src/x64/stub-cache-x64.cc',
647 ], 653 ],
648 }], 654 }],
649 ['OS=="linux"', { 655 ['OS=="linux"', {
650 'link_settings': { 656 'link_settings': {
651 'libraries': [ 657 'libraries': [
652 # Needed for clock_gettime() used by src/platform-linux.cc. 658 # Needed for clock_gettime() used by src/platform-linux.cc.
653 '-lrt', 659 '-lrt',
654 ]}, 660 ],
661 'conditions': [
662 ['v8_compress_startup_data=="bz2"', {
663 'libraries': [
664 '-lbz2',
665 ]}],
666 ],
667 },
655 'sources': [ 668 'sources': [
656 '../../src/platform-linux.cc', 669 '../../src/platform-linux.cc',
657 '../../src/platform-posix.cc' 670 '../../src/platform-posix.cc'
658 ], 671 ],
659 } 672 }
660 ], 673 ],
661 ['OS=="freebsd"', { 674 ['OS=="freebsd"', {
662 'link_settings': { 675 'link_settings': {
663 'libraries': [ 676 'libraries': [
664 '-L/usr/local/lib -lexecinfo', 677 '-L/usr/local/lib -lexecinfo',
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 ], 791 ],
779 'sources': [ 792 'sources': [
780 '../../src/mksnapshot.cc', 793 '../../src/mksnapshot.cc',
781 ], 794 ],
782 'conditions': [ 795 'conditions': [
783 # The ARM assembler assumes the host is 32 bits, so force building 796 # The ARM assembler assumes the host is 32 bits, so force building
784 # 32-bit host tools. 797 # 32-bit host tools.
785 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', { 798 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
786 'cflags': ['-m32'], 799 'cflags': ['-m32'],
787 'ldflags': ['-m32'], 800 'ldflags': ['-m32'],
788 }] 801 }],
802 ['v8_compress_startup_data=="bz2"', {
803 'libraries': [
804 '-lbz2',
805 ]}],
789 ] 806 ]
790 }, 807 },
791 { 808 {
792 'target_name': 'v8_shell', 809 'target_name': 'v8_shell',
793 'type': 'executable', 810 'type': 'executable',
794 'dependencies': [ 811 'dependencies': [
795 'v8' 812 'v8'
796 ], 813 ],
797 'sources': [ 814 'sources': [
798 '../../samples/shell.cc', 815 '../../samples/shell.cc',
799 ], 816 ],
800 'conditions': [ 817 'conditions': [
801 ['OS=="win"', { 818 ['OS=="win"', {
802 # This could be gotten by not setting chromium_code, if that's OK. 819 # This could be gotten by not setting chromium_code, if that's OK.
803 'defines': ['_CRT_SECURE_NO_WARNINGS'], 820 'defines': ['_CRT_SECURE_NO_WARNINGS'],
804 }], 821 }],
822 ['v8_compress_startup_data=="bz2"', {
823 'libraries': [
824 '-lbz2',
825 ]}],
805 ], 826 ],
806 }, 827 },
807 ], 828 ],
808 }, { # use_system_v8 != 0 829 }, { # use_system_v8 != 0
809 'targets': [ 830 'targets': [
810 { 831 {
811 'target_name': 'v8', 832 'target_name': 'v8',
812 'type': 'settings', 833 'type': 'settings',
813 'link_settings': { 834 'link_settings': {
814 'libraries': [ 835 'libraries': [
815 '-lv8', 836 '-lv8',
816 ], 837 ],
817 }, 838 },
818 }, 839 },
819 { 840 {
820 'target_name': 'v8_shell', 841 'target_name': 'v8_shell',
821 'type': 'none', 842 'type': 'none',
822 'dependencies': [ 843 'dependencies': [
823 'v8' 844 'v8'
824 ], 845 ],
825 }, 846 },
826 ], 847 ],
827 }], 848 }],
828 ], 849 ],
829 } 850 }
OLDNEW
« no previous file with comments | « src/snapshot-empty.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698