Merge pull request #3 from Nomura-RH/master

Fix cross-compiling in Meson with 'native' option on
This commit is contained in:
Akira Akashi 2023-08-02 05:53:49 +02:00 committed by GitHub
commit dca044e6c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
project('nitrogfx', 'c') project('nitrogfx', 'c')
native = get_option('native') native = get_option('native')
install = native and meson.is_cross_build() ? false : true
libpng_dep = dependency('libpng', native: native) libpng_dep = dependency('libpng', native: native)
@ -20,5 +21,5 @@ nitrogfx_exe = executable('nitrogfx',
], ],
dependencies: libpng_dep, dependencies: libpng_dep,
native: native, native: native,
install: true install: install
) )