This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
forked from nodegui/qode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qode.gyp
96 lines (96 loc) · 3.69 KB
/
qode.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
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
87
88
89
90
91
92
93
94
95
96
{
'targets': [
{
'target_name': 'qode',
'type': 'executable',
'sources': [
'src/main.cc',
'src/qode.cc',
'src/integration/node_integration.cc',
'src/integration/node_integration_linux.cc',
'src/integration/node_integration_mac.mm',
'src/integration/node_integration_win.cc',
'src/helpers/qode_helpers.cc'
],
"includes": [
'./config/qt.gypi'
],
'include_dirs': [
'.',
'node/deps/uv/include', # for uv.h
'node/src', # for node things,
],
'defines': [
'NODE_WANT_INTERNALS=1',
'HAVE_OPENSSL=1',
'HAVE_INSPECTOR=1',
'NODE_SHARED_MODE',
],
'dependencies': [
'node/node.gyp:libnode',
'node/tools/v8_gypfiles/v8.gyp:v8',
'node/tools/icu/icu-generic.gyp:icui18n',
'node/tools/icu/icu-generic.gyp:icuuc',
],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
# Generates symbols and strip the binary.
'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
'DEPLOYMENT_POSTPROCESSING': 'YES',
'STRIP_INSTALLED_PRODUCT': 'YES',
'STRIPFLAGS': '-x',
# Force loading all objects of node, otherwise some built-in modules
# won't load.
'OTHER_LDFLAGS': [
'-Wl,-force_load,<(PRODUCT_DIR)/libnode.a',
],
},
}],
['OS=="win"', {
'sources': [
'src/qode.rc',
],
'msvs_settings': {
'VCManifestTool': {
# Manifest file.
'EmbedManifest': 'true',
'AdditionalManifestFiles': 'src/qode.exe.manifest'
},
'VCLinkerTool': {
# Using 5.01 would make Windows turn on compatibility mode for
# certain win32 APIs, which would return wrong results.
'MinimumRequiredVersion': '5.02',
# A win32 GUI program use 2 and for CUI use 1.
'SubSystem': '1',
},
},
'msvs_disabled_warnings': [
# 4251,
# 4244,
],
'libraries': [
'Dbghelp.lib',
'winmm.lib',
'Ws2_32.lib',
],
}],
['OS in "linux freebsd"', {
'libraries': [
'<!@(pkg-config gtk+-3.0 --libs)',
],
'include_dirs': [
'<!@(pkg-config gtk+-3.0 --cflags-only-I | sed s/-I//g)',
],
# Force loading all objects of node, otherwise some built-in modules
# won't load.
'ldflags': [
# '-Wl,--whole-archive,<(obj_dir)/node/libnode.a',
'-Wl,--no-whole-archive',
"-Wl,-rpath,'$$ORIGIN/lib'"
],
}],
],
},
],
}