aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/init.cxx
AgeCommit message (Collapse)AuthorFilesLines
2017-08-02Change cc.preprocessed to {c,cxx}.preprocessedBoris Kolpackov1-11/+0
2017-07-31Experimental (and probably broken) pkg-config generation supportBoris Kolpackov1-3/+4
2017-06-08Implement rule chaining for modulesBoris Kolpackov1-0/+5
2017-05-29Add ability to limit amount of preprocessing done on sourceBoris Kolpackov1-0/+11
The cc.preprocessed variable can be 'none' (not preprocessed), 'includes' (no depends on preprocessor, e.g., #ifdef, etc), and 'all' (the source is fully preprocessed). Note that for 'all' the source can still contain comments and line continuations.
2017-05-17Add ability to disable use of preprocessed output in compilationBoris Kolpackov1-0/+8
This can be done from a buildfile for a scope (including project root scope) and per target via cc.reprocess: cc.reprocess = true obj{hello}: cc.reprocess = false As as well externally via config.cc.reprocess: b config.cc.reprocess=true [configure]
2017-05-01Add hxx extension for headersKaren Arutyunov1-6/+6
2017-03-02Unconditionally load bin.ar module in c and cxx modulesBoris Kolpackov1-18/+5
With our utility library/until test approach this will probably be more common than not.
2017-02-13Add bin.vars moduleBoris Kolpackov1-12/+13
Use in cc to make sure hint variables are already registered.
2017-02-13Add model mutex, make var_pool const by defaultBoris Kolpackov1-27/+40
2017-01-06Store platform targets as typed target_tripletBoris Kolpackov1-33/+22
2017-01-05Update copyright yearBoris Kolpackov1-1/+1
2016-11-18Make names and vector<name> different types, add typed value constructorBoris Kolpackov1-4/+4
2016-08-27Reimplement UNIX rpath using process_library(), -rpath-link is still brokenBoris Kolpackov1-0/+5
2016-08-27Clean up library export, make c and cxx modules project root onlyBoris Kolpackov1-116/+117
So now c and cxx modules can only be loaded in project root scope (normally root.build). Also, the c.std and cxx.std must now be set *before* loading the module to take effect. This means we won't be able to handle old buildfiles anymore but old versions of build2 should be able to handle new *.std placement.
2016-08-26Add pkg-config support for import installedBoris Kolpackov1-0/+20
Redesign library importing/exporting while at it.
2016-08-24Pick *.libs variable depending on library type during static linkingBoris Kolpackov1-0/+7
2016-08-24Handle *.export.libs, distinguish interface and implementation dependenciesBoris Kolpackov1-1/+1
A library dependency on another libraries is either "interface" or "implementation". If it is interface, then everyone who links to this library should also link to the interface dependency, explicitly. A good example of an interface dependency is a library API that is called in inline functions. Interface dependencies of a library should be explicitly listed in the *.export.libs (where we can also list target names). So the typical usage will be along these lines: import int_libs = libfoo%lib{foo} import int_libs += ... import imp_libs = libbar%lib{bar} import imp_libs += ... lib{baz}: ... $int_libs $imp_libs lib{baz}: cxx.export.libs = $int_libs
2016-08-23Add cc.config in addition to ccBoris Kolpackov1-19/+56
2016-08-23Rename cc.{vars,config} modules to cc.core.{vars,config}Boris Kolpackov1-22/+22
We are going to use cc.config for something else.
2016-08-12Add support for ordering modules in config.buildBoris Kolpackov1-0/+4
2016-08-12Implement c/cxx toolchain cross-hintingBoris Kolpackov1-1/+2
2016-08-12Implement support for C compilationBoris Kolpackov1-0/+321
We now have two new modules: cc (c-common) and c.