From a1aa54e169c5f74106480f008856ee6c44653736 Mon Sep 17 00:00:00 2001 From: ketmar Date: Thu, 10 Feb 2011 11:51:05 +0200 Subject: [PATCH] added 'pkg-config' rule --- Jambase | 8 +++++++- doc/ChangeLog | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Jambase b/Jambase index 9edfcd4..cc12a0f 100644 --- a/Jambase +++ b/Jambase @@ -2563,7 +2563,7 @@ rule lib-config-ex { # add necessary flags to compiler and linker vars # return "tan" (non-empty string) if library is present # if $(2) != "" -- don't add flags, just check -# [ lib-config-ex "pkg-config sdl" ] +# [ lib-config "pkg-config sdl" ] rule lib-config { local cf lf hasit ; @@ -2594,6 +2594,12 @@ rule lib-config { return $(hasit) ; } +rule pkg-config { + local res ; + res = [ lib-config "pkg-config $(1)" ] ; + return res ; +} + # # Objective C vars diff --git a/doc/ChangeLog b/doc/ChangeLog index c5b6927..c6293fd 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -119,3 +119,5 @@ [+] rule set-default-subdir-locates (sets my defaults for ALL_LOCATE_XXX: _build/, etc) [+] alias for set-default-subdir-locates: set-default-target-locations ; + + [+] rule pkg-config -- 2.11.4.GIT