Lines Matching refs:m
146 OtherModuleName(m blueprint.Module) string
150 OtherModuleDir(m blueprint.Module) string
154 OtherModuleErrorf(m blueprint.Module, fmt string, args ...interface{})
159 OtherModuleDependencyTag(m blueprint.Module) blueprint.DependencyTag
187 OtherModuleType(m blueprint.Module) string
193 OtherModuleProvider(m blueprint.Module, provider blueprint.ProviderKey) interface{}
196 OtherModuleHasProvider(m blueprint.Module, provider blueprint.ProviderKey) bool
1005 func initAndroidModuleBase(m Module) {
1006 m.base().module = m
1011 func InitAndroidModule(m Module) {
1012 initAndroidModuleBase(m)
1013 base := m.base()
1015 m.AddProperties(
1020 initProductVariableModule(m)
1022 base.generalProperties = m.GetProperties()
1023 base.customizableProperties = m.GetProperties()
1027 setPrimaryVisibilityProperty(m, "visibility", &base.commonProperties.Visibility)
1031 setPrimaryLicensesProperty(m, "licenses", &base.commonProperties.Licenses)
1040 func InitAndroidArchModule(m Module, hod HostOrDeviceSupported, defaultMultilib Multilib) {
1041 InitAndroidModule(m)
1043 base := m.base()
1050 m.AddProperties(&base.hostAndDeviceProperties)
1053 initArchModule(m)
1065 func InitAndroidMultiTargetsArchModule(m Module, hod HostOrDeviceSupported, defaultMultilib Multili…
1066 InitAndroidArchModule(m, hod, defaultMultilib)
1067 m.base().commonProperties.UseTargetVariants = false
1080 func InitCommonOSAndroidMultiTargetsArchModule(m Module, hod HostOrDeviceSupported, defaultMultilib…
1081 InitAndroidArchModule(m, hod, defaultMultilib)
1082 m.base().commonProperties.UseTargetVariants = false
1083 m.base().commonProperties.CreateCommonOSVariant = true
1193 func (m *ModuleBase) ComponentDepsMutator(BottomUpMutatorContext) {}
1195 func (m *ModuleBase) DepsMutator(BottomUpMutatorContext) {}
1197 func (m *ModuleBase) AddProperties(props ...interface{}) {
1198 m.registerProps = append(m.registerProps, props...)
1201 func (m *ModuleBase) GetProperties() []interface{} {
1202 return m.registerProps
1205 func (m *ModuleBase) BuildParamsForTests() []BuildParams {
1206 return m.buildParams
1209 func (m *ModuleBase) RuleParamsForTests() map[blueprint.Rule]blueprint.RuleParams {
1210 return m.ruleParams
1213 func (m *ModuleBase) VariablesForTests() map[string]string {
1214 return m.variables
1219 func (m *ModuleBase) Name() string {
1220 return String(m.nameProperties.Name)
1224 func (m *ModuleBase) String() string {
1226 sb.WriteString(m.commonProperties.DebugName)
1228 for i := range m.commonProperties.DebugMutators {
1232 sb.WriteString(m.commonProperties.DebugMutators[i])
1234 sb.WriteString(m.commonProperties.DebugVariations[i])
1241 func (m *ModuleBase) BaseModuleName() string {
1242 return String(m.nameProperties.Name)
1245 func (m *ModuleBase) base() *ModuleBase {
1246 return m
1249 func (m *ModuleBase) qualifiedModuleId(ctx BaseModuleContext) qualifiedModuleName {
1253 func (m *ModuleBase) visibilityProperties() []visibilityProperty {
1254 return m.visibilityPropertyInfo
1257 func (m *ModuleBase) Dists() []Dist {
1258 if len(m.distProperties.Dist.Targets) > 0 {
1261 distsCopy := append([]Dist(nil), m.distProperties.Dists...)
1262 return append(distsCopy, m.distProperties.Dist)
1264 return m.distProperties.Dists
1268 func (m *ModuleBase) GenerateTaggedDistFiles(ctx BaseModuleContext) TaggedDistFiles {
1270 for _, dist := range m.Dists() {
1275 if outputFileProducer, ok := m.module.(OutputFileProducer); ok {
1299 func (m *ModuleBase) Target() Target {
1300 return m.commonProperties.CompileTarget
1303 func (m *ModuleBase) TargetPrimary() bool {
1304 return m.commonProperties.CompilePrimary
1307 func (m *ModuleBase) MultiTargets() []Target {
1308 return m.commonProperties.CompileMultiTargets
1311 func (m *ModuleBase) Os() OsType {
1312 return m.Target().Os
1315 func (m *ModuleBase) Host() bool {
1316 return m.Os().Class == Host
1319 func (m *ModuleBase) Device() bool {
1320 return m.Os().Class == Device
1323 func (m *ModuleBase) Arch() Arch {
1324 return m.Target().Arch
1327 func (m *ModuleBase) ArchSpecific() bool {
1328 return m.commonProperties.ArchSpecific
1332 func (m *ModuleBase) IsCommonOSVariant() bool {
1333 return m.commonProperties.CommonOSVariant
1337 func (m *ModuleBase) supportsTarget(target Target) bool {
1341 return m.HostCrossSupported()
1343 return m.HostSupported()
1346 return m.DeviceSupported()
1355 func (m *ModuleBase) DeviceSupported() bool {
1356 hod := m.commonProperties.HostOrDeviceSupported
1359 …deviceEnabled := proptools.BoolDefault(m.hostAndDeviceProperties.Device_supported, hod&deviceDefau…
1366 func (m *ModuleBase) HostSupported() bool {
1367 hod := m.commonProperties.HostOrDeviceSupported
1370 …hostEnabled := proptools.BoolDefault(m.hostAndDeviceProperties.Host_supported, hod&hostDefault != …
1378 func (m *ModuleBase) HostCrossSupported() bool {
1379 hod := m.commonProperties.HostOrDeviceSupported
1382 …hostEnabled := proptools.BoolDefault(m.hostAndDeviceProperties.Host_supported, hod&hostDefault != …
1386 func (m *ModuleBase) Platform() bool {
1387 return !m.DeviceSpecific() && !m.SocSpecific() && !m.ProductSpecific() && !m.SystemExtSpecific()
1390 func (m *ModuleBase) DeviceSpecific() bool {
1391 return Bool(m.commonProperties.Device_specific)
1394 func (m *ModuleBase) SocSpecific() bool {
1395 …return Bool(m.commonProperties.Vendor) || Bool(m.commonProperties.Proprietary) || Bool(m.commonPro…
1398 func (m *ModuleBase) ProductSpecific() bool {
1399 return Bool(m.commonProperties.Product_specific)
1402 func (m *ModuleBase) SystemExtSpecific() bool {
1403 return Bool(m.commonProperties.System_ext_specific)
1408 func (m *ModuleBase) RequiresStableAPIs(ctx BaseModuleContext) bool {
1409 return m.SocSpecific() || m.DeviceSpecific() ||
1410 (m.ProductSpecific() && ctx.Config().EnforceProductPartitionInterface())
1413 func (m *ModuleBase) PartitionTag(config DeviceConfig) string {
1415 if m.SocSpecific() {
1421 } else if m.DeviceSpecific() {
1430 } else if m.ProductSpecific() {
1436 } else if m.SystemExtSpecific() {
1447 func (m *ModuleBase) Enabled() bool {
1448 if m.commonProperties.ForcedDisabled {
1451 if m.commonProperties.Enabled == nil {
1452 return !m.Os().DefaultDisabled
1454 return *m.commonProperties.Enabled
1457 func (m *ModuleBase) Disable() {
1458 m.commonProperties.ForcedDisabled = true
1462 func (m *ModuleBase) HideFromMake() {
1463 m.commonProperties.HideFromMake = true
1467 func (m *ModuleBase) IsHideFromMake() bool {
1468 return m.commonProperties.HideFromMake == true
1472 func (m *ModuleBase) SkipInstall() {
1473 m.commonProperties.SkipInstall = true
1478 func (m *ModuleBase) IsSkipInstall() bool {
1479 return m.commonProperties.SkipInstall
1487 func (m *ModuleBase) MakeUninstallable() {
1488 m.HideFromMake()
1491 func (m *ModuleBase) ReplacedByPrebuilt() {
1492 m.commonProperties.ReplacedByPrebuilt = true
1493 m.HideFromMake()
1496 func (m *ModuleBase) IsReplacedByPrebuilt() bool {
1497 return m.commonProperties.ReplacedByPrebuilt
1500 func (m *ModuleBase) ExportedToMake() bool {
1501 return m.commonProperties.NamespaceExportedToMake
1506 func (m *ModuleBase) computeInstallDeps(ctx ModuleContext) ([]*installPathsDepSet, []*packagingSpec…
1519 func (m *ModuleBase) FilesToInstall() InstallPaths {
1520 return m.installFiles
1523 func (m *ModuleBase) PackagingSpecs() []PackagingSpec {
1524 return m.packagingSpecs
1527 func (m *ModuleBase) TransitivePackagingSpecs() []PackagingSpec {
1528 return m.packagingSpecsDepSet.ToList()
1531 func (m *ModuleBase) NoAddressSanitizer() bool {
1532 return m.noAddressSanitizer
1535 func (m *ModuleBase) InstallInData() bool {
1539 func (m *ModuleBase) InstallInTestcases() bool {
1543 func (m *ModuleBase) InstallInSanitizerDir() bool {
1547 func (m *ModuleBase) InstallInRamdisk() bool {
1548 return Bool(m.commonProperties.Ramdisk)
1551 func (m *ModuleBase) InstallInVendorRamdisk() bool {
1552 return Bool(m.commonProperties.Vendor_ramdisk)
1555 func (m *ModuleBase) InstallInDebugRamdisk() bool {
1556 return Bool(m.commonProperties.Debug_ramdisk)
1559 func (m *ModuleBase) InstallInRecovery() bool {
1560 return Bool(m.commonProperties.Recovery)
1563 func (m *ModuleBase) InstallInRoot() bool {
1567 func (m *ModuleBase) InstallBypassMake() bool {
1571 func (m *ModuleBase) InstallForceOS() (*OsType, *ArchType) {
1575 func (m *ModuleBase) Owner() string {
1576 return String(m.commonProperties.Owner)
1579 func (m *ModuleBase) NoticeFiles() Paths {
1580 return m.noticeFiles
1583 func (m *ModuleBase) setImageVariation(variant string) {
1584 m.commonProperties.ImageVariation = variant
1587 func (m *ModuleBase) ImageVariation() blueprint.Variation {
1590 Variation: m.base().commonProperties.ImageVariation,
1594 func (m *ModuleBase) getVariationByMutatorName(mutator string) string {
1595 for i, v := range m.commonProperties.DebugMutators {
1597 return m.commonProperties.DebugVariations[i]
1604 func (m *ModuleBase) InRamdisk() bool {
1605 return m.base().commonProperties.ImageVariation == RamdiskVariation
1608 func (m *ModuleBase) InVendorRamdisk() bool {
1609 return m.base().commonProperties.ImageVariation == VendorRamdiskVariation
1612 func (m *ModuleBase) InDebugRamdisk() bool {
1613 return m.base().commonProperties.ImageVariation == DebugRamdiskVariation
1616 func (m *ModuleBase) InRecovery() bool {
1617 return m.base().commonProperties.ImageVariation == RecoveryVariation
1620 func (m *ModuleBase) RequiredModuleNames() []string {
1621 return m.base().commonProperties.Required
1624 func (m *ModuleBase) HostRequiredModuleNames() []string {
1625 return m.base().commonProperties.Host_required
1628 func (m *ModuleBase) TargetRequiredModuleNames() []string {
1629 return m.base().commonProperties.Target_required
1632 func (m *ModuleBase) InitRc() Paths {
1633 return append(Paths{}, m.initRcPaths...)
1636 func (m *ModuleBase) VintfFragments() Paths {
1637 return append(Paths{}, m.vintfFragmentsPaths...)
1640 func (m *ModuleBase) generateModuleTarget(ctx ModuleContext) {
1659 m.installTarget = PathForPhony(ctx, name)
1660 deps = append(deps, m.installTarget)
1666 m.checkbuildTarget = PathForPhony(ctx, name)
1667 deps = append(deps, m.checkbuildTarget)
1678 m.blueprintDir = ctx.ModuleDir()
1682 func determineModuleKind(m *ModuleBase, ctx blueprint.EarlyModuleContext) moduleKind {
1683 …var socSpecific = Bool(m.commonProperties.Vendor) || Bool(m.commonProperties.Proprietary) || Bool(…
1684 var deviceSpecific = Bool(m.commonProperties.Device_specific)
1685 var productSpecific = Bool(m.commonProperties.Product_specific)
1686 var systemExtSpecific = Bool(m.commonProperties.System_ext_specific)
1691 if Bool(m.commonProperties.Vendor) {
1694 if Bool(m.commonProperties.Proprietary) {
1697 if Bool(m.commonProperties.Soc_specific) {
1716 if Bool(m.commonProperties.Vendor) {
1719 if Bool(m.commonProperties.Proprietary) {
1722 if Bool(m.commonProperties.Soc_specific) {
1741 func (m *ModuleBase) earlyModuleContextFactory(ctx blueprint.EarlyModuleContext) earlyModuleContext…
1744 kind: determineModuleKind(m, ctx),
1749 func (m *ModuleBase) baseModuleContextFactory(ctx blueprint.BaseModuleContext) baseModuleContext {
1752 earlyModuleContext: m.earlyModuleContextFactory(ctx),
1753 os: m.commonProperties.CompileOS,
1754 target: m.commonProperties.CompileTarget,
1755 targetPrimary: m.commonProperties.CompilePrimary,
1756 multiTargets: m.commonProperties.CompileMultiTargets,
1760 func (m *ModuleBase) GenerateBuildActions(blueprintCtx blueprint.ModuleContext) {
1762 module: m.module,
1764 baseModuleContext: m.baseModuleContextFactory(blueprintCtx),
1768 dependencyInstallFiles, dependencyPackagingSpecs := m.computeInstallDeps(ctx)
1772 m.installFilesDepSet = newInstallPathsDepSet(nil, dependencyInstallFiles)
1784 ctx.baseModuleContext.strictVisitDeps = !m.IsCommonOSVariant()
1811 checkDistProperties(ctx, "dist", &m.distProperties.Dist)
1812 for i, _ := range m.distProperties.Dists {
1813 checkDistProperties(ctx, fmt.Sprintf("dists[%d]", i), &m.distProperties.Dists[i])
1816 if m.Enabled() {
1819 if m, ok := bm.(Module); ok {
1820 …ctx.validateAndroidModule(bm, ctx.OtherModuleDependencyTag(m), ctx.baseModuleContext.strictVisitDe…
1824 m.noticeFiles = make([]Path, 0)
1826 notice := proptools.StringDefault(m.commonProperties.Notice, "")
1834 m.noticeFiles = append(m.noticeFiles, optPath.Path())
1840 m.noticeFiles = append(m.noticeFiles, optPath.Path())
1850 m.module.GenerateAndroidBuildActions(ctx)
1855 m.initRcPaths = PathsForModuleSrc(ctx, m.commonProperties.Init_rc)
1857 for _, src := range m.initRcPaths {
1861 m.vintfFragmentsPaths = PathsForModuleSrc(ctx, m.commonProperties.Vintf_fragments)
1863 for _, src := range m.vintfFragmentsPaths {
1871 m.distFiles = m.GenerateTaggedDistFiles(ctx)
1876 m.installFiles = append(m.installFiles, ctx.installFiles...)
1877 m.checkbuildFiles = append(m.checkbuildFiles, ctx.checkbuildFiles...)
1878 m.packagingSpecs = append(m.packagingSpecs, ctx.packagingSpecs...)
1880 m.phonies[k] = append(m.phonies[k], v...)
1890 if m == ctx.FinalModule().(Module).base() {
1891 m.generateModuleTarget(ctx)
1897 m.installFilesDepSet = newInstallPathsDepSet(m.installFiles, dependencyInstallFiles)
1898 m.packagingSpecsDepSet = newPackagingSpecsDepSet(m.packagingSpecs, dependencyPackagingSpecs)
1900 m.buildParams = ctx.buildParams
1901 m.ruleParams = ctx.ruleParams
1902 m.variables = ctx.variables
2018 func (b *baseModuleContext) OtherModuleName(m blueprint.Module) string {
2019 return b.bp.OtherModuleName(m)
2021 func (b *baseModuleContext) OtherModuleDir(m blueprint.Module) string { return b.bp.OtherModuleDir(…
2022 func (b *baseModuleContext) OtherModuleErrorf(m blueprint.Module, fmt string, args ...interface{}) {
2023 b.bp.OtherModuleErrorf(m, fmt, args...)
2025 func (b *baseModuleContext) OtherModuleDependencyTag(m blueprint.Module) blueprint.DependencyTag {
2026 return b.bp.OtherModuleDependencyTag(m)
2038 func (b *baseModuleContext) OtherModuleType(m blueprint.Module) string {
2039 return b.bp.OtherModuleType(m)
2041 func (b *baseModuleContext) OtherModuleProvider(m blueprint.Module, provider blueprint.ProviderKey)…
2042 return b.bp.OtherModuleProvider(m, provider)
2044 func (b *baseModuleContext) OtherModuleHasProvider(m blueprint.Module, provider blueprint.ProviderK…
2045 return b.bp.OtherModuleHasProvider(m, provider)
2080 func (m *moduleContext) ninjaError(params BuildParams, err error) (PackageContext, BuildParams) {
2094 func (m *moduleContext) ModuleBuild(pctx PackageContext, params ModuleBuildParams) {
2095 m.Build(pctx, BuildParams(params))
2169 func (m *moduleContext) Variable(pctx PackageContext, name, value string) {
2170 if m.config.captureBuild {
2171 m.variables[name] = value
2174 m.bp.Variable(pctx.PackageContext, name, value)
2177 func (m *moduleContext) Rule(pctx PackageContext, name string, params blueprint.RuleParams,
2180 if m.config.UseRemoteBuild() {
2193 rule := m.bp.Rule(pctx.PackageContext, name, params, argNames...)
2195 if m.config.captureBuild {
2196 m.ruleParams[rule] = params
2202 func (m *moduleContext) Build(pctx PackageContext, params BuildParams) {
2207 if missingDeps := m.GetMissingDependencies(); len(missingDeps) > 0 {
2208 pctx, params = m.ninjaError(params, fmt.Errorf("module %s missing dependencies: %s\n",
2209 m.ModuleName(), strings.Join(missingDeps, ", ")))
2212 if m.config.captureBuild {
2213 m.buildParams = append(m.buildParams, params)
2219 m.ModuleErrorf(
2221 m.ModuleName(),
2224 m.bp.Build(pctx.PackageContext, bparams)
2227 func (m *moduleContext) Phony(name string, deps ...Path) {
2228 addPhony(m.config, name, deps...)
2231 func (m *moduleContext) GetMissingDependencies() []string {
2233 missingDeps = append(missingDeps, m.Module().base().commonProperties.MissingDeps...)
2234 missingDeps = append(missingDeps, m.bp.GetMissingDependencies()...)
2345 func (m *moduleContext) GetDirectDepWithTag(name string, tag blueprint.DependencyTag) blueprint.Mod…
2346 module, _ := m.getDirectDepInternal(name, tag)
2503 for i, m := range walkPath[1:] {
2506 sb.WriteString(fmt.Sprintf(" -> %s", m.String()))
2511 func (m *moduleContext) ModuleSubDir() string {
2512 return m.bp.ModuleSubDir()
2568 func (m *ModuleBase) MakeAsPlatform() {
2569 m.commonProperties.Vendor = boolPtr(false)
2570 m.commonProperties.Proprietary = boolPtr(false)
2571 m.commonProperties.Soc_specific = boolPtr(false)
2572 m.commonProperties.Product_specific = boolPtr(false)
2573 m.commonProperties.System_ext_specific = boolPtr(false)
2576 func (m *ModuleBase) MakeAsSystemExt() {
2577 m.commonProperties.Vendor = boolPtr(false)
2578 m.commonProperties.Proprietary = boolPtr(false)
2579 m.commonProperties.Soc_specific = boolPtr(false)
2580 m.commonProperties.Product_specific = boolPtr(false)
2581 m.commonProperties.System_ext_specific = boolPtr(true)
2585 func (m *ModuleBase) IsNativeBridgeSupported() bool {
2586 return proptools.Bool(m.commonProperties.Native_bridge_supported)
2589 func (m *moduleContext) InstallInData() bool {
2590 return m.module.InstallInData()
2593 func (m *moduleContext) InstallInTestcases() bool {
2594 return m.module.InstallInTestcases()
2597 func (m *moduleContext) InstallInSanitizerDir() bool {
2598 return m.module.InstallInSanitizerDir()
2601 func (m *moduleContext) InstallInRamdisk() bool {
2602 return m.module.InstallInRamdisk()
2605 func (m *moduleContext) InstallInVendorRamdisk() bool {
2606 return m.module.InstallInVendorRamdisk()
2609 func (m *moduleContext) InstallInDebugRamdisk() bool {
2610 return m.module.InstallInDebugRamdisk()
2613 func (m *moduleContext) InstallInRecovery() bool {
2614 return m.module.InstallInRecovery()
2617 func (m *moduleContext) InstallInRoot() bool {
2618 return m.module.InstallInRoot()
2621 func (m *moduleContext) InstallBypassMake() bool {
2622 return m.module.InstallBypassMake()
2625 func (m *moduleContext) InstallForceOS() (*OsType, *ArchType) {
2626 return m.module.InstallForceOS()
2629 func (m *moduleContext) skipInstall() bool {
2630 if m.module.base().commonProperties.SkipInstall {
2634 if m.module.base().commonProperties.HideFromMake {
2641 if !m.module.base().commonProperties.NamespaceExportedToMake {
2645 if m.Device() {
2646 if m.Config().KatiEnabled() && !m.InstallBypassMake() {
2654 func (m *moduleContext) InstallFile(installPath InstallPath, name string, srcPath Path,
2656 return m.installFile(installPath, name, srcPath, deps, false)
2659 func (m *moduleContext) InstallExecutable(installPath InstallPath, name string, srcPath Path,
2661 return m.installFile(installPath, name, srcPath, deps, true)
2664 func (m *moduleContext) PackageFile(installPath InstallPath, name string, srcPath Path) PackagingSp…
2665 fullInstallPath := installPath.Join(m, name)
2666 return m.packageFile(fullInstallPath, srcPath, false)
2669 func (m *moduleContext) packageFile(fullInstallPath InstallPath, srcPath Path, executable bool) Pac…
2671 relPathInPackage: Rel(m, fullInstallPath.PartitionDir(), fullInstallPath.String()),
2676 m.packagingSpecs = append(m.packagingSpecs, spec)
2680 func (m *moduleContext) installFile(installPath InstallPath, name string, srcPath Path, deps []Path…
2682 fullInstallPath := installPath.Join(m, name)
2683 m.module.base().hooks.runInstallHooks(m, srcPath, fullInstallPath, false)
2685 if !m.skipInstall() {
2686 deps = append(deps, m.module.base().installFilesDepSet.ToList().Paths()...)
2690 if m.Host() {
2703 m.Build(pctx, BuildParams{
2710 Default: !m.Config().KatiEnabled(),
2713 m.installFiles = append(m.installFiles, fullInstallPath)
2716 m.packageFile(fullInstallPath, srcPath, executable)
2718 m.checkbuildFiles = append(m.checkbuildFiles, srcPath)
2723 func (m *moduleContext) InstallSymlink(installPath InstallPath, name string, srcPath InstallPath) I…
2724 fullInstallPath := installPath.Join(m, name)
2725 m.module.base().hooks.runInstallHooks(m, srcPath, fullInstallPath, true)
2731 if !m.skipInstall() {
2733 m.Build(pctx, BuildParams{
2738 Default: !m.Config().KatiEnabled(),
2744 m.installFiles = append(m.installFiles, fullInstallPath)
2745 m.checkbuildFiles = append(m.checkbuildFiles, srcPath)
2748 m.packagingSpecs = append(m.packagingSpecs, PackagingSpec{
2749 relPathInPackage: Rel(m, fullInstallPath.PartitionDir(), fullInstallPath.String()),
2760 func (m *moduleContext) InstallAbsoluteSymlink(installPath InstallPath, name string, absPath string…
2761 fullInstallPath := installPath.Join(m, name)
2762 m.module.base().hooks.runInstallHooks(m, nil, fullInstallPath, true)
2764 if !m.skipInstall() {
2765 m.Build(pctx, BuildParams{
2769 Default: !m.Config().KatiEnabled(),
2775 m.installFiles = append(m.installFiles, fullInstallPath)
2778 m.packagingSpecs = append(m.packagingSpecs, PackagingSpec{
2779 relPathInPackage: Rel(m, fullInstallPath.PartitionDir(), fullInstallPath.String()),
2788 func (m *moduleContext) CheckbuildFile(srcPath Path) {
2789 m.checkbuildFiles = append(m.checkbuildFiles, srcPath)
2792 func (m *moduleContext) blueprintModuleContext() blueprint.ModuleContext {
2793 return m.bp
2841 if m, t := SrcIsModuleWithTag(s); m != "" {
2846 ctx.AddDependency(ctx.Module(), sourceOrOutputDepTag(t), m)
2858 if m, t := SrcIsModuleWithTag(*s); m != "" {
2859 ctx.AddDependency(ctx.Module(), sourceOrOutputDepTag(t), m)
2942 func (m *moduleContext) ExpandSources(srcFiles, excludes []string) Paths {
2943 return PathsForModuleSrcExcludes(m, srcFiles, excludes)
2950 func (m *moduleContext) ExpandSource(srcFile, prop string) Path {
2951 return PathForModuleSrc(m, srcFile)
2957 func (m *moduleContext) ExpandOptionalSource(srcFile *string, prop string) OptionalPath {
2959 return OptionalPathForPath(PathForModuleSrc(m, *srcFile))
2964 func (m *moduleContext) RequiredModuleNames() []string {
2965 return m.module.RequiredModuleNames()
2968 func (m *moduleContext) HostRequiredModuleNames() []string {
2969 return m.module.HostRequiredModuleNames()
2972 func (m *moduleContext) TargetRequiredModuleNames() []string {
2973 return m.module.TargetRequiredModuleNames()