Bläddra i källkod

Move `deps.hpp` all into build/

default_compile_flags
vector-of-bool 5 år sedan
förälder
incheckning
f07e6ca9cb
5 ändrade filer med 15 tillägg och 26 borttagningar
  1. +13
    -1
      src/dds/build/deps.hpp
  2. +0
    -1
      src/dds/build/plan/compile_file.hpp
  3. +0
    -22
      src/dds/toolchain/deps.hpp
  4. +1
    -1
      src/dds/toolchain/prep.hpp
  5. +1
    -1
      src/dds/toolchain/toolchain.hpp

+ 13
- 1
src/dds/build/deps.hpp Visa fil

@@ -1,6 +1,5 @@
#pragma once

#include <dds/toolchain/deps.hpp>
#include <dds/util/fs.hpp>

#include <string>
@@ -8,6 +7,19 @@

namespace dds {

enum class deps_mode {
none,
msvc,
gnu,
};

struct deps_info {
fs::path output;
std::vector<fs::path> inputs;
std::string command;
std::string command_output;
};

class database;

deps_info parse_mkfile_deps_file(path_ref where);

+ 0
- 1
src/dds/build/plan/compile_file.hpp Visa fil

@@ -2,7 +2,6 @@

#include <dds/build/plan/base.hpp>
#include <dds/source.hpp>
#include <dds/toolchain/deps.hpp>

#include <memory>


+ 0
- 22
src/dds/toolchain/deps.hpp Visa fil

@@ -1,22 +0,0 @@
#pragma once

#include <dds/util/fs.hpp>

#include <vector>

namespace dds {

enum class deps_mode {
none,
msvc,
gnu,
};

struct deps_info {
fs::path output;
std::vector<fs::path> inputs;
std::string command;
std::string command_output;
};

} // namespace dds

+ 1
- 1
src/dds/toolchain/prep.hpp Visa fil

@@ -1,6 +1,6 @@
#pragma once

#include <dds/toolchain/deps.hpp>
#include <dds/build/deps.hpp>

#include <string>
#include <vector>

+ 1
- 1
src/dds/toolchain/toolchain.hpp Visa fil

@@ -1,6 +1,6 @@
#pragma once

#include <dds/toolchain/deps.hpp>
#include <dds/build/deps.hpp>
#include <dds/util/fs.hpp>

#include <optional>

Laddar…
Avbryt
Spara