X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuildinfo.h;h=f84315c74369b7b73f6f4e839ff0a8701193627f;hb=3938f8030b1f62802decce19777ce70fdafaff10;hp=fa8ae62d39606527509d7c9a8b8dd18d77db68e7;hpb=22907c578cb8244c60e8ab1b3466340768491dd1;p=builder.git diff --git a/source/buildinfo.h b/source/buildinfo.h index fa8ae62..f84315c 100644 --- a/source/buildinfo.h +++ b/source/buildinfo.h @@ -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::list incpath; + std::list local_incpath; + std::list libpath; + std::list libs; Tracked libmode; Tracked rpath_mode; - LibModeMap libmodes; - WordList keep_symbols; - StandardMap standards; + std::map libmodes; + std::list keep_symbols; + std::map standards; Tracked threads; Tracked debug; Tracked optimize;