CBuild
C++ build system with scripts written in c++
|
Defines. More...
#include "string"
Go to the source code of this file.
Macros | |
#define | CBUILD_CACHE_DIR std::string("cache") |
Cache directory of CBuild. | |
#define | CBUILD_COPY_CACHE_DIR std::string("tmp") |
tmp dir in cache dir | |
#define | CBUILD_BUILD_DIR std::string("build") |
Build directory of CBuild. | |
#define | CBUILD_BUILD_OUT_DIR std::string("out") |
Build out in build/toolchain. | |
#define | CBUILD_BUILD_CACHE_DIR std::string("objs") |
Object cache in build/toolchain. | |
#define | CBUILD_SCRIPTS_DIR std::string("scripts") |
Scripts dir of CBuild. | |
#define | CBUILD_MAKEFILE std::string("Makefile") |
Output Makefile path. | |
#define | CBUILD_COMPILE_COMMAND_JSON std::string("compile_commands.json") |
Output compile_command.json path. | |
#define | CBUILD_PROJECT_DEPS_DIR std::string("libs") |
For other included project, in cache dir. | |
#define | CBUILD_PROJECT_DEPS_HEADERS std::string("headers") |
For other included project, in cache dir. | |
#define | CBUILD_METADATA_FOLDER std::string("config") |
Metadata folder for targets. | |
#define | CBUILD_METADATA_FILE_EXTENSION std::string(".meta") |
Extension for CBuild metadata files. | |
#define | CBUILD_VERSION_MAJOR (int)13 |
Different representation of CBuild version. | |
#define | CBUILD_VERSION_MINOR (int)0 |
#define | CBUILD_VERSION_STR std::string("13.0") |
#define | CBUILD_COMPILER_VERSION std::string(__VERSION__) |
Data about CBuild compilation. | |
#define | CBUILD_COMPILATION_DATE std::string(__DATE__) |
#define | CBUILD_COMPILATION_TIME std::string(__TIME__) |
Defines.
@license GPL v3.0 or later
Copyright (C) 2023 WolodiaM This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Definition in file CBuild_defs.hpp.
#define CBUILD_BUILD_CACHE_DIR std::string("objs") |
Object cache in build/toolchain.
Definition at line 43 of file CBuild_defs.hpp.
Referenced by CBuild::Toolchain::gen_out_file(), CBuild::CBuildHash::gen_out_file(), CBuild::Toolchain::init(), and CBuild::CBuildDependency::prepare().
#define CBUILD_BUILD_DIR std::string("build") |
Build directory of CBuild.
Definition at line 35 of file CBuild_defs.hpp.
Referenced by CBuild::Toolchain::call(), CBuild::Init::call(), CBuild::Toolchain::clear(), CBuild::Toolchain::gen_out_file(), CBuild::CBuildHash::gen_out_file(), CBuild::MINGW_GXX< hash >::gen_out_name(), CBuild::MINGW_GXXMT< hash >::gen_out_name(), CBuild::MINGW_GCC< hash >::gen_out_name(), CBuild::MINGW_GCCMT< hash >::gen_out_name(), CBuild::Toolchain::gen_out_name(), CBuild::get_file_metadata_path(), CBuild::get_target_metadata_path(), CBuild::Toolchain::init(), CBuild::CBuildDependency::largs(), CBuild::load_hash(), CBuild::Toolchain::load_project_deps(), CBuild::CBuildDependency::need_prepare(), CBuild::MINGW_GXX< hash >::post_link(), CBuild::MINGW_GXXMT< hash >::post_link(), CBuild::MINGW_GCC< hash >::post_link(), CBuild::MINGW_GCCMT< hash >::post_link(), CBuild::CBuildDependency::prepare(), and CBuild::Toolchain::stdargs().
#define CBUILD_BUILD_OUT_DIR std::string("out") |
Build out in build/toolchain.
Definition at line 39 of file CBuild_defs.hpp.
Referenced by CBuild::Toolchain::call(), CBuild::MINGW_GXX< hash >::gen_out_name(), CBuild::MINGW_GXXMT< hash >::gen_out_name(), CBuild::MINGW_GCC< hash >::gen_out_name(), CBuild::MINGW_GCCMT< hash >::gen_out_name(), CBuild::Toolchain::gen_out_name(), CBuild::Toolchain::init(), CBuild::Toolchain::load_project_deps(), CBuild::MINGW_GXX< hash >::post_link(), CBuild::MINGW_GXXMT< hash >::post_link(), CBuild::MINGW_GCC< hash >::post_link(), CBuild::MINGW_GCCMT< hash >::post_link(), CBuild::CBuildDependency::prepare(), and CBuild::Toolchain::stdargs().
#define CBUILD_CACHE_DIR std::string("cache") |
Cache directory of CBuild.
Definition at line 27 of file CBuild_defs.hpp.
Referenced by CBuild::Init::call(), CBuild::CBuildDependency::cargs(), CBuild::NetDependency::git_fetch(), CBuild::CBuildDependency::largs(), CBuild::Toolchain::load_project_deps(), CBuild::loop(), CBuild::CBuildDependency::need_prepare(), CBuild::CBuildDependency::prepare(), CBuild::fs::replace(), CBuild::fs::set_var(), and CBuild::Toolchain::stdargs().
#define CBUILD_COMPILATION_DATE std::string(__DATE__) |
Definition at line 82 of file CBuild_defs.hpp.
Referenced by CBuild::Version::call().
#define CBUILD_COMPILATION_TIME std::string(__TIME__) |
Definition at line 83 of file CBuild_defs.hpp.
Referenced by CBuild::Version::call().
#define CBUILD_COMPILE_COMMAND_JSON std::string("compile_commands.json") |
Output compile_command.json path.
Definition at line 55 of file CBuild_defs.hpp.
#define CBUILD_COMPILER_VERSION std::string(__VERSION__) |
Data about CBuild compilation.
Definition at line 81 of file CBuild_defs.hpp.
Referenced by CBuild::Version::call().
#define CBUILD_COPY_CACHE_DIR std::string("tmp") |
tmp dir in cache dir
Definition at line 31 of file CBuild_defs.hpp.
Referenced by CBuild::Init::call(), CBuild::loop(), CBuild::fs::replace(), and CBuild::fs::set_var().
#define CBUILD_MAKEFILE std::string("Makefile") |
Output Makefile path.
Definition at line 51 of file CBuild_defs.hpp.
#define CBUILD_METADATA_FILE_EXTENSION std::string(".meta") |
Extension for CBuild metadata files.
Definition at line 71 of file CBuild_defs.hpp.
Referenced by CBuild::get_file_metadata_path(), CBuild::get_target_metadata_path(), CBuild::CBuildDependency::largs(), CBuild::CBuildDependency::need_prepare(), and CBuild::CBuildDependency::prepare().
#define CBUILD_METADATA_FOLDER std::string("config") |
Metadata folder for targets.
Definition at line 67 of file CBuild_defs.hpp.
Referenced by CBuild::get_file_metadata_path(), CBuild::Toolchain::init(), CBuild::load_hash(), and CBuild::CBuildDependency::prepare().
#define CBUILD_PROJECT_DEPS_DIR std::string("libs") |
For other included project, in cache dir.
Definition at line 59 of file CBuild_defs.hpp.
Referenced by CBuild::CBuildDependency::largs(), CBuild::Toolchain::load_project_deps(), CBuild::loop(), CBuild::CBuildDependency::need_prepare(), CBuild::CBuildDependency::prepare(), and CBuild::Toolchain::stdargs().
#define CBUILD_PROJECT_DEPS_HEADERS std::string("headers") |
For other included project, in cache dir.
Definition at line 63 of file CBuild_defs.hpp.
Referenced by CBuild::CBuildDependency::cargs(), CBuild::Toolchain::load_project_deps(), CBuild::loop(), CBuild::CBuildDependency::prepare(), and CBuild::Toolchain::stdargs().
#define CBUILD_SCRIPTS_DIR std::string("scripts") |
Scripts dir of CBuild.
Definition at line 47 of file CBuild_defs.hpp.
Referenced by CBuild::Init::call().
#define CBUILD_VERSION_MAJOR (int)13 |
Different representation of CBuild version.
Definition at line 75 of file CBuild_defs.hpp.
Referenced by CBuild::get_version_major().
#define CBUILD_VERSION_MINOR (int)0 |
Definition at line 76 of file CBuild_defs.hpp.
Referenced by CBuild::get_version_minor().
#define CBUILD_VERSION_STR std::string("13.0") |
Definition at line 77 of file CBuild_defs.hpp.
Referenced by CBuild::Version::call(), and CBuild::get_version_string().