개념 및 용어
함수
규칙
기본 규칙은 Bazel 바이너리와 함께 제공되며load
문이 필요하지 않습니다.
네이티브 규칙은 BUILD 파일에서 전역적으로 사용할 수 있습니다. .bzl 파일의 경우
native
모듈
Bazel과 별도로 제공되는 기본이 아닌 Starlark 규칙은
권장 규칙을 참조하세요.
언어별 기본 규칙
언어 | 바이너리 규칙 | 라이브러리 규칙 | 테스트 규칙 | 기타 규칙 |
---|---|---|---|---|
Android |
android_binary
<ph type="x-smartling-placeholder"> </ph> |
aar_import
<ph type="x-smartling-placeholder"> </ph> android_library <ph type="x-smartling-placeholder"> </ph> |
android_instrumentation_test
<ph type="x-smartling-placeholder"> </ph> android_local_test <ph type="x-smartling-placeholder"> </ph> |
android_device
<ph type="x-smartling-placeholder"> </ph> android_ndk_repository <ph type="x-smartling-placeholder"> </ph> android_sdk_repository <ph type="x-smartling-placeholder"> </ph> |
C / C++ |
cc_binary
<ph type="x-smartling-placeholder"> </ph> |
cc_import
<ph type="x-smartling-placeholder"> </ph> cc_library <ph type="x-smartling-placeholder"> </ph> cc_proto_library <ph type="x-smartling-placeholder"> </ph> cc_shared_library <ph type="x-smartling-placeholder"> </ph> fdo_prefetch_hints <ph type="x-smartling-placeholder"> </ph> fdo_profile <ph type="x-smartling-placeholder"> </ph> memprof_profile <ph type="x-smartling-placeholder"> </ph> propeller_optimize <ph type="x-smartling-placeholder"> </ph> |
cc_test
<ph type="x-smartling-placeholder"> </ph> |
cc_toolchain
<ph type="x-smartling-placeholder"> </ph> cc_toolchain_suite <ph type="x-smartling-placeholder"> </ph> |
자바 |
java_binary
<ph type="x-smartling-placeholder"> </ph> |
java_import
<ph type="x-smartling-placeholder"> </ph> java_library <ph type="x-smartling-placeholder"> </ph> java_lite_proto_library <ph type="x-smartling-placeholder"> </ph> java_proto_library <ph type="x-smartling-placeholder"> </ph> |
java_test
<ph type="x-smartling-placeholder"> </ph> |
java_package_configuration
<ph type="x-smartling-placeholder"> </ph> java_plugin <ph type="x-smartling-placeholder"> </ph> java_runtime <ph type="x-smartling-placeholder"> </ph> java_toolchain <ph type="x-smartling-placeholder"> </ph> |
Objective-C |
j2objc_library
<ph type="x-smartling-placeholder"> </ph> objc_import <ph type="x-smartling-placeholder"> </ph> objc_library <ph type="x-smartling-placeholder"> </ph> |
available_xcodes
<ph type="x-smartling-placeholder"> </ph> xcode_config <ph type="x-smartling-placeholder"> </ph> xcode_version <ph type="x-smartling-placeholder"> </ph> |
||
프로토콜 버퍼 |
proto_lang_toolchain
<ph type="x-smartling-placeholder"> </ph> proto_library <ph type="x-smartling-placeholder"> </ph> |
|||
Python |
py_binary
<ph type="x-smartling-placeholder"> </ph> |
py_library
<ph type="x-smartling-placeholder"> </ph> |
py_test
<ph type="x-smartling-placeholder"> </ph> |
py_runtime
<ph type="x-smartling-placeholder"> </ph> |
Shell |
sh_binary
<ph type="x-smartling-placeholder"> </ph> |
sh_library
<ph type="x-smartling-placeholder"> </ph> |
sh_test
<ph type="x-smartling-placeholder"> </ph> |
언어에 구애받지 않는 기본 규칙
가족 | 규칙 |
---|---|
추가 작업 | |
일반 | |
플랫폼 및 툴체인 | |
작업공간 |