fixed modules
This commit is contained in:
parent
74f2ac1267
commit
0de3a8a48b
5 changed files with 3 additions and 23 deletions
|
|
@ -19,19 +19,10 @@ USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module;
|
module;
|
||||||
#include <vector>
|
|
||||||
#include <string>
|
|
||||||
#include <fstream>
|
|
||||||
#include "json.hpp"
|
#include "json.hpp"
|
||||||
#include <filesystem>
|
module Crafter.Build;
|
||||||
#include <iostream>
|
|
||||||
#include <chrono>
|
|
||||||
module Crafter.Build:ConfigurationImpl;
|
|
||||||
import :Configuration;
|
|
||||||
import :Dependency;
|
|
||||||
using namespace Crafter::Build;
|
using namespace Crafter::Build;
|
||||||
namespace fs = std::filesystem;
|
namespace fs = std::filesystem;
|
||||||
using namespace std::chrono;
|
|
||||||
|
|
||||||
Configuration::Configuration(std::string name, std::string standard, std::vector<fs::path> sourceFiles, std::vector<fs::path> moduleFiles, std::string optimizationLevel, std::string buildDir, std::string outputDir, std::string type, std::string target, std::vector<Dependency> dependencies): name(name), standard(standard), sourceFiles(sourceFiles), moduleFiles(moduleFiles), optimizationLevel(optimizationLevel), buildDir(buildDir), outputDir(outputDir), type(type), target(target), dependencies(dependencies) {
|
Configuration::Configuration(std::string name, std::string standard, std::vector<fs::path> sourceFiles, std::vector<fs::path> moduleFiles, std::string optimizationLevel, std::string buildDir, std::string outputDir, std::string type, std::string target, std::vector<Dependency> dependencies): name(name), standard(standard), sourceFiles(sourceFiles), moduleFiles(moduleFiles), optimizationLevel(optimizationLevel), buildDir(buildDir), outputDir(outputDir), type(type), target(target), dependencies(dependencies) {
|
||||||
|
|
||||||
|
|
@ -122,4 +113,3 @@ Configuration::Configuration(nlohmann::json& configs, nlohmann::json& config, fs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ USA
|
||||||
|
|
||||||
module;
|
module;
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstdint>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "json.hpp"
|
#include "json.hpp"
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,7 @@ USA
|
||||||
|
|
||||||
module;
|
module;
|
||||||
#include <string>
|
#include <string>
|
||||||
module Crafter.Build:DependencyImpl;
|
module Crafter.Build;
|
||||||
import :Dependency;
|
|
||||||
using namespace Crafter::Build;
|
using namespace Crafter::Build;
|
||||||
|
|
||||||
Dependency::Dependency(std::string path, std::string configuration): path(path), configuration(configuration) {
|
Dependency::Dependency(std::string path, std::string configuration): path(path), configuration(configuration) {
|
||||||
|
|
|
||||||
|
|
@ -26,11 +26,7 @@ module;
|
||||||
#include "json.hpp"
|
#include "json.hpp"
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <stdlib.h>
|
module Crafter.Build;
|
||||||
module Crafter.Build:ProjectImpl;
|
|
||||||
import :Project;
|
|
||||||
import :Configuration;
|
|
||||||
import :Dependency;
|
|
||||||
using namespace Crafter::Build;
|
using namespace Crafter::Build;
|
||||||
namespace fs = std::filesystem;
|
namespace fs = std::filesystem;
|
||||||
|
|
||||||
|
|
|
||||||
4
main.cpp
4
main.cpp
|
|
@ -19,12 +19,8 @@ USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <iostream>
|
|
||||||
#include <fstream>
|
|
||||||
#include <print>
|
#include <print>
|
||||||
#include "json.hpp"
|
#include "json.hpp"
|
||||||
#include <linux/limits.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
import Crafter.Build;
|
import Crafter.Build;
|
||||||
using namespace Crafter::Build;
|
using namespace Crafter::Build;
|
||||||
namespace fs = std::filesystem;
|
namespace fs = std::filesystem;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue