aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorMichael Fisher <mfisher@lvtk.org>2022-10-12 06:10:13 -0400
committerDavid Robillard <d@drobilla.net>2022-12-27 10:09:49 -0500
commitef2544be3f88b20401699519ff75c56b6f151700 (patch)
tree0017215370c9e2ea09529f67da98483091c873a6 /meson.build
parent729e9f264c1ee4842836aadf0d12899e11132af7 (diff)
downloadpugl-ef2544be3f88b20401699519ff75c56b6f151700.tar.gz
pugl-ef2544be3f88b20401699519ff75c56b6f151700.tar.bz2
pugl-ef2544be3f88b20401699519ff75c56b6f151700.zip
MacOS: Use appleframeworks meson dependencies
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build20
1 files changed, 7 insertions, 13 deletions
diff --git a/meson.build b/meson.build
index c3781f5..d7b171c 100644
--- a/meson.build
+++ b/meson.build
@@ -57,22 +57,15 @@ dl_dep = cc.find_library('dl', required: false)
# MacOS
if host_machine.system() == 'darwin'
- cocoa_dep = dependency(
- 'Cocoa',
- include_type: 'system',
- modules: 'foundation',
- required: false,
- )
-
- corevideo_dep = dependency(
- 'CoreVideo',
- include_type: 'system',
+ framework_deps = dependency(
+ 'appleframeworks',
+ modules: ['foundation', 'corevideo'],
required: false,
)
platform = 'mac'
platform_sources = files('src/mac.m')
- core_deps = [cocoa_dep, corevideo_dep]
+ core_deps = [framework_deps]
extension = '.m'
platform_suppressions = [
@@ -80,8 +73,9 @@ if host_machine.system() == 'darwin'
'-Wno-deprecated-declarations',
]
- add_project_arguments(platform_suppressions, language: ['c', 'objc'])
- add_project_link_arguments(['-Wl,-framework,Cocoa'], language: ['c', 'objc'])
+ mac_languages = ['c', 'objc', 'objcpp']
+ add_project_arguments(platform_suppressions, language: mac_languages)
+ add_project_link_arguments(['-Wl,-framework,Cocoa'], language: mac_languages)
# Windows
elif host_machine.system() == 'windows'