build: Add SYS:NAME attribute to all folders handled by Tracker.

Mail and Deskbar folders are still TODO.
This commit is contained in:
Augustin Cavalier 2018-11-15 22:36:35 -05:00
parent 9283f47bec
commit a5297c5905
10 changed files with 16 additions and 21 deletions

View File

@ -2,8 +2,10 @@
# all the other definitions.
# create directories that may remain empty
AddDirectoryToHaikuImage home : home.rdef ;
AddDirectoryToHaikuImage home Desktop ;
AddDirectoryToHaikuImage home mail ;
AddDirectoryToHaikuImage home config : home-config.rdef ;
AddDirectoryToHaikuImage home config cache ;
AddDirectoryToHaikuImage home config packages ;
AddDirectoryToHaikuImage home config settings ;
@ -22,6 +24,7 @@ AddDirectoryToHaikuImage home config non-packaged add-ons Tracker ;
AddDirectoryToHaikuImage home config non-packaged add-ons Print ;
AddDirectoryToHaikuImage home config non-packaged add-ons Screen\ Savers ;
AddDirectoryToHaikuImage home config non-packaged add-ons Translators ;
AddDirectoryToHaikuImage system : system.rdef ;
AddDirectoryToHaikuImage system cache tmp ;
AddDirectoryToHaikuImage system non-packaged bin ;
AddDirectoryToHaikuImage system non-packaged data fonts ;

View File

@ -263,6 +263,9 @@ AddFilesToPackage add-ons decorators : BeDecorator ;
# the MIME DB
CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ;
# directory attributes
AddDirectoryToPackage apps : system-apps.rdef ;
AddDirectoryToPackage preferences : system-preferences.rdef ;
# Deskbar menu symlinks

View File

@ -50,6 +50,10 @@ AddFilesToPackage develop lib : libposix_error_mapper.a ;
# ABI independent stuff
# directory attributes
AddDirectoryToPackage develop : system-develop.rdef ;
# headers
AddHeaderDirectoryToPackage config ;
AddHeaderDirectoryToPackage glibc ;

View File

@ -34,34 +34,13 @@ WriteMailCatalogEntryAttribute()
# TODO: Several of the directories are read-only, so this doesn't work.
WriteTrackerCatalogEntryAttribute \
"$(finddir B_APPS_DIRECTORY)" B_APPS_DIRECTORY
WriteTrackerCatalogEntryAttribute \
"$(finddir B_COMMON_DIRECTORY)" B_COMMON_DIRECTORY
WriteTrackerCatalogEntryAttribute \
"$(finddir B_COMMON_DEVELOP_DIRECTORY)" B_COMMON_DEVELOP_DIRECTORY
WriteTrackerCatalogEntryAttribute \
"$(finddir B_USER_DIRECTORY)" B_USER_DIRECTORY
WriteTrackerCatalogEntryAttribute \
"$(finddir B_DESKTOP_DIRECTORY)" B_DESKTOP_DIRECTORY
WriteTrackerCatalogEntryAttribute \
"$(finddir B_USER_CONFIG_DIRECTORY)" B_USER_CONFIG_DIRECTORY
WriteTrackerCatalogEntryAttribute \
"$(finddir B_USER_SETTINGS_DIRECTORY)/Tracker/Tracker New Templates" \
"B_USER_SETTINGS_DIRECTORY/Tracker/Tracker New Templates"
WriteTrackerCatalogEntryAttribute \
"$(finddir B_PREFERENCES_DIRECTORY)" B_PREFERENCES_DIRECTORY
WriteTrackerCatalogEntryAttribute \
"$(finddir B_SYSTEM_DIRECTORY)" B_SYSTEM_DIRECTORY
WriteTrackerCatalogEntryAttribute \
"$(finddir B_TRASH_DIRECTORY)" B_TRASH_DIRECTORY

View File

@ -0,0 +1 @@
resource(0, "SYS:NAME") "x-vnd.Haiku-libtracker:B_USER_CONFIG_DIRECTORY:config";

View File

@ -0,0 +1 @@
resource(0, "SYS:NAME") "x-vnd.Haiku-libtracker:B_USER_DIRECTORY:home";

View File

@ -0,0 +1 @@
resource(0, "SYS:NAME") "x-vnd.Haiku-libtracker:B_APPS_DIRECTORY:apps";

View File

@ -0,0 +1 @@
resource(0, "SYS:NAME") "x-vnd.Haiku-libtracker:B_SYSTEM_DEVELOP_DIRECTORY:develop";

View File

@ -0,0 +1 @@
resource(0, "SYS:NAME") "x-vnd.Haiku-libtracker:B_PREFERENCES_DIRECTORY:preferences";

View File

@ -0,0 +1 @@
resource(0, "SYS:NAME") "x-vnd.Haiku-libtracker:B_SYSTEM_DIRECTORY:system";