aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/types.hxx
AgeCommit message (Collapse)AuthorFilesLines
2023-04-13Various minor generalizations for in-process configure support in bpkgBoris Kolpackov1-0/+6
2023-03-08Disambiguate operator<<(ostream,path_name_view) callBoris Kolpackov1-3/+3
This helps, for example, in bpkg where we "see" two version of this operator.
2022-12-15Add noexcept to move constructors and move assignment operatorsKaren Arutyunov1-2/+2
2022-11-08More work on child process diagnostics bufferingBoris Kolpackov1-0/+1
2022-10-27Initial work on child process diagnostics bufferingBoris Kolpackov1-0/+2
Currently this is implemented for C/C++ compile and link rules.
2022-10-19Add support for post hoc prerequisitesBoris Kolpackov1-0/+2
Unlike normal and ad hoc prerequisites, a post hoc prerequisite is built after the target, not before. It may also form a dependency cycle together with normal/ad hoc prerequisites. In other words, all this form of dependency guarantees is that a post hoc prerequisite will be built if its dependent target is built. See the NEWS file for details and an example.
2022-05-10Use our own implementation of C++14 threads on MinGWBoris Kolpackov1-14/+39
2022-04-19Switch recipe from std::function to butl::move_only_function_exBoris Kolpackov1-1/+5
2022-02-02Redo diagnostics without operator<< in namespace stdBoris Kolpackov1-20/+13
2021-11-05Keep multiple prefixless entries for generated header mappingBoris Kolpackov1-0/+2
2021-09-28Adapt to libbutl headers extension change from .mxx to .hxxKaren Arutyunov1-30/+30
2021-08-13Cache git status results in version moduleBoris Kolpackov1-0/+34
2021-06-21Add support for automatic generation of symbol exporting .def fileBoris Kolpackov1-0/+3
2021-06-08Implement ad hoc regex pattern rule supportBoris Kolpackov1-0/+1
An ad hoc pattern rule consists of a pattern that mimics a dependency declaration followed by one or more recipes. For example: exe{~'/(.*)/'}: cxx{~'/\1/'} {{ $cxx.path -o $path($>) $path($<[0]) }} If a pattern matches a dependency declaration of a target, then the recipe is used to perform the corresponding operation on this target. For example, the following dependency declaration matches the above pattern which means the rule's recipe will be used to update this target: exe{hello}: cxx{hello} While the following declarations do not match the above pattern: exe{hello}: c{hello} # Type mismatch. exe{hello}: cxx{howdy} # Name mismatch. On the left hand side of `:` in the pattern we can have a single target or an ad hoc target group. The single target or the first (primary) ad hoc group member must be a regex pattern (~). The rest of the ad hoc group members can be patterns or substitutions (^). For example: <exe{~'/(.*)/'} file{^'/\1.map/'}>: cxx{~'/\1/'} {{ $cxx.path -o $path($>[0]) "-Wl,-Map=$path($>[1])" $path($<[0]) }} On the left hand side of `:` in the pattern we have prerequisites which can be patterns, substitutions, or non-patterns. For example: <exe{~'/(.*)/'} file{^'/\1.map/'}>: cxx{~'/\1/'} hxx{^'/\1/'} hxx{common} {{ $cxx.path -o $path($>[0]) "-Wl,-Map=$path($>[1])" $path($<[0]) }} Substitutions on the left hand side of `:` and substitutions and non-patterns on the right hand side are added to the dependency declaration. For example, given the above rule and dependency declaration, the effective dependency is going to be: <exe{hello} file{hello.map>: cxx{hello} hxx{hello} hxx{common}
2021-05-28Add support for regex-based target type/pattern specific variablesBoris Kolpackov1-0/+10
This is in addition to the already supported path-based target type/pattern specific variables. For example: hxx{*}: x = y # path-based hxx{~/.*/}: x = y # regex-based
2021-04-20Detect environment changes in ad hoc recipesBoris Kolpackov1-6/+24
2021-01-30Add std::{map, multimap} to types.hxxBoris Kolpackov1-0/+3
Seeing that std::map is becoming a common Buildfile variable type.
2020-11-30Start adapting module mapper to latest GCC protocolBoris Kolpackov1-0/+1
2020-08-12Add int64 and int64s variable typesBoris Kolpackov1-0/+2
2020-06-02Add process_path_ex with program stable name and checksumBoris Kolpackov1-0/+24
2020-05-27Initial support for ad hoc recipes (still work in progress)Boris Kolpackov1-1/+7
2020-05-27Use location_value in module_stateBoris Kolpackov1-3/+3
2020-03-20Generate common .pc file in addition to static/staged when installing lib{}Boris Kolpackov1-0/+1
The common .pc file is produced by ignoring any static/shared-specific poptions and splitting loptions/libs into Libs/Libs.private. It is "best effort", in a sense that it's not guaranteed to be sufficient in all cases, but it will probably cover the majority of cases, even on Windows, thanks to automatic dllimport'ing of functions.
2020-02-12Add builtins support for $process.run*() functionsKaren Arutyunov1-0/+1
2020-02-07Drop copyright notice from source codeKaren Arutyunov1-1/+0
2019-11-15Use path_name_view in location and path_name_value in location_valueKaren Arutyunov1-19/+31
2019-11-15Fix bug in cc::parser location storageBoris Kolpackov1-3/+24
2019-11-11Use path_name for `-` to stdin/stdout translationKaren Arutyunov1-3/+4
2019-11-07Initial work on path_name use for `-` to stdin/stdout translationBoris Kolpackov1-7/+15
2019-08-23Introduce notion of build contextBoris Kolpackov1-1/+0
All non-const global state is now in class context and we can now have multiple independent builds going on at the same time.
2019-08-01Fix linkage failure due to inline functions defined in ↵Karen Arutyunov1-1/+2
libbuild2/algorithm.ixx and referred from libbuild2/target.txx
2019-07-01Split build system into library and driverBoris Kolpackov1-0/+360