forked from joeferner/node-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
86 lines (86 loc) · 2.25 KB
/
Copy pathbinding.gyp
File metadata and controls
86 lines (86 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"variables": {
"arch%": "amd64", # linux JVM architecture. See $(JAVA_HOME)/jre/lib/<@(arch)/server/
'conditions': [
['target_arch=="ia32"', {
'arch%': "i386"
}]
]
},
"targets": [
{
"target_name": "nodejavabridge_bindings",
"sources": [
"src/java.cpp",
"src/javaObject.cpp",
"src/javaScope.cpp",
"src/methodCallBaton.cpp",
"src/nodeJavaBridge.cpp",
"src/utils.cpp"
],
"include_dirs": [
"$(JAVA_HOME)/include",
],
'conditions': [
['OS=="win"',
{
'actions': [
{
'action_name': 'verifyDeps',
'inputs': [
'$(JAVA_HOME)/lib/jvm.lib',
'$(JAVA_HOME)/include/jni.h',
'$(JAVA_HOME)/include/win32/jni_md.h'
],
'outputs': ['./build/depsVerified'],
'action': ['python', 'touch.py'],
'message': 'Verify Deps'
}
],
"include_dirs": [
"$(JAVA_HOME)/include/win32",
],
"libraries": [
"-l$(JAVA_HOME)/lib/jvm.lib"
]
}
],
['OS=="linux"',
{
'actions': [
{
'action_name': 'verifyDeps',
'inputs': [
'$(JAVA_HOME)/jre/lib/<(arch)/server/libjvm.so',
'$(JAVA_HOME)/include/jni.h',
'$(JAVA_HOME)/include/linux/jni_md.h'
],
'outputs': ['./build/depsVerified'],
'action': [],
'message': 'Verify Deps'
}
],
"include_dirs": [
"$(JAVA_HOME)/include/linux",
],
"libraries": [
"-L$(JAVA_HOME)/jre/lib/<(arch)/server/",
"-Wl,-rpath,$(JAVA_HOME)/jre/lib/<(arch)/server/",
"-ljvm"
]
}
],
['OS=="mac"',
{
"include_dirs": [
"/System/Library/Frameworks/JavaVM.framework/Headers",
],
"libraries": [
"-framework JavaVM"
]
}
]
]
}
]
}