aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script
AgeCommit message (Collapse)AuthorFilesLines
2024-10-10Don't match group-based targets with fallback rule during configure (GH #364)Boris Kolpackov1-3/+4
Membership of such targets can only be accurately determined by the ad hoc recipe.
2024-08-06Rename certain target_set::insert() versions to insert_implied() for clarityBoris Kolpackov1-5/+5
Also clarify the target_decl documentation.
2024-01-23Fix bug in Buildscript pre-parsing logicBoris Kolpackov2-4/+23
2023-12-03Reimplement search_existing() functions via target_type::searchBoris Kolpackov1-0/+2
This allows us to automatically get the target type-specific behavior with regards to the out_only semantics (added in the previous commit) instead of passing it explicitly from each call site.
2023-12-03Make fsdir{} usable as target of ad hoc Buildscript recipesBoris Kolpackov1-0/+8
In particular, it can now be used to represent a directory symlink. For example: exe{hello}: ... fsdir{assets} fsdir{assets}: % update {{ ln -s $src_base/assets $out_base/assets }} % clean {{ rm $out_base/assets }}
2023-07-20Don't treat unmatched prerequisites as implicitly ad hocBoris Kolpackov1-3/+17
It was surprising and inconvenient that they didn't end up in $<. Plus, such prerequisites can always be marked as ad hoc explicitly.
2023-07-20Consider unmatched prerequisites in updated_during_match() checkBoris Kolpackov1-0/+5
2023-05-30Fix previous commits to work in C++14Boris Kolpackov1-3/+6
2023-05-30Add support for fsdir{} dynamic prerequisites in the dyndep lines formatBoris Kolpackov2-2/+61
This can be used to handle situations where the dynamic targets are placed into subdirectories.
2023-05-30Add depdb-dyndep --target-extension-type optionBoris Kolpackov5-9/+122
This allows specifying custom extension to target type mapping.
2023-05-30Store dynamic group member types in depdb, use in cleanBoris Kolpackov2-16/+89
2023-05-29New 'lines' dependency format in depdb-dyndepBoris Kolpackov3-10/+172
2023-05-29Extend special match_rule() logic to all groups with dynamic targetsBoris Kolpackov1-1/+1
2023-05-29Clean after each depdb-dyndep executionBoris Kolpackov1-11/+51
2023-05-29Explicit group: pattern membersBoris Kolpackov1-1/+1
2023-05-29Explicit group: dynamic membersBoris Kolpackov2-23/+82
2023-05-29Explicit group: static membersBoris Kolpackov4-24/+65
2023-05-21Add support for dynamic target extraction in addition to prerequisitesBoris Kolpackov7-96/+539
This functionality is enabled with the depdb-dyndep --dyn-target option. Only the make format is supported, where the listed targets are added as ad hoc group members (unless already specified as static members). This functionality is not available in the --byproduct mode.
2023-03-20Regenerate options parsing filesKaren Arutyunov1-0/+50
2022-11-25Use operation name as a buildscript name if unable to deduceKaren Arutyunov3-13/+22
2022-11-18Complete low verbosity diagnostics reworkBoris Kolpackov3-11/+12
2022-11-09Use diag_buffer in scriptKaren Arutyunov3-9/+13
2022-10-21Change attribute syntax in script to come after variable in set and for (set ↵Karen Arutyunov2-33/+49
x [...], for x [...])
2022-10-20Add support for for-loop element typeKaren Arutyunov1-1/+1
2022-10-18Fix unexpected 'unterminated double-quoted sequence' script errorKaren Arutyunov4-21/+23
2022-10-18Add unexpected 'unterminated double-quoted sequence' error testscript ↵Karen Arutyunov2-0/+26
reproducers
2022-10-18Invent diag preamble for buildscriptKaren Arutyunov5-108/+293
2022-10-14Fix 'for [<attrs>] x: ...' to treat <attrs> as value attributesKaren Arutyunov2-15/+15
2022-10-13Add support for 'for' loop second (... | for x) and third (for x <...) forms ↵Karen Arutyunov11-69/+868
in script
2022-10-10Preparatory work for public/private variable distinctionBoris Kolpackov4-11/+16
We still always use the public var_pool from context but where required, all access now goes through scope::var_pool().
2022-09-29Tighten low-verbosity diagnostics name deduction logicBoris Kolpackov1-3/+41
Specifically, don't try to derive low-verbosity name from what looks like an eval context of a function call.
2022-09-29Fix variable append logic in scriptBoris Kolpackov2-12/+29
2022-09-28Add support for 'for' loop first form (for x:...) in scriptKaren Arutyunov3-34/+271
2022-09-28Add support for 'while' loop in scriptKaren Arutyunov8-72/+324
2022-09-19Allow computed variables in depdb preamble similar to impure functionsBoris Kolpackov3-9/+49
2022-07-26Re-enable temporarily disable tests (part of cmdline work)Boris Kolpackov2-10/+2
2022-07-07Use new cmdline type for canned command lines in {Build,Test}scriptBoris Kolpackov2-45/+68
2022-07-01Regenerate options parsing filesKaren Arutyunov1-6/+35
2022-06-28Add support for querying out-qualified target-specific variablesBoris Kolpackov2-2/+2
2022-06-24Allow ad hoc rules not to list targets that are updated during matchBoris Kolpackov1-1/+8
For example, this allows a Qt moc rule not to list generated headers from libQtCore since they are pre-generated by the library.
2022-06-21Add --trace-{match,execute} optionsBoris Kolpackov1-3/+3
These options can be used to understand which dependency chain causes matching or execution of a particular target.
2022-05-23Cache build.host value in contextBoris Kolpackov1-1/+1
2022-03-11Add JSON format support for --structured-result option and info meta operationKaren Arutyunov2-4/+0
2022-03-07Add support for update=unmatch|match to ad hoc recipesBoris Kolpackov1-0/+13
2022-03-02Add update operation-specific variable with unmatch|match additional valuesBoris Kolpackov2-7/+7
Note that the unmatch (match but do not update) and match (update during match) values are only supported by certain rules (and potentially only for certain prerequisite types). Additionally: - All operation-specific variables are now checked for false as an override for the prerequisite-specific include value. In particular, this can now be used to disable a prerequisite for update, for example: ./: exe{test}: update = false - The cc::link_rule now supports the update=match value for headers and ad hoc prerequisites. In particular, this can be used to make sure all the library headers are updated before matching any of its (or dependent's) object files.
2022-02-21Factor process-wide initialization to init_process() functionBoris Kolpackov1-1/+1
2022-02-18Factor out common CLI types (scanners, etc)Karen Arutyunov6-919/+175
2022-02-16Invent quoting modes for to_stream(name)Karen Arutyunov1-1/+1
2022-02-10Make few global types separately constructible/initializableBoris Kolpackov1-1/+1
2022-01-18Add dynamic prerequisites to $< unless --adhoc is specifiedBoris Kolpackov7-30/+101
Also add a few tests for depdb-dyndep.