grim/gplugin

attempt to try and use github.com/frida/tinycc
draft tcc-subproject
2021-10-23, Gary Kramlich
951ea1858509
Parents dca3194601e5
Children
attempt to try and use github.com/frida/tinycc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/subprojects/libtcc.wrap Sat Oct 23 03:00:21 2021 -0500
@@ -0,0 +1,10 @@
+[wrap-git]
+directory=tinycc
+url=https://github.com/frida/tinycc
+revision=master
+depth=1
+
+[provide]
+dependency_names = libtcc
+libtcc = tcc_dep
+
--- a/tcc/meson.build Sat Oct 23 02:11:16 2021 -0500
+++ b/tcc/meson.build Sat Oct 23 03:00:21 2021 -0500
@@ -12,11 +12,7 @@
'gplugin-tcc-plugin.h',
]
- if not compiler.has_header('libtcc.h')
- error('libtcc.h not found')
- endif
-
- TCC = compiler.find_library('tcc')
+ TCC = dependency('libtcc')
gplugin_tcc = shared_library('gplugin-tcc',
GPLUGIN_TCC_SOURCES,