aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/link
AgeCommit message (Collapse)AuthorFilesLines
2017-05-01Add hxx extension for headersKaren Arutyunov1-130/+0
2017-04-28Automatically cleanup previous versioned librariesBoris Kolpackov1-0/+6
2017-04-24Add change flag in addition to timestamp in Windows manifest logicBoris Kolpackov1-1/+1
Essentially the same idea as with using target_state::changed in case the timestamps are equal (due to insufficient resolution).
2017-03-02Implement parallel matchBoris Kolpackov1-9/+10
2017-02-13Pass const target& to recipesBoris Kolpackov1-17/+22
2017-02-13Pass const scope& where modification should not happenBoris Kolpackov1-6/+6
2017-02-13Add model mutex, make var_pool const by defaultBoris Kolpackov1-2/+2
2017-01-05Update copyright yearBoris Kolpackov1-1/+1
2016-11-04Cleanup match_result messBoris Kolpackov1-2/+2
2016-08-29Implement initial support for library versioningBoris Kolpackov1-0/+33
Currently we only support platform-independent versions that get appended to the library name. The magic incantation is this: lib{foo}: bin.lib.version = @-1.2 This will produce libfoo-1.2.so, libfoo-1.2.dll, etc. In the future we will support things like this: lib{foo}: bin.lib.version = linux@1.2.3 freebsd@1.2 windows@1.2
2016-08-28Factor library search/processing out to cc::commonBoris Kolpackov1-64/+0
2016-08-28Fix Windows rpath supportBoris Kolpackov1-2/+29
2016-08-28Extract pkg-config information for both static/shared at onceBoris Kolpackov1-12/+13
We also no longer pick shared/static file rather entering them as "our" lib{} target. This way we use the link order of the importer "transitively".
2016-08-27Fix rpath-linkBoris Kolpackov1-1/+1
2016-08-27Reimplement UNIX rpath using process_library(), -rpath-link is still brokenBoris Kolpackov1-5/+7
2016-08-27Determine if library is system in process_librariesBoris Kolpackov1-4/+5
2016-08-27Clean up library export, make c and cxx modules project root onlyBoris Kolpackov1-20/+14
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-3/+25
Redesign library importing/exporting while at it.
2016-08-24Handle *.export.libs, distinguish interface and implementation dependenciesBoris Kolpackov1-3/+23
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-22Cache process_path, use fallback search directory for binutilsBoris Kolpackov1-2/+6
2016-08-12Implement support for C compilationBoris Kolpackov1-0/+78
We now have two new modules: cc (c-common) and c.