Chromium Code Reviews| 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 12 matching lines...) Expand all Loading... | |
| 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 # Definitions to be used when building stand-alone V8 binaries. | 28 # Definitions to be used when building stand-alone V8 binaries. |
| 29 | 29 |
| 30 { | 30 { |
| 31 'variables': { | 31 'variables': { |
| 32 'component%': 'static_library', | 32 'component%': 'static_library', |
| 33 'clang%': 0, | |
|
Jakob Kummerow
2013/06/28 09:48:14
What's this needed for?
jochen (gone - plz use gerrit)
2013/06/28 10:09:15
it's not really needed in this patch, so I'll remo
| |
| 33 'visibility%': 'hidden', | 34 'visibility%': 'hidden', |
| 34 'v8_enable_backtrace%': 0, | 35 'v8_enable_backtrace%': 0, |
| 35 'msvs_multi_core_compile%': '1', | 36 'msvs_multi_core_compile%': '1', |
| 36 'mac_deployment_target%': '10.5', | 37 'mac_deployment_target%': '10.5', |
| 37 'variables': { | 38 'variables': { |
| 38 'variables': { | 39 'variables': { |
| 39 'variables': { | 40 'variables': { |
| 40 'conditions': [ | 41 'conditions': [ |
| 41 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ | 42 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ |
| 42 OS=="netbsd" or OS=="mac"', { | 43 OS=="netbsd" or OS=="mac"', { |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 58 'target_arch%': '<(host_arch)', | 59 'target_arch%': '<(host_arch)', |
| 59 }, | 60 }, |
| 60 'host_arch%': '<(host_arch)', | 61 'host_arch%': '<(host_arch)', |
| 61 'target_arch%': '<(target_arch)', | 62 'target_arch%': '<(target_arch)', |
| 62 'v8_target_arch%': '<(target_arch)', | 63 'v8_target_arch%': '<(target_arch)', |
| 63 }, | 64 }, |
| 64 'host_arch%': '<(host_arch)', | 65 'host_arch%': '<(host_arch)', |
| 65 'target_arch%': '<(target_arch)', | 66 'target_arch%': '<(target_arch)', |
| 66 'v8_target_arch%': '<(v8_target_arch)', | 67 'v8_target_arch%': '<(v8_target_arch)', |
| 67 'werror%': '-Werror', | 68 'werror%': '-Werror', |
| 69 | |
| 70 # .gyp files or targets should set v8_code to 1 if they build V8 specific | |
| 71 # code, as opposed to external code. This variable is used to control such | |
| 72 # things as the set of warnings to enable, and whether warnings are treated | |
| 73 # as errors. | |
| 74 'v8_code%': 0, | |
| 75 | |
| 68 'conditions': [ | 76 'conditions': [ |
| 69 ['(v8_target_arch=="arm" and host_arch!="arm") or \ | 77 ['(v8_target_arch=="arm" and host_arch!="arm") or \ |
| 70 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ | 78 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ |
| 71 (v8_target_arch=="x64" and host_arch!="x64") or \ | 79 (v8_target_arch=="x64" and host_arch!="x64") or \ |
| 72 (OS=="android")', { | 80 (OS=="android")', { |
| 73 'want_separate_host_toolset': 1, | 81 'want_separate_host_toolset': 1, |
| 74 }, { | 82 }, { |
| 75 'want_separate_host_toolset': 0, | 83 'want_separate_host_toolset': 0, |
| 76 }], | 84 }], |
| 77 ], | 85 ], |
| 78 # Default ARM variable settings. | 86 # Default ARM variable settings. |
| 79 'armv7%': 'default', | 87 'armv7%': 'default', |
| 80 'arm_neon%': 0, | 88 'arm_neon%': 0, |
| 81 'arm_fpu%': 'vfpv3', | 89 'arm_fpu%': 'vfpv3', |
| 82 'arm_float_abi%': 'default', | 90 'arm_float_abi%': 'default', |
| 83 'arm_thumb': 'default', | 91 'arm_thumb': 'default', |
| 92 | |
| 93 'conditions': [ | |
| 94 ['OS == "win"', { | |
|
Jakob Kummerow
2013/06/28 09:48:14
Please merge this into the existing 'conditions' s
jochen (gone - plz use gerrit)
2013/06/28 10:09:15
Done.
| |
| 95 'os_posix%': 0, | |
| 96 }, { | |
| 97 'os_posix%': 1, | |
| 98 }], | |
| 99 ], | |
| 84 }, | 100 }, |
| 85 'target_defaults': { | 101 'target_defaults': { |
| 102 'variables': { | |
| 103 'v8_code%': '<(v8_code)', | |
| 104 }, | |
| 86 'default_configuration': 'Debug', | 105 'default_configuration': 'Debug', |
| 87 'configurations': { | 106 'configurations': { |
| 88 'Debug': { | 107 'Debug': { |
| 89 'cflags': [ '-g', '-O0' ], | 108 'cflags': [ '-g', '-O0' ], |
| 90 }, | 109 }, |
| 91 'Release': { | 110 'Release': { |
| 92 # Xcode insists on this empty entry. | 111 # Xcode insists on this empty entry. |
| 93 }, | 112 }, |
| 94 }, | 113 }, |
| 114 'target_conditions': [ | |
| 115 ['v8_code == 0', { | |
| 116 'conditions': [ | |
| 117 ['os_posix == 1 and OS != "mac"', { | |
| 118 'cflags!': [ | |
| 119 '-Werror', | |
| 120 ], | |
| 121 }], | |
| 122 ['OS == "mac"', { | |
| 123 'xcode_settings': { | |
| 124 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror | |
| 125 }, | |
| 126 }], | |
| 127 ['OS == "win"', { | |
| 128 'msvs_settings': { | |
| 129 'VCCLCompilerTool': { | |
| 130 'WarnAsError': 'false', | |
| 131 }, | |
| 132 }, | |
| 133 }], | |
| 134 ], | |
| 135 }], | |
| 136 ], | |
| 95 }, | 137 }, |
| 96 'conditions': [ | 138 'conditions': [ |
| 97 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 139 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 98 or OS=="netbsd"', { | 140 or OS=="netbsd"', { |
| 99 'target_defaults': { | 141 'target_defaults': { |
| 100 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', | 142 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
| 101 '-pthread', '-fno-exceptions', '-pedantic' ], | 143 '-pthread', '-fno-exceptions', '-pedantic' ], |
| 102 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], | 144 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], |
| 103 'ldflags': [ '-pthread', ], | 145 'ldflags': [ '-pthread', ], |
| 104 'conditions': [ | 146 'conditions': [ |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 }, | 258 }, |
| 217 'target_conditions': [ | 259 'target_conditions': [ |
| 218 ['_type!="static_library"', { | 260 ['_type!="static_library"', { |
| 219 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 261 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 220 }], | 262 }], |
| 221 ], # target_conditions | 263 ], # target_conditions |
| 222 }, # target_defaults | 264 }, # target_defaults |
| 223 }], # OS=="mac" | 265 }], # OS=="mac" |
| 224 ], | 266 ], |
| 225 } | 267 } |
| OLD | NEW |