OLD | NEW |
1 package config | 1 package config |
2 | 2 |
3 import ( | 3 import ( |
4 "sync" | 4 "sync" |
5 "time" | 5 "time" |
6 | 6 |
7 "go.skia.org/infra/go/vcsinfo" | 7 "go.skia.org/infra/go/vcsinfo" |
8 ) | 8 ) |
9 | 9 |
10 type generatorConfig struct { | 10 type generatorConfig struct { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 type gsConfig struct { | 44 type gsConfig struct { |
45 Bucket string | 45 Bucket string |
46 } | 46 } |
47 | 47 |
48 type commonConfig struct { | 48 type commonConfig struct { |
49 ClangPath string | 49 ClangPath string |
50 ClangPlusPlusPath string | 50 ClangPlusPlusPath string |
51 DepotToolsPath string | 51 DepotToolsPath string |
| 52 ForceReanalysis bool |
| 53 VerboseBuilds bool |
52 } | 54 } |
53 | 55 |
54 var Generator = generatorConfig{} | 56 var Generator = generatorConfig{} |
55 var Aggregator = aggregatorConfig{} | 57 var Aggregator = aggregatorConfig{} |
56 var GS = gsConfig{} | 58 var GS = gsConfig{} |
57 var Common = commonConfig{} | 59 var Common = commonConfig{} |
58 var FrontEnd = frontendConfig{} | 60 var FrontEnd = frontendConfig{} |
59 | 61 |
60 type VersionSetter interface { | 62 type VersionSetter interface { |
61 SetSkiaVersion(lc *vcsinfo.LongCommit) | 63 SetSkiaVersion(lc *vcsinfo.LongCommit) |
62 } | 64 } |
63 | 65 |
64 // SetSkiaVersion safely stores the LongCommit of the skia version that is being
used. | 66 // SetSkiaVersion safely stores the LongCommit of the skia version that is being
used. |
65 func (f *frontendConfig) SetSkiaVersion(lc *vcsinfo.LongCommit) { | 67 func (f *frontendConfig) SetSkiaVersion(lc *vcsinfo.LongCommit) { |
66 f.versionMutex.Lock() | 68 f.versionMutex.Lock() |
67 defer f.versionMutex.Unlock() | 69 defer f.versionMutex.Unlock() |
68 f.SkiaVersion = lc | 70 f.SkiaVersion = lc |
69 } | 71 } |
70 | 72 |
71 // SetSkiaVersion safely stores the LongCommit of the skia version that is being
used. | 73 // SetSkiaVersion safely stores the LongCommit of the skia version that is being
used. |
72 func (g *generatorConfig) SetSkiaVersion(lc *vcsinfo.LongCommit) { | 74 func (g *generatorConfig) SetSkiaVersion(lc *vcsinfo.LongCommit) { |
73 g.versionMutex.Lock() | 75 g.versionMutex.Lock() |
74 defer g.versionMutex.Unlock() | 76 defer g.versionMutex.Unlock() |
75 g.SkiaVersion = lc | 77 g.SkiaVersion = lc |
76 } | 78 } |
OLD | NEW |