diff options
-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" + ] + } + ] + ] } ] } |