mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-23 02:17:22 +00:00
Move check_functions in meson script
Move the variable to the place it is actually used.
This commit is contained in:
parent
6f487a2892
commit
d6c0054545
@ -76,10 +76,6 @@ if aoa_hid_support
|
|||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
check_functions = [
|
|
||||||
'strdup'
|
|
||||||
]
|
|
||||||
|
|
||||||
cc = meson.get_compiler('c')
|
cc = meson.get_compiler('c')
|
||||||
|
|
||||||
if not get_option('crossbuild_windows')
|
if not get_option('crossbuild_windows')
|
||||||
@ -140,6 +136,10 @@ if host_machine.system() == 'windows'
|
|||||||
dependencies += cc.find_library('ws2_32')
|
dependencies += cc.find_library('ws2_32')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
check_functions = [
|
||||||
|
'strdup',
|
||||||
|
]
|
||||||
|
|
||||||
foreach f : check_functions
|
foreach f : check_functions
|
||||||
if cc.has_function(f)
|
if cc.has_function(f)
|
||||||
define = 'HAVE_' + f.underscorify().to_upper()
|
define = 'HAVE_' + f.underscorify().to_upper()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user