OLD | NEW |
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 'CCFLAGS': ['-g', '-O0'], | 94 'CCFLAGS': ['-g', '-O0'], |
95 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'], | 95 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'], |
96 }, | 96 }, |
97 'mode:release': { | 97 'mode:release': { |
98 'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections', | 98 'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections', |
99 '-ffunction-sections'], | 99 '-ffunction-sections'], |
100 }, | 100 }, |
101 'os:linux': { | 101 'os:linux': { |
102 'CCFLAGS': ['-ansi'] + GCC_EXTRA_CCFLAGS, | 102 'CCFLAGS': ['-ansi'] + GCC_EXTRA_CCFLAGS, |
103 'library:shared': { | 103 'library:shared': { |
104 'CPPDEFINES': ['V8_SHARED'], | 104 'CPPDEFINES': ['V8_SHARED', 'BUILDING_V8_SHARED'], |
105 'LIBS': ['pthread'] | 105 'LIBS': ['pthread'] |
106 } | 106 } |
107 }, | 107 }, |
108 'os:macos': { | 108 'os:macos': { |
109 'CCFLAGS': ['-ansi', '-mmacosx-version-min=10.4'], | 109 'CCFLAGS': ['-ansi', '-mmacosx-version-min=10.4'], |
110 'library:shared': { | 110 'library:shared': { |
111 'CPPDEFINES': ['V8_SHARED'] | 111 'CPPDEFINES': ['V8_SHARED', 'BUILDING_V8_SHARED'], |
112 } | 112 } |
113 }, | 113 }, |
114 'os:freebsd': { | 114 'os:freebsd': { |
115 'CPPPATH' : [src_dir, '/usr/local/include'], | 115 'CPPPATH' : [src_dir, '/usr/local/include'], |
116 'LIBPATH' : ['/usr/local/lib'], | 116 'LIBPATH' : ['/usr/local/lib'], |
117 'CCFLAGS': ['-ansi'], | 117 'CCFLAGS': ['-ansi'], |
118 'LIBS': ['execinfo'] | 118 'LIBS': ['execinfo'] |
119 }, | 119 }, |
120 'os:openbsd': { | 120 'os:openbsd': { |
121 'CPPPATH' : [src_dir, '/usr/local/include'], | 121 'CPPPATH' : [src_dir, '/usr/local/include'], |
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1608 # will not work much longer. Please switch to using # | 1608 # will not work much longer. Please switch to using # |
1609 # the GYP-based build now. Instructions are at # | 1609 # the GYP-based build now. Instructions are at # |
1610 # http://code.google.com/p/v8/wiki/BuildingWithGYP. # | 1610 # http://code.google.com/p/v8/wiki/BuildingWithGYP. # |
1611 ####################################################### | 1611 ####################################################### |
1612 """ | 1612 """ |
1613 | 1613 |
1614 WarnAboutDeprecation() | 1614 WarnAboutDeprecation() |
1615 import atexit | 1615 import atexit |
1616 atexit.register(WarnAboutDeprecation) | 1616 atexit.register(WarnAboutDeprecation) |
1617 Build() | 1617 Build() |
OLD | NEW |