summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-14rules: Add type size check to ["CC/auto", "config"]Oliver Reiche
2022-12-12Add tests and readmeOliver Reiche
2022-12-12Add 'rules/' from commit 'd44be66f2a916168e0f5a7055e49f12c252b2cd2'Oliver Reiche
git-subtree-dir: rules git-subtree-mainline: 247e09b1ba01deb5649c6a73a7f272e1f72178fe git-subtree-split: d44be66f2a916168e0f5a7055e49f12c252b2cd2
2022-12-12rules: Fix missing arch vars for shell testsOliver Reiche
2022-12-09Initial commitOliver Reiche
2022-12-09rules: cflags have precedence over definesOliver Reiche
2022-12-09rules: ldflags have precedence over transitive link argsOliver Reiche
2022-12-09rules: Create library in stage directoryOliver Reiche
2022-12-09rules: Add cross-compile support for testsOliver Reiche
2022-12-09rules: Add argument support for test binariesOliver Reiche
2022-12-09rules: Refactoring and minor improvementsOliver Reiche
Compared to the previous commit, the action graphs for just and its unit tests are unchanged. - Git hash of action graph for ["",""]: c6e75f17abd7ffaab6ff9bb725ad67ec0bf6c973 - Git hash of action graph for ["test/buildtool","TESTS"]: 8063dfb3dd7daa9ae01d95c177e14946f785c57e Refactor: - "local cflags" to "private-cflags" - "local defines" to "private-defines" - "link externals" to "private-ldflags" - "deps" to "private-deps" for (test) binaries - "proto" to "private-proto" for binaries Improvements: - consistent variable declaration order: OS, ARCH, HOST_ARCH, TARGET_ARCH, CC, CXX, CFLAGS, CXXFLAGS, ADD_CFLAGS, ADD_CXXFLAGS, AR, ENV, PATH - use fields close to their definition (in RULES) - use common expression for binaries and test binaries - split expression "flags" and "compiler" ... to separate ones for CC and CXX. - rename "transition" to "deps-transition" ... to avoid conflicts with other transitions. - support "defaults-transition" for CC expressions Implement: - "cflags" for libraries - "private-cflags" for (test) binaries - "private-defines" for test binaries - "private-ldflags" for test binaries - (public) "defines" for libraries
2022-12-09rules: Drop the ["CC", "header directory"]Oliver Reiche
... in favor of the "tree" built-in rule.
2022-12-09rules: Fix missing cflags for linking test binaryOliver Reiche
... which is required for cross-compilation, e.g., clang's `-target` option.
2022-11-21support the concept of private depsKlaus Aehlig
i.e., libraries that are used only in the implementation without use in the public header files. In this way, the set of headers exposed to dependencies can be reduced leading potentially to better incrementality.
2022-11-21rules/CC/EXPRESSIONS: drop unused local defineKlaus Aehlig
2022-11-02proto: honor configured archiverAlberto Sartori
2022-11-02rules: don't always use the default archiverAlberto Sartori
2022-10-31CC/test test_runner.sh: correctly report the reusltKlaus Aehlig
The test runner is supposed to report the reult in a file called 'result' in the top-level action directory. However, before starting the actual test, it changes the working directory to the subdir 'work' where the input of the test action is located. Therefore, when reporting the result, the correct file name is '../result'. Fix this.
2022-10-27rules: Honor ENV for finding catChristian Lütke Stetzkamp
2022-10-27rules: Honor ENV for patch separationChristian Lütke Stetzkamp
2022-10-26rules: Honor ENV variable for protobuf compilationOliver Reiche
2022-10-12Add copyright and license notice to all source and header filesKlaus Aehlig
Signed-off-by: Goetz Brasche <goetz.brasche@huawei.com>
2022-10-10rules: New rule for config header generationOliver Reiche
2022-10-10rules: Use new 'env' expressionOliver Reiche
2022-10-10rules: Remove CC/configure ruleOliver Reiche
2022-09-14rules: Fix ar binary not taken from defaultsOliver Reiche
2022-09-13Rules: Implement setting ADD_{C,CXX}FLAGS via variablesOliver Reiche
2022-09-13Rules: Implement hierarchical defaultsOliver Reiche
2022-09-13Rules: Extend configure rule by 'compiler_family'Oliver Reiche
2022-08-23Add a rule to overlay artifact mapsKlaus Aehlig
... in a latest-wins fashion. The intended use case is overlaying globs with individual patched files.
2022-08-16rules/CC: fix duplicated staging for libraryAlberto Sartori
2022-08-04rules: Extend patch rule to split parts from patchOliver Reiche
2022-07-25CC rules: keep dependencies last in linkingKlaus Aehlig
... as the external link dependency is still associated with this library. In this way, importing preinstalled libraries can happen in a sound way, even though the actual library is just an external link dependency; still dependencies among external libraries are honored.
2022-07-25Rules: Enforce non-empty library and binary namesOliver Reiche
2022-06-30Rules: Split library result and library artifact expressionOliver Reiche
2022-06-23Upd rules doc on writable directories available to test runnersPaul Cristian Sarbu
2022-06-07rules: Support TEST_ENV for shell/test scriptOliver Reiche
2022-06-02Add rule defaultsOliver Reiche
2022-05-12["data", "staged"] Allow direct dependenciesKlaus Aehlig
Add a "deps" field to ["data", "staged"] from which the runfiles also added, without being staged, e.g., another ["data", "staged"] target, possibly with a different stage. This allows convenient collection of files, logically put to different directories.
2022-05-04rules/CC: for compiler invocation, pass on ENVKlaus Aehlig
... as some compiler need access to the environemnt in order to find their utility programs (like cc1).
2022-05-02Expression ['', 'field_runfiles']: ensure disjointnessKlaus Aehlig
... by using "disjoint_map_union" instead of "map_union" which has a latest-wins semantics and does not have a "msg" arguement.
2022-04-29rules: Perform disjoint map union in field_* expressionsOliver Reiche
... and replace all instances where the field_*_list variant of those expressions is used solely for the purpose of performing the disjoint union manually.
2022-04-28rules: Consistently use new provider expressionsOliver Reiche
2022-04-28rules: Add "link-args-deps" expressionOliver Reiche
... for collecting link-args from dependencies. By consistently using this expression, we fix an issue with C++ binary and test, which both did not collect the linker arguments from their proto-deps.
2022-04-28rules: Honor transition variable in *-deps expressionsOliver Reiche
2022-04-28rules: Add "field_map_provider" and "field_list_provider"Oliver Reiche
... to query and merge map/list entries from the provides map of the given target_fields' targets.
2022-04-28rules: Fix field_artifacts/field_runfiles expressions' docsOliver Reiche
2022-04-26rules: Add field_artifacts_list and field_runfiles_listOliver Reiche
... which are more efficient if the caller wants to perform the union manually (because disjointness should be enforced or additional maps should be added to the union, etc.). As a positive side effect, code reuse is slightly increased by consistently calling these newly introduced expressions for obtaining the artifacts/runfiles from all targets of a target field.
2022-04-26rules: More flexible compile-deps and link-depsOliver Reiche
... which can now be parameterized which target_fields to query the dependencies from.
2022-04-26Improve documenatation of our internal rulesKlaus Aehlig
In particular, document the result for the most important rules.