Lines Matching refs:common
59 common.RegisterBottomUpMutator("link", linkageMutator)
60 common.RegisterBottomUpMutator("test_per_src", testPerSrcMutator)
61 common.RegisterBottomUpMutator("deps", depsMutator)
65 HostPrebuiltTag = pctx.VariableConfigMethod("HostPrebuiltTag", common.Config.PrebuiltOS)
158 if override := config.(common.Config).Getenv("LLVM_PREBUILTS_BASE"); override != "" {
164 if override := config.(common.Config).Getenv("LLVM_PREBUILTS_VERSION"); override != "" {
176 ObjFiles common.Paths
184 SharedLibs, LateSharedLibs common.Paths
185 StaticLibs, LateStaticLibs, WholeStaticLibs common.Paths
187 ObjFiles common.Paths
188 WholeStaticLibObjFiles common.Paths
192 CrtBegin, CrtEnd common.OptionalPath
420 common.AndroidModuleContext
425 common.AndroidBaseContext
443 compile(ctx ModuleContext, flags Flags) common.Paths
448 link(ctx ModuleContext, flags Flags, deps PathDeps, objFiles common.Paths) common.Path
453 install(ctx ModuleContext, path common.Path)
461 common.AndroidModuleBase
462 common.DefaultableModule
468 hod common.HostOrDeviceSupported
469 multilib common.Multilib
479 outputFile common.OptionalPath
502 _, props = common.InitAndroidArchModule(c, c.hod, c.multilib, props...)
504 return common.InitDefaultableModule(c, c, props...)
508 common.AndroidBaseContext
513 common.AndroidModuleContext
568 func newBaseModule(hod common.HostOrDeviceSupported, multilib common.Multilib) *Module {
575 func newModule(hod common.HostOrDeviceSupported, multilib common.Multilib) *Module {
583 func (c *Module) GenerateAndroidBuildActions(actx common.AndroidModuleContext) {
630 var objFiles common.Paths
643 c.outputFile = common.OptionalPathForPath(outputFile)
681 func (c *Module) depsMutator(actx common.AndroidBottomUpMutatorContext) {
732 func depsMutator(ctx common.AndroidBottomUpMutatorContext) {
758 func (c *Module) depsToPathsFromList(ctx common.AndroidModuleContext,
759 names []string) (modules []common.AndroidModule,
760 outputFiles common.Paths, exportedFlags []string) {
811 func (c *Module) depsToPaths(ctx common.AndroidModuleContext, deps Deps) PathDeps {
815 var wholeStaticLibModules []common.AndroidModule
909 rootIncludeDirs := common.PathsForSource(ctx, compiler.Properties.Include_dirs)
910 localIncludeDirs := common.PathsForModuleSrc(ctx, compiler.Properties.Local_include_dirs)
915 rootIncludeFiles := common.PathsForSource(ctx, compiler.Properties.Include_files)
916 localIncludeFiles := common.PathsForModuleSrc(ctx, compiler.Properties.Local_include_files)
931 "-I" + common.PathForModuleSrc(ctx).String(),
932 "-I" + common.PathForModuleOut(ctx).String(),
933 "-I" + common.PathForModuleGen(ctx).String(),
1032 if strings.HasPrefix(common.PathForModuleSrc(ctx).String(), "external/") {
1045 func (compiler *baseCompiler) compile(ctx ModuleContext, flags Flags) common.Paths {
1052 var genSrcs common.Paths
1068 func (compiler *baseCompiler) compileObjs(ctx common.AndroidModuleContext, flags Flags,
1069 subdir string, srcFiles, excludes []string) common.Paths {
1198 path common.OutputPath
1207 func (installer *baseInstaller) install(ctx ModuleContext, file common.Path) {
1212 dir := common.PathForModuleInstall(ctx, subDir, installer.Properties.Relative_install_path)
1232 reuseObjFiles common.Paths
1248 if ctx.HostType() != common.Windows {
1261 func (library *libraryCompiler) compile(ctx ModuleContext, flags Flags) common.Paths {
1262 var objFiles common.Paths
1266 objFiles = append(common.Paths(nil), library.reuseFrom.reuseObjFiles...)
1273 objFiles = append(objFiles, library.compileObjs(ctx, flags, common.DeviceStaticLibrary,
1276 objFiles = append(objFiles, library.compileObjs(ctx, flags, common.DeviceSharedLibrary,
1300 objFiles common.Paths
1377 flags Flags, deps PathDeps, objFiles common.Paths) common.Path {
1382 outputFile := common.PathForModuleOut(ctx, ctx.ModuleName()+staticLibraryExtension)
1398 flags Flags, deps PathDeps, objFiles common.Paths) common.Path {
1400 outputFile := common.PathForModuleOut(ctx, ctx.ModuleName()+flags.Toolchain.ShlibSuffix())
1402 var linkerDeps common.Paths
1404 versionScript := common.OptionalPathForModuleSrc(ctx, library.Properties.Version_script)
1405 …unexportedSymbols := common.OptionalPathForModuleSrc(ctx, library.Properties.Unexported_symbols_li…
1406 …forceNotWeakSymbols := common.OptionalPathForModuleSrc(ctx, library.Properties.Force_symbols_not_w…
1407 …forceWeakSymbols := common.OptionalPathForModuleSrc(ctx, library.Properties.Force_symbols_weak_lis…
1451 flags Flags, deps PathDeps, objFiles common.Paths) common.Path {
1453 var out common.Path
1460 includeDirs := common.PathsForModuleSrc(ctx, library.Properties.Export_include_dirs)
1485 func (library *libraryInstaller) install(ctx ModuleContext, file common.Path) {
1491 func NewLibrary(hod common.HostOrDeviceSupported, shared, static bool) *Module {
1492 module := newModule(hod, common.MultilibBoth)
1514 module := NewLibrary(common.HostAndDeviceSupported, true, true)
1526 module := newBaseModule(common.DeviceSupported, common.MultilibBoth)
1548 flags Flags, deps PathDeps, objFiles common.Paths) common.Path {
1552 var outputFile common.Path
1556 output := common.PathForModuleOut(ctx, ctx.ModuleName()+objectExtension)
1574 hostToolPath common.OptionalPath
1640 func NewBinary(hod common.HostOrDeviceSupported) *Module {
1641 module := newModule(hod, common.MultilibFirst)
1651 module := NewBinary(common.HostAndDeviceSupported)
1669 if ctx.HostType() == common.Windows {
1677 if ctx.HostType() != common.Windows {
1720 flags Flags, deps PathDeps, objFiles common.Paths) common.Path {
1722 outputFile := common.PathForModuleOut(ctx, binary.getStem(ctx)+flags.Toolchain.ExecutableSuffix())
1724 binary.hostToolPath = common.OptionalPathForPath(outputFile)
1730 outputFile = common.PathForModuleOut(ctx, binary.getStem(ctx)+".intermediate")
1735 var linkerDeps common.Paths
1747 func (binary *binaryLinker) HostToolPath() common.OptionalPath {
1751 func testPerSrcMutator(mctx common.AndroidBottomUpMutatorContext) {
1789 if ctx.HostType() == common.Windows {
1801 "-I"+common.PathForSource(ctx, "external/gtest/include").String())
1818 func (installer *testInstaller) install(ctx ModuleContext, file common.Path) {
1824 func NewTest(hod common.HostOrDeviceSupported) *Module {
1825 module := newModule(hod, common.MultilibBoth)
1841 module := NewTest(common.HostAndDeviceSupported)
1855 func NewBenchmark(hod common.HostOrDeviceSupported) *Module {
1856 module := newModule(hod, common.MultilibFirst)
1868 module := NewBenchmark(common.HostAndDeviceSupported)
1877 module := NewLibrary(common.HostAndDeviceSupported, false, true)
1886 module := NewLibrary(common.HostAndDeviceSupported, true, false)
1895 module := NewLibrary(common.HostSupported, false, true)
1904 module := NewLibrary(common.HostSupported, true, false)
1913 module := NewBinary(common.HostSupported)
1922 module := NewTest(common.HostSupported)
1931 module := NewBenchmark(common.HostSupported)
1939 common.AndroidModuleBase
1940 common.DefaultsModule
1943 func (*Defaults) GenerateAndroidBuildActions(ctx common.AndroidModuleContext) {
1961 _, propertyStructs = common.InitAndroidArchModule(module, common.HostAndDeviceDefault,
1962 common.MultilibDefault, propertyStructs...)
1964 return common.InitDefaultsModule(module, module, propertyStructs...)
1991 module := newBaseModule(common.DeviceSupported, common.MultilibBoth)
1999 flags Flags, deps PathDeps, objFiles common.Paths) common.Path {
2002 outputFile := common.PathForModuleOut(ctx, libName)
2021 func getNdkLibDir(ctx common.AndroidModuleContext, toolchain Toolchain, version string) common.Sour…
2022 …return common.PathForSource(ctx, fmt.Sprintf("prebuilts/ndk/current/platforms/android-%s/arch-%s/u…
2026 func ndkPrebuiltModuleToPath(ctx common.AndroidModuleContext, toolchain Toolchain,
2027 ext string, version string) common.Path {
2046 module := newBaseModule(common.DeviceSupported, common.MultilibBoth)
2052 deps PathDeps, objFiles common.Paths) common.Path {
2081 module := newBaseModule(common.DeviceSupported, common.MultilibBoth)
2089 deps PathDeps, objFiles common.Paths) common.Path {
2095 includeDirs := common.PathsForModuleSrc(ctx, ndk.Properties.Export_include_dirs)
2096 ndk.exportFlags = []string{common.JoinWithPrefix(includeDirs.Strings(), "-isystem ")}
2111 module := newBaseModule(common.DeviceSupported, common.MultilibBoth)
2119 module := newBaseModule(common.DeviceSupported, common.MultilibBoth)
2126 func getNdkStlLibDir(ctx common.AndroidModuleContext, toolchain Toolchain, stl string) common.Sourc…
2140 return common.PathForSource(ctx, ndkSrcRoot).Join(ctx, libDir, ctx.Arch().Abi[0])
2144 return common.PathForSource(ctx, "")
2148 deps PathDeps, objFiles common.Paths) common.Path {
2154 includeDirs := common.PathsForModuleSrc(ctx, ndk.Properties.Export_include_dirs)
2169 func linkageMutator(mctx common.AndroidBottomUpMutatorContext) {