Merge pull request #2 from Nomura-RH/master

Add meson build files
This commit is contained in:
Akira Akashi 2023-08-01 18:11:24 +02:00 committed by GitHub
commit 2b6695b0b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

24
meson.build Normal file
View File

@ -0,0 +1,24 @@
project('nitrogfx', 'c')
native = get_option('native')
libpng_dep = dependency('libpng', native: native)
nitrogfx_exe = executable('nitrogfx',
sources: [
'main.c',
'convert_png.c',
'gfx.c',
'jasc_pal.c',
'lz.c',
'rl.c',
'util.c',
'font.c',
'huff.c',
'json.c',
'cJSON.c',
],
dependencies: libpng_dep,
native: native,
install: true
)

1
meson_options.txt Normal file
View File

@ -0,0 +1 @@
option('native', type : 'boolean', value : false, description: 'Force native compilation, even in a cross-compilation setup')