| 1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- // Because Apple refuses to update libc++ in a timely manner
- // In exchange, this in C++11 compatible...
- #include <string>
- #include <utility>
- #include <vector>
- #include "command_builder.h"
- #include "types.h"
- #define CXX "clang++"
- namespace build {
- class project {
- private:
- version vers_{version::none};
- std::string name_;
- std::vector<source_file> source_files_;
- public:
- project(int argc, char const * const * const argv);
- project & set_version(version vers);
- project & set_name(std::string const & name);
- project & add_source_file(fs::path const & file);
- int generate() const;
- private:
- std::pair<std::vector<object_file>, int> generate_objects() const;
- };
- }
|