Lines Matching refs:g

283 func (g *goPackage) DynamicDependencies(ctx blueprint.DynamicDependerModuleContext) []string {
287 return g.properties.Deps
290 func (g *goPackage) GoPkgPath() string {
291 return g.properties.PkgPath
294 func (g *goPackage) GoPkgRoot() string {
295 return g.pkgRoot
298 func (g *goPackage) GoPackageTarget() string {
299 return g.archiveFile
302 func (g *goPackage) GoTestTargets() []string {
303 return g.testResultFile
306 func (g *goPackage) IsPluginFor(name string) bool {
307 for _, plugin := range g.properties.PluginFor {
315 func (g *goPackage) GenerateBuildActions(ctx blueprint.ModuleContext) {
320 g.pkgRoot = primary.pkgRoot
321 g.archiveFile = primary.archiveFile
322 g.testResultFile = primary.testResultFile
333 if g.properties.PkgPath == "" {
338 g.pkgRoot = packageRoot(ctx, g.config)
339 g.archiveFile = filepath.Join(g.pkgRoot,
340 filepath.FromSlash(g.properties.PkgPath)+".a")
345 pluginSrc = filepath.Join(moduleGenSrcDir(ctx, g.config), "plugin.go")
349 if hasPlugins && !buildGoPluginLoader(ctx, g.properties.PkgPath, pluginSrc) {
355 srcs = append(g.properties.Srcs, g.properties.Darwin.Srcs...)
356 testSrcs = append(g.properties.TestSrcs, g.properties.Darwin.TestSrcs...)
358 srcs = append(g.properties.Srcs, g.properties.Linux.Srcs...)
359 testSrcs = append(g.properties.TestSrcs, g.properties.Linux.TestSrcs...)
362 if g.config.runGoTests {
363 testArchiveFile := filepath.Join(testRoot(ctx, g.config),
364 filepath.FromSlash(g.properties.PkgPath)+".a")
365 g.testResultFile = buildGoTest(ctx, testRoot(ctx, g.config), testArchiveFile,
366 g.properties.PkgPath, srcs, genSrcs,
367 testSrcs, g.config.useValidations)
370 buildGoPackage(ctx, g.pkgRoot, g.properties.PkgPath, g.archiveFile,
414 func (g *goBinary) DynamicDependencies(ctx blueprint.DynamicDependerModuleContext) []string {
418 return g.properties.Deps
421 func (g *goBinary) isGoBinary() {}
422 func (g *goBinary) InstallPath() string {
423 return g.installPath
426 func (g *goBinary) GenerateBuildActions(ctx blueprint.ModuleContext) {
431 g.installPath = primary.installPath
437 objDir = moduleObjDir(ctx, g.config)
439 testArchiveFile = filepath.Join(testRoot(ctx, g.config), name+".a")
446 if g.properties.Tool_dir {
447 g.installPath = filepath.Join(toolDir(ctx.Config()), name)
449 g.installPath = filepath.Join(stageDir(g.config), "bin", name)
455 pluginSrc = filepath.Join(moduleGenSrcDir(ctx, g.config), "plugin.go")
467 srcs = append(g.properties.Srcs, g.properties.Darwin.Srcs...)
468 testSrcs = append(g.properties.TestSrcs, g.properties.Darwin.TestSrcs...)
470 srcs = append(g.properties.Srcs, g.properties.Linux.Srcs...)
471 testSrcs = append(g.properties.TestSrcs, g.properties.Linux.TestSrcs...)
474 if g.config.runGoTests {
475 testDeps = buildGoTest(ctx, testRoot(ctx, g.config), testArchiveFile,
476 name, srcs, genSrcs, testSrcs, g.config.useValidations)
507 if g.config.useValidations {
515 Outputs: []string{g.installPath},
519 Optional: !g.properties.Default,