aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
2016-08-18Add global config.install.{cmd,options,sudo,mode,dir_mode}Boris Kolpackov2-14/+49
This way we can do: b install \ config.install.data_root=/tmp/data \ config.install.exec_root=/tmp/exec \ config.install.sudo=sudo
2016-08-18Add /nologo to bootstrap-msvc.batBoris Kolpackov1-1/+1
2016-08-18Minor bootstrap batch file cleanupsBoris Kolpackov2-11/+10
2016-08-17Add config.bin.{prefix,suffix} convenience valuesBoris Kolpackov1-8/+18
These can be used to specify for both lib and exe.
2016-08-17Allow expansion of undefined/NULL namespace variablesBoris Kolpackov1-2/+4
This restriction is not proving to get in the way.
2016-08-17Add support for config.bin.{lib,exe}.{prefix,suffix}Boris Kolpackov6-28/+51
This replaces the bin.libprefix functionality.
2016-08-16Update submodulesBoris Kolpackov2-0/+0
2016-08-15Adjust bootstrap.sh interface to be similar to .bat versionsBoris Kolpackov3-20/+22
2016-08-15Include host machine in --version outputBoris Kolpackov3-4/+2
2016-08-15Add bootstrap-{msvc, mingw}.batBoris Kolpackov4-1/+247
2016-08-15Add missing header to buildfileBoris Kolpackov1-0/+1
2016-08-15Rename bootstrap to bootstrap.shBoris Kolpackov3-5/+5
Since it is a POSIX shell script (as opposed to bash script) and since we are going to have bootstrap-*.bat.
2016-08-13Use extension derivation function rather than extension variable directlyBoris Kolpackov2-6/+11
2016-08-12Rename module to initBoris Kolpackov17-65/+86
2016-08-12Add support for ordering modules in config.buildBoris Kolpackov13-19/+97
2016-08-12Implement c/cxx toolchain cross-hintingBoris Kolpackov7-97/+248
2016-08-12Implement support for C compilationBoris Kolpackov53-1359/+2914
We now have two new modules: cc (c-common) and c.
2016-08-10Add ignore case support for find_option()Karen Arutyunov7-51/+37
2016-08-09Fix bug in inner/outer operation handlingBoris Kolpackov1-1/+3
2016-08-05Implement out-qualified target syntax for setting target-specific varsBoris Kolpackov7-18/+66
So now we can do: doc{INSTALL}@./: install = false Note that so far that's the only place where we support out-qualification. Grep for @@ OUT to see other places.
2016-08-05Enable pair recognition in the normal and eval lexer modesBoris Kolpackov2-8/+17
We need this for the out-qualified target syntax: h{config}@./: install = false
2016-08-05Merge 'value' and 'pairs' lexer_mode, call it 'value'Boris Kolpackov4-49/+46
We only really used pairs.