mirror of
https://review.haiku-os.org/haiku
synced 2025-01-23 06:47:22 +01:00
323b65468e
Bring the changes that aren't package management related and the ones that are but don't take effect as long as they are ignored by the build system into the master. Summary of changes: * Introduce private header <directories.h> with constants for a good deal of paths that should usually be retrieved via find_directory(). * Replace hard-coded paths by using find_directory() or the <directories.h> constants (e.g. in drivers and the kernel). * Add find_directory() constants needed for package management. * Add __HAIKU_ABI_NAME and B_HAIKU_ABI_NAME macros. * src/apps/deskbar: BeMenu.* -> DeskbarMenu.*, DeskBarUtils.* -> DeskbarUtils.* * Change deskbar menu settings directory from ~/config/be to ~/config/settings/deskbar. * Other smaller cleanups, changes, and fixes.
69 lines
3.0 KiB
C
69 lines
3.0 KiB
C
/*
|
|
* Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _LIBROOT_DIRECTORIES_H
|
|
#define _LIBROOT_DIRECTORIES_H
|
|
|
|
|
|
#define kGlobalBinDirectory "/bin"
|
|
#define kGlobalEtcDirectory "/etc"
|
|
#define kGlobalPackageLinksDirectory "/package-links"
|
|
#define kGlobalSystemDirectory "/system"
|
|
#define kGlobalTempDirectory "/tmp"
|
|
#define kGlobalVarDirectory "/var"
|
|
|
|
#define kAppsDirectory "/boot/apps"
|
|
#define kPreferencesDirectory "/boot/preferences"
|
|
|
|
#define kAppLocalAddonsDirectory "%A/add-ons"
|
|
#define kAppLocalLibDirectory "%A/lib"
|
|
|
|
#define kVolumeLocalSystemKernelAddonsDirectory "system/add-ons/kernel"
|
|
#define kVolumeLocalCommonNonpackagedKernelAddonsDirectory \
|
|
"common/non-packaged/add-ons/kernel"
|
|
#define kVolumeLocalCommonKernelAddonsDirectory "common/add-ons/kernel"
|
|
#define kVolumeLocalUserNonpackagedKernelAddonsDirectory \
|
|
"home/config/non-packaged/add-ons/kernel"
|
|
#define kVolumeLocalUserKernelAddonsDirectory "home/config/add-ons/kernel"
|
|
|
|
#define kSystemDirectory "/boot/system"
|
|
#define kSystemAddonsDirectory "/boot/system/add-ons"
|
|
#define kSystemAppsDirectory "/boot/system/apps"
|
|
#define kSystemBinDirectory "/boot/system/bin"
|
|
#define kSystemDataDirectory "/boot/system/data"
|
|
#define kSystemDevelopDirectory "/boot/develop"
|
|
#define kSystemLibDirectory "/boot/system/lib"
|
|
#define kSystemPackagesDirectory "/boot/system/packages"
|
|
#define kSystemPreferencesDirectory "/boot/system/preferences"
|
|
#define kSystemServersDirectory "/boot/system/servers"
|
|
|
|
#define kCommonDirectory "/boot/common"
|
|
#define kCommonAddonsDirectory "/boot/common/add-ons"
|
|
#define kCommonBinDirectory "/boot/common/bin"
|
|
#define kCommonDevelopToolsBinDirectory "/boot/develop/tools/current/bin"
|
|
#define kCommonEtcDirectory "/boot/common/settings/etc"
|
|
#define kCommonLibDirectory "/boot/common/lib"
|
|
#define kCommonPackagesDirectory "/boot/common/packages"
|
|
#define kCommonSettingsDirectory "/boot/common/settings"
|
|
#define kCommonTempDirectory "/boot/common/cache/tmp"
|
|
#define kCommonVarDirectory "/boot/common/var"
|
|
#define kCommonLogDirectory "/boot/common/var/log"
|
|
#define kCommonNonpackagedAddonsDirectory "/boot/common/non-packaged/add-ons"
|
|
#define kCommonNonpackagedBinDirectory "/boot/common/non-packaged/bin"
|
|
#define kCommonNonpackagedLibDirectory "/boot/common/non-packaged/lib"
|
|
|
|
#define kUserDirectory "/boot/home"
|
|
#define kUserConfigDirectory "/boot/home/config"
|
|
#define kUserAddonsDirectory "/boot/home/config/add-ons"
|
|
#define kUserBinDirectory "/boot/home/config/bin"
|
|
#define kUserLibDirectory "/boot/home/config/lib"
|
|
#define kUserPackagesDirectory "/boot/home/config/packages"
|
|
#define kUserSettingsDirectory "/boot/home/config/settings"
|
|
#define kUserNonpackagedAddonsDirectory "/boot/home/config/non-packaged/add-ons"
|
|
#define kUserNonpackagedBinDirectory "/boot/home/config/non-packaged/bin"
|
|
#define kUserNonpackagedLibDirectory "/boot/home/config/non-packaged/lib"
|
|
|
|
|
|
#endif // _LIBROOT_DIRECTORIES_H
|