Lines Matching +full:- +full:p
7 // http://www.apache.org/licenses/LICENSE-2.0
41 // snapshot. For example VNDK-private modules must return true for the
45 // Returns true if a dir under source tree is an SoC-owned proprietary
112 ctx.RegisterSingletonType("vendor-snapshot", VendorSnapshotSingleton)
120 ctx.RegisterSingletonType("vendor-fake-snapshot", VendorFakeSnapshotSingleton)
194 ctx.RegisterSingletonType("recovery-snapshot", RecoverySnapshotSingleton)
428 func (p *baseSnapshotDecorator) Name(name string) string {
429 return name + p.NameSuffix()
432 func (p *baseSnapshotDecorator) NameSuffix() string {
433 return getSnapshotNameSuffix(p.moduleSuffix(), p.version(), p.arch())
436 func (p *baseSnapshotDecorator) version() string {
437 return p.baseProperties.Version
440 func (p *baseSnapshotDecorator) arch() string {
441 return p.baseProperties.Target_arch
444 func (p *baseSnapshotDecorator) moduleSuffix() string {
445 return p.baseProperties.ModuleSuffix
448 func (p *baseSnapshotDecorator) isSnapshotPrebuilt() bool {
452 func (p *baseSnapshotDecorator) snapshotAndroidMkSuffix() string {
453 return p.baseProperties.Androidmk_suffix
456 func (p *baseSnapshotDecorator) setSnapshotAndroidMkSuffix(ctx android.ModuleContext) {
462 p.baseProperties.Androidmk_suffix = p.image.moduleNameSuffix()
476 p.baseProperties.Androidmk_suffix = p.image.moduleNameSuffix()
480 p.baseProperties.Androidmk_suffix = ""
485 func (p *baseSnapshotDecorator) init(m *Module, image snapshotImage, moduleSuffix string) {
486 p.image = image
487 p.baseProperties.ModuleSuffix = image.moduleNameSuffix() + moduleSuffix
488 m.AddProperties(&p.baseProperties)
490 vendorSnapshotLoadHook(ctx, p)
496 func vendorSnapshotLoadHook(ctx android.LoadHookContext, p *baseSnapshotDecorator) {
497 if p.version() != ctx.DeviceConfig().VndkVersion() {
511 // These modules are auto-generated by development/vendor_snapshot/update.py.
516 // list of directories that will be added to the include path (using -I).
519 // list of directories that will be added to the system path (using -isystem).
549 func (p *snapshotLibraryDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags {
550 p.libraryDecorator.libName = strings.TrimSuffix(ctx.ModuleName(), p.NameSuffix())
551 return p.libraryDecorator.linkerFlags(ctx, flags)
554 func (p *snapshotLibraryDecorator) matchesWithDevice(config android.DeviceConfig) bool {
556 if len(arches) == 0 || arches[0].ArchType.String() != p.arch() {
559 if !p.header() && p.properties.Src == nil {
568 func (p *snapshotLibraryDecorator) link(ctx ModuleContext, flags Flags, deps PathDeps, objs Objects…
569 p.setSnapshotAndroidMkSuffix(ctx)
571 if p.header() {
572 return p.libraryDecorator.link(ctx, flags, deps, objs)
575 if p.sanitizerProperties.CfiEnabled {
576 p.properties = p.sanitizerProperties.Cfi
579 if !p.matchesWithDevice(ctx.DeviceConfig()) {
584 …p.libraryDecorator.reexportDirs(android.PathsForModuleSrc(ctx, p.properties.Export_include_dirs)..…
585 …p.libraryDecorator.reexportSystemDirs(android.PathsForModuleSrc(ctx, p.properties.Export_system_in…
586 p.libraryDecorator.reexportFlags(p.properties.Export_flags...)
589 p.libraryDecorator.reexportDirs(deps.ReexportedDirs...)
590 p.libraryDecorator.reexportSystemDirs(deps.ReexportedSystemDirs...)
591 p.libraryDecorator.reexportFlags(deps.ReexportedFlags...)
592 p.libraryDecorator.reexportDeps(deps.ReexportedDeps...)
593 p.libraryDecorator.addExportedGeneratedHeaders(deps.ReexportedGeneratedHeaders...)
595 in := android.PathForModuleSrc(ctx, *p.properties.Src)
596 p.unstrippedOutputFile = in
598 if p.shared() {
605 p.tocFile = android.OptionalPathForPath(tocFile)
610 UnstrippedSharedLibrary: p.unstrippedOutputFile,
613 TableOfContents: p.tocFile,
617 if p.static() {
626 p.libraryDecorator.flagExporter.setProvider(ctx)
631 func (p *snapshotLibraryDecorator) install(ctx ModuleContext, file android.Path) {
632 if p.matchesWithDevice(ctx.DeviceConfig()) && (p.shared() || p.static()) {
633 p.baseInstaller.install(ctx, file)
637 func (p *snapshotLibraryDecorator) nativeCoverage() bool {
641 func (p *snapshotLibraryDecorator) isSanitizerEnabled(t SanitizerType) bool {
644 return p.sanitizerProperties.Cfi.Src != nil
650 func (p *snapshotLibraryDecorator) setSanitizerVariation(t SanitizerType, enabled bool) {
656 p.sanitizerProperties.CfiEnabled = true
694 // vendor_snapshot_shared is a special prebuilt shared library which is auto-generated by
704 // recovery_snapshot_shared is a special prebuilt shared library which is auto-generated by
714 // vendor_snapshot_static is a special prebuilt static library which is auto-generated by
724 // recovery_snapshot_static is a special prebuilt static library which is auto-generated by
734 // vendor_snapshot_header is a special header library which is auto-generated by
744 // recovery_snapshot_header is a special header library which is auto-generated by
762 // These modules are auto-generated by development/vendor_snapshot/update.py.
774 func (p *snapshotBinaryDecorator) matchesWithDevice(config android.DeviceConfig) bool {
775 if config.DeviceArch() != p.arch() {
778 if p.properties.Src == nil {
786 func (p *snapshotBinaryDecorator) link(ctx ModuleContext, flags Flags, deps PathDeps, objs Objects)…
787 p.setSnapshotAndroidMkSuffix(ctx)
789 if !p.matchesWithDevice(ctx.DeviceConfig()) {
793 in := android.PathForModuleSrc(ctx, *p.properties.Src)
794 p.unstrippedOutputFile = in
809 func (p *snapshotBinaryDecorator) nativeCoverage() bool {
813 // vendor_snapshot_binary is a special prebuilt executable binary which is auto-generated by
820 // recovery_snapshot_binary is a special prebuilt executable binary which is auto-generated by
857 // These modules are auto-generated by development/vendor_snapshot/update.py.
869 func (p *snapshotObjectLinker) matchesWithDevice(config android.DeviceConfig) bool {
870 if config.DeviceArch() != p.arch() {
873 if p.properties.Src == nil {
881 func (p *snapshotObjectLinker) link(ctx ModuleContext, flags Flags, deps PathDeps, objs Objects) an…
882 p.setSnapshotAndroidMkSuffix(ctx)
884 if !p.matchesWithDevice(ctx.DeviceConfig()) {
888 return android.PathForModuleSrc(ctx, *p.properties.Src)
891 func (p *snapshotObjectLinker) nativeCoverage() bool {
895 // vendor_snapshot_object is a special prebuilt compiled object file which is auto-generated by
913 // recovery_snapshot_object is a special prebuilt compiled object file which is auto-generated by