X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuildinfo.h;h=203ba5fe5bfbc844373f82b5d89c3ed02a16d725;hb=aa053d637e8259755af7d2e4b510a242f4d29c7b;hp=fa8ae62d39606527509d7c9a8b8dd18d77db68e7;hpb=22907c578cb8244c60e8ab1b3466340768491dd1;p=builder.git diff --git a/source/buildinfo.h b/source/buildinfo.h index fa8ae62..203ba5f 100644 --- a/source/buildinfo.h +++ b/source/buildinfo.h @@ -1,8 +1,8 @@ #ifndef BUILDINFO_H_ #define BUILDINFO_H_ -#include #include +#include #include #include @@ -51,6 +51,17 @@ public: CHAINED //< Include only compilation options }; + struct LanguageStandard + { + std::string type; + unsigned year; + + LanguageStandard(): year(0) { } + LanguageStandard(const std::string &); + + std::string str() const; + }; + /** A wrapper which tracks the set status of the wrapped variable. A default value may be provided in initialization without causing it to be treated as @@ -62,7 +73,7 @@ public: class Tracked { public: - typedef T LoadType; + using LoadType = T; private: T value; @@ -78,23 +89,17 @@ public: operator const T &() const { return value; } }; - typedef std::map DefineMap; - typedef std::list PathList; - typedef std::list WordList; - typedef std::map LibModeMap; - typedef std::map StandardMap; - Tracked sysroot; - DefineMap defines; - PathList incpath; - PathList local_incpath; - PathList libpath; - WordList libs; + std::map defines; + std::vector incpath; + std::vector local_incpath; + std::vector libpath; + std::vector libs; Tracked libmode; Tracked rpath_mode; - LibModeMap libmodes; - WordList keep_symbols; - StandardMap standards; + std::map libmodes; + std::vector keep_symbols; + std::map standards; Tracked threads; Tracked debug; Tracked optimize;