summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-06-20rules-cc/tests/test_rules/RULES: add TOOLCHAIN_CONFIG config var...Alberto Sartori
...to pass required variables belonging to the current rules under testing
2024-06-20Update just reference to v1.4.0-alpha+20240619Paul Cristian Sarbu
2024-06-19Merge commit 'b4d1cbc8d77bdffaeab6b01edf5f54eeeb1b81d3' into HEADPaul Cristian Sarbu
2024-06-19Merge commit '85f97ddf0e18548d95d50aa1f7599a1aad833d97' into HEADPaul Cristian Sarbu
2024-06-19rules-cc: Binaries should keep the compile dependency headers for debuggingPaul Cristian Sarbu
2024-06-11["CC/foreign/shell", "data"] honor shell toolchainKlaus Aehlig
2024-06-11["CC/foreign/shell", "data"] honor shell toolchainKlaus Aehlig
2024-06-11foreign rules: fix computation of absolute pathsKlaus Aehlig
When setting CC, etc, in foreign rules, it is often useful to have it set as absolute path. This originally was achieved using realpath(1). This, however, implies that symbolic links are followed as well, which confuses some compilers if they are not called with correct argv[0]. Therefore, 4e86f756bddca8db402502be47c0825e1e2aeb0d tries to replace this by concatenation with $(pwd), which, however, is only correct for tools brought locally by the toolchain. Hence fix the test by not evaluating it in the shell at all and rather using the knowledge about toolchain versus system tools that the rules have anyway.
2024-06-11foreign rules: fix computation of absolute pathsKlaus Aehlig
When setting CC, etc, in foreign rules, it is often useful to have it set as absolute path. This originally was achieved using realpath(1). This, however, implies that symbolic links are followed as well, which confuses some compilers if they are not called with correct argv[0]. Therefore, 4e86f756bddca8db402502be47c0825e1e2aeb0d tries to replace this by concatenation with $(pwd), which, however, is only correct for tools brought locally by the toolchain. Hence fix the test by not evaluating it in the shell at all and rather using the knowledge about toolchain versus system tools that the rules have anyway.
2024-06-10Update derived filesOliver Reiche
2024-06-10Merge branch 'just-rules' into rulesOliver Reiche
2024-06-10Merge subtree 'rules' into rules-ccOliver Reiche
2024-06-10Add support for protobuf compiler flagsOliver Reiche
2024-06-04["test_rules", "test_case"]: add config vars to be propagated to the runnerAlberto Sartori
The config vars ENV, ARCH, HOST_ARCH, TARGET_ARCH, BUILD_ARCH, OS have been added. This allows to test the rules with different configurations and/or set required values via the "defaults" target of the rules under testing.
2024-06-04rules-cc: Add regression tests for install-with-deps rule...Paul Cristian Sarbu
...in both release and debug modes. Co-authored-by: Oliver Reiche <oliver.reiche@huawei.com>
2024-06-04Add "rules" bindingOliver Reiche
... so one can also directly build the test_cases.
2024-06-04rules-cc: Commit ROOT filePaul Cristian Sarbu
2024-06-03Update docsPaul Cristian Sarbu
2024-06-03Merge commit 'baa40533450c53d393580ad5189bee73cf98cd50' into HEADPaul Cristian Sarbu
2024-06-03Merge commit '378ab0b30a90969e70d905a977bd53bb7828f052' into HEADPaul Cristian Sarbu
2024-06-03debug rule: Fix staging of headersPaul Cristian Sarbu
For libraries the headers of private dependencies were wrongly skipped from staging. For binaries, no headers were passed at all in the provides map. To fix these issues, an additional field is added in the provides map to ensure we collect, and then properly stage, all needed headers for both libraries and binaries.
2024-06-03debug rule: Fix staging of headersPaul Cristian Sarbu
For libraries the headers of private dependencies were wrongly skipped from staging. For binaries, no headers were passed at all in the provides map. To fix these issues, an additional field is added in the provides map to ensure we collect, and then properly stage, all needed headers for both libraries and binaries.
2024-06-03debug rule: Add flag field to skip installing extra debug artifactsPaul Cristian Sarbu
This is useful when we want to install targets built in debug mode, but do not want to stage all the additional source and header files if no debugging is being performed, e.g., in tests.
2024-06-03debug rule: Add flag field to skip installing extra debug artifactsPaul Cristian Sarbu
This is useful when we want to install targets built in debug mode, but do not want to stage all the additional source and header files if no debugging is being performed, e.g., in tests.
2024-06-03debug rule: Fix staging of headersPaul Cristian Sarbu
For libraries the headers of private dependencies were wrongly skipped from staging. For binaries, no headers were passed at all in the provides map. To fix these issues, an additional field is added in the provides map to ensure we collect, and then properly stage, all needed headers for both libraries and binaries.
2024-06-03debug rule: Add flag field to skip installing extra debug artifactsPaul Cristian Sarbu
This is useful when we want to install targets built in debug mode, but do not want to stage all the additional source and header files if no debugging is being performed, e.g., in tests.
2024-05-31Merge subtree 'rules' into rules-ccKlaus Aehlig
2024-05-31["CC", "pkg-config"]: support defaultsKlaus Aehlig
2024-05-29Merge subtree 'rules' into rules-ccKlaus Aehlig
2024-05-29["shell/test", "script"] Keep computed pathKlaus Aehlig
... instead of throwing it away after correctly computing it. Fixes the environment if the shell defaults bring a custom path.
2024-05-28["shell", "cmds"]: correctly join PATHKlaus Aehlig
... as shell environment variable has to be a string, not a list.
2024-05-28docs: include shell defaults and cmds in overviewKlaus Aehlig
2024-05-28Merge subtree 'rules' into rules-ccKlaus Aehlig
2024-05-28New rule ["shell", "cmds"]Klaus Aehlig
Add a new rule to execute shell comands, honoring the shell tool chain. Is is done in such a way, that coreutils (in particular, pwd) can also come from the binary dirs of the shell tool chain.
2024-05-28["shell", "defaults"] add field "bin dirs"Klaus Aehlig
... to declare directories inside the toolchain that contain additional binaries.
2024-05-27Merge subtree 'rules' into rules-ccKlaus Aehlig
2024-05-27Merge branch 'just-rules' into rulesKlaus Aehlig
2024-05-27CC: if no CC/CXX/AR is provided via the toolchain, default to cc/c++/arKlaus Aehlig
... instead of defaulting to "". In this way, an empty default target can be used as toolchain defaults for systems with default names.
2024-05-24Merge subtree 'rules' into rules-ccKlaus Aehlig
2024-05-24Merge branch 'just-rules' into rulesKlaus Aehlig
2024-05-24Prefer built-in array access over implementing "first" and "last" using foldlKlaus Aehlig
2024-05-23Merge subtree 'rules' into rules-ccKlaus Aehlig
2024-05-23Merge branch 'just-rules' into rulesKlaus Aehlig
2024-05-23["CC/pkgconfig", "system_library"]: honor shell toolchainKlaus Aehlig
... instead of hard-coding /bin/sh.
2024-05-22Merge subtree 'rules' into rules-ccKlaus Aehlig
2024-05-22CC/foreign: support shell toolchainKlaus Aehlig
2024-05-22Add test for creating shared lib from object libOliver Reiche
2024-05-21Merge subtree 'rules' into rules-ccOliver Reiche
2024-05-21Support creating shared lib from object libOliver Reiche
2024-05-21Merge subtree 'rules' into rules-ccKlaus Aehlig