Skip to content

Commit d9efa89

Browse files
committed
Let Copilot have a go at fixing the Windows build
1 parent 4e7f6a2 commit d9efa89

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/windows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
- name: Environment Information
3232
run: npx envinfo
3333

34+
- name: Generate project files
35+
run: vcbuild.bat projgen
36+
3437
- name: Build Qode binary
3538
run: node ./qode/build.js
3639
env:

node.gyp

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,62 @@
845845
}],
846846
],
847847
}, # node_core_target_name
848+
{
849+
'target_name': 'qode',
850+
'type': 'executable',
851+
852+
'defines': [
853+
'NODE_ARCH="<(target_arch)"',
854+
'NODE_PLATFORM="<(OS)"',
855+
'NODE_WANT_INTERNALS=1',
856+
],
857+
858+
'includes': [
859+
'qode/qode.gypi',
860+
],
861+
862+
'include_dirs': [
863+
'src',
864+
'deps/v8/include',
865+
'deps/postject'
866+
],
867+
868+
'dependencies': [
869+
'<(node_lib_target_name)',
870+
'deps/histogram/histogram.gyp:histogram',
871+
],
872+
873+
'msvs_settings': {
874+
'VCLinkerTool': {
875+
'GenerateMapFile': 'true',
876+
'MapExports': 'true',
877+
'RandomizedBaseAddress': 2,
878+
'DataExecutionPrevention': 2,
879+
'AllowIsolation': 'true',
880+
'StackReserveSize': 0x800000,
881+
'SubSystem': '1', # Console application
882+
},
883+
},
884+
885+
'conditions': [
886+
['OS=="win"', {
887+
'libraries': [
888+
'Dbghelp.lib',
889+
'winmm.lib',
890+
'Ws2_32.lib',
891+
'Shlwapi.lib',
892+
],
893+
}],
894+
['OS=="win" and node_shared=="true"', {
895+
'dependencies': ['generate_node_def'],
896+
'msvs_settings': {
897+
'VCLinkerTool': {
898+
'ModuleDefinitionFile': '<(PRODUCT_DIR)/<(node_core_target_name).def',
899+
},
900+
},
901+
}],
902+
],
903+
}, # qode target
848904
{
849905
'target_name': '<(node_lib_target_name)',
850906
'type': '<(node_intermediate_lib_type)',

0 commit comments

Comments
 (0)