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

Unified Diff: tools/gyp/v8.gyp

Issue 23283010: Add (mostly Chromium-compatible) V8_OS_* defines to v8.gyp. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Solaris is not BSD, of course. Created 7 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gyp/v8.gyp
diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp
index 66376c17df51c844def32fa1f6c022d40c595db1..37417d5f2966252772dd5e6739167355e48acae8 100644
--- a/tools/gyp/v8.gyp
+++ b/tools/gyp/v8.gyp
@@ -687,6 +687,10 @@
}],
],
},
+ 'defines': [
+ 'V8_OS_LINUX=1',
+ 'V8_OS_POSIX=1'
+ ],
'sources': [ ### gcmole(os:linux) ###
'../../src/platform-linux.cc',
'../../src/platform-posix.cc'
@@ -704,16 +708,29 @@
['host_os=="mac"', {
'target_conditions': [
['_toolset=="host"', {
+ 'defines': [
+ 'V8_OS_BSD=1',
+ 'V8_OS_MACOSX=1',
+ 'V8_OS_POSIX=1'
+ ],
'sources': [
'../../src/platform-macos.cc'
]
}, {
+ 'defines': [
+ 'V8_OS_LINUX=1',
+ 'V8_OS_POSIX=1'
+ ],
'sources': [
'../../src/platform-linux.cc'
]
}],
],
}, {
+ 'defines': [
+ 'V8_OS_LINUX=1',
+ 'V8_OS_POSIX=1'
+ ],
'sources': [
'../../src/platform-linux.cc'
]
@@ -722,6 +739,11 @@
},
],
['OS=="freebsd"', {
+ 'defines': [
+ 'V8_OS_BSD=1',
+ 'V8_OS_FREEBSD=1',
+ 'V8_OS_POSIX=1'
+ ],
'link_settings': {
'libraries': [
'-L/usr/local/lib -lexecinfo',
@@ -733,6 +755,11 @@
}
],
['OS=="openbsd"', {
+ 'defines': [
+ 'V8_OS_BSD=1',
+ 'V8_OS_OPENBSD=1',
+ 'V8_OS_POSIX=1'
+ ],
'link_settings': {
'libraries': [
'-L/usr/local/lib -lexecinfo',
@@ -744,6 +771,11 @@
}
],
['OS=="netbsd"', {
+ 'defines': [
+ 'V8_OS_BSD=1',
+ 'V8_OS_NETBSD=1',
+ 'V8_OS_POSIX=1'
+ ],
'link_settings': {
'libraries': [
'-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lexecinfo',
@@ -755,6 +787,10 @@
}
],
['OS=="solaris"', {
+ 'defines': [
+ 'V8_OS_POSIX=1',
+ 'V8_OS_SOLARIS=1'
+ ],
'link_settings': {
'libraries': [
'-lsocket -lnsl',
@@ -766,6 +802,11 @@
}
],
['OS=="mac"', {
+ 'defines': [
+ 'V8_OS_BSD=1',
+ 'V8_OS_MACOSX=1',
+ 'V8_OS_POSIX=1'
+ ],
'sources': [
'../../src/platform-macos.cc',
'../../src/platform-posix.cc'
@@ -782,11 +823,18 @@
},
'conditions': [
['build_env=="Cygwin"', {
+ 'defines': [
+ 'V8_OS_CYGWIN=1',
+ 'V8_OS_POSIX=1'
+ ],
'sources': [
'../../src/platform-cygwin.cc',
'../../src/platform-posix.cc',
],
}, {
+ 'defines': [
+ 'V8_OS_WIN=1'
+ ],
'sources': [
'../../src/platform-win32.cc',
'../../src/win32-math.h',
@@ -798,6 +846,9 @@
'libraries': [ '-lwinmm', '-lws2_32' ],
},
}, {
+ 'defines': [
+ 'V8_OS_WIN=1'
+ ],
'sources': [
'../../src/platform-win32.cc',
'../../src/win32-math.h',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698