Bazel rules for with Gambit Scheme
To be able to use the Gambit Scheme rules, add following to your WORKSPACE
file.
git_repository(
name = "bazel_rules_gambit",
remote = "https://github.com/wsxiaoys/rules_gambit.git",
tag = "0.0.1",
)
load("@bazel_rules_gambit//gambit:gambit.bzl", "gambit_repositories")
gambit_repositories()
gambit_library(name, srcs, hdrs, deps, cdeps, *args, **kwargs)
gambit_library
defines two build target:
name
: Static linked library. Underlying it's acc_library
target thus can be linked to any c libs / binaries.name.o1
: Dynamic linked library. Can be used ingsc
/gsi
withload
primitive.
Attributes | Description |
---|---|
name |
String, required
A unique name for this rule. |
srcs |
List of Labels
List of They are converted into c source code and compiled with |
hdrs |
List of Labels
List of Rules depend on the library will have access to these files at compiling time.. Usually they're macros, library definitions or just files to be included. |
deps |
List of Labels
List of other libraries to be used when compiling / linking
|
cdeps |
List of Labels
List of other c libraries to be linked. |
*args, **kwargs |
Passed to underlying |
gambit_binary(name, srcs, hdrs, deps, cdeps, *args, **kwargs)
Attributes | Description |
---|---|
name |
String, required
A unique name for this rule. |
srcs |
List of Labels
List of They are converted into c source code and compiled with |
hdrs |
List of Labels
List of Rules depend on the library will have access to these files at compiling time.. Usually they're macros, library definitions or just files to be included. |
deps |
List of Labels
List of other libraries to be used when compiling / linking
|
cdeps |
List of Labels
List of other c libraries to be linked. |
*args, **kwargs |
Passed to underlying |