Skip to content

Commit 338686d

Browse files
StefanStojanoviclegendecas
authored andcommitted
build,win: fix Perfetto
Signed-off-by: StefanStojanovic <stefan.stojanovic@janeasystems.com>
1 parent 339753d commit 338686d

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎deps/perfetto/perfetto.gyp‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818
'sources': [
1919
'<@(perfetto_sdk_sources)',
2020
],
21+
'conditions': [
22+
['OS=="win"', {
23+
'defines': [
24+
'WIN32_LEAN_AND_MEAN',
25+
'NOMINMAX',
26+
],
27+
}],
28+
],
2129
},
2230
]
2331
}

‎node.gypi‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@
9393
[ 'OS=="linux" and target_arch=="s390x"', {
9494
'cflags': [ '-march=z14' ],
9595
}],
96+
[ 'v8_use_perfetto==1 and node_shared_perfetto=="false"', {
97+
'dependencies': [
98+
'deps/perfetto/perfetto.gyp:perfetto_sdk',
99+
],
100+
}],
96101
[ 'node_enable_d8=="true"', {
97102
'dependencies': [ 'tools/v8_gypfiles/d8.gyp:d8' ],
98103
}],

0 commit comments

Comments
 (0)