aboutsummaryrefslogtreecommitdiff
path: root/build2/cc
AgeCommit message (Collapse)AuthorFilesLines
2016-08-27Clean up library export, make c and cxx modules project root onlyBoris Kolpackov10-497/+591
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 Kolpackov10-231/+832
Redesign library importing/exporting while at it.
2016-08-25Handle *.export.loptionsBoris Kolpackov1-2/+26
2016-08-24Pick *.libs variable depending on library type during static linkingBoris Kolpackov3-9/+42
2016-08-24Handle *.export.libs, distinguish interface and implementation dependenciesBoris Kolpackov5-66/+264
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-23Handle "prefixless" include directory to project mapping betterBoris Kolpackov2-77/+124
2016-08-23Add cc.config in addition to ccBoris Kolpackov2-19/+65
2016-08-23Rename cc.{vars,config} modules to cc.core.{vars,config}Boris Kolpackov3-44/+45
We are going to use cc.config for something else.
2016-08-22Cache process_path, use fallback search directory for binutilsBoris Kolpackov8-38/+86
2016-08-19Implement uninstall operationBoris Kolpackov3-20/+34
2016-08-18Add missing includeBoris Kolpackov1-0/+2
2016-08-18Fix invisible inline function issueBoris Kolpackov2-8/+5
2016-08-17Add support for config.bin.{lib,exe}.{prefix,suffix}Boris Kolpackov2-8/+12
This replaces the bin.libprefix functionality.
2016-08-13Use extension derivation function rather than extension variable directlyBoris Kolpackov1-5/+10
2016-08-12Add support for ordering modules in config.buildBoris Kolpackov2-1/+22
2016-08-12Implement c/cxx toolchain cross-hintingBoris Kolpackov4-55/+197
2016-08-12Implement support for C compilationBoris Kolpackov22-0/+6756
We now have two new modules: cc (c-common) and c.