Konsep dan terminologi
Fungsi
Aturan
Aturan native dikirimkan dengan biner Bazel dan tidak memerlukan pernyataanload
.
Aturan native tersedia secara global di file BUILD. Dalam file .bzl, Anda dapat menemukannya di
modul native
.
Untuk aturan Starlark non-native yang dikirimkan secara terpisah dari Bazel, lihat daftar aturan yang direkomendasikan.
Aturan native spesifik per bahasa
Language | Aturan biner | Aturan library | Aturan pengujian | Aturan lainnya |
---|---|---|---|---|
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 |
||
Buffering Protokol |
proto_lang_toolchain
proto_library |
|||
Python |
py_binary
|
py_library
|
py_test
|
py_runtime
|
Kulit kerang |
sh_binary
|
sh_library
|
sh_test
|
Aturan native tanpa bahasa
Keluarga | Aturan |
---|---|
Tindakan Tambahan | |
Umum | |
Platform | |
Workspace |