This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch efl
in repository laugh.
View the commit online.
commit fd759fecdfc29e3fc49b0188562ea4054f426d59
Author: melerva <[email protected]>
AuthorDate: Mon Sep 22 12:08:09 2025 -0400
Made xxd -i a generator for ease of use
---
meson.build | 17 ++++++-----------
src/modules/laugh_ui.c | 7 ++++++-
src/modules/mod_packagegc.c | 7 ++++++-
3 files changed, 18 insertions(+), 13 deletions(-)
diff --git a/meson.build b/meson.build
index d70b5ff..43cbe44 100644
--- a/meson.build
+++ b/meson.build
@@ -6,7 +6,10 @@ project('laugh', 'c',
version: '0.0.0',
)
-prog_xxd = find_program('xxd')
+gen_xxd = generator(find_program('xxd'),
+ output: '@[email protected]',
+ arguments: ['-i', '@INPUT@', '@OUTPUT@'],
+)
lua_dep = dependency('lua-5.4', required: true)
physfs_dep = dependency('physfs', required: true)
@@ -31,11 +34,7 @@ laugh_sources = [
'src/modules/laugh_ui.c',
'src/packages.c',
'src/require.c',
- custom_target('laugh_ui.lua.h',
- output: 'laugh_ui.lua.h',
- input: 'src/modules/laugh_ui.lua',
- command: [prog_xxd, '-i', '-n', 'laugh_ui_s', '@INPUT@', '@OUTPUT@'],
- ),
+ gen_xxd.process('src/modules/laugh_ui.lua'),
]
conf = configuration_data()
@@ -55,11 +54,7 @@ endif
if get_option('mod_packagegc')
conf.set('LAUGH_MOD_PACKAGEGC', true)
laugh_sources += 'src/modules/mod_packagegc.c'
- laugh_sources += custom_target('mod_packagegc.lua.h',
- output: 'mod_packagegc.lua.h',
- input: 'src/modules/mod_packagegc.lua',
- command: [prog_xxd, '-i', '-n', 'mod_packagegc_s', '@INPUT@', '@OUTPUT@'],
- )
+ laugh_sources += gen_xxd.process('src/modules/mod_packagegc.lua')
endif
configure_file(output: 'config.h', configuration: conf)
diff --git a/src/modules/laugh_ui.c b/src/modules/laugh_ui.c
index c0c85a1..4849334 100644
--- a/src/modules/laugh_ui.c
+++ b/src/modules/laugh_ui.c
@@ -9,7 +9,12 @@ int luaopen_laugh_ui(lua_State *const L) {
#include "laugh_ui.lua.h"
#undef int
#undef unsigned
- luaL_loadbuffer(L, laugh_ui_s, laugh_ui_s_len, "laugh.ui");
+ luaL_loadbuffer(
+ L,
+ ___src_modules_laugh_ui_lua,
+ ___src_modules_laugh_ui_lua_len,
+ "laugh.ui"
+ );
lua_call(L, 0, 1);
return 1;
}
diff --git a/src/modules/mod_packagegc.c b/src/modules/mod_packagegc.c
index 536804b..5ebf9fa 100644
--- a/src/modules/mod_packagegc.c
+++ b/src/modules/mod_packagegc.c
@@ -9,7 +9,12 @@ int luaopen_mod_packagegc(lua_State *const L) {
#include "mod_packagegc.lua.h"
#undef int
#undef unsigned
- luaL_loadbuffer(L, mod_packagegc_s, mod_packagegc_s_len, "mod_packagegc");
+ luaL_loadbuffer(
+ L,
+ ___src_modules_mod_packagegc_lua,
+ ___src_modules_mod_packagegc_lua_len,
+ "mod_packagegc"
+ );
lua_call(L, 0, 1);
return 1;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.