// The following refer to the current application.
FILE_EXE, // Path and filename of the current executable. #if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_IOS) // Prefer keys (e.g., DIR_ASSETS) that are specific to the use case as the // module location may not work as expected on some platforms. For this // reason, this key is not defined on Fuchsia. See crbug.com/1263691 for // details.
FILE_MODULE, // Path and filename of the module containing the code for // the PathService (which could differ from FILE_EXE if the // PathService were compiled into a shared object, for // example). #endif
DIR_EXE, // Directory containing FILE_EXE. #if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_IOS) // Prefer keys (e.g., DIR_ASSETS) that are specific to the use case as the // module location may not work as expected on some platforms. For this // reason, this key is not defined on Fuchsia. See crbug.com/1263691 for // details.
DIR_MODULE, // Directory containing FILE_MODULE. #endif #if !defined(MOZ_ZUCCHINI)
DIR_ASSETS, // Directory that contains application assets. #endif// !defined(MOZ_ZUCCHINI)
// The following refer to system and system user directories.
DIR_TEMP, // Temporary directory for the system and/or user.
DIR_HOME, // User's root home directory. On Windows this will look // like "C:\Users\<user>" which isn't necessarily a great // place to put files. #if !BUILDFLAG(IS_IOS) #if !defined(MOZ_ZUCCHINI)
DIR_USER_DESKTOP, // The current user's Desktop. #endif// !defined(MOZ_ZUCCHINI) #endif
// The following refer to the applications current environment.
DIR_CURRENT, // Current directory.
// The following are only for use in tests. // On some platforms, such as Android and Fuchsia, tests do not have access to // the build file system so the necessary files are bundled with the test // binary. On such platforms, these will return an appropriate path inside the // bundle.
DIR_SRC_TEST_DATA_ROOT, // The root of files in the source tree that are // made available to tests. Useful for tests that use // resources that exist in the source tree.
DIR_SOURCE_ROOT = DIR_SRC_TEST_DATA_ROOT, // Legacy name still widely used. // TODO(crbug.com/1264897): Replace // all instances and remove alias.
DIR_OUT_TEST_DATA_ROOT, // Path of build outputs available to tests. Build // output files are normally placed directly in the // build output directory on platforms that do not // "package" tests. On platforms that "package" // tests this will instead return a package-local // path to copies of the relevant files.
DIR_GEN_TEST_DATA_ROOT, // Path of generated intermediate files available to // tests. Build-intermediate files are normally // placed in the "gen" sub-directory of the build // output directory. On platforms that "package" // tests this will instead return a package-local // path to copies of the relevant files.
DIR_TEST_DATA, // Directory containing test data for //base tests. // Only for use in base_unittests. Equivalent to // DIR_SRC_TEST_DATA_ROOT + "/base/test/data".
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.