Skip to content

Commit

Permalink
Meson: set objc only when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
YomikoR committed Apr 15, 2024
1 parent ece6e0d commit d559d5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
base-devel
git
libtool
mingw-w64-ucrt-x86_64-gcc-objc
mingw-w64-ucrt-x86_64-cmake
mingw-w64-ucrt-x86_64-lcms2
mingw-w64-ucrt-x86_64-meson
Expand Down
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project('ICCConvert', ['c', 'cpp', 'objc'],
project('ICCConvert', ['c', 'cpp'],
license: 'LGPL2.1+',
default_options: ['buildtype=release', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17', 'optimization=2'],
meson_version: '>=0.51.0',
Expand Down Expand Up @@ -56,6 +56,7 @@ elif host_machine.system() == 'darwin'
deps += dependency('lcms2')
dep_cocoa = dependency('appleframeworks', modules: 'Cocoa', required: false)
if dep_cocoa.found()
add_languages('objc', native: true)
auto_profile_args += '-DAUTO_PROFILE_COCOA'
deps += dep_cocoa
shared_module('iccc_cocoa', 'src/detection/cocoa.m',
Expand Down

0 comments on commit d559d5d

Please sign in to comment.