summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-30rules-cc: Support run-libs in CC/proto librariesOliver Reiche
2023-05-30rules-cc: Use field_map_provider for default-ENVOliver Reiche
2023-05-30rules-cc: Put global LDFLAGS lastOliver Reiche
2023-05-30rules-cc: Fix missing LDFLAGS propagationOliver Reiche
2023-05-30rules-cc: Move binary test_run to expressionOliver Reiche
2023-05-30rules-cc: Drop needless conditionalOliver Reiche
2023-05-16Set CMAKE_{SOURCE,BINARY}_DIR in cmake build environmentSascha Roloff
Co-authored-by: Oliver Reiche <oliver.reiche@huawei.com>
2023-05-16Remove CMAKE_BUILD_PARALLEL_LEVEL from cmake build environmentSascha Roloff
Co-authored-by: Oliver Reiche <oliver.reiche@huawei.com>
2023-05-09rules: prebuilt expr calls pkg-config with --staticOliver Reiche
... for static prebuilt libraries.
2023-05-08rules: Fix wrong import in data stagedOliver Reiche
2023-05-06["data", "staged"]: support dropping pathsKlaus Aehlig
In this way, GLOB constructs can be used more easily. As the dropping happens early, this can also be used to solve staging conflicts, by removing that logical path and later add a consolidated artifact to that path.
2023-05-05Merge branch 'rules/oss' into rules/rules-cc-rulesOliver Reiche
2023-05-05rules: Test symbol and macro separately for auto configOliver Reiche
2023-04-26Merge branch 'rules' into rules-cc/rulesOliver Reiche
2023-04-26rules: Support mixing system/toolchain for protoc/grpcOliver Reiche
2023-04-26rules: Fix propagation of PATH for protocOliver Reiche
2023-04-25Merge commit '09c9aafa8efafc8bcbb0e26d49a2252816d6948b'Klaus Aehlig
2023-04-25Merge commit '538e367d4c976646a5ae58a006e30a227bb3bee9'Klaus Aehlig
2023-04-24["CC/test", "test"]: Support RUNS_PER_TESTKlaus Aehlig
2023-04-24["CC/test", "test"]: factor out test-inputKlaus Aehlig
In this way, the test action gets canonical, so adding RUNS_PER_TEST support to this rule should be easily mergable into downstream rules.
2023-04-20Merge commit 'cb266253493b9060ccbfd9e4667cbdc1cbde1473'Klaus Aehlig
2023-04-20["CC/proto", "library"] proto deps are publicKlaus Aehlig
... also for non-service libraries; the generated .ph.h files may well refer, e.g., the well-known protos.
2023-04-19["CC", "defaults"] add basic field documentationKlaus Aehlig
2023-04-19Merge commit 'ec15b36a5bca5916ba06dcff83bb8ea46b25446a'Klaus Aehlig
2023-04-19CC/proto toolchain staging: add missing elseKlaus Aehlig
If we have a provided toolchain, we stage it to the corresponding subdirectory. Otherwise, we still have to provide a value of the correct type (a map) rather than the default else (which is the empty list).
2023-04-18Merge commit '48f4317'Klaus Aehlig
2023-04-18Merge commit '0db46fe'Klaus Aehlig
2023-04-18Merge commit '9e061c2'Klaus Aehlig
2023-04-18Merge commit 'f54fda7'Klaus Aehlig
Ours merge for the backported commits.
2023-04-18Merge commit '67afc29'Klaus Aehlig
2023-04-18rules: Support protoc/grpc_cpp_plugin from defaultsOliver Reiche
2023-04-18rules: Support hdrs-only for install-with-deps ruleOliver Reiche
2023-04-18rules: Move install-with-deps to EXPRESSIONSOliver Reiche
2023-04-18rules: Support install-with-deps ruleOliver Reiche
Backport of commits a382b308b9011606e7d07376808812d51631d558 and 5ae5134804b6edaaffec593868f133dd840ef7df from the rules-cc repository.
2023-04-18rules: Fix missing CXXFLAGS propagation for proto libsOliver Reiche
2023-04-18rules: Update dependency on protobuf and grpc targetsOliver Reiche
2023-04-18rules: Support reading flags from files for existing rulesOliver Reiche
Backport of commit 4a8579a2a4ef252644df0c29893e70ad8438ae82 from the rules-cc repository.
2023-04-18rules: Support creating compile/link flags from pkg-configOliver Reiche
2023-04-18rules: Drop CC/IDE headers ruleOliver Reiche
2023-04-11["shell/test", "script"]: make TEST_RUN_NUMBER availableKlaus Aehlig
If RUNS_PER_TEST is given, inform each individual test action about the run number it is executing. This can be used, e.g., to set random seeds appropriately.
2023-03-15Merge commit '2e53ff4d37dbda318f9c33e631bbd9a1d27c9b8e' into HEADAlberto Sartori
2023-03-15grpc: bugfix: add missing dependency to grpc service libraryAlberto Sartori
2023-03-15rules: CC/auto: add "config_file" rule to generate a c/c++ header...Alberto Sartori
...starting from a template (aka configuration file), and using the variables defined via a ["CC/auto", "config"] target. For example, to use a CMake configuration file, the targets could be defined as follows ... , "foo-header-blueprint": { "type": ["@", "rules", "CC/auto", "config_file"] , "input": ["config.hpp.in"] , "output": ["config.hpp"] , "stage": ["foo"] , "magic_string": ["cmakedefine"] , "@only": ["true"] } , "foo-header": { "type": "configure" , "target": "foo-header-blueprint" , "config": { "type": "let*" , "bindings": [ [ "defines" , [ ["var", "\"string value\""] , ["FOO_MAJOR_VERSION", "3"] , ["use_this_feature", true] ] ] ] , "body": {"type": "env", "vars": ["defines"]} } } ... The file config.hpp.in may look as follows #ifndef config_cmake #define config_cmake #cmakedefine var #cmakedefine use_this_feature #cmakedefine01 use_this_feature #cmakedefine unused #define FOO_VERSION @FOO_MAJOR_VERSION@ #define DONT_TOUCH_THIS ${FOO_MAJOR_VERSION} #endif and the generated configuration file foo/config.hpp is #ifndef config_cmake #define config_cmake #define var "string value" #define use_this_feature #define use_this_feature 1 /* #undef unused */ #define FOO_VERSION 3 #define DONT_TOUCH_THIS ${FOO_MAJOR_VERSION} #endif
2023-02-28Support non-file targets for prebuilt libsOliver Reiche
2023-02-28Merge commit '3b08fc29eff1fa61c3fd317ca5321d47cddd9c69' into HEADKlaus Aehlig
2023-02-28Various typo fixesPaul Cristian Sarbu
Co-authored-by: Sascha Roloff <sascha.roloff@huawei.com>
2023-01-31Support "CC/foreign/make" data and libraryOliver Reiche
2023-01-31cmake: Support setting number of build jobsOliver Reiche
2023-01-31cmake: Support pre_cmds and post_cmdsOliver Reiche
2023-01-31cmake: Remove ineffective CMAKE_AR from configure argumentsOliver Reiche