@@ -132,6 +132,7 @@ def display_help():
132
132
'other/fix-policy-templates.patch' ,
133
133
'other/ftp-support-thorium.patch' ,
134
134
'other/thorium-2024-ui.patch' ,
135
+ 'other/GPC.patch' ,
135
136
]
136
137
for patch in patches :
137
138
relative_path = patch .replace ('other/' , '' , 1 )
@@ -164,6 +165,10 @@ def display_help():
164
165
os .chdir (cr_src_dir )
165
166
try_run (f'git apply --reject ftp-support-thorium.patch' )
166
167
168
+ print ( "\n Patching in GPC support\n " )
169
+ # Change directory to cr_src_dir and run commands
170
+ os .chdir (cr_src_dir )
171
+ try_run (f'git apply --reject GPC.patch' )
167
172
168
173
print ( "\n Patching for Thorium 2024 UI\n " )
169
174
# Change directory to cr_src_dir and run commands
@@ -233,11 +238,7 @@ def copy_woa():
233
238
def copy_avx512 ():
234
239
print ("\n Copying AVX-512 build files\n " )
235
240
copy_directory (
236
- os .path .normpath (os .path .join (thor_src_dir , 'other' , 'AVX512' , 'build' )),
237
- os .path .normpath (os .path .join (cr_src_dir , 'build' ))
238
- )
239
- copy_directory (
240
- os .path .normpath (os .path .join (thor_src_dir , 'other' , 'AVX512' , 'third_party' )),
241
+ os .path .normpath (os .path .join (thor_src_dir , 'other' , 'AVX2' , 'third_party' )),
241
242
os .path .normpath (os .path .join (cr_src_dir , 'third_party' ))
242
243
)
243
244
copy (
@@ -264,10 +265,6 @@ def copy_avx512():
264
265
# Copy AVX2 build files
265
266
def copy_avx2 ():
266
267
print ("\n Copying AVX2 build files\n " )
267
- copy_directory (
268
- os .path .normpath (os .path .join (thor_src_dir , 'other' , 'AVX2' , 'build' )),
269
- os .path .normpath (os .path .join (cr_src_dir , 'build' ))
270
- )
271
268
copy_directory (
272
269
os .path .normpath (os .path .join (thor_src_dir , 'other' , 'AVX2' , 'third_party' )),
273
270
os .path .normpath (os .path .join (cr_src_dir , 'third_party' ))
@@ -296,10 +293,6 @@ def copy_avx2():
296
293
# Copy SSE4.1 build files
297
294
def copy_sse4 ():
298
295
print ("\n Copying SSE4.1 build files\n " )
299
- copy_directory (
300
- os .path .normpath (os .path .join (thor_src_dir , 'other' , 'SSE4.1' , 'build' )),
301
- os .path .normpath (os .path .join (cr_src_dir , 'build' ))
302
- )
303
296
copy (
304
297
os .path .normpath (os .path .join (thor_src_dir , 'other' , 'SSE4.1' , 'thor_ver' )),
305
298
os .path .normpath (os .path .join (cr_src_dir , 'out' , 'thorium' ))
@@ -324,10 +317,6 @@ def copy_sse4():
324
317
# Copy SSE3 build files
325
318
def copy_sse3 ():
326
319
print ("\n Copying SSE3 build files\n " )
327
- copy_directory (
328
- os .path .normpath (os .path .join (thor_src_dir , 'other' , 'SSE3' , 'build' )),
329
- os .path .normpath (os .path .join (cr_src_dir , 'build' ))
330
- )
331
320
copy (
332
321
os .path .normpath (os .path .join (thor_src_dir , 'other' , 'SSE3' , 'thor_ver' )),
333
322
os .path .normpath (os .path .join (cr_src_dir , 'out' , 'thorium' ))
@@ -357,10 +346,6 @@ def copy_sse3():
357
346
# Copy SSE2 build files
358
347
def copy_sse2 ():
359
348
print ("\n Copying SSE2 build files\n " )
360
- copy_directory (
361
- os .path .normpath (os .path .join (thor_src_dir , 'other' , 'SSE2' , 'build' )),
362
- os .path .normpath (os .path .join (cr_src_dir , 'build' ))
363
- )
364
349
copy (
365
350
os .path .normpath (os .path .join (thor_src_dir , 'other' , 'SSE2' , 'thor_ver' )),
366
351
os .path .normpath (os .path .join (cr_src_dir , 'out' , 'thorium' ))
@@ -381,6 +366,17 @@ def copy_sse2():
381
366
if '--sse2' in sys .argv :
382
367
copy_sse2 ()
383
368
369
+ print ("\n Patching ANGLE for SSE2\n " )
370
+ copy (
371
+ os .path .normpath (os .path .join (thor_src_dir , 'other' , 'SSE2' , 'angle-lockfree.patch' )),
372
+ os .path .normpath (os .path .join (cr_src_dir , 'third_party' , 'angle' , 'src' ))
373
+ )
374
+
375
+ # Change directory to angle_dir and run commands
376
+ angle_dir = os .path .join (cr_src_dir , 'third_party' , 'angle' , 'src' )
377
+ os .chdir (angle_dir )
378
+ try_run (f'git apply --reject angle-lockfree.patch' )
379
+
384
380
385
381
print ("\n Done!\n " )
386
382
print ("\n Enjoy Thorium!\n " )
0 commit comments