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

Unified Diff: SConstruct

Issue 20177: Support for building V8 with MinGW (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/cpu-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: SConstruct
===================================================================
--- SConstruct (revision 1238)
+++ SConstruct (working copy)
@@ -42,10 +42,8 @@
},
'gcc': {
'all': {
- 'DIALECTFLAGS': ['-ansi'],
'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'],
- 'LIBS': ['pthread']
},
'mode:debug': {
'CCFLAGS': ['-g', '-O0'],
@@ -54,9 +52,19 @@
'mode:release': {
'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections', '-ffunction-sections']
},
+ 'os:linux': {
+ 'CCFLAGS': ['-ansi'],
+ },
+ 'os:macos': {
+ 'CCFLAGS': ['-ansi'],
+ },
'os:freebsd': {
- 'LIBS': ['execinfo']
+ 'CCFLAGS': ['-ansi'],
},
+ 'os:win32': {
+ 'CCFLAGS': ['-DWIN32'],
+ 'CXXFLAGS': ['-DWIN32'],
+ },
'wordsize:64': {
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
@@ -109,6 +117,9 @@
'arch:arm': {
'CPPDEFINES': ['ARM']
},
+ 'os:win32': {
+ 'WARNINGFLAGS': ['-Wno-long-long']
+ },
'disassembler:on': {
'CPPDEFINES': ['ENABLE_DISASSEMBLER']
}
@@ -175,6 +186,18 @@
'all': {
'LIBPATH': [abspath('.')]
},
+ 'os:linux': {
+ 'LIBS': ['pthread'],
+ },
+ 'os:macos': {
+ 'LIBS': ['pthread'],
+ },
+ 'os:freebsd': {
+ 'LIBS': ['execinfo', 'pthread']
+ },
+ 'os:win32': {
+ 'LIBS': ['winmm']
+ },
'wordsize:64': {
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
@@ -182,7 +205,8 @@
},
'msvc': {
'all': {
- 'CPPDEFINES': ['_HAS_EXCEPTIONS=0']
+ 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'],
+ 'LIBS': ['winmm']
},
'library:shared': {
'CPPDEFINES': ['USING_V8_SHARED']
@@ -198,12 +222,20 @@
},
'gcc': {
'all': {
- 'LIBS': ['pthread'],
'LIBPATH': ['.']
},
+ 'os:linux': {
+ 'LIBS': ['pthread'],
+ },
+ 'os:macos': {
+ 'LIBS': ['pthread'],
+ },
'os:freebsd': {
- 'LIBS': ['execinfo']
+ 'LIBS': ['execinfo', 'pthread']
},
+ 'os:win32': {
+ 'LIBS': ['winmm']
+ },
'wordsize:64': {
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
@@ -219,6 +251,7 @@
'all': {
'CCFLAGS': ['/nologo'],
'LINKFLAGS': ['/nologo'],
+ 'LIBS': ['winmm']
},
'library:shared': {
'CPPDEFINES': ['USING_V8_SHARED']
@@ -254,8 +287,25 @@
'gcc': {
'console:readline': {
'LIBS': ['readline']
+ },
+ 'os:linux': {
+ 'LIBS': ['pthread'],
+ },
+ 'os:macos': {
+ 'LIBS': ['pthread'],
+ },
+ 'os:freebsd': {
+ 'LIBS': ['pthread'],
+ },
+ 'os:win32': {
+ 'LIBS': ['winmm'],
+ },
+ },
+ 'msvc': {
+ 'all': {
+ 'LIBS': ['winmm']
}
- },
+ }
}
« no previous file with comments | « no previous file | src/cpu-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698