Commit 4f8dc51e authored by ager@chromium.org's avatar ager@chromium.org

Make component=shared_library gyp build work for Linux.

Review URL: http://codereview.chromium.org/6902128

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7751 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ccafbca6
......@@ -25,10 +25,11 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <windows.h>
#include "../include/v8.h"
#ifdef WIN32
#include <windows.h>
extern "C" {
BOOL WINAPI DllMain(HANDLE hinstDLL,
DWORD dwReason,
......@@ -37,3 +38,4 @@ BOOL WINAPI DllMain(HANDLE hinstDLL,
return TRUE;
}
}
#endif
......@@ -193,19 +193,34 @@
{
'dependencies': ['v8_nosnapshot'],
}],
['OS=="win" and component=="shared_library"', {
['component=="shared_library"', {
'type': '<(component)',
'sources': [
# Note: on non-Windows we still build this file so that gyp
# has some sources to link into the component.
'../../src/v8dll-main.cc',
],
'defines': [
'BUILDING_V8_SHARED'
'conditions': [
['OS=="win"', {
'defines': [
'BUILDING_V8_SHARED',
],
'direct_dependent_settings': {
'defines': [
'USING_V8_SHARED',
],
},
}, {
'defines': [
'V8_SHARED',
],
'direct_dependent_settings': {
'defines': [
'V8_SHARED',
],
},
}],
],
'direct_dependent_settings': {
'defines': [
'USING_V8_SHARED',
],
},
},
{
'type': 'none',
......@@ -221,9 +236,27 @@
'target_name': 'v8_snapshot',
'type': '<(library)',
'conditions': [
['OS=="win" and component=="shared_library"', {
'defines': [
'BUILDING_V8_SHARED',
['component=="shared_library"', {
'conditions': [
['OS=="win"', {
'defines': [
'BUILDING_V8_SHARED',
],
'direct_dependent_settings': {
'defines': [
'USING_V8_SHARED',
],
},
}, {
'defines': [
'V8_SHARED',
],
'direct_dependent_settings': {
'defines': [
'V8_SHARED',
],
},
}],
],
}],
],
......@@ -276,9 +309,10 @@
'cflags': ['-m32'],
'ldflags': ['-m32'],
}],
['OS=="win" and component=="shared_library"', {
['component=="shared_library"', {
'defines': [
'BUILDING_V8_SHARED',
'V8_SHARED',
],
}],
]
......@@ -708,9 +742,10 @@
'libraries': [ '-lwinmm.lib' ],
},
}],
['OS=="win" and component=="shared_library"', {
['component=="shared_library"', {
'defines': [
'BUILDING_V8_SHARED'
'BUILDING_V8_SHARED',
'V8_SHARED',
],
}],
],
......
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