Skip to main content

Rules

j2objc_library

View rule sourceopen_in_new
This rule uses J2ObjC to translate Java source files to Objective-C, which then can be used used as dependencies of objc_library and objc_binary rules. Detailed information about J2ObjC itself can be found at the J2ObjC site Custom J2ObjC transpilation flags can be specified using the build flag --j2objc_translation_flags in the command line. Please note that the translated files included in a j2objc_library target will be compiled using the default compilation configuration, the same configuration as for the sources of an objc_library rule with no compilation options specified in attributes. Plus, generated code is de-duplicated at target level, not source level. If you have two different Java targets that include the same Java source files, you may see a duplicate symbol error at link time. The correct way to resolve this issue is to move the shared Java source files into a separate common target that can be depended upon.

Arguments

objc_import

View rule sourceopen_in_new
This rule encapsulates an already-compiled static library in the form of an .a file. It also allows exporting headers and resources using the same attributes supported by objc_library.

Arguments

objc_library

View rule sourceopen_in_new
This rule produces a static library from the given Objective-C source files.

Arguments

available_xcodes

View rule sourceopen_in_new
Two targets of this rule can be depended on by an xcode_config rule instance to indicate the remotely and locally available xcode versions. This allows selection of an official xcode version from the collectively available xcodes.

Arguments

xcode_config

View rule sourceopen_in_new
A single target of this rule can be referenced by the --xcode_version_config build flag to translate the --xcode_version flag into an accepted official xcode version. This allows selection of an official xcode version from a number of registered aliases.

Arguments

xcode_version

View rule sourceopen_in_new
Represents a single official xcode version with acceptable aliases for that xcode version. See the xcode_config rule.

Arguments