From a6f7da97243cd315b19f49a431f6edd9cf27c48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sundstr=C3=B6m?= Date: Thu, 3 Mar 2011 12:58:02 +0000 Subject: [PATCH] Jam rule to add an attribute for catalog lookup of localized entry name. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40790 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/LocaleRules | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/build/jam/LocaleRules b/build/jam/LocaleRules index 2c0c4b0555..db9a05d001 100644 --- a/build/jam/LocaleRules +++ b/build/jam/LocaleRules @@ -163,3 +163,23 @@ rule DoCatalogs target : signature : sources : sourceLanguage : regexp # For the pseudo-target catkeys HAIKU_LOCALE_OUTPUT_CATKEYS += $(generatedCatalog:S=.catkeys) ; } + +rule AddCatalogEntryAttribute target +{ + # AddCatalogEntryAttribute : ; + # + # should be of the form + # "x-vnd.Haiku-App:context:string" + + CATALOG_ENTRY on $(target) = "$(2)" ; + + Depends $(target) : addattr ; + + AddCatalogEntryAttribute1 $(target) + : addattr ; +} + +actions AddCatalogEntryAttribute1 +{ + "$(2)" -t string "SYS:NAME" "$(CATALOG_ENTRY)" "$(1)" +}