diff --git a/meson.build b/meson.build index 0e5196b..b0d492a 100644 --- a/meson.build +++ b/meson.build @@ -1,3 +1,11 @@ -project('Lua-C-API-Examples', 'c') +project('Lua-C-API-Examples', 'c', + version: '0.1.0', + license: 'zlib', + meson_version: '>=0.53.0', +) +cc = meson.get_compiler('c') +system = host_machine.system() + +subdir('deps' / 'lua54') subdir('src') \ No newline at end of file diff --git a/src/meson.build b/src/meson.build index 317d375..f2cf639 100644 --- a/src/meson.build +++ b/src/meson.build @@ -79,7 +79,7 @@ stack_dump_exe = executable('07-stack-dump', '07-stack-dump.c', dependencies: lu versions_51_exe = executable('08-versions-51', '08-versions.c', dependencies: lua51_dep) versions_52_exe = executable('08-versions-52', '08-versions.c', dependencies: lua52_dep) versions_53_exe = executable('08-versions-53', '08-versions.c', dependencies: lua53_dep) -versions_54_exe = executable('08-versions-54', '08-versions.c', dependencies: lua54_dep) +versions_54_exe = executable('08-versions-54', '08-versions.c', link_with: liblua54, include_directories: lua54_headers) # ==== Example 09: newlib ==== # library('newlib', '09-newlib.c',