From 049112799e2bbf5d52b4f489a57b85d06e4ed8ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 7 Aug 2006 12:07:05 +0000 Subject: [PATCH] provided a fix for the build of resources, hope I didn't do bad things git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18422 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/BeOSRules | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/jam/BeOSRules b/build/jam/BeOSRules index 39b61c9ff1..814b17ea4a 100644 --- a/build/jam/BeOSRules +++ b/build/jam/BeOSRules @@ -142,6 +142,7 @@ rule ResComp # get compiler and defines for the platform local cc ; local defines ; + local localIncludesOption ; on $(1) { # use on $(1) variable values defines = $(DEFINES) ; @@ -149,14 +150,18 @@ rule ResComp if $(PLATFORM) = host { defines += $(HOST_DEFINES) ; cc = $(HOST_CC) ; + localIncludesOption = $(HOST_LOCAL_INCLUDES_OPTION) ; } else { defines += $(TARGET_DEFINES) ; cc = $(TARGET_CC) ; + localIncludesOption = $(TARGET_LOCAL_INCLUDES_OPTION) ; } } DEFINES on $(1) = $(defines) ; CCDEFS on $(1) = [ FDefines $(defines) ] ; + HDRS on $(1) = [ FIncludes $(SEARCH_SOURCE) $(SUBDIRHDRS) $(HDRS) : $(localIncludesOption) ] ; + RCHDRS on $(1) = [ FIncludes $(SEARCH_SOURCE) $(SUBDIRHDRS) $(HDRS) : "-I " ] ; CC on $(1) = $(cc) ; # set up other vars @@ -172,5 +177,5 @@ rule ResComp actions ResComp1 { $(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR) - cat $(2[2]) | $(CC) -E $(CCDEFS) - | egrep -v '^#' | $(2[1]) --auto-names -o $(1) - + cat $(2[2]) | $(CC) -E $(CCDEFS) $(HDRS) - | egrep -v '^#' | $(2[1]) $(RCHDRS) --auto-names -o $(1) - }