diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-18 17:24:06 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-18 17:24:06 +0000 |
commit | 813c5f0af9d1dac32b156ef3c72b890a7cf9eab5 (patch) | |
tree | 29aa92a68feb1557c60500969d6d5aeade6a2e9b /libs/ardour/ardour/filesystem_paths.h | |
parent | 433b6651ee8450da8282330ac35cb7ec1abbab6f (diff) |
major rationalization of use of search paths. ardour now has just 4 functions used to define how external resources are located: ardour_config_search_path() (for system or user specific configuration data), ardour_data_search_path() (for machine, user and system independent data), ardour_dll_directory() (base directory where shared libraries are found) and user_config_directory(). These are now used throughout the code. the config, data and dll paths/directories can be overridden by environment variables. the user config dir is added as the first element of the first two search paths, and use selectively when searching for a few other things.
This commit re-enabes ./waf install, and it is believed that it works fully at this point (more testing likely required)
git-svn-id: svn://localhost/ardour2/branches/3.0@12326 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/filesystem_paths.h')
-rw-r--r-- | libs/ardour/ardour/filesystem_paths.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/libs/ardour/ardour/filesystem_paths.h b/libs/ardour/ardour/filesystem_paths.h index e183193cb0..120ae25f97 100644 --- a/libs/ardour/ardour/filesystem_paths.h +++ b/libs/ardour/ardour/filesystem_paths.h @@ -35,13 +35,20 @@ namespace ARDOUR { * @return the path to the directory that contains the system wide ardour * modules. */ - PBD::sys::path ardour_module_directory (); + PBD::sys::path ardour_dll_directory (); - PBD::SearchPath ardour_search_path (); - - PBD::SearchPath system_config_search_path (); + /** + * @return the search path to be used when looking for per-system + * configuration files. This may include user configuration files. + */ + PBD::SearchPath ardour_config_search_path (); - PBD::SearchPath system_data_search_path (); + /** + * @return the search path to be used when looking for data files + * that could be shared by systems (h/w and configuration independent + * files, such as icons, XML files, etc) + */ + PBD::SearchPath ardour_data_search_path (); } // namespace ARDOUR |