Lines Matching refs:android
34 var pctx = android.NewPackageContext("android/soong/sh")
39 android.RegisterModuleType("sh_binary", ShBinaryFactory)
40 android.RegisterModuleType("sh_binary_host", ShBinaryHostFactory)
41 android.RegisterModuleType("sh_test", ShTestFactory)
42 android.RegisterModuleType("sh_test_host", ShTestHostFactory)
47 Src *string `android:"path,arch_variant"`
50 Sub_dir *string `android:"arch_variant"`
53 Filename *string `android:"arch_variant"`
57 Filename_from_src *bool `android:"arch_variant"`
63 Symlinks []string `android:"arch_variant"`
69 Test_suites []string `android:"arch_variant"`
73 Test_config *string `android:"path,arch_variant"`
77 Data []string `android:"path,arch_variant"`
85 Test_config_template *string `android:"path,arch_variant"`
94 android.ModuleBase
98 sourceFilePath android.Path
99 outputFilePath android.OutputPath
100 installedFile android.InstallPath
103 var _ android.HostToolProvider = (*ShBinary)(nil)
110 installDir android.InstallPath
112 data android.Paths
113 testConfig android.Path
116 func (s *ShBinary) HostToolPath() android.OptionalPath {
117 return android.OptionalPathForPath(s.installedFile)
120 func (s *ShBinary) DepsMutator(ctx android.BottomUpMutatorContext) {
126 func (s *ShBinary) OutputFile() android.OutputPath {
142 func (s *ShBinary) generateAndroidBuildActions(ctx android.ModuleContext) {
143 s.sourceFilePath = android.PathForModuleSrc(ctx, proptools.String(s.properties.Src))
156 s.outputFilePath = android.PathForModuleOut(ctx, filename).OutputPath
160 ctx.Build(pctx, android.BuildParams{
161 Rule: android.CpExecutable,
167 func (s *ShBinary) GenerateAndroidBuildActions(ctx android.ModuleContext) {
169 installDir := android.PathForModuleInstall(ctx, "bin", proptools.String(s.properties.Sub_dir))
173 func (s *ShBinary) AndroidMkEntries() []android.AndroidMkEntries {
174 return []android.AndroidMkEntries{android.AndroidMkEntries{
176 OutputFile: android.OptionalPathForPath(s.outputFilePath),
178 ExtraEntries: []android.AndroidMkExtraEntriesFunc{
179 func(entries *android.AndroidMkEntries) {
187 func (s *ShBinary) customAndroidMkEntries(entries *android.AndroidMkEntries) {
195 func (s *ShTest) GenerateAndroidBuildActions(ctx android.ModuleContext) {
201 if ctx.Target().NativeBridge == android.NativeBridgeEnabled {
209 s.installDir = android.PathForModuleInstall(ctx, testDir, s.SubDir())
211 s.installDir = android.PathForModuleInstall(ctx, testDir, s.Name())
215 s.data = android.PathsForModuleSrc(ctx, s.testProperties.Data)
232 func (s *ShTest) AndroidMkEntries() []android.AndroidMkEntries {
233 return []android.AndroidMkEntries{android.AndroidMkEntries{
235 OutputFile: android.OptionalPathForPath(s.outputFilePath),
237 ExtraEntries: []android.AndroidMkExtraEntriesFunc{
238 func(entries *android.AndroidMkEntries) {
265 func ShBinaryFactory() android.Module {
268 android.InitAndroidArchModule(module, android.HostAndDeviceSupported, android.MultilibFirst)
274 func ShBinaryHostFactory() android.Module {
277 android.InitAndroidArchModule(module, android.HostSupported, android.MultilibFirst)
282 func ShTestFactory() android.Module {
287 android.InitAndroidArchModule(module, android.HostAndDeviceSupported, android.MultilibFirst)
292 func ShTestHostFactory() android.Module {
297 android.InitAndroidArchModule(module, android.HostSupported, android.MultilibFirst)