summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--README.md14
-rwxr-xr-xbootstrap.sh4
-rw-r--r--ctor.cc (renamed from cppbuild.cc)10
-rw-r--r--examples/cppbuild.cc2
-rw-r--r--examples/subdir/cppbuild.cc2
-rw-r--r--src/configure.cc4
-rw-r--r--src/libctor.cc (renamed from src/libcppbuild.cc)2
-rw-r--r--src/libctor.h (renamed from src/libcppbuild.h)0
-rw-r--r--src/rebuild.cc4
-rw-r--r--src/rebuild.h2
-rw-r--r--src/task.h2
-rw-r--r--src/task_ar.cc2
-rw-r--r--src/task_cc.cc2
-rw-r--r--src/task_ld.cc2
-rw-r--r--src/task_so.cc2
-rw-r--r--src/tasks.cc2
17 files changed, 29 insertions, 29 deletions
diff --git a/.gitignore b/.gitignore
index 94dd838..4a8a9cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
drumgizmo/
build/
-cppbuild
+ctor
*.a
*.o
*.d
diff --git a/README.md b/README.md
index fea7c11..caad51d 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ tracking and so on.
Many good build-systems exists which all have their strengths and weeknesses
autotools, cmake, meson to name a few.
-`cppbuild` tries to make it possible to use all the cool features of the above
+`ctor` tries to make it possible to use all the cool features of the above
in a tool only using C++ (through the compiler).
## Getting Started: 3 Simple Steps
@@ -16,7 +16,7 @@ Step 1: Create a build configuration, in C++
A really simple example ('hello_config.cc'):
```c++
-#include "libcppbuild.h"
+#include "libctor.h"
namespace
{
@@ -42,17 +42,17 @@ REG(helloConfigs);
```
Step 2: Bootstrap the system by compiling your build configuration along with
-the libcppbuild.a static library:
+the libctor.a static library:
```sh
-g++ -std=c++17 hello_config.cc -pthread libcppbuild.a -o cppbuild
+g++ -std=c++17 hello_config.cc -pthread libctor.a -o ctor
```
-Step 3: Run cppbuild to build you application:
+Step 3: Run ctor to build you application:
```sh
-./cppbuild
+./ctor
```
Any consecutive changes to the build configuration or any of the sources will
automagically trigger a rebuild of all (and only) affected sources the next time
-cppbuild is executed.
+ctor is executed.
diff --git a/bootstrap.sh b/bootstrap.sh
index a232740..e589a2c 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,4 +1,4 @@
#!/bin/bash
echo "Bootstrapping..."
-g++ -std=c++17 -I. -Isrc -pthread src/*.cc cppbuild.cc -o cppbuild && \
-echo "Done. Now run ./cppbuild to build."
+g++ -std=c++17 -I. -Isrc -pthread src/*.cc ctor.cc -o ctor && \
+echo "Done. Now run ./ctor to build."
diff --git a/cppbuild.cc b/ctor.cc
index 5c6d885..6dbb96d 100644
--- a/cppbuild.cc
+++ b/ctor.cc
@@ -1,19 +1,19 @@
-#include "libcppbuild.h"
+#include "libctor.h"
namespace
{
-BuildConfigurations cppbuildConfigs()
+BuildConfigurations ctorConfigs()
{
return
{
{
.type = TargetType::StaticLibrary,
- .target = "libcppbuild.a",
+ .target = "libctor.a",
.sources = {
"src/build.cc",
"src/configure.cc",
"src/execute.cc",
- "src/libcppbuild.cc",
+ "src/libctor.cc",
"src/rebuild.cc",
"src/task.cc",
"src/task_ar.cc",
@@ -36,4 +36,4 @@ BuildConfigurations cppbuildConfigs()
}
// Convenience macro
-REG(cppbuildConfigs);
+REG(ctorConfigs);
diff --git a/examples/cppbuild.cc b/examples/cppbuild.cc
index d3d21be..eafac8d 100644
--- a/examples/cppbuild.cc
+++ b/examples/cppbuild.cc
@@ -1,4 +1,4 @@
-#include "libcppbuild.h"
+#include "libctor.h"
namespace
{
diff --git a/examples/subdir/cppbuild.cc b/examples/subdir/cppbuild.cc
index 03b70e6..5e5af02 100644
--- a/examples/subdir/cppbuild.cc
+++ b/examples/subdir/cppbuild.cc
@@ -1,4 +1,4 @@
-#include "../libcppbuild.h"
+#include "../libctor.h"
namespace
{
diff --git a/src/configure.cc b/src/configure.cc
index ab2f837..1598251 100644
--- a/src/configure.cc
+++ b/src/configure.cc
@@ -8,7 +8,7 @@
#include "settings.h"
#include "execute.h"
-#include "libcppbuild.h"
+#include "libctor.h"
#include "tasks.h"
std::filesystem::path configurationFile("configuration.cc");
@@ -270,7 +270,7 @@ int configure(int argc, char* argv[])
std::cout << "Writing results to: " << configurationFile.string() << "\n";
{
std::ofstream istr(configurationFile);
- istr << "#include \"libcppbuild.h\"\n\n";
+ istr << "#include \"libctor.h\"\n\n";
istr << "const std::map<std::string, std::string>& configuration()\n";
istr << "{\n";
istr << " static std::map<std::string, std::string> c =\n";
diff --git a/src/libcppbuild.cc b/src/libctor.cc
index d3d8a51..9860440 100644
--- a/src/libcppbuild.cc
+++ b/src/libctor.cc
@@ -16,7 +16,7 @@
#include <getoptpp/getoptpp.hpp>
-#include "libcppbuild.h"
+#include "libctor.h"
#include "settings.h"
#include "configure.h"
#include "rebuild.h"
diff --git a/src/libcppbuild.h b/src/libctor.h
index d0a0080..d0a0080 100644
--- a/src/libcppbuild.h
+++ b/src/libctor.h
diff --git a/src/rebuild.cc b/src/rebuild.cc
index 43c4c98..5559349 100644
--- a/src/rebuild.cc
+++ b/src/rebuild.cc
@@ -7,7 +7,7 @@
#include "execute.h"
#include "configure.h"
#include "settings.h"
-#include "libcppbuild.h"
+#include "libctor.h"
std::array<BuildConfigurationEntry, 1024> configFiles;
std::size_t numConfigFiles{0};
@@ -110,7 +110,7 @@ void recompileCheck(const Settings& settings, int argc, char* argv[],
args.push_back(location);
}
}
- args.push_back("libcppbuild.a");
+ args.push_back("libctor.a");
args.push_back("-o");
args.push_back(binFile.string());
diff --git a/src/rebuild.h b/src/rebuild.h
index bc5d889..1b29bbd 100644
--- a/src/rebuild.h
+++ b/src/rebuild.h
@@ -4,7 +4,7 @@
#include <vector>
#include <array>
-#include "libcppbuild.h"
+#include "libctor.h"
class Settings;
diff --git a/src/task.h b/src/task.h
index 98363a1..acbefb3 100644
--- a/src/task.h
+++ b/src/task.h
@@ -7,7 +7,7 @@
#include <list>
#include <memory>
-#include "libcppbuild.h"
+#include "libctor.h"
enum class State
{
diff --git a/src/task_ar.cc b/src/task_ar.cc
index 5568629..980d8b4 100644
--- a/src/task_ar.cc
+++ b/src/task_ar.cc
@@ -3,7 +3,7 @@
#include <iostream>
#include <fstream>
-#include "libcppbuild.h"
+#include "libctor.h"
#include "settings.h"
#include "execute.h"
diff --git a/src/task_cc.cc b/src/task_cc.cc
index af9cf7a..0f85bf6 100644
--- a/src/task_cc.cc
+++ b/src/task_cc.cc
@@ -3,7 +3,7 @@
#include <iostream>
#include <fstream>
-#include "libcppbuild.h"
+#include "libctor.h"
#include "settings.h"
#include "execute.h"
diff --git a/src/task_ld.cc b/src/task_ld.cc
index 91f3316..4a77c72 100644
--- a/src/task_ld.cc
+++ b/src/task_ld.cc
@@ -3,7 +3,7 @@
#include <iostream>
#include <fstream>
-#include "libcppbuild.h"
+#include "libctor.h"
#include "settings.h"
#include "execute.h"
diff --git a/src/task_so.cc b/src/task_so.cc
index eaf6a85..ca7883f 100644
--- a/src/task_so.cc
+++ b/src/task_so.cc
@@ -3,7 +3,7 @@
#include <iostream>
#include <fstream>
-#include "libcppbuild.h"
+#include "libctor.h"
#include "settings.h"
#include "execute.h"
diff --git a/src/tasks.cc b/src/tasks.cc
index 93e5a8b..2d8f46e 100644
--- a/src/tasks.cc
+++ b/src/tasks.cc
@@ -5,7 +5,7 @@
#include <iostream>
#include "settings.h"
-#include "libcppbuild.h"
+#include "libctor.h"
#include "task.h"
#include "task_cc.h"
#include "task_ld.h"