Lines Matching full:binary
27 // Builds this binary as a static binary. Implies prefer_rlib true.
30 // binary, but will still implicitly imply prefer_rlib true.
35 binary() bool methodSpec
49 // rust_binary produces a binary that is runnable on a device.
63 binary := &binaryDecorator{
67 module.compiler = binary
69 return module, binary
72 func (binary *binaryDecorator) compilerFlags(ctx ModuleContext, flags Flags) Flags {
73 flags = binary.baseCompiler.compilerFlags(ctx, flags)
83 if Bool(binary.Properties.Static_executable) {
92 func (binary *binaryDecorator) compilerDeps(ctx DepsContext, deps Deps) Deps {
93 deps = binary.baseCompiler.compilerDeps(ctx, deps)
95 static := Bool(binary.Properties.Static_executable)
117 func (binary *binaryDecorator) compilerProps() []interface{} {
118 return append(binary.baseCompiler.compilerProps(),
119 &binary.Properties,
120 &binary.stripper.StripProperties)
123 func (binary *binaryDecorator) nativeCoverage() bool {
127 func (binary *binaryDecorator) preferRlib() bool {
128 …return Bool(binary.baseCompiler.Properties.Prefer_rlib) || Bool(binary.Properties.Static_executabl…
131 func (binary *binaryDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) buildOutput {
132 fileName := binary.getStem(ctx) + ctx.toolchain().ExecutableSuffix()
135 crateRootPath := crateRootPath(ctx, binary)
144 if binary.stripper.NeedsStrip(ctx) {
147 binary.stripper.StripExecutableOrSharedLib(ctx, outputFile, strippedOutputFile)
149 binary.baseCompiler.strippedOutputFile = android.OptionalPathForPath(strippedOutputFile)
151 binary.baseCompiler.unstrippedOutputFile = outputFile
157 func (binary *binaryDecorator) autoDep(ctx android.BottomUpMutatorContext) autoDep {
159 if binary.preferRlib() {
168 func (binary *binaryDecorator) stdLinkage(ctx *depsContext) RustLinkage {
169 if binary.preferRlib() {
172 return binary.baseCompiler.stdLinkage(ctx)
175 func (binary *binaryDecorator) binary() bool { func
179 func (binary *binaryDecorator) staticallyLinked() bool {
180 return Bool(binary.Properties.Static_executable)
183 func (binary *binaryDecorator) testBinary() bool {