aboutsummaryrefslogtreecommitdiff
path: root/build2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-03-07 09:06:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-03-07 09:06:37 +0200
commit1845141809aa91b03718066a6f46863885a6a887 (patch)
treea3f542ec7c1781e65aa16a9b0d5c31eae4c4d757 /build2/target.hxx
parente0002617846755fb5f199f40a677e16d6f69e5ec (diff)
Add support for alternative build file/directory naming scheme
Now the build/*.build, buildfile, and .buildignore filesystem entries in a project can alternatively (but consistently) be called build2/*.build2, build2file, and .build2ignore. See a note at the beginning of the Project Structure section in the manual for details (motivation, restrictions, etc).
Diffstat (limited to 'build2/target.hxx')
-rw-r--r--build2/target.hxx19
1 files changed, 5 insertions, 14 deletions
diff --git a/build2/target.hxx b/build2/target.hxx
index d2d4b1c..c86a10b 100644
--- a/build2/target.hxx
+++ b/build2/target.hxx
@@ -1669,11 +1669,12 @@ namespace build2
search_implied (const scope&, const K&, tracer&);
// Return true if the implied buildfile is plausible for the specified
- // directory, that is, there is a buildfile in at least one of its
- // subdirectories. Note that the directory must exist.
+ // subdirectory of a project with the specified root scope. That is, there
+ // is a buildfile in at least one of its subdirectories. Note that the
+ // directory must exist.
//
static bool
- check_implied (const dir_path&);
+ check_implied (const scope& root, const dir_path&);
private:
static prerequisites_type
@@ -1813,7 +1814,7 @@ namespace build2
//
template <const char* ext>
const char*
- target_extension_fix (const target_key&);
+ target_extension_fix (const target_key&, const scope*);
template <const char* ext>
bool
@@ -1834,16 +1835,6 @@ namespace build2
string&, optional<string>&, const location&,
bool);
- // Always return NULL extension.
- //
- optional<string>
- target_extension_null (const target_key&, const scope&, const char*, bool);
-
- // Assert if called.
- //
- optional<string>
- target_extension_assert (const target_key&, const scope&, const char*, bool);
-
// Target print functions.
//