-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
82 lines (82 loc) · 2.2 KB
/
binding.gyp
File metadata and controls
82 lines (82 loc) · 2.2 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
{
"targets": [{
"target_name": "node-qt",
"sources": [
"src/qt/binding.cpp",
"src/qt/QApplicationWrapper.cpp",
"src/qt/QWidgetWrapper.cpp",
"src/qt/QLabelWrapper.cpp",
"src/qt/QLineEditWrapper.cpp",
"src/qt/QTableViewWrapper.cpp",
"src/qt/QHBoxLayoutWrapper.cpp",
"src/qt/QVBoxLayoutWrapper.cpp",
"src/qt/QPushButtonWrapper.cpp"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
"libraries": [],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
],
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "14.0"
},
"msvs_settings": {
"VCCLCompilerTool": { "ExceptionHandling": 1 }
},
"conditions": [
['OS=="mac"', {
"variables": {
"qt_prefix": "<!(brew --prefix qt)"
},
"include_dirs": [
"/opt/homebrew/include",
"<(qt_prefix)/lib/QtCore.framework/Headers",
"<(qt_prefix)/lib/QtGui.framework/Headers",
"<(qt_prefix)/lib/QtWidgets.framework/Headers"
],
"libraries": [
"-F<(qt_prefix)/lib",
"-framework QtWidgets",
"-framework QtGui",
"-framework QtCore"
],
"cflags+": ["-fvisibility=hidden"]
}],
['OS=="linux"', {
"include_dirs": [
"<!@(pkg-config --cflags-only-I Qt6Core Qt6Gui Qt6Widgets | sed 's/-I//g')"
],
"libraries": [
"<!@(pkg-config --libs Qt6Core Qt6Gui Qt6Widgets)"
]
}],
['OS=="win"', {
"variables": {
"qt_headers": "<!(qmake -query QT_INSTALL_HEADERS)",
"qt_libs": "<!(qmake -query QT_INSTALL_LIBS)"
},
"include_dirs": [
"<(qt_headers)/QtCore",
"<(qt_headers)/QtGui",
"<(qt_headers)/QtWidgets"
],
"libraries": [
"-L<(qt_libs)",
"-lQt6Core",
"-lQt6Gui",
"-lQt6Widgets"
]
}]
]
},
{
"target_name": "nothing",
"sources": []
}]
}