summaryrefslogtreecommitdiff
path: root/tools/build/src/tools/types/cpp.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/src/tools/types/cpp.py')
-rw-r--r--tools/build/src/tools/types/cpp.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/build/src/tools/types/cpp.py b/tools/build/src/tools/types/cpp.py
new file mode 100644
index 000000000..a6703255c
--- /dev/null
+++ b/tools/build/src/tools/types/cpp.py
@@ -0,0 +1,13 @@
+# Copyright David Abrahams 2004. Distributed under the Boost
+# Software License, Version 1.0. (See accompanying
+# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+from b2.build import type
+
+def register ():
+ type.register_type('CPP', ['cpp', 'cxx', 'cc'])
+ type.register_type('H', ['h'])
+ type.register_type('HPP', ['hpp'], 'H')
+ type.register_type('C', ['c'])
+
+register ()