605148cc7e0fe8d4432791d7148e01da13c1958d
[feed/packages.git] / lang / node / patches / 204-v8_gyp.patch
1 --- a/tools/v8_gypfiles/v8.gyp
2 +++ b/tools/v8_gypfiles/v8.gyp
3 @@ -73,6 +73,7 @@
4 ],
5 'hard_dependency': 1,
6 'direct_dependent_settings': {
7 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
8 'include_dirs': [
9 '<(SHARED_INTERMEDIATE_DIR)',
10 ],
11 @@ -194,6 +195,7 @@
12 '<@(torque_outputs_cc)',
13 '<@(torque_outputs_inc)',
14 ],
15 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
16 'include_dirs': [
17 '<(SHARED_INTERMEDIATE_DIR)',
18 ],
19 @@ -215,6 +217,7 @@
20 'sources': [
21 '<(generate_bytecode_builtins_list_output)',
22 ],
23 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
24 'include_dirs': [
25 '<(generate_bytecode_output_root)',
26 '<(SHARED_INTERMEDIATE_DIR)',
27 @@ -252,6 +255,7 @@
28 'sources': [
29 '<(V8_ROOT)/src/init/setup-isolate-full.cc',
30 ],
31 + 'include_dirs': [ '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
32 }, # v8_init
33 {
34 'target_name': 'v8_initializers',
35 @@ -263,9 +267,11 @@
36 'v8_shared_internal_headers',
37 'v8_pch',
38 ],
39 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
40 'include_dirs': [
41 '<(SHARED_INTERMEDIATE_DIR)',
42 '<(generate_bytecode_output_root)',
43 + '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
44 ],
45 'sources': [
46 '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_initializers.*?sources = ")',
47 @@ -694,6 +700,7 @@
48 'toolsets': ['host', 'target'],
49 'direct_dependent_settings': {
50 'sources': ['<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources = ")'],
51 + 'include_dirs': [ '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
52 'conditions': [
53 ['v8_target_arch=="ia32"', {
54 'sources': [
55 @@ -802,6 +809,8 @@
56 'target_name': 'v8_turboshaft',
57 'type': 'static_library',
58 'toolsets': ['host', 'target'],
59 + 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
60 + 'include_dirs': [ '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
61 'dependencies': [
62 'generate_bytecode_builtins_list',
63 'run_torque',
64 @@ -826,6 +835,7 @@
65 'run_torque',
66 'v8_maybe_icu',
67 ],
68 + 'include_dirs': [ '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
69 'conditions': [
70 ['(is_component_build and not v8_optimized_debug and v8_enable_fast_mksnapshot) or v8_enable_turbofan==0', {
71 'dependencies': [
72 @@ -866,6 +876,7 @@
73 ],
74 'includes': ['inspector.gypi'],
75 'direct_dependent_settings': {
76 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
77 'include_dirs': [
78 '<(generate_bytecode_output_root)',
79 '<(SHARED_INTERMEDIATE_DIR)',
80 @@ -1484,6 +1495,7 @@
81 }],
82 ],
83 'direct_dependent_settings': {
84 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
85 'include_dirs': [
86 '<(V8_ROOT)/include',
87 ],
88 @@ -1504,6 +1516,7 @@
89 {
90 'target_name': 'bytecode_builtins_list_generator',
91 'type': 'executable',
92 + 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
93 'conditions': [
94 ['want_separate_host_toolset', {
95 'toolsets': ['host'],
96 @@ -1532,6 +1545,9 @@
97 {
98 'target_name': 'mksnapshot',
99 'type': 'executable',
100 + 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
101 + 'library_dirs':[ '../../../../staging_dir/hostpkg/share/icu/current/lib' ],
102 + 'include_dirs': [ '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
103 'dependencies': [
104 'v8_base_without_compiler',
105 'v8_compiler_for_mksnapshot',
106 @@ -1559,6 +1575,7 @@
107 {
108 'target_name': 'torque',
109 'type': 'executable',
110 + 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
111 'dependencies': [
112 'torque_base',
113 # "build/win:default_exe_manifest",
114 @@ -1601,6 +1618,7 @@
115 {
116 'target_name': 'torque-language-server',
117 'type': 'executable',
118 + 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
119 'conditions': [
120 ['want_separate_host_toolset', {
121 'toolsets': ['host'],
122 @@ -1632,6 +1650,8 @@
123 {
124 'target_name': 'gen-regexp-special-case',
125 'type': 'executable',
126 + 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
127 + 'library_dirs':[ '../../../../staging_dir/hostpkg/share/icu/current/lib' ],
128 'dependencies': [
129 'v8_libbase',
130 # "build/win:default_exe_manifest",
131 @@ -1850,6 +1870,7 @@
132 }],
133 ],
134 'direct_dependent_settings': {
135 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
136 'include_dirs': [
137 '<(V8_ROOT)/include',
138 ],
139 @@ -1971,15 +1992,19 @@
140 }],
141 ],
142 'direct_dependent_settings': {
143 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
144 'include_dirs': [
145 '<(V8_ROOT)/third_party/zlib',
146 '<(V8_ROOT)/third_party/zlib/google',
147 + '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
148 ],
149 },
150 'defines': [ 'ZLIB_IMPLEMENTATION' ],
151 + 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
152 'include_dirs': [
153 '<(V8_ROOT)/third_party/zlib',
154 '<(V8_ROOT)/third_party/zlib/google',
155 + '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
156 ],
157 'sources': [
158 '<(V8_ROOT)/third_party/zlib/adler32.c',