From 3d5bd684c794867a0e76f196193f2ac4abc6f6b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 14 Aug 2022 15:04:03 +0800 Subject: Gyp include_dirs for FBSD & Linux --- binding.gyp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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" + ] + } + ] + ] } ] } -- cgit v1.2.3