Lines Matching refs:config

100 	setupDir(t, func(config *Config, dir string, loadPkg loadPkgFunc) {
106 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
110 if err := pkg.Link(config, out); err != nil {
125 modify func(config *Config, dir string, loadPkg loadPkgFunc),
130 setupDir(t, func(config *Config, dir string, loadPkg loadPkgFunc) {
136 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
140 if err := pkg.Link(config, out); err != nil {
158 modify(config, dir, loadPkg)
162 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
175 if err := pkg.Link(config, out); err != nil {
211 …testBuildAgain(t, false, false, func(config *Config, dir string, loadPkg loadPkgFunc) {}, func(pkg…
218 testBuildAgain(t, false, false, func(config *Config, dir string, loadPkg loadPkgFunc) {
234 testBuildAgain(t, true, true, func(config *Config, dir string, loadPkg loadPkgFunc) {
251 testBuildAgain(t, true, true, func(config *Config, dir string, loadPkg loadPkgFunc) {
268 testBuildAgain(t, false, true, func(config *Config, dir string, loadPkg loadPkgFunc) {
278 testBuildAgain(t, false, true, func(config *Config, dir string, loadPkg loadPkgFunc) {
285 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
298 setupDir(b, func(config *Config, dir string, loadPkg loadPkgFunc) {
300 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
304 if err := pkg.Link(config, filepath.Join(dir, "out", "test")); err != nil {
314 setupDir(b, func(config *Config, dir string, loadPkg loadPkgFunc) {
317 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
321 if err := pkg.Link(config, filepath.Join(dir, "out", "test")); err != nil {
330 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
334 if err := pkg.Link(config, filepath.Join(dir, "out", "test")); err != nil {
384 func setupDir(t T, test func(config *Config, dir string, loadPkg loadPkgFunc)) {
409 config := &Config{}
410 config.Map("android/soong", dir)
416 if err := pkg.FindDeps(config, filepath.Join(dir, "main")); err != nil {
422 test(config, dir, loadPkg)