Revision: 10008
Author: [email protected]
Date: Wed Nov 16 06:35:47 2011
Log: Adding NetBSD support for scons build.
BUG=v8:1678
Review URL: http://codereview.chromium.org/8513012
Patch from Matthew Sporleder <[email protected]>.
http://code.google.com/p/v8/source/detail?r=10008
Modified:
/branches/bleeding_edge/SConstruct
/branches/bleeding_edge/tools/utils.py
=======================================
--- /branches/bleeding_edge/SConstruct Wed Aug 10 04:14:32 2011
+++ /branches/bleeding_edge/SConstruct Wed Nov 16 06:35:47 2011
@@ -129,6 +129,10 @@
'LIBPATH' : ['/usr/local/lib'],
'CCFLAGS': ['-ansi'],
},
+ 'os:netbsd': {
+ 'CPPPATH' : ['/usr/pkg/include'],
+ 'LIBPATH' : ['/usr/pkg/lib'],
+ },
'os:win32': {
'CCFLAGS': ['-DWIN32'],
'CXXFLAGS': ['-DWIN32'],
@@ -364,6 +368,9 @@
'os:win32': {
'LIBS': ['winmm', 'ws2_32'],
},
+ 'os:netbsd': {
+ 'LIBS': ['execinfo', 'pthread']
+ },
'compress_startup_data:bz2': {
'os:linux': {
'LIBS': ['bz2']
@@ -428,6 +435,9 @@
'os:win32': {
'LIBS': ['winmm', 'ws2_32']
},
+ 'os:netbsd': {
+ 'LIBS': ['execinfo', 'pthread']
+ },
'arch:arm': {
'LINKFLAGS': ARM_LINK_FLAGS
},
@@ -487,6 +497,10 @@
'os:win32': {
'LIBS': ['winmm', 'ws2_32']
},
+ 'os:netbsd': {
+ 'LIBPATH' : ['/usr/pkg/lib'],
+ 'LIBS': ['execinfo', 'pthread']
+ },
'arch:arm': {
'LINKFLAGS': ARM_LINK_FLAGS,
'armeabi:soft' : {
@@ -818,6 +832,9 @@
'os:win32': {
'LIBS': ['winmm', 'ws2_32'],
},
+ 'os:netbsd': {
+ 'LIBS': ['pthread'],
+ },
'arch:arm': {
'LINKFLAGS': ARM_LINK_FLAGS
},
@@ -951,7 +968,7 @@
'help': 'the architecture to build for'
},
'os': {
- 'values':
['freebsd', 'linux', 'macos', 'win32', 'openbsd', 'solaris', 'cygwin'],
+ 'values':
['freebsd', 'linux', 'macos', 'win32', 'openbsd', 'solaris', 'cygwin', 'netbsd'],
'guess': GuessOS,
'help': 'the os to build for'
},
=======================================
--- /branches/bleeding_edge/tools/utils.py Thu Feb 17 08:33:10 2011
+++ /branches/bleeding_edge/tools/utils.py Wed Nov 16 06:35:47 2011
@@ -61,6 +61,8 @@
return 'openbsd'
elif id == 'SunOS':
return 'solaris'
+ elif id == 'NetBSD':
+ return 'netbsd'
else:
return None
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev