Index: build/standalone.gypi |
diff --git a/build/common.gypi b/build/standalone.gypi |
similarity index 94% |
copy from build/common.gypi |
copy to build/standalone.gypi |
index c41b2b2b626e95ed6a606d19b589615fae0957a0..6a153df67d18d30b804ac98def1cf96b4f622d1c 100644 |
--- a/build/common.gypi |
+++ b/build/standalone.gypi |
@@ -25,6 +25,8 @@ |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+# Definitions to be used when building stand-alone V8 binaries. |
+ |
{ |
'variables': { |
'library%': 'static_library', |
@@ -53,6 +55,7 @@ |
'target_arch%': '<(target_arch)', |
'v8_target_arch%': '<(v8_target_arch)', |
'v8_enable_debugger_support%': 1, |
+ 'v8_can_use_vfp_instructions%': 'true', |
Yang
2011/08/25 11:24:03
You mentioned something about this...
Jakob Kummerow
2011/08/25 14:46:08
Done.
|
'conditions': [ |
['(v8_target_arch=="arm" and host_arch!="arm") or \ |
(v8_target_arch=="x64" and host_arch!="x64")', { |
@@ -64,21 +67,9 @@ |
}, |
'target_defaults': { |
'default_configuration': 'Debug', |
- 'conditions': [ |
- ['v8_enable_debugger_support==1', { |
- 'defines': ['ENABLE_DEBUGGER_SUPPORT',], |
- }, |
- ], |
- ], |
'configurations': { |
'Debug': { |
'cflags': [ '-g', '-O0' ], |
- 'defines': [ 'ENABLE_DISASSEMBLER', 'DEBUG', 'V8_ENABLE_CHECKS', |
- 'OBJECT_PRINT' ], |
- }, |
- 'Release': { |
- 'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections', |
- '-ffunction-sections' ], |
}, |
}, |
}, |
@@ -88,7 +79,7 @@ |
'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter', |
'-Wnon-virtual-dtor', '-pthread', '-fno-rtti', |
'-fno-exceptions', '-pedantic' ], |
- 'ldflags': [ '-pthread', ], |
+ #'ldflags': [ '-pthread', ], |
Yang
2011/08/25 11:24:03
Remove this line.
Jakob Kummerow
2011/08/25 14:46:08
Done - sort of. In reaction to your other comment,
|
'conditions': [ |
[ 'target_arch=="ia32"', { |
'cflags': [ '-m32' ], |
@@ -100,6 +91,9 @@ |
[ 'visibility=="hidden"', { |
'cflags': [ '-fvisibility=hidden' ], |
}], |
+ [ 'component=="shared_library"', { |
+ 'ldflags': [ '-pthread', ], |
+ }], |
], |
}, |
}], # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"' |