diff --git a/src/build/libbe/storage/AppFileInfo.cpp b/src/build/libbe/storage/AppFileInfo.cpp index 85ac66e82d..6e938b87bd 100644 --- a/src/build/libbe/storage/AppFileInfo.cpp +++ b/src/build/libbe/storage/AppFileInfo.cpp @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/src/build/libhaikucompat/Jamfile b/src/build/libhaikucompat/Jamfile index 0383c6bc0e..3e508877bf 100644 --- a/src/build/libhaikucompat/Jamfile +++ b/src/build/libhaikucompat/Jamfile @@ -9,12 +9,29 @@ if $(TARGET_PLATFORM) = libbe_test { libbeTestSources = misc.cpp syscalls.cpp ; } +# TODO: This is a temporary kludge. We should actually build libbe_build.so +# and use it for the build tools even on BeOS compatible platforms. For the +# time being we build the classes we need (BAppFileInfo and its dependencies) +# into libhaikucompat_build.a. +local libbePatchSources ; +if $(HOST_PLATFORM) in r5 bone dano { + libbePatchSources += AppFileInfo.cpp Bitmap.cpp GraphicsDefs.cpp ; + ObjectSysHdrs $(libbePatchSources) + : [ FDirName $(HAIKU_TOP) headers build os app ] ; + ObjectSysHdrs $(libbePatchSources) + : [ FDirName $(HAIKU_TOP) headers build os interface ] ; + ObjectSysHdrs $(libbePatchSources) + : [ FDirName $(HAIKU_TOP) headers build os storage ] ; +} + BuildPlatformStaticLibrary libhaikucompat_build.a : atomic.S strcasestr.c strlcat.c strlcpy.c strnlen.c + + $(libbePatchSources) ; StaticLibrary libhaikucompat.a : @@ -30,3 +47,7 @@ SEARCH on [ FGristFiles strcasestr.c strlcat.c strlcpy.c strnlen.c ] = [ FDirName $(HAIKU_TOP) src system libroot posix string ] ; SEARCH on [ FGristFiles atomic.S ] = [ FDirName $(HAIKU_TOP) src system libroot os arch $(HOST_ARCH) ] ; +SEARCH on [ FGristFiles Bitmap.cpp GraphicsDefs.cpp ] + = [ FDirName $(HAIKU_TOP) src build libbe interface ] ; +SEARCH on [ FGristFiles AppFileInfo.cpp ] + = [ FDirName $(HAIKU_TOP) src build libbe storage ] ; diff --git a/src/tools/Jamfile b/src/tools/Jamfile index b3e81c2fbc..029d4bfc15 100644 --- a/src/tools/Jamfile +++ b/src/tools/Jamfile @@ -19,6 +19,12 @@ local tools = USES_BE_API on $(tools) = true ; +# TODO: temporary kludge +local libHaikuCompat ; +if $(HOST_PLATFORM) in r5 bone dano { + libHaikuCompat = libhaikucompat_build.a ; +} + BuildPlatformMain catattr : catattr.cpp : $(HOST_LIBBE) ; BuildPlatformMain copyattr : copyattr.cpp @@ -35,7 +41,7 @@ BuildPlatformMain mimeset : database_support.cpp UpdateMimeInfoThread.cpp MimeUpdateThread.cpp - : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) + : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(libHaikuCompat) ; BuildPlatformMain mkindex : mkindex.cpp : $(HOST_LIBBE) ; @@ -49,7 +55,7 @@ BuildPlatformMain settype : settype.cpp : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; BuildPlatformMain setversion : setversion.cpp : $(HOST_LIBBE) - $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ; + $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(libHaikuCompat) ; BuildPlatformMain xres : xres.cpp : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ;