Set up the macOS dependencies; I found it by accident :V Also removed the independent temporary dependency variables.

This commit is contained in:
Pietro Gagliardi 2019-03-22 22:46:36 -04:00
parent a440b174f7
commit 035139a1e9
1 changed files with 5 additions and 5 deletions

View File

@ -60,18 +60,18 @@ if libui_OS == 'windows'
# TODO c_winlibs and cpp_winlibs are the windows libraries # TODO c_winlibs and cpp_winlibs are the windows libraries
# user32 kernel32 gdi32 comctl32 uxtheme msimg32 comdlg32 d2d1 dwrite ole32 oleaut32 oleacc uuid windowscodecs # user32 kernel32 gdi32 comctl32 uxtheme msimg32 comdlg32 d2d1 dwrite ole32 oleaut32 oleacc uuid windowscodecs
elif libui_OS == 'darwin' elif libui_OS == 'darwin'
# TODO libraries libui_deps += [dependency('appleframeworks',
# "-framework Foundation" "-framework AppKit" modules: ['Foundation', 'AppKit'],
required: true)]
libui_soversion = 'A' libui_soversion = 'A'
# the / is required by some older versions of OS X # the / is required by some older versions of OS X
libui_rpath = '@executable_path/' libui_rpath = '@executable_path/'
# TODO min version 10.8 # TODO min version 10.8
else else
gtk = dependency('gtk+-3.0', libui_deps += [dependency('gtk+-3.0',
version: '>=3.10.0', version: '>=3.10.0',
method: 'pkg-config', method: 'pkg-config',
required: true) required: true)]
libui_deps += [gtk]
libui_soversion = '0' libui_soversion = '0'
libui_rpath = '$ORIGIN' libui_rpath = '$ORIGIN'
endif endif