Lines Matching refs:v
29 v := &sepolicyVers{}
30 v.AddProperties(&v.properties)
31 android.InitAndroidArchModule(v, android.DeviceSupported, android.MultilibCommon)
32 return v
54 func (v *sepolicyVers) installable() bool {
55 return proptools.BoolDefault(v.properties.Installable, true)
58 func (v *sepolicyVers) stem() string {
59 return proptools.StringDefault(v.properties.Stem, v.Name())
62 func (v *sepolicyVers) DepsMutator(ctx android.BottomUpMutatorContext) {
66 func (v *sepolicyVers) GenerateAndroidBuildActions(ctx android.ModuleContext) {
68 switch proptools.String(v.properties.Version) {
77 out := android.PathForModuleGen(ctx, v.stem())
81 rule.Build("sepolicy_vers", v.Name())
83 if !v.installable() {
84 v.SkipInstall()
87 v.installPath = android.PathForModuleInstall(ctx, "etc", "selinux")
88 v.installSource = out
89 ctx.InstallFile(v.installPath, v.stem(), v.installSource)
91 ctx.SetOutputFiles(android.Paths{v.installSource}, "")
94 func (v *sepolicyVers) AndroidMkEntries() []android.AndroidMkEntries {
97 OutputFile: android.OptionalPathForPath(v.installSource),
100 entries.SetPath("LOCAL_MODULE_PATH", v.installPath)
101 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", v.stem())