diff --git a/meson.build b/meson.build index 2e394e2e6..427f236dc 100644 --- a/meson.build +++ b/meson.build @@ -381,11 +381,6 @@ if sdl2.found() config.set('USE_SDL', 'USE_CLIENT') endif -common_deps = [zlib] -client_deps = [png, curl, sdl2] -server_deps = [] -game_deps = [zlib] - curl = dependency('libcurl', version: '>= 7.68.0', required: get_option('libcurl'), @@ -395,10 +390,13 @@ curl = dependency('libcurl', if curl.found() client_src += 'src/client/http.c' config.set10('USE_CURL', true) - client_deps += curl - game_deps += curl endif +common_deps = [zlib] +client_deps = [png, curl, sdl2] +server_deps = [] +game_deps = [zlib] + jpeg = dependency('libjpeg', required: get_option('libjpeg'), default_options: fallback_opt + [ 'jpeg-turbo=disabled', 'tests=disabled' ]