added gtk4, helvum

This commit is contained in:
Stargirl-chan 2022-06-03 18:00:04 +02:00 committed by Ella Stanforth
parent 7d56fe94e0
commit 1f1e2b0a64
3 changed files with 116 additions and 0 deletions

View file

@ -0,0 +1,31 @@
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -930,18 +930,26 @@
input : gtk_gresource,
output : 'gtkresources_blob.o',
command : [ld,
+ '-m', 'elf_x86_64',
'-z', 'noexecstack',
'-r',
'-b','binary',
'@INPUT@',
'-o','@OUTPUT@'])
+ gtk_resources_strip = custom_target('gtkresources_blobS.o',
+ input : gtk_resources_binary,
+ output : 'gtkresources_blobS.o',
+ command : [objcopy,
+ '--strip-all',
+ '@INPUT@',
+ '@OUTPUT@'])
+
# Rename symbol to match the one in the C file
gtk_resources_o = custom_target('gtkresources_blob2.o',
- input : gtk_resources_binary,
+ input : gtk_resources_strip,
output : 'gtkresources_blob2.o',
command : [objcopy,
- '--strip-all',
'--add-symbol','_gtk_resource_data=.data:0',
'@INPUT@',
'@OUTPUT@'])