From 2e15638e451720e7fce8c285920b3b492c634d21 Mon Sep 17 00:00:00 2001 From: Rachel Date: Sat, 6 Jan 2024 21:02:09 -0800 Subject: [PATCH] Integrate constgen as a subproject --- .gitignore | 1 + subprojects/constgen.wrap | 5 +++++ tools/meson.build | 6 ++++++ 3 files changed, 12 insertions(+) create mode 100644 subprojects/constgen.wrap diff --git a/.gitignore b/.gitignore index b1400fa1a7..3a72332d1d 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ /subprojects/libpng-*/ /subprojects/zlib-*/ /subprojects/packagecache +/subprojects/constgen/ # CLion folders .idea/ diff --git a/subprojects/constgen.wrap b/subprojects/constgen.wrap new file mode 100644 index 0000000000..31272a0225 --- /dev/null +++ b/subprojects/constgen.wrap @@ -0,0 +1,5 @@ +[wrap-git] +url = https://github.com/lhearachel/constgen.git +revision = meson +depth = 1 +directory = constgen diff --git a/tools/meson.build b/tools/meson.build index 97754c1d0a..5444fa698a 100644 --- a/tools/meson.build +++ b/tools/meson.build @@ -18,3 +18,9 @@ if not nitrogfx_exe.found() subproject('nitrogfx', default_options: 'native=true') nitrogfx_exe = find_program('nitrogfx', native: true) endif + +constgen_py = find_program('constgen_py', native: true, required: false) +if not constgen_py.found() + subproject('constgen') + constgen_py = find_program('constgen_py', native: true) +endif