mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
Use system includes for includes
This commit is contained in:
parent
698fc761d9
commit
7c61c4a9c9
1 changed files with 12 additions and 12 deletions
24
meson.build
24
meson.build
|
@ -27,16 +27,16 @@ deps = [
|
||||||
qt5_dep,
|
qt5_dep,
|
||||||
dependency('mtxclient', static: true, version : '>=0.6.0', fallback: ['mtxclient', 'matrix_client_dep']),
|
dependency('mtxclient', static: true, version : '>=0.6.0', fallback: ['mtxclient', 'matrix_client_dep']),
|
||||||
dependency('blurhash'),
|
dependency('blurhash'),
|
||||||
dependency('spdlog'),
|
dependency('spdlog', include_type: 'system'),
|
||||||
dependency('lmdb'),
|
dependency('lmdb', include_type: 'system'),
|
||||||
dependency('threads'),
|
dependency('threads'),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Older cmark versions only provide the libcmark pkgconfig name, but meson only supports multiple names since 0.60.0
|
# Older cmark versions only provide the libcmark pkgconfig name, but meson only supports multiple names since 0.60.0
|
||||||
if meson.version().version_compare('>=0.60.0')
|
if meson.version().version_compare('>=0.60.0')
|
||||||
deps += dependency('cmark', 'libcmark', version: '>=0.29.0')
|
deps += dependency('cmark', 'libcmark', version: '>=0.29.0', include_type: 'system')
|
||||||
else
|
else
|
||||||
deps += dependency('cmark', version: '>=0.29.0')
|
deps += dependency('cmark', version: '>=0.29.0', include_type: 'system')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
single_app_dep = subproject('SingleApplication-3.3.0').get_variable('singleapplication_dep')
|
single_app_dep = subproject('SingleApplication-3.3.0').get_variable('singleapplication_dep')
|
||||||
|
@ -53,7 +53,7 @@ endif
|
||||||
if (not lmdbxx_dep.found()
|
if (not lmdbxx_dep.found()
|
||||||
or get_option('wrap_mode') == 'forcefallback'
|
or get_option('wrap_mode') == 'forcefallback'
|
||||||
or 'lmdbxx' in get_option('force_fallback_for'))
|
or 'lmdbxx' in get_option('force_fallback_for'))
|
||||||
lmdbxx_dep = dependency('lmdb++', fallback: 'lmdb++')
|
lmdbxx_dep = dependency('lmdb++', fallback: 'lmdb++', include_type: 'system')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if not lmdbxx_dep.found()
|
if not lmdbxx_dep.found()
|
||||||
|
@ -80,21 +80,21 @@ if (not qtkeychain_dep.found()
|
||||||
qtkeychain_proj = cmake.subproject('QtKeychain', options: qtkeychain_options)
|
qtkeychain_proj = cmake.subproject('QtKeychain', options: qtkeychain_options)
|
||||||
qtkeychain_dep = qtkeychain_proj.dependency('qt5keychain')
|
qtkeychain_dep = qtkeychain_proj.dependency('qt5keychain')
|
||||||
|
|
||||||
if target_machine.system() == 'linux' or target_machine.system() == 'freebsd' or target_machine.system() == 'netbsd' or target_machine.system() == 'openbsd' or target_machine.system() == 'dragonfly'
|
if target_machine.system() == 'linux' or target_machine.system() == 'freebsd' or target_machine.system() == 'netbsd' or target_machine.system() == 'openbsd' or target_machine.system() == 'dragonfly'
|
||||||
deps += dependency('libsecret-1', default_options: ['manpage=false', 'vapi=false', 'gtk_doc=false', 'introspection=false',]) # 'bash_completion=disabled'])
|
deps += dependency('libsecret-1', default_options: ['manpage=false', 'vapi=false', 'gtk_doc=false', 'introspection=false',], include_type: 'system') # 'bash_completion=disabled'])
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
deps += qtkeychain_dep
|
deps += qtkeychain_dep
|
||||||
|
|
||||||
sdp_dep = dependency('gstreamer-sdp-1.0', version: '>=1.18', required: get_option('voip'))
|
sdp_dep = dependency('gstreamer-sdp-1.0', version: '>=1.18', required: get_option('voip'), include_type: 'system')
|
||||||
webrtc_dep = dependency('gstreamer-webrtc-1.0', version: '>=1.18', required: get_option('voip'))
|
webrtc_dep = dependency('gstreamer-webrtc-1.0', version: '>=1.18', required: get_option('voip'), include_type: 'system')
|
||||||
if sdp_dep.found() and webrtc_dep.found()
|
if sdp_dep.found() and webrtc_dep.found()
|
||||||
deps += [sdp_dep, webrtc_dep]
|
deps += [sdp_dep, webrtc_dep]
|
||||||
add_project_arguments('-DGSTREAMER_AVAILABLE', language: 'cpp')
|
add_project_arguments('-DGSTREAMER_AVAILABLE', language: 'cpp')
|
||||||
|
|
||||||
if target_machine.system() != 'darwin'
|
if target_machine.system() != 'darwin'
|
||||||
xcb_dep = dependency('xcb', required: get_option('screenshare_x11'))
|
xcb_dep = dependency('xcb', required: get_option('screenshare_x11'), include_type: 'system')
|
||||||
xcb_ewmh_dep = dependency('xcb-ewmh', required: get_option('screenshare_x11'))
|
xcb_ewmh_dep = dependency('xcb-ewmh', required: get_option('screenshare_x11'), include_type: 'system')
|
||||||
if xcb_dep.found() and xcb_ewmh_dep.found()
|
if xcb_dep.found() and xcb_ewmh_dep.found()
|
||||||
deps += [xcb_dep, xcb_ewmh_dep]
|
deps += [xcb_dep, xcb_ewmh_dep]
|
||||||
add_project_arguments('-DXCB_AVAILABLE', language: 'cpp')
|
add_project_arguments('-DXCB_AVAILABLE', language: 'cpp')
|
||||||
|
|
Loading…
Reference in a new issue