CBuild
C++ build system with scripts written in c++
Loading...
Searching...
No Matches
Macros
CBuild_defs.hpp File Reference

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__)
 

Detailed Description

Defines.

Author
WolodiaM (w_mel.nosp@m.nyk@.nosp@m.outlo.nosp@m.ok.c.nosp@m.om)
Date
2023-02-02

@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.

Macro Definition Documentation

◆ CBUILD_BUILD_CACHE_DIR

#define CBUILD_BUILD_CACHE_DIR   std::string("objs")

◆ CBUILD_BUILD_DIR

#define CBUILD_BUILD_DIR   std::string("build")

◆ CBUILD_BUILD_OUT_DIR

#define CBUILD_BUILD_OUT_DIR   std::string("out")

◆ CBUILD_CACHE_DIR

#define CBUILD_CACHE_DIR   std::string("cache")

◆ CBUILD_COMPILATION_DATE

#define CBUILD_COMPILATION_DATE   std::string(__DATE__)

Definition at line 82 of file CBuild_defs.hpp.

Referenced by CBuild::Version::call().

◆ CBUILD_COMPILATION_TIME

#define CBUILD_COMPILATION_TIME   std::string(__TIME__)

Definition at line 83 of file CBuild_defs.hpp.

Referenced by CBuild::Version::call().

◆ CBUILD_COMPILE_COMMAND_JSON

#define CBUILD_COMPILE_COMMAND_JSON   std::string("compile_commands.json")

Output compile_command.json path.

Definition at line 55 of file CBuild_defs.hpp.

◆ CBUILD_COMPILER_VERSION

#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().

◆ CBUILD_COPY_CACHE_DIR

#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().

◆ CBUILD_MAKEFILE

#define CBUILD_MAKEFILE   std::string("Makefile")

Output Makefile path.

Definition at line 51 of file CBuild_defs.hpp.

◆ CBUILD_METADATA_FILE_EXTENSION

#define CBUILD_METADATA_FILE_EXTENSION   std::string(".meta")

◆ CBUILD_METADATA_FOLDER

#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().

◆ CBUILD_PROJECT_DEPS_DIR

#define CBUILD_PROJECT_DEPS_DIR   std::string("libs")

◆ CBUILD_PROJECT_DEPS_HEADERS

#define CBUILD_PROJECT_DEPS_HEADERS   std::string("headers")

◆ CBUILD_SCRIPTS_DIR

#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().

◆ CBUILD_VERSION_MAJOR

#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().

◆ CBUILD_VERSION_MINOR

#define CBUILD_VERSION_MINOR   (int)0

Definition at line 76 of file CBuild_defs.hpp.

Referenced by CBuild::get_version_minor().

◆ CBUILD_VERSION_STR

#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().