• Home
  • Raw
  • Download

Lines Matching +full:for +full:- +full:in

9 # This flags are augmented with flags added to the json files but not present in .gn or .gni files
11 '-D_DEBUG',
12 '-Werror',
13 '-Xclang',
14 '-target-feature',
22 '-DHAVE_ARM64_CRC32C=0',
23 '-DUSE_AURA=1',
24 '-DUSE_GLIB=1',
25 '-DUSE_NSS_CERTS=1',
26 '-DUSE_UDEV',
27 '-DUSE_X11=1',
28 '-DWEBRTC_ANDROID_PLATFORM_BUILD=1',
29 '-DWEBRTC_APM_DEBUG_DUMP=0',
30 '-D_FILE_OFFSET_BITS=64',
31 '-D_GNU_SOURCE',
32 '-D_LARGEFILE64_SOURCE',
33 '-D_LARGEFILE_SOURCE',
34 '-Wno-global-constructors',
35 '-Wno-implicit-const-int-float-conversion',
36 '-Wno-missing-field-initializers',
37 '-Wno-unreachable-code-aggressive',
38 '-Wno-unreachable-code-break',
42 'x86': ['-mavx2', '-mfma', '-msse2', '-msse3'],
43 'x64': ['-mavx2', '-mfma', '-msse2', '-msse3'],
44 'arm': ['-mthumb'],
57 ARCH_NAME_MAP = {n: n for n in DEFAULT_CFLAGS_BY_ARCH.keys()}
88 target['deps'] = sorted([FormatName(d) for d in target['deps']])
93 return [x for x in flags if not any([x.startswith(y) for y in skipped_opts])]
100 print('// Added automatically by a large-scale-change that took the approach of')
104 print('// e.g. GPL in an MIT project might only apply to the contrib/ directory.')
110 print('// For unused files, consider creating a \'fileGroup\' with "//visibility:private"')
112 print('// used in the current project.')
114 print('// large-scale-change included anything that looked like it might be a license')
118 print('// See: http://go/android-license-faq')
129 print(' "SPDX-license-identifier-Apache-2.0",')
130 print(' "SPDX-license-identifier-BSD",')
131 print(' "SPDX-license-identifier-MIT",')
132 print(' "SPDX-license-identifier-Zlib",')
146 # Iterate through all of the targets for each architecture collecting the flags that
147 # are the same for all targets in that architecture. Use a list instead of a set
148 # to maintain the flag ordering, which may be significant (e.g. -Wno-shadow has to
149 # come after -Wshadow).
151 for arch, targets in targets_by_arch.items():
153 for target in targets.values():
157 for flag_type in FLAGS:
158 if not flag_type in arch_default_flags:
163 flags[:] = [ x for x in flags if x in target_flags ]
164 for flag_type, flags in arch_default_flags[arch].items():
166 # Add in the hardcoded extra default cflags
170 # for all targets in all architectures.
172 for arch, flagset in arch_default_flags.items():
173 for flag_type, arch_flags in flagset.items():
174 if not flag_type in default_flags:
178 flags[:] = [ x for x in flags if x in arch_flags ]
179 # Add in the hardcoded extra default cflags
182 # Remove the global default flags from the per-architecture default flags
183 for arch, flagset in arch_default_flags.items():
184 for flag_type in flagset.keys():
186 flags[:] = [ x for x in flags if x not in default_flags[flag_type] ]
200 for typ in sorted(in_default.keys() - {'arch'}):
204 for flag in flags:
222 print(' "libprotobuf-cpp-full",')
223 print(' "libprotobuf-cpp-lite",')
227 print(' // vendor needed for libpreprocessing effects.')
235 for a in ARCHS:
237 for typ in FLAGS:
241 for flag in flags:
252 # The flags in the default entry can be safely removed from the targets
253 for arch, targets in targets_by_arch.items():
254 for flag_type in FLAGS:
256 for target in targets.values():
267 if field in target.keys():
270 for a in ARCHS:
274 for d in target.get('deps', []):
279 for a in ARCHS:
281 if 'arch' in target:
282 for a, x in target['arch'].items():
283 for d in x.get('deps', []):
286 target[field][a] -= target[field]['global']
303 if 'asmflags' in target.keys():
307 if 'cflags' in target.keys():
310 if 'cflags_c' in target.keys():
314 if 'cflags_cc' in target.keys():
318 if 'arch' in target:
320 for arch_name in ARCHS:
321 if arch_name not in target['arch'].keys():
325 if 'cflags' in arch.keys():
328 if 'cflags_c' in arch.keys():
332 if 'cflags_cc' in arch.keys():
336 if 'sources' in arch:
339 if 'enabled' in arch:
351 if nxt in visited:
355 if 'arch' not in targets[nxt]:
357 for arch in targets[nxt]['arch']:
358 if 'deps' in arch:
364 for name, target in project['targets'].items():
373 if 'defines' in target:
374 …target['cflags'] = target.get('cflags', []) + ['-D{0}'.format(d) for d in target['defines'] if d n…
376 if 'sources' not in target:
399 for name, target in targets.items():
401 if target['type'] in {'action', 'action_foreach'}:
403 targets = {name: target for name, target in targets.items() if name not in ignored_targets}
405 for target in targets.values():
407 target['deps'] = [d for d in target['deps'] if d not in ignored_targets]
411 for name, target in targets.items():
412 if target['type'] == 'static_library' and 'sources' not in target and name != '//:webrtc':
414 for empty_lib in empty_libs:
416 for target in targets.values():
418 for s in empty_libs:
426 return {FormatName(n): FormatNames(targets[n]) for n in selected}
429 for x in deps:
439 for a in l:
446 for a, t in target_by_arch.items():
453 for _, s in set_by_arch.items():
457 for a, s in set_by_arch.items():
460 not_common = {a: s - common for a,s in set_by_arch.items()}
464 for a, s in not_common.items():
472 for f in ['original_name', 'name', 'type']:
473 target[f] = NonNoneFrom([t.get(f) for _,t in target_by_arch.items()])
476 for a, t in target_by_arch.items():
487 for lf in list_fields:
490 # Static libraries should be depended on at the root level and disabled for
492 for arch in target['arch'].values():
493 if 'deps' not in arch:
496 if 'deps' not in target:
500 if 'deps' in target:
504 for a in ARCHS:
514 for a in ARCHS:
515 if a not in target.get('arch', {}):
523 for n, t in targets.items():
524 if 'arch' not in t:
530 for t in targets.values():
534 if 'deps' in t and n in t['deps']:
536 t['deps'] = sorted(set(t['deps']) - {n})
537 if 'arch' not in t:
539 for a in ARCHS:
540 if a in disabledArchs:
542 if a not in t['arch']:
544 if 'deps' not in t['arch'][a]:
550 for t in targets_by_arch.values():
553 for name in names:
554 targets[name] = Merge({a: t.get(name, {}) for a,t in targets_by_arch.items()})
565 for f in FLAGS:
567 for v in obj.values():
573 for f in flags:
575 if nf.startswith("-D"):
580 c = os.system(f"find {directory} -name '*.gn*' | xargs grep -q -s -e '{nf}'")
582 # couldn't find the flag in *.gn or *.gni
594 for arch in ARCHS:
611 for name, target in sorted(targets.items()):
629 for a in ARCHS:
650 for a in ARCHS: