Skip to content

Commit

Permalink
Add osx libs
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Dec 3, 2023
1 parent 07e5649 commit 4ad103e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,22 @@
"-Wl,-rpath,'$$ORIGIN/../../deps-uiohook-raub/<(bin)'",
'-luiohook', '-lX11', '-lXt', '-lxcb', '-lX11-xcb', '-lxkbcommon', '-lxkbcommon-x11', '-lXtst',
],
'defines': ['__linux__'],
'defines': ['__linux__', 'USE_XKBCOMMON'],
}],
['OS=="mac"', {
'cflags_cc': ['-w'],
'libraries': [
'-Wl,-rpath,@loader_path',
'-Wl,-rpath,@loader_path/../node_modules/deps-uiohook-raub/<(bin)',
'-Wl,-rpath,@loader_path/../../deps-uiohook-raub/<(bin)',
'-luiohook',
'-luiohook', '-lobjc',
'-framework IOKit', '-framework Carbon', '-framework ApplicationServices',
],
'xcode_settings': {
'DYLIB_INSTALL_NAME_BASE': '@rpath',
},
'MACOSX_DEPLOYMENT_TARGET': '10.9',
'defines': ['__APPLE__'],
'defines': ['__APPLE__', 'USE_IOKIT=1', 'USE_OBJC=1'],
'CLANG_CXX_LIBRARY': 'libc++',
'OTHER_CFLAGS': ['-std=c++17', '-fno-exceptions'],
}],
Expand Down

0 comments on commit 4ad103e

Please sign in to comment.