Lines Matching refs:m

161 	m := ctx.Module().(*Module)
162 p.androidMkVendorSuffix = vendorSuffixModules(ctx.Config())[m.BaseModuleName()]
337 m := ctx.Module().(*Module)
338 p.androidMkVendorSuffix = vendorSuffixModules(ctx.Config())[m.BaseModuleName()]
436 m := ctx.Module().(*Module)
437 p.androidMkVendorSuffix = vendorSuffixModules(ctx.Config())[m.BaseModuleName()]
533 func isVendorSnapshotModule(m *Module, moduleDir string) bool {
534 if !m.Enabled() || m.Properties.HideFromMake {
538 if isVendorProprietaryPath(moduleDir) && !m.IsVndk() {
541 if m.Target().Os.Class != android.Device {
544 if m.Target().NativeBridge == android.NativeBridgeEnabled {
548 if !m.IsForPlatform() || m.isSnapshotPrebuilt() || !m.inVendor() {
552 if _, ok := m.linker.(*kernelHeadersDecorator); ok {
556 if _, ok := m.linker.(*llndkStubDecorator); ok {
559 if _, ok := m.linker.(*llndkHeadersDecorator); ok {
564 if l, ok := m.linker.(snapshotLibraryInterface); ok {
566 if m.sanitize != nil {
570 if !l.shared() && m.sanitize.isSanitizerEnabled(t) {
576 return m.outputFile.Valid() && proptools.BoolDefault(m.VendorProperties.Vendor_available, true)
579 if !m.outputFile.Valid() {
582 if !m.IsVndk() {
585 return m.isVndkExt()
591 if m.binary() || m.object() {
592 return m.outputFile.Valid() && proptools.BoolDefault(m.VendorProperties.Vendor_available, true)
651 installSnapshot := func(m *Module) android.Paths {
652 targetArch := "arch-" + m.Target().Arch.ArchType.String()
653 if m.Target().Arch.ArchVariant != "" {
654 targetArch += "-" + m.Target().Arch.ArchVariant
684 prop.ModuleName = ctx.ModuleName(m)
685 if m.isVndkExt() {
687 if m.isVndkSp() {
693 prop.RelativeInstallPath = m.RelativeInstallPath()
695 prop.RuntimeLibs = m.Properties.SnapshotRuntimeLibs
696 prop.Required = m.RequiredModuleNames()
697 for _, path := range m.InitRc() {
700 for _, path := range m.VintfFragments() {
705 for _, path := range append(m.InitRc(), m.VintfFragments()...) {
715 if l, ok := m.linker.(snapshotLibraryInterface); ok {
726 prop.SharedLibs = m.Properties.SnapshotSharedLibs
728 if l.static() && m.sanitize != nil {
729 …prop.SanitizeMinimalDep = m.sanitize.Properties.MinimalRuntimeDep || enableMinimalRuntime(m.saniti…
730 prop.SanitizeUbsanDep = m.sanitize.Properties.UbsanRuntimeDep || enableUbsanRuntime(m.sanitize)
746 libPath := m.outputFile.Path()
751 stem = ctx.ModuleName(m)
755 } else if m.binary() {
757 prop.Symlinks = m.Symlinks()
758 prop.SharedLibs = m.Properties.SnapshotSharedLibs
761 binPath := m.outputFile.Path()
765 } else if m.object() {
768 objPath := m.outputFile.Path()
770 ctx.ModuleName(m)+filepath.Ext(objPath.Base()))
774 ctx.Errorf("unknown module %q in vendor snapshot", m.String())
789 m, ok := module.(*Module)
795 if !isVendorSnapshotModule(m, moduleDir) {
799 snapshotOutputs = append(snapshotOutputs, installSnapshot(m)...)
800 if l, ok := m.linker.(snapshotLibraryInterface); ok {
804 if len(m.NoticeFiles()) > 0 {
805 noticeName := ctx.ModuleName(m) + ".txt"
811 ctx, m.NoticeFiles(), noticeOut))