Bazel 建構函式百科全書

回報問題 查看原始碼

概念與術語

Functions

規則

原生規則隨附 Bazel 二進位檔,不需要 load 陳述式。建構檔案可供全球使用。在 .bzl 檔案中,您可以在 native 模組中找到這些檔案。如需與 Bazel 分開銷售的非原生 Starlark 規則,請參閱建議規則清單。

語言相關原生規則

語言 二進位檔規則 資料庫規則 測試規則 其他規則
Android android_binary
aar_import
android_library
android_instrumentation_test
android_local_test
android_device
android_ndk_repository
android_sdk_repository
C / C++ cc_binary
cc_import
cc_library
cc_proto_library
fdo_prefetch_hints
fdo_profile
propeller_optimize
cc_test
cc_toolchain
cc_toolchain_suite
Java java_binary
java_import
java_library
java_lite_proto_library
java_proto_library
java_test
java_package_configuration
java_plugin
java_runtime
java_toolchain
Objective-C j2objc_library
objc_import
objc_library
available_xcodes
xcode_config
xcode_version
通訊協定緩衝區 proto_lang_toolchain
proto_library
Python py_binary
py_library
py_test
py_runtime
貝殼粉 sh_binary
sh_library
sh_test

各語言通用的原生規則

家庭 規則
其他動作
一般
平台和工具鍊
Workspace