-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
57 lines (56 loc) · 1.95 KB
/
binding.gyp
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
{
"targets": [
{
'target_name': "mrzscanner",
'sources': ["src/mrzscanner.cc"],
'include_dirs': [
"include"
],
'conditions': [
['OS=="linux"', {
'defines': [
'LINUX_MRZ',
],
"cflags" : [
"-std=c++11"
],
'ldflags': [
"-Wl,-rpath,'$$ORIGIN'"
],
'libraries': [
"-lDynamsoftLabelRecognizer", "-L../lib/linux"
],
'copies': [
{
'destination': 'build/Release/',
'files': [
'./lib/linux/libDynamicPdf.so',
'./lib/linux/libDynamsoftLabelRecognizer.so',
'./lib/linux/libDynamsoftLicenseClient.so',
]
}
]
}],
['OS=="win"', {
'defines': [
'WINDOWS_MRZ',
],
'libraries': [
"-l../lib/win/DynamsoftLabelRecognizerx64.lib"
],
'copies': [
{
'destination': 'build/Release/',
'files': [
'./lib/win/DynamsoftLabelRecognizerx64.dll',
'./lib/win/DynamsoftLicenseClientx64.dll',
'./lib/win/vcomp140.dll',
'./lib/win/DynamicPdfx64.dll',
]
}
]
}]
]
}
]
}