Skip to content

Commit

Permalink
simplify gyp file
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Oct 26, 2024
1 parent f763868 commit 899b1c6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@
"targets": [{
"target_name": "getargv_native",
"sources": [ "src/getargv.c" ],
"defines": [ "_PID_MAX=<!@(man setaudit_addr | egrep -oe 'PID_MAX.*[0-9]+' | awk -F'[^0-9]' '{print $NF}')" ],
"include_dirs": [
"<!@(pkg-config getargv --cflags-only-I | sed s/-I//g)",
],
"defines": [ "_PID_MAX=<!@(man -w setaudit_addr | xargs grep -Eoe 'PID_MAX \([0-9]+\)' | tr -Cd '0-9')" ],
"include_dirs": [ "<!@(pkg-config getargv --cflags-only-I | sed s/-I//g)" ],
"link_settings": {
"libraries": [
"<!@(pkg-config getargv --libs)",
]
"libraries": [ "<!@(pkg-config getargv --libs)" ]
},
"xcode_settings": {
"MACOSX_DEPLOYMENT_TARGET": "10.7"
Expand Down

0 comments on commit 899b1c6

Please sign in to comment.