Lines Matching refs:g
247 func (g *GoPackage) DynamicDependencies(ctx blueprint.DynamicDependerModuleContext) []string {
251 return g.properties.Deps
254 func (g *GoPackage) GoPkgPath() string {
255 return g.properties.PkgPath
258 func (g *GoPackage) GoPkgRoot() string {
259 return g.pkgRoot
262 func (g *GoPackage) GoPackageTarget() string {
263 return g.archiveFile
266 func (g *GoPackage) GoTestTargets() []string {
267 return g.testResultFile
270 func (g *GoPackage) IsPluginFor(name string) bool {
271 for _, plugin := range g.properties.PluginFor {
279 func (g *GoPackage) GenerateBuildActions(ctx blueprint.ModuleContext) {
284 g.pkgRoot = primary.pkgRoot
285 g.archiveFile = primary.archiveFile
286 g.testResultFile = primary.testResultFile
297 if g.properties.PkgPath == "" {
302 g.pkgRoot = packageRoot(ctx)
303 g.archiveFile = filepath.Join(g.pkgRoot,
304 filepath.FromSlash(g.properties.PkgPath)+".a")
313 if hasPlugins && !buildGoPluginLoader(ctx, g.properties.PkgPath, pluginSrc) {
319 srcs = append(g.properties.Srcs, g.properties.Darwin.Srcs...)
320 testSrcs = append(g.properties.TestSrcs, g.properties.Darwin.TestSrcs...)
322 srcs = append(g.properties.Srcs, g.properties.Linux.Srcs...)
323 testSrcs = append(g.properties.TestSrcs, g.properties.Linux.TestSrcs...)
327 filepath.FromSlash(g.properties.PkgPath)+".a")
328 g.testResultFile = buildGoTest(ctx, testRoot(ctx), testArchiveFile,
329 g.properties.PkgPath, srcs, genSrcs, testSrcs, g.properties.EmbedSrcs)
335 Outputs: []string{g.archiveFile},
341 buildGoPackage(ctx, g.pkgRoot, g.properties.PkgPath, g.archiveFile,
342 srcs, genSrcs, g.properties.EmbedSrcs)
346 func (g *GoPackage) Srcs() []string {
347 return g.properties.Srcs
350 func (g *GoPackage) LinuxSrcs() []string {
351 return g.properties.Linux.Srcs
354 func (g *GoPackage) DarwinSrcs() []string {
355 return g.properties.Darwin.Srcs
358 func (g *GoPackage) TestSrcs() []string {
359 return g.properties.TestSrcs
362 func (g *GoPackage) LinuxTestSrcs() []string {
363 return g.properties.Linux.TestSrcs
366 func (g *GoPackage) DarwinTestSrcs() []string {
367 return g.properties.Darwin.TestSrcs
370 func (g *GoPackage) Deps() []string {
371 return g.properties.Deps
374 func (g *GoPackage) TestData() []string {
375 return g.properties.TestData
412 func (g *GoBinary) DynamicDependencies(ctx blueprint.DynamicDependerModuleContext) []string {
416 return g.properties.Deps
419 func (g *GoBinary) isGoBinary() {}
420 func (g *GoBinary) InstallPath() string {
421 return g.installPath
424 func (g *GoBinary) Srcs() []string {
425 return g.properties.Srcs
428 func (g *GoBinary) LinuxSrcs() []string {
429 return g.properties.Linux.Srcs
432 func (g *GoBinary) DarwinSrcs() []string {
433 return g.properties.Darwin.Srcs
436 func (g *GoBinary) TestSrcs() []string {
437 return g.properties.TestSrcs
440 func (g *GoBinary) LinuxTestSrcs() []string {
441 return g.properties.Linux.TestSrcs
444 func (g *GoBinary) DarwinTestSrcs() []string {
445 return g.properties.Darwin.TestSrcs
448 func (g *GoBinary) Deps() []string {
449 return g.properties.Deps
452 func (g *GoBinary) TestData() []string {
453 return g.properties.TestData
456 func (g *GoBinary) GenerateBuildActions(ctx blueprint.ModuleContext) {
461 g.installPath = primary.installPath
476 g.installPath = filepath.Join(ctx.Config().(BootstrapConfig).HostToolDir(), name)
492 srcs = append(g.properties.Srcs, g.properties.Darwin.Srcs...)
493 testSrcs = append(g.properties.TestSrcs, g.properties.Darwin.TestSrcs...)
495 srcs = append(g.properties.Srcs, g.properties.Linux.Srcs...)
496 testSrcs = append(g.properties.TestSrcs, g.properties.Linux.TestSrcs...)
500 name, srcs, genSrcs, testSrcs, g.properties.EmbedSrcs)
502 buildGoPackage(ctx, objDir, "main", archiveFile, srcs, genSrcs, g.properties.EmbedSrcs)
536 Outputs: []string{g.installPath},
539 Optional: !g.properties.Default,