aboutsummaryrefslogtreecommitdiff
path: root/build/search
diff options
context:
space:
mode:
Diffstat (limited to 'build/search')
-rw-r--r--build/search31
1 files changed, 31 insertions, 0 deletions
diff --git a/build/search b/build/search
new file mode 100644
index 0000000..e7d2acd
--- /dev/null
+++ b/build/search
@@ -0,0 +1,31 @@
+// file : build/search -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BUILD_SEARCH
+#define BUILD_SEARCH
+
+#include <build/types>
+
+namespace build
+{
+ class target;
+ class prerequisite;
+
+ // Search for an existing target in this prerequisite's directory scope.
+ //
+ target*
+ search_existing_target (prerequisite&);
+
+ // Search for an existing file in the specified list of search paths.
+ //
+ target*
+ search_existing_file (prerequisite&, const paths&);
+
+ // Create a new target in this prerequisite's directory scope.
+ //
+ target&
+ create_new_target (prerequisite&);
+}
+
+#endif // BUILD_SEARCH