Konsep dan terminologi
Fungsi
Aturan
Aturan native dikirimkan dengan biner Bazel dan tidak memerlukan pernyataanload
.
Aturan native tersedia secara global dalam file BUILD. Di file .bzl, Anda dapat menemukannya di
modul native
.
Untuk aturan Starlark yang tidak berasal dari Bazel, lihat daftar
aturan yang direkomendasikan.
Aturan native khusus bahasa
Language | Aturan biner | Aturan library | Uji aturan | Aturan lainnya |
---|---|---|---|---|
Android |
android_binary
|
android_library
|
android_sdk_repository
|
|
C / C++ |
cc_binary
|
cc_import
cc_library cc_proto_library cc_shared_library cc_static_library |
cc_test
|
cc_toolchain
cc_toolchain_suite fdo_prefetch_hints fdo_profile memprof_profile propeller_optimize |
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 |
|||
Buffering Protokol |
proto_library
|
proto_lang_toolchain
|
||
Python |
py_binary
|
py_library
|
py_test
|
py_runtime
|
Shell |
sh_binary
|
sh_library
|
sh_test
|
Aturan native tanpa bahasa
Keluarga | Aturan |
---|---|
Tindakan Tambahan | |
Umum | |
Platform dan Toolchain | |
Workspace |