diff --git a/meson.build b/meson.build index 5025f6e3d..5175005be 100644 --- a/meson.build +++ b/meson.build @@ -33,12 +33,14 @@ conf.set('WITH_UPDATE_CHECKER', get_option('enable_update_checker')) deps = [] deps_inc = [] +conf.set('WITH_FONTCONFIG', '0') if host_machine.system() == 'darwin' add_languages('objc', 'objcpp') add_project_arguments('-DGL_SILENCE_DEPRECATION', language: 'cpp') # meson does not currently support objcpp_std add_project_arguments('-std=c++11', language: 'objcpp') elif host_machine.system() != 'windows' + conf.set('WITH_FONTCONFIG', '1') deps += dependency('fontconfig') endif diff --git a/src/meson.build b/src/meson.build index 34d5da291..e01353ae4 100644 --- a/src/meson.build +++ b/src/meson.build @@ -171,7 +171,7 @@ if host_machine.system() == 'darwin' 'osx/retina_helper.mm', 'osx/scintilla_ime.mm', ] -else +elif conf.get('WITH_FONTCONFIG') == '1' aegisub_src += 'font_file_lister_fontconfig.cpp' endif