• Home
  • Raw
  • Download

Lines Matching refs:p

72 func (p *PrebuiltEtc) inRecovery() bool {
73 return p.properties.InRecovery || p.ModuleBase.InstallInRecovery()
76 func (p *PrebuiltEtc) onlyInRecovery() bool {
77 return p.ModuleBase.InstallInRecovery()
80 func (p *PrebuiltEtc) InstallInRecovery() bool {
81 return p.inRecovery()
84 func (p *PrebuiltEtc) DepsMutator(ctx BottomUpMutatorContext) {
85 if p.properties.Src == nil {
90 func (p *PrebuiltEtc) SourceFilePath(ctx ModuleContext) Path {
91 return PathForModuleSrc(ctx, String(p.properties.Src))
96 func (p *PrebuiltEtc) SetAdditionalDependencies(paths Paths) {
97 p.additionalDependencies = &paths
100 func (p *PrebuiltEtc) OutputFile() OutputPath {
101 return p.outputFilePath
104 func (p *PrebuiltEtc) SubDir() string {
105 return String(p.properties.Sub_dir)
108 func (p *PrebuiltEtc) Installable() bool {
109 return p.properties.Installable == nil || Bool(p.properties.Installable)
112 func (p *PrebuiltEtc) GenerateAndroidBuildActions(ctx ModuleContext) {
113 p.sourceFilePath = PathForModuleSrc(ctx, String(p.properties.Src))
114 filename := String(p.properties.Filename)
115 filename_from_src := Bool(p.properties.Filename_from_src)
118 filename = p.sourceFilePath.Base()
126 p.outputFilePath = PathForModuleOut(ctx, filename).OutputPath
127 p.installDirPath = PathForModuleInstall(ctx, p.installDirBase, String(p.properties.Sub_dir))
133 Output: p.outputFilePath,
134 Input: p.sourceFilePath,
138 func (p *PrebuiltEtc) AndroidMk() AndroidMkData {
142 if p.inRecovery() && !p.onlyInRecovery() {
149 if p.commonProperties.Owner != nil {
150 fmt.Fprintln(w, "LOCAL_MODULE_OWNER :=", *p.commonProperties.Owner)
153 if p.Host() {
156 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", p.outputFilePath.String())
157 fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", "$(OUT_DIR)/"+p.installDirPath.RelPathString())
158 fmt.Fprintln(w, "LOCAL_INSTALLED_MODULE_STEM :=", p.outputFilePath.Base())
159 fmt.Fprintln(w, "LOCAL_UNINSTALLABLE_MODULE :=", !p.Installable())
161 fmt.Fprintln(w, "LOCAL_MODULE_TARGET_ARCH :=", p.Arch().ArchType.String())
162 if p.additionalDependencies != nil {
164 for _, path := range *p.additionalDependencies {
174 func InitPrebuiltEtcModule(p *PrebuiltEtc) {
175 p.AddProperties(&p.properties)