From 7aa788095588e338a3c5073a54b80175b516eacb Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 28 Jan 2006 22:02:48 +0000 Subject: [PATCH] Build mimeset for the build platform and use it for the apps we build. This fixes bug #74. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16130 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/BeOSRules | 20 +++++++++----------- src/tools/Jamfile | 3 +++ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/build/jam/BeOSRules b/build/jam/BeOSRules index 0a8bf6420b..cd5b2240bd 100644 --- a/build/jam/BeOSRules +++ b/build/jam/BeOSRules @@ -123,6 +123,15 @@ actions SetType1 rule MimeSet { # MimeSet + + Depends $(1) : mimeset ; + MimeSet1 $(1) : mimeset ; +} + +actions MimeSet1 +{ + $(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR) + $(2[1]) -f "$(1)" ; } rule ResComp @@ -144,14 +153,3 @@ actions ResComp1 $(2[1]) --auto-names -o $(1) $(2[2-]) } - -if $(OS) = BEOS -{ - -actions MimeSet -{ - mimeset -f "$(1)" ; -} - -} # if BEOS - diff --git a/src/tools/Jamfile b/src/tools/Jamfile index 22b3a84f6f..1e79f19e38 100644 --- a/src/tools/Jamfile +++ b/src/tools/Jamfile @@ -6,6 +6,7 @@ local tools = catattr copyattr listattr + mimeset rmattr settype setversion @@ -21,6 +22,8 @@ BuildPlatformMain copyattr : copyattr.cpp BuildPlatformMain listattr : listattr.cpp : $(HOST_LIBBE) ; +BuildPlatformMain mimeset : mimeset.cpp : $(HOST_LIBBE) ; + BuildPlatformMain rmattr : rmattr.cpp : $(HOST_LIBBE) ; BuildPlatformMain settype : settype.cpp : $(HOST_LIBBE) ;