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