mirror of
https://github.com/red031000/nitrogfx.git
synced 2025-06-19 05:35:41 -04:00
Merge pull request #3 from Nomura-RH/master
Fix cross-compiling in Meson with 'native' option on
This commit is contained in:
commit
dca044e6c1
@ -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
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user