aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-08-30Build infrastructure updateBoris Kolpackov4-19/+27
2016-08-30Don't treat trailing dot as part of variable nameBoris Kolpackov1-0/+11
So we can write $major.$minor
2016-08-30Add support for target visibility, use for dist, test, installBoris Kolpackov15-36/+73
This means we can no longer write: install = false Now it should be: *: install = false
2016-08-30Add support for using '*' as target type in variable assignmentBoris Kolpackov2-3/+14
So these three are equivalent: *: foo = 1 {*}: foo = 2 *{*}: foo = 3
2016-08-30Add support for install.subdirs so can be specified for scopeBoris Kolpackov2-32/+60
2016-08-30Remove backwards-compatibility kludgesBoris Kolpackov8-56/+19
2016-08-30Add support for config.build file versioningBoris Kolpackov9-38/+116
2016-08-30Change function names to make VC happyBoris Kolpackov3-21/+21
2016-08-30Fix typoBoris Kolpackov1-1/+1
2016-08-30On FreeBSD also search in libdata/pkgconfig/Boris Kolpackov1-33/+60
2016-08-29Implement initial support for library versioningBoris Kolpackov12-203/+587
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-29Fix incorrect process argv[0] valuesBoris Kolpackov1-1/+1
2016-08-29Add pkgbuild/ to bootstrap scriptsBoris Kolpackov3-0/+3
2016-08-28Limit c.std, cxx.std, and extension visibility to projectBoris Kolpackov3-3/+3
2016-08-28Fix locale dependence when extracting GCC library search pathsBoris Kolpackov1-6/+15
2016-08-28Fix incorrect assertBoris Kolpackov1-1/+1
2016-08-28Fix remaining case-insensitive compareBoris Kolpackov1-2/+1
2016-08-28Optimize library processingBoris Kolpackov2-89/+98
2016-08-28Factor library search/processing out to cc::commonBoris Kolpackov10-905/+933
2016-08-28Fix Windows rpath supportBoris Kolpackov5-179/+314
2016-08-28Extract pkg-config information for both static/shared at onceBoris Kolpackov5-174/+203
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 Kolpackov3-67/+96
2016-08-27Reimplement UNIX rpath using process_library(), -rpath-link is still brokenBoris Kolpackov7-125/+211
2016-08-27Determine if library is system in process_librariesBoris Kolpackov3-45/+113
2016-08-27Clean up library export, make c and cxx modules project root onlyBoris Kolpackov15-760/+882
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 Kolpackov21-308/+1122
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 Kolpackov5-9/+46
2016-08-24Handle *.export.libs, distinguish interface and implementation dependenciesBoris Kolpackov12-68/+321
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 support for installing into a different file nameBoris Kolpackov3-31/+56
Now the install variable is a path, not dir_path. If it is a directory (ends with a trailing slash), then the target is installed into this directory with the same name. Otherwise, the entire path is used as the installation destination.
2016-08-23Update install.* variables in buildfilesBoris Kolpackov2-2/+2
2016-08-23Handle "prefixless" include directory to project mapping betterBoris Kolpackov2-77/+124
2016-08-23Don't write trailing spaces in case of empty values in config.buildBoris Kolpackov1-2/+11
2016-08-23Reverse empty simple values as an empty names sequence rather than empty nameBoris Kolpackov3-12/+33
This way we get: config.import.foo = Rather than: config.import.foo = {}
2016-08-23Don't complete empty abs_dir_pathBoris Kolpackov2-4/+8
The empty value is used as a special indicator
2016-08-23Treat empty config.import.* value as instruction to skip subproject searchBoris Kolpackov1-39/+53
Also, change explicit config.import.* value to take precedence over subproject search.
2016-08-23Split cli module into cli.config and cliBoris Kolpackov3-43/+87
2016-08-23Add cc.config in addition to ccBoris Kolpackov3-19/+66
2016-08-23Rename cc.{vars,config} modules to cc.core.{vars,config}Boris Kolpackov6-52/+53
We are going to use cc.config for something else.
2016-08-22Add workaround for Windows baseutils /bin search issueBoris Kolpackov1-1/+25
2016-08-22Improve diagnosticsBoris Kolpackov1-1/+3
2016-08-22Add few extra tracing statementsBoris Kolpackov2-4/+17
2016-08-22Minor fixes and cleanupsBoris Kolpackov1-2/+8
2016-08-22Cache process_path, use fallback search directory for binutilsBoris Kolpackov21-144/+498
2016-08-21Adjust to new butl::process interfaceBoris Kolpackov3-6/+6
2016-08-20Improve bootstrap scriptsBoris Kolpackov3-83/+105
2016-08-19Implement uninstall operationBoris Kolpackov13-161/+473
2016-08-18Add missing includeBoris Kolpackov1-0/+2
2016-08-18Fix invisible inline function issueBoris Kolpackov2-8/+5
2016-08-18Lighten up config.install.* output in config.buildBoris Kolpackov1-3/+6
Now we omit non-global NULL values for cmd, options, mode, dir_mode, and sudo.