From bb74cb4be50b07f3e986d4f3b107bb3d6d38c8e0 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 3 Sep 2002 01:08:53 +0000 Subject: [PATCH] Incorporated libstorage.so into libopenbeos.so. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@964 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/Jamfile | 46 ++++++++++++++++------- src/kits/storage/Jamfile | 81 ---------------------------------------- 2 files changed, 33 insertions(+), 94 deletions(-) diff --git a/src/kits/Jamfile b/src/kits/Jamfile index 672fd246d6..b1a1d1abc4 100644 --- a/src/kits/Jamfile +++ b/src/kits/Jamfile @@ -1,33 +1,53 @@ SubDir OBOS_TOP src kits ; -include $(SUBDIR)/app/app.src ; -include $(SUBDIR)/interface/interface.src ; -include $(SUBDIR)/support/support.src ; +# Collect libopenbeos.so sources. +subdirs = app interface support storage ; +for subdir in $(subdirs) { + local dir = [ FDirName $(SUBDIR) $(subdir) ] ; + local file = $(subdir:S=.src) ; + include $(file:D=$(dir)) ; + UsePrivateHeaders $(subdir) ; + UsePublicHeaders $(subdir) ; + SEARCH_SOURCE += $(dir) ; +} -UsePrivateHeaders app ; -UsePrivateHeaders interface ; +UsePublicHeaders [ FDirName add-ons file_system ] ; UsePrivateHeaders shared ; -UsePrivateHeaders support ; -UsePublicHeaders app ; -UsePublicHeaders interface ; -UsePublicHeaders support ; +# Add subsubdirs to the SEARCH_SOURCE. +SEARCH_SOURCE += [ FDirName $(SUBDIR) storage mime ] ; +SEARCH_SOURCE += [ FDirName $(SUBDIR) storage sniffer ] ; SharedLibrary openbeos : - <$(SOURCE_GRIST)>app/$(APP_KIT_SOURCE) - <$(SOURCE_GRIST)>interface/$(INTERFACE_KIT_SOURCE) - <$(SOURCE_GRIST)>support/$(SUPPORT_KIT_SOURCE) + $(APP_KIT_SOURCE) + $(INTERFACE_KIT_SOURCE) + $(SUPPORT_KIT_SOURCE) + $(STORAGE_KIT_SOURCE) ; LinkSharedOSLibs libopenbeos.so : + libbeadapter.so be stdc++.r4 ; +# The adapter library we need (Storage Kit). +# +SharedLibrary beadapter : + LibBeAdapter.cpp +; +LinkSharedOSLibs libbeadapter.so : + be +; + # Note: If you want to use /boot/home/config/lib/libopenbeos.so in another # rule, use the identifier libopenbeos.so, otherwise # libopenbeos.so. -LOCATE on libopenbeos.so = /boot/home/config/lib ; +LOCATE on libopenbeos.so + libbeadapter.so = /boot/home/config/lib ; File libopenbeos.so : libopenbeos.so ; +File libbeadapter.so : libbeadapter.so ; +Includes libopenbeos.so + : libbeadapter.so ; SubInclude OBOS_TOP src kits app ; SubInclude OBOS_TOP src kits interface ; diff --git a/src/kits/storage/Jamfile b/src/kits/storage/Jamfile index 7683b3ddcf..730a74bbe5 100644 --- a/src/kits/storage/Jamfile +++ b/src/kits/storage/Jamfile @@ -1,82 +1 @@ SubDir OBOS_TOP src kits storage ; - -# The adapter library we need. - -SharedLibrary beadapter : - LibBeAdapter.cpp -; -LinkSharedOSLibs libbeadapter.so : - be -; - - -# The library containing the storage kit classes. - -UsePrivateHeaders storage ; -UsePrivateHeaders app ; - -UsePublicHeaders storage ; -UsePublicHeaders app ; -UsePublicHeaders [ FDirName add-ons file_system ] ; - -# This is something of a hack until we get around to -# compiling the sniffer code separately into an archive -# that can just be linked into libstorage.so and the -# registrar separately. -SEARCH_SOURCE += [ FDirName $(SUBDIR) sniffer ] ; -SEARCH_SOURCE += [ FDirName $(SUBDIR) mime ] ; - -SharedLibrary storage : - # storage - AppFileInfo.cpp - Directory.cpp - Entry.cpp - EntryList.cpp - File.cpp - FindDirectory.cpp - Mime.cpp - MimeType.cpp - Node.cpp - NodeInfo.cpp - OffsetFile.cpp - Path.cpp - Query.cpp - QueryPredicate.cpp - ResourcesContainer.cpp - ResourceFile.cpp - ResourceItem.cpp - Resources.cpp - ResourceStrings.cpp - Statable.cpp - SymLink.cpp - Volume.cpp - VolumeRoster.cpp - kernel_interface.POSIX.cpp - storage_support.cpp - - # storage/sniffer - Err.cpp - DisjList.cpp - Pattern.cpp - PatternList.cpp - Parser.cpp - Range.cpp - RPattern.cpp - RPatternList.cpp - Rule.cpp - - # storage/mime - Database.cpp - InstalledTypes.cpp - Supertype.cpp - SupportingApps.cpp - database_access.cpp - database_support.cpp -; -LinkSharedOSLibs libstorage.so : - libopenbeos.so - be - libbeadapter.so - stdc++.r4 -; -