summaryrefslogtreecommitdiffstats
path: root/tools/mb/mb_config.pyl
blob: 53bbf0335b8dfe68c282fa73fdd27bfbb2d39f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  # This is the list of configs that you can pass to mb; each config
  # represents a particular combination of GYP_DEFINES/gn args that
  # we must support. A given config *may* be platform-specific but
  # is not necessarily so (i.e., we might have mac, win, and linux
  # bots all using the 'gn_release_bot' config).
  'configs': {
    'android_gn_release_bot': ['android', 'gn', 'release_bot'],
    'android_gn_debug_bot': ['android', 'gn', 'debug_static_bot'],
    'android_gn_release_trybot': ['android', 'gn', 'release_trybot'],
    'chromeos_gn_debug_bot': ['chromeos', 'gn', 'debug_bot'],
    'chromeos_gn_release_bot': ['chromeos', 'gn', 'release_bot'],
    'chromeos_gn_release_trybot': ['chromeos', 'gn', 'release_trybot'],
    'dev_gn_debug': ['gn', 'debug', 'shared', 'full_symbols'],
    'dev_gyp_debug': ['gyp', 'debug', 'shared', 'full_symbols'],
    'dev_gn_release': ['gn', 'release', 'shared'],
    'dev_gyp_release': ['gyp', 'release', 'shared'],
    'gn_release_bot': ['gn', 'release_bot'],
    'gn_release_bot_x86': ['gn', 'release_bot', 'x86'],
    'gn_release_trybot': ['gn', 'release_trybot'],
    'gn_release_trybot_x86': ['gn', 'release_trybot', 'x86'],
    'gn_debug_bot': ['gn', 'debug_bot'],
    'gn_debug_static_bot': ['gn', 'debug_static_bot'],
    'gn_debug_static_bot_x86': ['gn', 'debug_static_bot', 'x86'],
    'gyp_release_bot': ['gyp', 'release_bot'],
  },
  
  # This is a list of configs that do not actually exist on any bot
  # but are used so commonly by devs that we must support them.
  'common_dev_configs': [
    'dev_gn_debug',
    'dev_gn_release',
    'dev_gyp_debug',
    'dev_gyp_release',
  ],
  
  # This is a list of configs that some private (not publicly accessible)
  # bot somewhere uses and that we must support. Ideally we should actually
  # have a bot for each of these on the public waterfall. Each config should
  # at least have a contact listed.
  'private_configs': [
  ],

  # This is a list of configs that are not commonly used by that we should
  # make some effort to support, but if it breaks that is not the end of
  # the world. Each config should have a contact listed, and we expect the
  # contact to be on the hook for fixing the config.
  'unsupported_configs': [
  ],
  
  # This is a dict mapping a given 'mixin' name to a dict of settings that
  # mb should use. See //tools/mb/docs/user_guide.md for more information.
  'mixins': {
    'android': {
      'gn_args': 'target_os="android"',
      'gyp_defines': 'OS=android',
    },

    'chromeos': {
      'gn_args': 'target_os="chromeos"',
      'gyp_defines': 'chromeos=1',
    },

    'dcheck_always_on': {
      'gn_args': 'dcheck_always_on=true',
      'gyp_defines': 'dcheck_always_on=1',
    },

    'debug': {
      'gn_args': 'is_debug=true', 
      'gyp_config': 'Debug',
    },

    'debug_bot': {'mixins': ['debug', 'shared', 'minimal_symbols', 'goma']},

    'debug_static_bot': {
      'mixins': ['debug', 'static', 'minimal_symbols', 'goma']
    },

    'full_symbols': {
      'gn_args': 'symbol_level=2',
      'gyp_defines': 'fastbuild=0',
    },

    'gn': {'type': 'gn'},

    'goma': {
      'gn_args': 'use_goma=true goma_dir="$(goma_dir)"',
      'gyp_defines': 'goma=1 gomadir=$(goma_dir)',
    },

    'gyp': {'type': 'gyp'},
    
    'minimal_symbols': {
      'gn_args': 'symbol_level=1',
      'gyp_defines': 'fastbuild=1',
    },

    'release': {
      'gn_args': 'is_debug=false',
      'gyp_config': 'Release',
    },

    'release_bot': {
      'mixins': ['release', 'static', 'minimal_symbols', 'goma'],
    },

    'release_trybot': {
      'mixins': ['release_bot', 'dcheck_always_on']
    },
    
    'shared': {
      'gn_args': 'is_component_build=true',
      'gyp_defines': 'component=shared_library',
    },

    'static': {
      'gn_args': 'is_component_build=false',
      'gyp_defines': 'component=static_library',
    },

    'x86': {
      'gn_args': 'target_cpu="x86"',
      'gyp_args': 'target_arch=ia32',
    },
  },


  # This is a map of buildbot master names -> buildbot builder names ->
  # config names (where each config name is a key in the 'configs' dict,
  # above). mb uses this dict to look up which config to use for a given bot.
  # TODO(dpranke): add in remaining bots on the waterfalls.
  'masters': {
    'chromium.chromiumos': {
      'Linux ChromiumOS GN': 'chromeos_gn_release_bot',
    },
    'chromium.linux': {
      'Android GN': 'android_gn_release_bot',
      'Linux Builder': 'gyp_release_bot',
      'Linux GN': 'gn_release_bot',
      'Linux GN (dbg)': 'gn_debug_bot',
      'Linux Tests': 'gyp_release_bot',
    },
    'chromium.mac': {
      'Mac GN': 'gn_release_bot',
      'Mac GN (dbg)': 'gn_debug_static_bot',
    },
    'chromium.win': {
      'Win8 GN': 'gn_release_bot_x86',
      'Win8 GN (dbg)': 'gn_debug_static_bot_x86',
    },
    'chromium.webkit': {
      'Android GN': 'gn_release_bot',
      'Android GN (dbg)': 'gn_debug_bot',
      'Linux GN': 'gn_release_bot',
      'Linux GN (dbg)': 'gn_debug_bot'
    },
    'tryserver.blink': {
      'android_chromium_gn_compile_rel': 'android_gn_release_bot',
      'linux_chromium_gn_rel': 'gn_release_bot',
    },
    'tryserver.chromium.linux': {
      'android_chromium_gn_compile_dbg': 'android_gn_debug_bot',
      'android_chromium_gn_compile_rel': 'android_gn_release_trybot',
      'linux_chromium_gn_chromeos_rel': 'chromeos_gn_release_trybot',
      'linux_chromium_gn_chromeos_dbg': 'chromeos_gn_debug_bot',
      'linux_chromium_gn_dbg': 'gn_debug_bot', 
      'linux_chromium_gn_rel': 'gn_release_trybot', 
      'linux_chromium_gn_upload_x64': 'gn_release_bot',
      'linux_chromium_gn_upload_x86': 'gn_release_bot_x86',
    },
    'tryserver.chromium.mac': {
      'mac_chromium_gn_dbg': 'gn_debug_static_bot',
      'mac_chromium_gn_rel': 'gn_release_trybot',
      'mac_chromium_gn_upload': 'gn_release_bot',
    },
    'tryserver.chromium.win': {
      'win8_chromium_gn_dbg': 'gn_debug_static_bot_x86',
      'win8_chromium_gn_rel': 'gn_release_trybot_x86',
      'win8_chromium_gn_upload': 'gn_release_bot',
    },
  },
}