Commit f86f275f authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Add (mostly Chromium-compatible) V8_OS_* defines to v8.gyp.

R=jkummerow@chromium.org, svenpanne@chromium.org

Review URL: https://codereview.chromium.org/23283010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16238 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent bd30d3aa
...@@ -687,6 +687,10 @@ ...@@ -687,6 +687,10 @@
}], }],
], ],
}, },
'defines': [
'V8_OS_LINUX=1',
'V8_OS_POSIX=1'
],
'sources': [ ### gcmole(os:linux) ### 'sources': [ ### gcmole(os:linux) ###
'../../src/platform-linux.cc', '../../src/platform-linux.cc',
'../../src/platform-posix.cc' '../../src/platform-posix.cc'
...@@ -704,16 +708,29 @@ ...@@ -704,16 +708,29 @@
['host_os=="mac"', { ['host_os=="mac"', {
'target_conditions': [ 'target_conditions': [
['_toolset=="host"', { ['_toolset=="host"', {
'defines': [
'V8_OS_BSD=1',
'V8_OS_MACOSX=1',
'V8_OS_POSIX=1'
],
'sources': [ 'sources': [
'../../src/platform-macos.cc' '../../src/platform-macos.cc'
] ]
}, { }, {
'defines': [
'V8_OS_LINUX=1',
'V8_OS_POSIX=1'
],
'sources': [ 'sources': [
'../../src/platform-linux.cc' '../../src/platform-linux.cc'
] ]
}], }],
], ],
}, { }, {
'defines': [
'V8_OS_LINUX=1',
'V8_OS_POSIX=1'
],
'sources': [ 'sources': [
'../../src/platform-linux.cc' '../../src/platform-linux.cc'
] ]
...@@ -722,6 +739,11 @@ ...@@ -722,6 +739,11 @@
}, },
], ],
['OS=="freebsd"', { ['OS=="freebsd"', {
'defines': [
'V8_OS_BSD=1',
'V8_OS_FREEBSD=1',
'V8_OS_POSIX=1'
],
'link_settings': { 'link_settings': {
'libraries': [ 'libraries': [
'-L/usr/local/lib -lexecinfo', '-L/usr/local/lib -lexecinfo',
...@@ -733,6 +755,11 @@ ...@@ -733,6 +755,11 @@
} }
], ],
['OS=="openbsd"', { ['OS=="openbsd"', {
'defines': [
'V8_OS_BSD=1',
'V8_OS_OPENBSD=1',
'V8_OS_POSIX=1'
],
'link_settings': { 'link_settings': {
'libraries': [ 'libraries': [
'-L/usr/local/lib -lexecinfo', '-L/usr/local/lib -lexecinfo',
...@@ -744,6 +771,11 @@ ...@@ -744,6 +771,11 @@
} }
], ],
['OS=="netbsd"', { ['OS=="netbsd"', {
'defines': [
'V8_OS_BSD=1',
'V8_OS_NETBSD=1',
'V8_OS_POSIX=1'
],
'link_settings': { 'link_settings': {
'libraries': [ 'libraries': [
'-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lexecinfo', '-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lexecinfo',
...@@ -755,6 +787,10 @@ ...@@ -755,6 +787,10 @@
} }
], ],
['OS=="solaris"', { ['OS=="solaris"', {
'defines': [
'V8_OS_POSIX=1',
'V8_OS_SOLARIS=1'
],
'link_settings': { 'link_settings': {
'libraries': [ 'libraries': [
'-lsocket -lnsl', '-lsocket -lnsl',
...@@ -766,6 +802,11 @@ ...@@ -766,6 +802,11 @@
} }
], ],
['OS=="mac"', { ['OS=="mac"', {
'defines': [
'V8_OS_BSD=1',
'V8_OS_MACOSX=1',
'V8_OS_POSIX=1'
],
'sources': [ 'sources': [
'../../src/platform-macos.cc', '../../src/platform-macos.cc',
'../../src/platform-posix.cc' '../../src/platform-posix.cc'
...@@ -782,11 +823,18 @@ ...@@ -782,11 +823,18 @@
}, },
'conditions': [ 'conditions': [
['build_env=="Cygwin"', { ['build_env=="Cygwin"', {
'defines': [
'V8_OS_CYGWIN=1',
'V8_OS_POSIX=1'
],
'sources': [ 'sources': [
'../../src/platform-cygwin.cc', '../../src/platform-cygwin.cc',
'../../src/platform-posix.cc', '../../src/platform-posix.cc',
], ],
}, { }, {
'defines': [
'V8_OS_WIN=1'
],
'sources': [ 'sources': [
'../../src/platform-win32.cc', '../../src/platform-win32.cc',
'../../src/win32-math.h', '../../src/win32-math.h',
...@@ -798,6 +846,9 @@ ...@@ -798,6 +846,9 @@
'libraries': [ '-lwinmm', '-lws2_32' ], 'libraries': [ '-lwinmm', '-lws2_32' ],
}, },
}, { }, {
'defines': [
'V8_OS_WIN=1'
],
'sources': [ 'sources': [
'../../src/platform-win32.cc', '../../src/platform-win32.cc',
'../../src/win32-math.h', '../../src/win32-math.h',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment