diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-08-14 15:04:03 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-08-14 15:04:03 +0800 |
commit | 3d5bd684c794867a0e76f196193f2ac4abc6f6b6 (patch) | |
tree | 95c573453c94ea3e00530fc75dc2ed871dba1f02 | |
parent | 0ea9e8be8a539d77215237b9b8359bb4e301a7b3 (diff) |
Gyp include_dirs for FBSD & Linux
-rw-r--r-- | binding.gyp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/binding.gyp b/binding.gyp index bad9c8a..92e7717 100644 --- a/binding.gyp +++ b/binding.gyp @@ -2,7 +2,23 @@ "targets": [ { "target_name": "pikul", - "sources": [ "pikul.c", "pikul_wrap.cxx" ] + "sources": [ "pikul.c", "pikul_wrap.cxx" ], + "conditions": [ + ['OS=="freebsd"', { + "include_dirs": [ + "/usr/local/include", + "/usr/local/include/json-c" + ] + } + ], + ['OS=="linux"', { + "include_dirs": [ + "/usr/include", + "/usr/include/json-c" + ] + } + ] + ] } ] } |