repo_id
stringlengths
19
138
file_path
stringlengths
32
200
content
stringlengths
1
12.9M
__index_level_0__
int64
0
0
apollo_public_repos/apollo
apollo_public_repos/apollo/tools/common.bzl
# Sanitize a dependency so that it works correctly from code that includes # TensorFlow as a submodule. def clean_dep(dep): return str(Label(dep)) # Ref: bazel-skylib@lib/paths.bzl def basename(p): """Returns the basename (i.e., the file portion) of a path. Note that if `p` ends with a slash, this function returns an empty string. This matches the behavior of Python's `os.path.basename`, but differs from the Unix `basename` command (which would return the path segment preceding the final slash). Args: p: The path whose basename should be returned. Returns: The basename of the path, which includes the extension. """ return p.rpartition("/")[-1] def dirname(p): """Returns the dirname of a path. The dirname is the portion of `p` up to but not including the file portion (i.e., the basename). Any slashes immediately preceding the basename are not included, unless omitting them would make the dirname empty. Args: p: The path whose dirname should be returned. Returns: The dirname of the path. """ prefix, sep, _ = p.rpartition("/") if not prefix: return sep else: # If there are multiple consecutive slashes, strip them all out as Python's # os.path.dirname does. return prefix.rstrip("/") def _path_is_absolute(path): """Returns `True` if `path` is an absolute path. Args: path: A path (which is a string). Returns: `True` if `path` is an absolute path. """ return path.startswith("/") or (len(path) > 2 and path[1] == ":") def join_paths(path, *others): """Joins one or more path components intelligently. This function mimics the behavior of Python's `os.path.join` function on POSIX platform. It returns the concatenation of `path` and any members of `others`, inserting directory separators before each component except the first. The separator is not inserted if the path up until that point is either empty or already ends in a separator. If any component is an absolute path, all previous components are discarded. Args: path: A path segment. *others: Additional path segments. Returns: A string containing the joined paths. """ result = path for p in others: if _path_is_absolute(p): result = p elif not result or result.endswith("/"): result += p else: result += "/" + p return result ## Adapted from RobotLocomotion/drake:tools/skylark/pathutils.bzl # Remove prefix from path. def ___remove_prefix(path, prefix): # If the prefix has more parts than the path, failure is certain. if len(prefix) > len(path): return None # Iterate over components to determine if a match exists. for n in range(len(prefix)): if prefix[n] == path[n]: continue elif prefix[n] == "*": continue else: return None return "/".join(path[len(prefix):]) def __remove_prefix(path, prefix): # Ignore trailing empty element (happens if prefix string ends with "/"). if len(prefix[-1]) == 0: prefix = prefix[:-1] # If the prefix has more parts than the path, failure is certain. (We also # need at least one component of the path left over so the stripped path is # not empty.) if len(prefix) > (len(path) - 1): return None # Iterate over components to determine if a match exists. for n in range(len(prefix)): # Same path components match. if prefix[n] == path[n]: continue # Single-glob matches any (one) path component. if prefix[n] == "*": continue # Mulit-glob matches one or more components. if prefix[n] == "**": # If multi-glob is at the end of the prefix, return the last path # component. if n + 1 == len(prefix): return path[-1] # Otherwise, the most components the multi-glob can match is the # remaining components (len(prefix) - n - 1; the 1 is the current # prefix component) less one (since we need to keep at least one # component of the path). k = len(path) - (len(prefix) - n - 1) # Try to complete the match, iterating (backwards) over the number # of components that the multi-glob might match. for t in reversed(range(n, k)): x = ___remove_prefix(path[t:], prefix[n + 1:]) if x != None: return x # Multi-glob failed to match. return None # Components did not match. return None return "/".join(path[len(prefix):]) def remove_prefix(path, prefix): """Remove prefix from path. This attempts to remove the specified prefix from the specified path. The prefix may contain the globs ``*`` or ``**``, which match one or many path components, respectively. Matching is greedy. Globs may only be matched against complete path components (e.g. ``a/*/`` is okay, but ``a*/`` is not treated as a glob and will be matched literally). Due to Starlark limitations, at most one ``**`` may be matched. Args: path (:obj:`str`) The path to modify. prefix (:obj:`str`) The prefix to remove. Returns: :obj:`str`: The path with the prefix removed if successful, or None if the prefix does not match the path. """ return __remove_prefix(path.split("/"), prefix.split("/")) def output_path(ctx, input_file, strip_prefix, package_root = None): """Compute "output path". This computes the adjusted output path for an input file. Specifically, it a) determines the path relative to the invoking context (which is usually, but not always, the same as the path as specified by the user when the file was mentioned in a rule), without Bazel's various possible extras, and b) optionally removes prefixes from this path. When removing prefixes, the first matching prefix is removed. This is used primarily to compute the output install path, without the leading install prefix, for install actions. For example:: install_files( dest = "docs", files = ["foo/bar.txt"], strip_prefix = ["foo/"], ...) The :obj:`File`'s path components will have various Bazel bits added. Our first step is to recover the input path, ``foo/bar.txt``. Then we remove the prefix ``foo``, giving a path of ``bar.txt``, which will become ``docs/bar.txt`` when the install destination is added. The input file must belong to the current package; otherwise, ``None`` is returned. Args: input_file (:obj:`File`): Artifact to be installed. strip_prefix (:obj:`list` of :obj:`str`): List of prefixes to strip from the input path before prepending the destination. Returns: :obj:`str`: The install destination path for the file. """ if package_root == None: # Determine base path of invoking context. package_root = join_paths(ctx.label.workspace_root, ctx.label.package) # Determine effective path by removing path of invoking context and any # Bazel output-files path. input_path = input_file.path if input_file.is_source: input_path = remove_prefix(input_path, package_root) else: out_root = join_paths("bazel-out/*/*", package_root) input_path = remove_prefix(input_path, out_root) # Deal with possible case of file outside the package root. if input_path == None: return None # Possibly remove prefixes. for p in strip_prefix: output_path = remove_prefix(input_path, p) if output_path != None: return output_path return input_path
0
apollo_public_repos/apollo
apollo_public_repos/apollo/tools/CPPLINT.cfg
# Stop searching for additional config files. set noparent # Disable a warning about C++ features that were not in the original # C++11 specification (and so might not be well-supported). filter=-build/c++11 filter=-build/include_alpha,+build/include_order filter=+build/include_what_you_use # Disable header_guard warning # Consider using #pragma once instead filter=-build/header_guard filter=+runtime/printf,+runtime/printf_format linelength=80 includeorder=standardcfirst
0
apollo_public_repos/apollo/tools
apollo_public_repos/apollo/tools/install/install.py.in
#!/usr/bin/env python3 """ Installation script generated from a Bazel `install` target. """ # Note(storypku): # Adapted from https://github.com/RobotLocomotion/drake/blob/master/tools/install/install.py.in # N.B. This is designed to emulate CMake's install mechanism. Do not add # unnecessary print statements. import argparse import collections import filecmp import itertools import os import re import shutil import stat import sys from subprocess import check_output, check_call # Stores subdirectories that have already been created. subdirs = set() # Stored from command-line. color = False prefix = None strip = True strip_tool = None install_lib = True fix_rpath = True dbg = False gpu = False dev = True # Mapping used to (a) check for unique shared library names and (b) provide a # mapping from library name to paths for RPath fixes (where (a) is essential). # Structure: Map[ basename (Str) => full_path ] libraries_to_fix_rpath = {} # These are binaries (or Python shared libraries) that require RPath fixes (and # thus depend on `libraries_to_fix_rpath`), but by definition are not depended # upon by other components, and thus need not be unique. # Structure: List[ Tuple(basename, full_path) ] binaries_to_fix_rpath = [] # Files that are not libraries, but may still require fixing. # Structure: List[Str] potential_binaries_to_fix_rpath = [] # Stores result of `--list` argument. list_only = False # Used for matching against libraries and extracting useful components. # N.B. On linux, dynamic libraries may have their version number as a suffix # (e.g. my_lib.so.x.y.z). dylib_match = re.compile(r"(.*\.so)(\.\d+)*$") def get_pkg_real_name(name, dev=False, dbg=False, gpu=False): """Get real package name by install parameters""" new_name = name if dev: new_name += "-dev" if dbg: new_name += "-dbg" if gpu: new_name += "-gpu" return new_name def rename_package_name(dest): """Get packages name from file install destination.""" if not dev and not dbg and not gpu: return dest if dest.startswith("lib/"): return dest curr_pkg_name = dest.split("/")[0] new_pkg_name = get_pkg_real_name(curr_pkg_name, dev, dbg, gpu) # Local build package version is fiexed `local` pkg_name_with_ver = new_pkg_name + "/local" new_dest = dest.replace(curr_pkg_name, pkg_name_with_ver, 1) # Install ${package_name}.BUILD to ${new_package_name}.BUILD if dest == curr_pkg_name + "/" + curr_pkg_name + ".BUILD": new_dest = new_pkg_name + "/local/" + new_pkg_name + ".BUILD" return new_dest def is_relative_link(filepath): """Find if a file is a relative link. Bazel paths are assumed to always be absolute. If path is not absolute, the file is a link we want to keep. If the given `filepath` is not a link, the function returns `None`. If the given `filepath` is a link, the result will depend if the link is absolute or relative. The function is called recursively. If the result is not a link, `None` is returned. If the link is relative, the relative link is returned. """ if os.path.islink(filepath): link = os.readlink(filepath) if not os.path.isabs(link): return link else: return is_relative_link(link) else: return None def find_binary_executables(): """Finds installed files that are binary executables to fix them up later. Takes `potential_binaries_to_fix_rpath` as input list, and updates `binaries_to_fix_rpath` with executables that need to be fixed up. """ if not potential_binaries_to_fix_rpath: return # Checking file type with command `file` is the safest way to find # executables. Files without an extension are likely to be executables, but # it is not always the case. file_output = check_output( ["file"] + potential_binaries_to_fix_rpath).decode("utf-8") # On Linux, executables can be ELF shared objects. executable_match = re.compile( r"(.*):.*(ELF.*executable|shared object.*)") for line in file_output.splitlines(): re_result = executable_match.match(line) if re_result is not None: dst_full = re_result.group(1) basename = os.path.basename(dst_full) binaries_to_fix_rpath.append((basename, dst_full)) def may_be_binary(dst_full): # Try to minimize the amount of work that `find_binary_executables` # must do. extensions = [".h", ".py", ".obj", ".cmake", ".1", ".hpp", ".txt"] for extension in extensions: if dst_full.endswith(extension): return False return True def needs_install(src, dst): # Get canonical destination. dst_full = os.path.join(prefix, dst) # Check if destination exists. if not os.path.exists(dst_full): # Destination doesn't exist -> installation needed. return True # Check if files are different. if filecmp.cmp(src, dst_full, shallow=False): # Files are the same -> no installation needed. return False # File needs to be installed. return True def copy_or_link(src, dst): """Copy file if it is not a relative link or recreate the symlink in `dst`. Copy the input file to the destination if it is not a relative link. If the file is a relative link, create a similar link in the destination folder. """ relative_link = is_relative_link(src) if relative_link: os.symlink(relative_link, dst) else: shutil.copy2(src, dst) def install(src, dst): global subdirs dst = rename_package_name(dst) # Do not install files in ${prefx}/lib dir if not install_lib and dst.startswith("lib/"): return # In list-only mode, just display the filename, don't do any real work. if list_only: print(dst) return # Ensure destination subdirectory exists, creating it if necessary. subdir = os.path.dirname(dst) if subdir not in subdirs: subdir_full = os.path.join(prefix, subdir) if not os.path.exists(subdir_full): os.makedirs(subdir_full) subdirs.add(subdir) dst_full = os.path.join(prefix, dst) # Install file, if not up to date. if needs_install(src, dst): print("-- Installing: {}".format(dst_full)) if os.path.exists(dst_full): os.remove(dst_full) copy_or_link(src, dst_full) else: # TODO(eric.cousineau): Unclear how RPath-patched file can be deemed # "up-to-date" by comparison? print("-- Up-to-date: {}".format(dst_full)) # No need to check patching. return basename = os.path.basename(dst) if re.match(dylib_match, basename): # It is a library. if dst.startswith("lib/python") and not basename.startswith("lib"): # Assume this is a Python C extension. binaries_to_fix_rpath.append((basename, dst_full)) else: # Check that dependency is only referenced once # in the library dictionary. If it is referenced multiple times, # we do not know which one to use, and fail fast. if basename in libraries_to_fix_rpath: pre_full_dst = libraries_to_fix_rpath[basename] # libxxxx.so produced by module is only installed once to it's module dir if dst.startswith("lib/"): # remove it from lib/ os.remove(dst_full) return elif not pre_full_dst.startswith(os.path.join(prefix, "lib/")): sys.stderr.write("Multiple installation rules found for {}." .format(basename)) # sys.exit(1) return else: # remove it from lib/ os.remove(pre_full_dst) libraries_to_fix_rpath[basename] = dst_full elif may_be_binary(dst_full): # May be an executable. potential_binaries_to_fix_rpath.append(dst_full) def fix_rpaths_and_strip(): # Add binary executables to list of files to be fixed up: find_binary_executables() # Only fix files that are installed now. fix_items = itertools.chain( libraries_to_fix_rpath.items(), binaries_to_fix_rpath) for basename, dst_full in fix_items: if os.path.islink(dst_full): # Skip files that are links. However, they need to be in the # dictionary to fixup other library and executable paths. continue # Enable write permissions to allow modification. os.chmod(dst_full, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH) # Strip before running `patchelf`. Trying to strip after patching # the files is likely going to create the following error: # 'Not enough room for program headers, try linking with -N' if strip: check_call([strip_tool, dst_full]) linux_fix_rpaths(dst_full) def linux_fix_rpaths(dst_full): # A conservative subset of the ld.so search path. These paths are added # to /etc/ld.so.conf by default or after the prerequisites install script # has been run. Query on a given system using `ldconfig -v`. # TODO(storypku): revisit this later for Aarch64 ld_so_search_paths = [ '/lib', '/lib/x86_64-linux-gnu', '/lib32', '/libx32', '/usr/lib', '/usr/lib/x86_64-linux-gnu', '/usr/lib/x86_64-linux-gnu/libfakeroot', '/usr/lib/x86_64-linux-gnu/mesa-egl', '/usr/lib/x86_64-linux-gnu/mesa', '/usr/lib/x86_64-linux-gnu/pulseaudio', '/usr/lib32', '/usr/libx32', '/usr/local/lib', ] file_output = check_output(["ldd", dst_full]).decode("utf-8") rpath = [] for line in file_output.splitlines(): ldd_result = line.strip().split(' => ') if len(ldd_result) < 2: continue # Library in install prefix. if ldd_result[1] == 'not found' or ldd_result[1].startswith(prefix): re_result = re.match(dylib_match, ldd_result[0]) # Look for the absolute path in the dictionary of libraries using # the library name without its possible version number. soname, _ = re_result.groups() if soname not in libraries_to_fix_rpath: continue lib_dirname = os.path.dirname(dst_full) diff_path = os.path.dirname( os.path.relpath(libraries_to_fix_rpath[soname], lib_dirname) ) rpath.append('$ORIGIN' + '/' + diff_path) # System library not in ld.so search path. else: # Remove (hexadecimal) address from output leaving (at most) the # path to the library. ldd_regex = r"(.*\.so(?:\.\d+)*) \(0x[0-9a-f]+\)$" re_result = re.match(ldd_regex, ldd_result[1]) if re_result: lib_dirname = os.path.dirname( os.path.realpath(re_result.group(1)) ) if lib_dirname not in ld_so_search_paths: rpath.append(lib_dirname + '/') # The above may have duplicated some items into the list. Uniquify it # here, preserving order. Note that we do not just use a set() above, # since order matters. rpath = collections.OrderedDict.fromkeys(rpath).keys() # Replace build tree RPATH with computed install tree RPATH. Build tree # RPATH are automatically removed by this call. RPATH will contain the # necessary absolute and relative paths to find the libraries that are # needed. RPATH will typically be set to `$ORIGIN` or `$ORIGIN/../../..`, # possibly concatenated with directories under /opt. str_rpath = ":".join(x for x in rpath) check_output( ["patchelf", "--force-rpath", # We need to override LD_LIBRARY_PATH. "--set-rpath", str_rpath, dst_full] ) def main(args): global color global list_only global prefix global strip global strip_tool global install_lib global dbg global gpu global dev # Set up options. parser = argparse.ArgumentParser() parser.add_argument('prefix', type=str, help='Install prefix') parser.add_argument( '--color', action='store_true', default=False, help='colorize the output') parser.add_argument( '--list', action='store_true', default=False, help='print the list of installed files; do not install anything') parser.add_argument( '--no_strip', dest='strip', action='store_false', default=True, help='do not strip symbols (for debugging)') parser.add_argument( '--strip_tool', type=str, default='strip', help='strip program') parser.add_argument( '--pre_clean', action='store_true', default=False, help='ensure clean install by removing `prefix` dir if it exists ' 'before installing') parser.add_argument('--no_lib', dest='install_lib', action='store_false', default=True, help='do not install files in lib dir.') parser.add_argument('--no_fix_rpath', dest='fix_rpath', action='store_false', default=True, help='do not fix the rpath of .so files.') parser.add_argument('--dbg', action='store_true', default=False, help='debug package with debugging symbols.') parser.add_argument('--gpu', action='store_true', default=False, help='build with gpu.') parser.add_argument('--dev', action='store_true', default=True, help='dev package with headers.') args = parser.parse_args(args) color = args.color # Get install prefix. prefix = args.prefix list_only = args.list # Check if we want to avoid stripping symbols. strip = args.strip strip_tool = args.strip_tool pre_clean = args.pre_clean install_lib = args.install_lib fix_rpath = args.fix_rpath dbg = False gpu = False dev = True # Transform install prefix if DESTDIR is set. # https://www.gnu.org/prep/standards/html_node/DESTDIR.html destdir = os.environ.get('DESTDIR') if destdir: prefix = destdir + prefix # Because Bazel executes us in a strange working directory and not the # working directory of the user's shell, enforce that the install # location is an absolute path so that the user is not surprised. if not os.path.isabs(prefix): parser.error( "Install prefix must be an absolute path (got '{}')\n".format( prefix)) if color: ansi_color_escape = "\x1b[36m" ansi_reset_escape = "\x1b[0m" else: ansi_color_escape = "" ansi_reset_escape = "" if pre_clean: if os.path.isdir(prefix): print(f"Remove previous directory: {prefix}") shutil.rmtree(prefix) if strip: # Match the output of the CMake install/strip target # (https://git.io/fpdzK). print("{}Installing the project stripped...{}".format( ansi_color_escape, ansi_reset_escape)) else: # Match the output of the CMake install target (https://git.io/fpdzo). print("{}Install the project...{}".format( ansi_color_escape, ansi_reset_escape)) # Execute the install actions. <<actions>> # Libraries paths may need to be updated in libraries and executables. if fix_rpath: fix_rpaths_and_strip() if __name__ == "__main__": main(sys.argv[1:])
0
apollo_public_repos/apollo/tools
apollo_public_repos/apollo/tools/install/install.bzl
# -*- python -*- # Adapted from RobotLocomotion/drake:tools/install/install.bzl load("//tools:common.bzl", "dirname", "join_paths", "output_path", "remove_prefix") InstallInfo = provider() #============================================================================== #BEGIN internal helpers #------------------------------------------------------------------------------ def _workspace(ctx): """Compute name of current workspace.""" # Check for override if hasattr(ctx.attr, "workspace"): if len(ctx.attr.workspace): return ctx.attr.workspace # Check for meaningful workspace_root workspace = ctx.label.workspace_root.split("/")[-1] if len(workspace): return workspace # If workspace_root is empty, assume we are the root workspace return ctx.workspace_name def _rename(file_dest, rename): """Compute file name if file renamed.""" if file_dest in rename: renamed = rename[file_dest] return join_paths(dirname(file_dest), renamed) return file_dest def _depset_to_list(x): """Helper function to convert depset to list.""" iter_list = x.to_list() if type(x) == "depset" else x return iter_list #------------------------------------------------------------------------------ def _output_path(ctx, input_file, strip_prefix = [], warn_foreign = True): """Compute output path (without destination prefix) for install action. This computes the adjusted output path for an input file. It is the same as :func:`output_path`, but additionally handles files outside the current package. """ # Try the current package first path = output_path(ctx, input_file, strip_prefix) if path != None: return path owner = input_file.owner if owner.workspace_name != "": dest = join_paths("third_party", owner.workspace_name, owner.package, input_file.basename) else: dest = join_paths(owner.package, input_file.basename) # print("Installing file {} ({}) which is not in current package".format(input_file.short_path, dest)) # Possibly remove prefixes. for p in strip_prefix: dest = remove_prefix(dest, p) if dest != None: return dest return dest #------------------------------------------------------------------------------ def _guess_files(target, candidates, scope, attr_name): if scope == "EVERYTHING": return candidates elif scope == "WORKSPACE": return [ f for f in _depset_to_list(candidates) if target.label.workspace_root == f.owner.workspace_root ] elif scope == "PACKAGE": return [ f for f in _depset_to_list(candidates) if (target.label.workspace_root == f.owner.workspace_root and target.label.package == f.owner.package) ] else: msg_fmt = "'install' given unknown '%s' value '%s'" fail(msg_fmt % (attr_name, scope), scope) #------------------------------------------------------------------------------ def _install_action( ctx, artifact, dests, strip_prefixes = [], rename = {}, warn_foreign = True, py_runfiles = False, py_runfiles_path = None): """Compute install action for a single file. This takes a single file artifact and returns the appropriate install action for the file. The parameters are the same as for :func:`_install_action`. """ if type(dests) == "dict": dest = dests.get(artifact.extension, dests[None]) else: dest = dests dest_replacements = ( ("@WORKSPACE@", _workspace(ctx)), ("@PACKAGE@", ctx.label.package.replace("/", "-")), ) for old, new in dest_replacements: if old in dest: dest = dest.replace(old, new) if type(strip_prefixes) == "dict": strip_prefix = strip_prefixes.get( artifact.extension, strip_prefixes[None], ) else: strip_prefix = strip_prefixes if py_runfiles: file_dest = join_paths( dest, py_runfiles_path ) else: file_dest = join_paths( dest, _output_path(ctx, artifact, strip_prefix, warn_foreign), ) file_dest = _rename(file_dest, rename) return struct(src = artifact, dst = file_dest) #------------------------------------------------------------------------------ def _install_actions( ctx, file_labels, dests, strip_prefixes = [], excluded_files = [], rename = {}, warn_foreign = True): """Compute install actions for files. This takes a list of labels (targets or files) and computes the install actions for the files owned by each label. Args: file_labels (:obj:`list` of :obj:`Label`): List of labels to install. dests (:obj:`str` or :obj:`dict` of :obj:`str` to :obj:`str`): Install destination. A :obj:`dict` may be given to supply a mapping of file extension to destination path. The :obj:`dict` must have an entry with the key ``None`` that is used as the default when there is no entry for the specific extension. strip_prefixes (:obj:`list` of :obj:`str` or :obj:`dict` of :obj:`list` of :obj:`str` to :obj:`str`): List of prefixes to strip from the input path before prepending the destination. A :obj:`dict` may be given to supply a mapping of file extension to list of prefixes to strip. The :obj:`dict` must have an entry with the key ``None`` that is used as the default when there is no entry for the specific extension. excluded_files (:obj:`list` of :obj:`str`): List of files to exclude from installation. Returns: :obj:`list`: A list of install actions. """ actions = [] # Iterate over files. We expect a list of labels, which will have a 'files' # attribute that is a list of file artifacts. Thus this two-level loop. for f in file_labels: for a in _depset_to_list(f.files): # TODO(mwoehlke-kitware) refactor this to separate computing the # original relative path and the path with prefix(es) stripped, # then use the original relative path for both exclusions and # renaming. if _output_path(ctx, a, warn_foreign = False) in excluded_files: continue actions.append( _install_action( ctx, a, dests, strip_prefixes, rename, warn_foreign, ), ) return actions #------------------------------------------------------------------------------ # Compute install actions for a cc_library or cc_binary. def _install_cc_actions(ctx, target): # Compute actions for target artifacts. dests = { "a": ctx.attr.archive_dest, "so": ctx.attr.library_dest, None: ctx.attr.runtime_dest, } strip_prefixes = { "a": ctx.attr.archive_strip_prefix, "so": ctx.attr.library_strip_prefix, None: ctx.attr.runtime_strip_prefix, } actions = _install_actions( ctx, [target], dests, strip_prefixes, rename = ctx.attr.rename, ) mangled_solibs = [ f for f in _depset_to_list(target.default_runfiles.files) if not f.is_source and target.label != f.owner ] if len(mangled_solibs): actions += _install_actions( ctx, [struct(files = mangled_solibs)], ctx.attr.mangled_library_dest, strip_prefixes = ctx.attr.mangled_library_strip_prefix, rename = ctx.attr.rename, ) # Compute actions for guessed resource files. if ctx.attr.guess_data != "NONE": data = [ f for f in _depset_to_list(target.data_runfiles.files) if f.is_source ] data = _guess_files(target, data, ctx.attr.guess_data, "guess_data") actions += _install_actions( ctx, [struct(files = data)], ctx.attr.data_dest, ctx.attr.data_strip_prefix, ctx.attr.guess_data_exclude, rename = ctx.attr.rename, ) # Return computed actions. return actions #------------------------------------------------------------------------------ # Compute install actions for a py_library or py_binary. # TODO(jamiesnape): Install native shared libraries that the target may use. def _install_py_actions(ctx, target): actions = _install_actions( ctx, [target], ctx.attr.py_dest, ctx.attr.py_strip_prefix, rename = ctx.attr.rename, ) runfile_actions = [] runfiles_dir = "%s.runfiles" % str(target.label).split(":")[1] runfiles_dest = join_paths(ctx.attr.py_dest, runfiles_dir) for f in _depset_to_list(target.default_runfiles.files): runfile_actions.append( _install_action( ctx, f, runfiles_dest, ctx.attr.py_strip_prefix, ctx.attr.rename, True, True, join_paths("%s" % ctx.workspace_name, f.short_path) ) ) actions += runfile_actions return actions #------------------------------------------------------------------------------ # Compute install actions for a script or an executable. def _install_runtime_actions(ctx, target): return _install_actions( ctx, [target], ctx.attr.runtime_dest, ctx.attr.runtime_strip_prefix, rename = ctx.attr.rename, ) #------------------------------------------------------------------------------ # Generate install code for an install action. def _install_code(action): return "install(%r, %r)" % (action.src.short_path, action.dst) #------------------------------------------------------------------------------ # Generate install code for an install_src action. def _install_src_code(action): # print(action.src.short_path) return "install_src(%r, %r, %r)" % (action.src.short_path, action.dst, action.filter) #BEGIN rules #------------------------------------------------------------------------------ # Generate information to install "stuff". "Stuff" can be library or binary # targets, or documentation files. def _install_impl(ctx): actions = [] rename = dict(ctx.attr.rename) # Collect install actions from dependencies. for d in ctx.attr.deps: actions += d[InstallInfo].install_actions rename.update(d[InstallInfo].rename) # Generate actions for data, docs and includes. actions += _install_actions( ctx, ctx.attr.docs, ctx.attr.doc_dest, strip_prefixes = ctx.attr.doc_strip_prefix, rename = rename, ) actions += _install_actions( ctx, ctx.attr.data, ctx.attr.data_dest, strip_prefixes = ctx.attr.data_strip_prefix, rename = rename, ) for t in ctx.attr.targets: # TODO(jwnimmer-tri): Raise an error if a target has testonly=1. if CcInfo in t: actions += _install_cc_actions(ctx, t) # linker_inputs = t[CcInfo].linking_context.linker_inputs elif PyInfo in t: actions += _install_py_actions(ctx, t) elif hasattr(t, "files_to_run") and t.files_to_run.executable: # Executable scripts copied from source directory. actions += _install_runtime_actions(ctx, t) # Generate code for install actions. script_actions = [] installed_files = {} for a in actions: if not hasattr(a, "src"): fail("Action(dst={}) has no 'src' attribute".format(a.dst)) src = a.src if a.dst not in installed_files: script_actions.append(_install_code(a)) installed_files[a.dst] = src elif src != installed_files[a.dst]: orig = installed_files[a.dst] # Note(storypku): # Workaround for detected conflict betwen # <generated file external/local_config_cuda/cuda/cuda/lib/libcudart.so.11.0> and # <generated file _solib_local/_U@local_Uconfig_Ucuda_S_Scuda_Ccudart___Uexternal_Slocal_Uconfig_Ucuda_Scuda_Scuda_Slib/libcudart.so.11.0> # They share the same external workspace_root ("external/local_config_cuda") and package ("cuda") if src.basename != orig.basename or \ src.owner.workspace_root != orig.owner.workspace_root or \ src.owner.package != orig.owner.package: fail("Warning: Install conflict detected:\n" + "\n src1 = " + repr(orig) + "\n src2 = " + repr(src) + "\n dst = " + repr(a.dst)) # Generate install script. # TODO(mwoehlke-kitware): Figure out a better way to generate this and run # it via Python than `#!/usr/bin/env python3`? ctx.actions.expand_template( template = ctx.executable.install_script_template, output = ctx.outputs.executable, substitutions = {"<<actions>>": "\n ".join(script_actions)}, ) # Return actions. files = ctx.runfiles( files = [a.src for a in actions], ) return [ InstallInfo( install_actions = actions, rename = rename, installed_files = installed_files, ), DefaultInfo(runfiles = files), ] # TODO(mwoehlke-kitware) default guess_data to PACKAGE when we have better # default destinations. _install_rule = rule( # Update buildifier-tables.json when this changes. attrs = { "deps": attr.label_list(providers = [InstallInfo]), "docs": attr.label_list(allow_files = True), "doc_dest": attr.string(default = "docs/@WORKSPACE@"), "doc_strip_prefix": attr.string_list(), "data": attr.label_list(allow_files = True), "data_dest": attr.string(default = "@PACKAGE@"), "data_strip_prefix": attr.string_list(), "guess_data": attr.string(default = "NONE"), "guess_data_exclude": attr.string_list(), "targets": attr.label_list(), "archive_dest": attr.string(default = "lib"), "archive_strip_prefix": attr.string_list(), "library_dest": attr.string(default = "@PACKAGE@/lib"), "library_strip_prefix": attr.string_list(), "mangled_library_dest": attr.string(default = "lib"), "mangled_library_strip_prefix": attr.string_list(), "runtime_dest": attr.string(default = "bin"), "runtime_strip_prefix": attr.string_list(), "py_dest": attr.string(default = "lib/python"), "py_strip_prefix": attr.string_list(), "rename": attr.string_dict(), "install_script_template": attr.label( allow_files = True, executable = True, cfg = "target", default = Label("//tools/install:install.py.in"), ), }, executable = True, implementation = _install_impl, ) def install(tags = [], **kwargs): # (The documentation for this function is immediately below.) _install_rule( tags = tags + ["install"], **kwargs ) """Generate installation information for various artifacts. This generates installation information for various artifacts, including documentation files, and targets (e.g. ``cc_binary``). By default, the path of any files is included in the install destination. See :rule:`install_files` for details. Normally, you should not install files or targets from a workspace other than the one invoking ``install``, and ``install`` will warn if asked to do so. Destination paths may include the following placeholders: * ``@WORKSPACE@``, replaced with the name of the workspace which invokes ``install``. Note: By default, resource files to be installed must be explicitly listed. This is to work around an issue where Bazel does not appear to provide any mechanism to obtain the *direct* data files of a target, at rule instantiation. The ``guess_data`` parameter may be used to tell ``install`` to guess at what resource files will be installed. Possible values are: * ``"NONE"``: Only install files which are explicitly listed (i.e. by ``data``). * ``PACKAGE``: For each target, install those files which are used by the target and owned by a target in the same package. * ``WORKSPACE``: For each target, install those files which are used by the target and owned by a target in the same workspace. * ``EVERYTHING``: Install all resources used by the target. The resource files considered are *all* resource files transitively used by the target. Any option other than ``NONE`` is also likely to install resource files used by other targets. In either case, this may result in the same file being considered for installation more than once. Note also that, because Bazel includes *all* run-time dependencies — including e.g. shared libraries — in a target's ``runfiles``, only *source* artifacts are considered when guessing resource files. Args: deps: List of other install rules that this rule should include. docs: List of documentation files to install. doc_dest: Destination for documentation files (default = "docs/@WORKSPACE@"). doc_strip_prefix: List of prefixes to remove from documentation paths. guess_data: See note. guess_data_exclude: List of resources found by ``guess_data`` to exclude from installation. data: List of (platform-independent) resource files to install. data_dest: Destination for resource files (default = "@PACKAGE@"). data_strip_prefix: List of prefixes to remove from resource paths. targets: List of targets to install. archive_dest: Destination for static library targets (default = "lib"). archive_strip_prefix: List of prefixes to remove from static library paths. library_dest: Destination for shared library targets (default = "lib"). library_strip_prefix: List of prefixes to remove from shared library paths. mangled_library_dest: Destination for mangled shared library targets (default = "lib"). mangled_library_strip_prefix: List of prefixes to remove from mangled shared library paths. runtime_dest: Destination for executable targets (default = "bin"). runtime_strip_prefix: List of prefixes to remove from executable paths. py_dest: Destination for Python targets (default = "lib/python"). py_strip_prefix: List of prefixes to remove from Python paths. rename: Mapping of install paths to alternate file names, used to rename files upon installation. """ #------------------------------------------------------------------------------ # Generate information to install files to specified destination. def _install_files_impl(ctx): # Get path components. dest = ctx.attr.dest strip_prefix = ctx.attr.strip_prefix # Generate actions. actions = _install_actions( ctx, ctx.attr.files, dest, strip_prefix, rename = ctx.attr.rename, ) # Return computed actions. return [InstallInfo(install_actions = actions, rename = ctx.attr.rename)] _install_files_rule = rule( # Update buildifier-tables.json when this changes. attrs = { "dest": attr.string(mandatory = True), "files": attr.label_list(allow_files = True), "rename": attr.string_dict(), "strip_prefix": attr.string_list(), }, implementation = _install_files_impl, ) def install_files(tags = [], **kwargs): # (The documentation for this function is immediately below.) _install_files_rule( tags = tags + ["install"], **kwargs ) """Generate installation information for files. This generates installation information for a list of files. By default, any path portion of the file as named is included in the install destination. For example:: install_files( dest = "docs", files = ["foo/bar.txt"], ...) This will install ``bar.txt`` to the destination ``docs/foo``. When this behavior is undesired, the ``strip_prefix`` parameter may be used to specify a list of prefixes to be removed from input file paths before computing the destination path. Stripping is not recursive; the first matching prefix will be stripped. Prefixes support the single-glob (``*``) to match any single path component, or the multi-glob (``**``) to match any number of path components. Multi-glob matching is greedy. Globs may only be matched against complete path components (e.g. ``a/*/`` is okay, but ``a*/`` is not treated as a glob and will be matched literally). Due to Skylark limitations, at most one ``**`` may be matched. Destination paths may include the placeholder ``@WORKSPACE``, which is replaced with the name of the workspace which invokes ``install``. ``install_files`` has the same caveats regarding external files as :func:`install`. Args: dest: Destination for files. files: List of files to install. strip_prefix: List of prefixes to remove from input paths. rename: Mapping of install paths to alternate file names, used to rename files upon installation. """ #------------------------------------------------------------------------------ # Generate information to install files to specified destination. def _install_src_files_impl(ctx): # Get path components. dest = ctx.attr.dest src_dir = ctx.attr.src_dir filter = ctx.attr.filter actions = [] for a in _depset_to_list(src_dir): for b in _depset_to_list(a.files): actions.append(struct(src = b, dst = dest, filter = filter)) # Collect install actions from dependencies. for d in ctx.attr.deps: actions += d[InstallInfo].install_actions script_actions = [] for a in actions: if not hasattr(a, "src"): fail("Action(dst={}) has no 'src' attribute".format(a.dst)) if hasattr(a, "filter"): script_actions.append(_install_src_code(a)) # Generate install script. ctx.actions.expand_template( template = ctx.executable.install_script_template, output = ctx.outputs.executable, substitutions = {"<<actions>>": "\n ".join(script_actions)}, ) # Return actions. files = ctx.runfiles( files = [a.src for a in actions], ) return [ InstallInfo( install_actions = actions, rename = {}, ), DefaultInfo(runfiles = files), ] _install_src_files_rule = rule( # Update buildifier-tables.json when this changes. attrs = { "deps": attr.label_list(providers = [InstallInfo]), "dest": attr.string(), "src_dir": attr.label_list(allow_files = True), "filter": attr.string(), "install_script_template": attr.label( allow_files = True, executable = True, cfg = "target", default = Label("//tools/install:install_source.py.in"), ), }, executable = True, implementation = _install_src_files_impl, ) def install_src_files(tags = [], **kwargs): # (The documentation for this function is immediately below.) _install_src_files_rule( tags = tags + ["install"], **kwargs ) #END rules
0
apollo_public_repos/apollo/tools
apollo_public_repos/apollo/tools/install/install_source.py.in
#!/usr/bin/env python3 """ Installation script generated from a Bazel `install` target. """ import argparse import collections import filecmp import itertools import os import re import shutil import stat import sys from subprocess import check_output, check_call, Popen, PIPE import xml.etree.ElementTree as ET prefix = None pkg_name = None dbg = False gpu = False dev = True def shell_cmd(cmd, alert_on_failure=True): """Execute shell command and return (ret-code, stdout, stderr).""" print("SHELL > {}".format(cmd)) proc = Popen(cmd, shell=True, close_fds=True, stdout=PIPE, stderr=PIPE) ret = proc.wait() stdout = proc.stdout.read().decode('utf-8') if proc.stdout else None stderr = proc.stderr.read().decode('utf-8') if proc.stderr else None if alert_on_failure and stderr and ret != 0: sys.stderr.write('{}\n'.format(stderr)) return (ret, stdout, stderr) def get_pkg_real_name(name, dev=False, dbg=False, gpu=False): """Get real package name by install parameters""" new_name = name if dev: new_name += "-dev" return new_name def rename_package_name(dest): """Get packages name from file install destination.""" if not dev and not dbg and not gpu: return dest if dest.startswith("lib/"): return dest curr_pkg_name = dest.split("/")[0] new_pkg_name = get_pkg_real_name(curr_pkg_name, dev, dbg, gpu) # Local build package version is fiexed `local` pkg_name_with_ver = new_pkg_name + "/local" return dest.replace(curr_pkg_name, pkg_name_with_ver, 1) def setup_cyberfile(cyberfile_path, replace=True, dev=False, dbg=False, gpu=False): """Setup final cyberfile by install parameters. """ cyberfile = ET.parse(cyberfile_path) root = cyberfile.getroot() name = root.find("name") old_name = name.text name.text = get_pkg_real_name(name.text, dev, dbg, gpu) for dep in root.findall("depend"): if dep.get("condition"): if not eval(dep.get("condition")): root.remove(dep) else: del dep.attrib["condition"] if replace: cyberfile.write(cyberfile_path) return old_name, name.text, ET.tostring(root) def setup_cyberfiles(pkg_name=None): """Setup final cyberfiles by install parameters. """ for d in os.listdir(prefix): if pkg_name is not None and d != pkg_name: # only handle target package return cyberfile_path = prefix + d + "/local/cyberfile.xml" if os.path.exists(cyberfile_path): old_name, new_name, _ = setup_cyberfile(cyberfile_path, True, dev, dbg, gpu) if os.path.exists(prefix + d + "/" + old_name + ".BUILD"): os.rename(prefix + d + "/" + old_name + ".BUILD", prefix + d + "/" + new_name + ".BUILD") def get_module_name_from_cyberfile(cyberfile_path): if not os.path.exists(cyberfile_path): return None cyberfile = ET.parse(cyberfile_path) root = cyberfile.getroot() src_path = root.find("src_path") if src_path is None: return None pkg_type = root.find("type") if pkg_type is None: return None if pkg_type.text == "module" or pkg_type.text == "module-wrapper": return src_path.text.replace("//", "", 1).replace("/", "\/") return None def replace_config(pkg_module_dict, prefix, config_file): """ e.g. 1. /apollo/bazel-bin/modules/planning/libplanning_component.so ==> /opt/apollo/neo/packages/planning-dev/latest/lib/libplanning_component.so # 2. /apollo/modules/planning/conf/planning_config_navi.pb.txt ==> /opt/apollo/neo/packages/planning-dev/latest/conf/planning_config_navi.pb.txt # 3. /apollo/modules/planning/dag/planning.dag ==> /opt/apollo/neo/packages/planning-dev/local/dag/planning.dag """ for pkg_name, module_name in pkg_module_dict.items(): shell_cmd("sed -i 's/\/apollo\/bazel-bin\/{}\//{}{}\/latest\/lib\//g' {}".format(module_name, prefix.replace("/", "\/"), pkg_name, config_file)) #shell_cmd("sed -i 's/\/apollo\/{}\//{}{}\/local\//g' {}".format(module_name, prefix.replace("/", "\/"), pkg_name, config_file)) def replace_config_dir(full_c_d, prefix, pkg_module_dict): if not os.path.exists(full_c_d): return for c in os.listdir(full_c_d): c_f = full_c_d + "/" + c if os.path.isdir(c_f): replace_config_dir(c_f, prefix, pkg_module_dict) elif c_f.endswith(".dag"): replace_config(pkg_module_dict, prefix, c_f) else: continue def fix_configs_in_pkg(): conf_dirs = [ "/local", # "/local/launch", # "/local/conf" ] pkg_module_dict = {} for d in os.listdir(prefix): pkg_name = d.replace("/", "\/") module_name = get_module_name_from_cyberfile(prefix + d + "/local/cyberfile.xml") if module_name is None: continue pkg_module_dict[pkg_name] = module_name for d in os.listdir(prefix): for c_d in conf_dirs: full_c_d = prefix + d + c_d replace_config_dir(full_c_d, prefix, pkg_module_dict) def install_src(src, dst, filter): dst = rename_package_name(dst) if not os.path.isdir(src): sys.stderr.write("install_src only support dir, {} is not dir.".format(dst)) sys.exit(-1) dst_full = os.path.join(prefix, dst) if not os.path.exists(dst_full): os.makedirs(dst_full) shell_cmd("cd {} && find . -name '{}'|xargs -i -I@@ cp -rvnfP --parents @@ {}/ > /dev/null" .format(src, filter, dst_full)) def main(args): global prefix global pkg_name global dbg global gpu global dev # Set up options. parser = argparse.ArgumentParser() parser.add_argument('prefix', type=str, help='Install prefix') parser.add_argument('--pkg_name', type=str, default=None, help='Install target package name.') parser.add_argument('--dbg', action='store_true', default=False, help='debug package with debugging symbols.') parser.add_argument('--gpu', action='store_true', default=False, help='build with gpu.') parser.add_argument('--dev', action='store_true', default=True, help='dev package with headers.') args = parser.parse_args(args) # Get install prefix. prefix = args.prefix pkg_name = args.pkg_name dbg = args.dbg gpu = args.gpu dev = True # Transform install prefix if DESTDIR is set. # https://www.gnu.org/prep/standards/html_node/DESTDIR.html destdir = os.environ.get('DESTDIR') if destdir: prefix = destdir + prefix # Because Bazel executes us in a strange working directory and not the # working directory of the user's shell, enforce that the install # location is an absolute path so that the user is not surprised. if not os.path.isabs(prefix): parser.error("Install prefix must be an absolute path (got '{}')\n".format(prefix)) # Execute the install actions. <<actions>> # Setup cyberfile setup_cyberfiles(pkg_name) # Fix config path fix_configs_in_pkg() if __name__ == "__main__": main(sys.argv[1:])
0
apollo_public_repos/apollo/tools
apollo_public_repos/apollo/tools/install/BUILD
package( default_visibility = ["//visibility:public"], ) exports_files( [ "install.py.in", "install_source.py.in", ], )
0
apollo_public_repos/apollo/tools
apollo_public_repos/apollo/tools/platform/BUILD
package( default_visibility = ["//visibility:public"], ) config_setting( name = "use_gpu", define_values = { "USE_GPU": "true", }, ) config_setting( name = "use_nvidia_gpu", define_values = { "USE_GPU": "true", "NVIDIA": "0", "AMD": "1", "GPU_PLATFORM": "NVIDIA", }, ) config_setting( name = "use_amd_gpu", define_values = { "USE_GPU": "true", "NVIDIA": "0", "AMD": "1", "GPU_PLATFORM": "AMD", }, ) config_setting( name = "use_esd_can", define_values = { "USE_ESD_CAN": "true", }, ) config_setting( name = "with_teleop", define_values = { "WITH_TELEOP": "true", }, )
0
apollo_public_repos/apollo/tools
apollo_public_repos/apollo/tools/platform/common.bzl
# This file was adapted from third_party/remote_config/common.bzl in tensorflow.git """Functions common across configure rules.""" BAZEL_SH = "BAZEL_SH" PYTHON_BIN_PATH = "PYTHON_BIN_PATH" PYTHON_LIB_PATH = "PYTHON_LIB_PATH" TF_PYTHON_CONFIG_REPO = "TF_PYTHON_CONFIG_REPO" def auto_config_fail(msg): """Output failure message when auto configuration fails.""" red = "\033[0;31m" no_color = "\033[0m" fail("%sConfiguration Error:%s %s\n" % (red, no_color, msg)) def which(repository_ctx, program_name): """Returns the full path to a program on the execution platform. Args: repository_ctx: the repository_ctx program_name: name of the program on the PATH Returns: The full path to a program on the execution platform. """ result = execute(repository_ctx, ["which", program_name]) return result.stdout.rstrip() def get_python_bin(repository_ctx): """Gets the python bin path. Args: repository_ctx: the repository_ctx Returns: The python bin path. """ python_bin = get_host_environ(repository_ctx, PYTHON_BIN_PATH) if python_bin != None: return python_bin python_bin_path = which(repository_ctx, "python") if python_bin_path == None: auto_config_fail("Cannot find python in PATH, please make sure " + "python is installed and add its directory in PATH, or --define " + "%s='/something/else'.\nPATH=%s" % ( PYTHON_BIN_PATH, get_environ("PATH", ""), )) return python_bin_path def get_bash_bin(repository_ctx): """Gets the bash bin path. Args: repository_ctx: the repository_ctx Returns: The bash bin path. """ bash_bin = get_host_environ(repository_ctx, BAZEL_SH) if bash_bin != None: return bash_bin bash_bin_path = which(repository_ctx, "bash") if bash_bin_path == None: auto_config_fail("Cannot find bash in PATH, please make sure " + "bash is installed and add its directory in PATH, or --define " + "%s='/path/to/bash'.\nPATH=%s" % ( BAZEL_SH, get_environ("PATH", ""), )) return bash_bin_path def read_dir(repository_ctx, src_dir): """Returns a sorted list with all files in a directory. Finds all files inside a directory, traversing subfolders and following symlinks. Args: repository_ctx: the repository_ctx src_dir: the directory to traverse Returns: A sorted list with all files in a directory. """ find_result = execute( repository_ctx, ["find", src_dir, "-follow", "-type", "f"], empty_stdout_fine = True, ) result = find_result.stdout return sorted(result.splitlines()) def get_environ(repository_ctx, name, default_value = None): """Returns the value of an environment variable on the execution platform. Args: repository_ctx: the repository_ctx name: the name of environment variable default_value: the value to return if not set Returns: The value of the environment variable 'name' on the execution platform or 'default_value' if it's not set. """ cmd = "echo -n \"$%s\"" % name result = execute( repository_ctx, [get_bash_bin(repository_ctx), "-c", cmd], empty_stdout_fine = True, ) if len(result.stdout) == 0: return default_value return result.stdout def get_host_environ(repository_ctx, name, default_value = None): """Returns the value of an environment variable on the host platform. The host platform is the machine that Bazel runs on. Args: repository_ctx: the repository_ctx name: the name of environment variable Returns: The value of the environment variable 'name' on the host platform. """ if name in repository_ctx.os.environ: return repository_ctx.os.environ.get(name).strip() if hasattr(repository_ctx.attr, "environ") and name in repository_ctx.attr.environ: return repository_ctx.attr.environ.get(name).strip() return default_value def get_crosstool_verbose(repository_ctx): """Returns the environment variable value CROSSTOOL_VERBOSE. Args: repository_ctx: The repository context. Returns: A string containing value of environment variable CROSSTOOL_VERBOSE. """ return get_host_environ(repository_ctx, "CROSSTOOL_VERBOSE", "0") def get_cpu_value(repository_ctx): """Returns the name of the host operating system. Args: repository_ctx: The repository context. Returns: A string containing the name of the host operating system. """ result = raw_exec(repository_ctx, ["uname", "-s"]) return result.stdout.strip() def execute( repository_ctx, cmdline, error_msg = None, error_details = None, empty_stdout_fine = False): """Executes an arbitrary shell command. Args: repository_ctx: the repository_ctx object cmdline: list of strings, the command to execute error_msg: string, a summary of the error if the command fails error_details: string, details about the error or steps to fix it empty_stdout_fine: bool, if True, an empty stdout result is fine, otherwise it's an error Returns: The result of repository_ctx.execute(cmdline) """ result = raw_exec(repository_ctx, cmdline) if result.stderr or not (empty_stdout_fine or result.stdout): fail( "\n".join([ error_msg.strip() if error_msg else "Repository command failed", result.stderr.strip(), error_details if error_details else "", ]), ) return result def raw_exec(repository_ctx, cmdline): """Executes a command via repository_ctx.execute() and returns the result. This method is useful for debugging purposes. For example, to print all commands executed as well as their return code. Args: repository_ctx: the repository_ctx cmdline: the list of args Returns: The 'exec_result' of repository_ctx.execute(). """ return repository_ctx.execute(cmdline) def files_exist(repository_ctx, paths, bash_bin = None): """Checks which files in paths exists. Args: repository_ctx: the repository_ctx paths: a list of paths bash_bin: path to the bash interpreter Returns: Returns a list of Bool. True means that the path at the same position in the paths list exists. """ if bash_bin == None: bash_bin = get_bash_bin(repository_ctx) cmd_tpl = "[ -e \"%s\" ] && echo True || echo False" cmds = [cmd_tpl % path for path in paths] cmd = " ; ".join(cmds) stdout = execute(repository_ctx, [bash_bin, "-c", cmd]).stdout.strip() return [val == "True" for val in stdout.splitlines()] def realpath(repository_ctx, path, bash_bin = None): """Returns the result of "realpath path". Args: repository_ctx: the repository_ctx path: a path on the file system bash_bin: path to the bash interpreter Returns: Returns the result of "realpath path" """ if bash_bin == None: bash_bin = get_bash_bin(repository_ctx) return execute(repository_ctx, [bash_bin, "-c", "realpath \"%s\"" % path]).stdout.strip() def err_out(result): """Returns stderr if set, else stdout. This function is a workaround for a bug in RBE where stderr is returned as stdout. Instead of using result.stderr use err_out(result) instead. Args: result: the exec_result. Returns: The stderr if set, else stdout """ if len(result.stderr) == 0: return result.stdout return result.stderr def config_repo_label(config_repo, target): """Construct a label from config_repo and target. This function exists to ease the migration from preconfig to remote config. In preconfig the TF_*_CONFIG_REPO environ variables are set to packages in the main repo while in remote config they will point to remote repositories. Args: config_repo: a remote repository or package. target: a target Returns: A label constructed from config_repo and target. """ if config_repo.startswith("@") and not config_repo.find("//") > 0: # remote config is being used. return Label(config_repo + "//" + target) elif target.startswith(":"): return Label(config_repo + target) else: return Label(config_repo + "/" + target) # Stolen from third_party/gpus/cuda_configure.bzl def _norm_path(path): """Returns a path with '/' and remove the trailing slash.""" path = path.replace("\\", "/") if path[-1] == "/": path = path[:-1] return path def make_copy_files_rule(repository_ctx, name, srcs, outs): """Returns a rule to copy a set of files.""" cmds = [] # Copy files. for src, out in zip(srcs, outs): cmds.append('cp -f "%s" "$(location %s)"' % (src, out)) outs = [(' "%s",' % out) for out in outs] return """genrule( name = "%s", outs = [ %s ], cmd = \"""%s \""", )""" % (name, "\n".join(outs), " && \\\n".join(cmds)) def make_copy_dir_rule(repository_ctx, name, src_dir, out_dir, exceptions = None): """Returns a rule to recursively copy a directory. If exceptions is not None, it must be a list of files or directories in 'src_dir'; these will be excluded from copying. """ src_dir = _norm_path(src_dir) out_dir = _norm_path(out_dir) outs = read_dir(repository_ctx, src_dir) post_cmd = "" if exceptions != None: outs = [x for x in outs if not any([ x.startswith(src_dir + "/" + y) for y in exceptions ])] outs = [(' "%s",' % out.replace(src_dir, out_dir)) for out in outs] # '@D' already contains the relative path for a single file, see # http://docs.bazel.build/versions/master/be/make-variables.html#predefined_genrule_variables out_dir = "$(@D)/%s" % out_dir if len(outs) > 1 else "$(@D)" if exceptions != None: for x in exceptions: post_cmd += " ; rm -fR " + out_dir + "/" + x return """genrule( name = "%s", outs = [ %s ], cmd = \"""cp -rLf "%s/." "%s/" %s\""", )""" % (name, "\n".join(outs), src_dir, out_dir, post_cmd) def to_list_of_strings(elements): """Convert the list of ["a", "b", "c"] into '"a", "b", "c"'. This is to be used to put a list of strings into the bzl file templates so it gets interpreted as list of strings in Starlark. Args: elements: list of string elements Returns: single string of elements wrapped in quotes separated by a comma.""" quoted_strings = ["\"" + element + "\"" for element in elements] return ", ".join(quoted_strings) def flag_enabled(repository_ctx, flag_name): return get_host_environ(repository_ctx, flag_name) == "1" def tpl_gpus_path(repository_ctx, filename): return repository_ctx.path(Label("//third_party/gpus/%s.tpl" % filename)) def tpl_gpus(repository_ctx, tpl, substitutions = {}, out = None): if not out: out = tpl.replace(":", "/") repository_ctx.template( out, Label("//third_party/gpus/%s.tpl" % tpl), substitutions, )
0
apollo_public_repos/apollo/tools
apollo_public_repos/apollo/tools/platform/build_defs.bzl
def if_teleop(if_true, if_false = []): return select({ "//tools/platform:with_teleop": if_true, "//conditions:default": if_false, }) def copts_if_teleop(): return if_teleop(["-DWITH_TELEOP=1"], ["-DWITH_TELEOP=0"]) def if_x86_64(if_true, if_false = []): return select({ "@platforms//cpu:x86_64": if_true, "//conditions:default": if_false, }) def if_aarch64(if_true, if_false = []): return select({ "@platforms//cpu:aarch64": if_true, "//conditions:default": if_false, }) def if_esd_can(if_true, if_false = []): return select({ "//tools/platform:use_esd_can": if_true, "//conditions:default": if_false, }) def copts_if_esd_can(): return if_esd_can(["-DUSE_ESD_CAN=1"], ["-DUSE_ESD_CAN=0"])
0
apollo_public_repos/apollo/tools
apollo_public_repos/apollo/tools/package/rules_cc.release.patch
--- cc/defs.bzl +++ cc/defs.bzl @@ -26,6 +26,143 @@ def _add_tags(attrs): attrs["tags"] = [_MIGRATION_TAG] return attrs +def _select2dict(select_str): + result = dict() + cxt_str = select_str[:-2].replace("select({","") + for kv_str in cxt_str.split("],"): + k_str, v_str = kv_str.strip().split(": [") + if "" == v_str.strip() or "]" == v_str.strip(): + result[k_str.strip()[1:-1]] = [] + else: + v_list = [] + v_cxt = v_str.strip() + if v_cxt[-1] == "]": + v_cxt = v_str.strip()[:-1] + for v_v in v_cxt.split(","): + v_list.append(v_v.strip()[1:-1]) + result[k_str.strip()[1:-1]] = v_list + + return result + +def _list_str2list(list_str): + result = [] + cxt = list_str[1:-1] + for l_str in cxt.strip().split(","): + result.append(l_str.strip()[1:-1]) + return result + +def _replace_deps(deps_list, srcs_dict): + + for i in range(len(deps_list)): + if "@" not in deps_list[i]: + continue + else: + if ":" in deps_list[i]: + continue + else: + lib_name = deps_list[i].replace("//", "").replace("@", "") + deps_list[i] = deps_list[i] + "//:" + lib_name + + need_remove = {} + current_deps = {} + + for i in deps_list: + for src in srcs_dict: + if i.startswith(src): + if i == src: + need_remove[i] = srcs_dict[src] + break + else: + if i[len(src)] == "/" or i[len(src)] == ":": + need_remove[i] = srcs_dict[src] + break + + for i in range(len(deps_list)): + if deps_list[i] in need_remove: + deps_list[i] = need_remove[deps_list[i]] + current_deps[deps_list[i]] = deps_list[i] + + new_deps = [] + deps_list + + deps_map = {} + for i in new_deps: + deps_map[i] = i + new_deps = [i for i in deps_map] + + return new_deps + +def _get_workspace_deps(current_deps_dict, workspace_deps): + ws_deps = [] + for dep in workspace_deps: + if dep not in current_deps_dict: + ws_deps.append(dep) + return ws_deps + +def _process_apollo_deps(attrs): + # only do this action for targets in current WORKSPACE + if native.repository_name() != "@": + return attrs + if "deps" not in attrs or attrs["deps"] == None: + return attrs + deps = attrs["deps"] + + # e.g. SRC_REPLACEMENT=//third_party/ipopt=@apollo-neo-3rd-ipopt-dev,//third_party/ad_rss_lib=@apollo-neo-3rd-ad-rss-dev + # e.g. GEN_WS_DEPS=@boost,@apollo-neo-monitor-dev + src_replaces = "@@SRC_REPLACEMENT@@".split(",") + workspace_deps = "@@GEN_WS_DEPS@@".split(",") + + srcs_dict = {} + for s in src_replaces: + if "=" not in s: + continue + replace_dep = s.split("=")[0] + replace_value = s.split("=")[1] + srcs_dict[replace_dep] = replace_value + + current_deps_dict = {} + ret_deps_list = [] + if type(deps) == "select": + for group_str in str(deps).strip().split(" + "): + if "select({" in group_str.strip(): + s_deps_dict = _select2dict(group_str.strip()) + for k, v in s_deps_dict.items(): + if type(v) == "list": + s_deps_dict[k] = _replace_deps(v, srcs_dict) + + for i in s_deps_dict[k]: + current_deps_dict[i] = i + + ret_deps_list.append(select(s_deps_dict)) + else: + l_deps_str = group_str.strip() + l_deps_list = _list_str2list(l_deps_str) + ret_deps = _replace_deps(l_deps_list, srcs_dict) + + for dep in ret_deps: + current_deps_dict[dep] = dep + + ret_deps_list.append(ret_deps) + + ret_deps_list.append(_get_workspace_deps(current_deps_dict, workspace_deps)) + + n_deps = [] + for d in ret_deps_list: + n_deps += d + + # print(n_deps) + attrs["deps"] = n_deps + + return attrs + elif type(deps) == "list": + replaced_deps = _replace_deps(deps, srcs_dict) + for dep in replaced_deps: + current_deps_dict[dep] = dep + ws_deps = _get_workspace_deps(current_deps_dict, workspace_deps) + attrs["deps"] = replaced_deps + ws_deps + return attrs + else: + return attrs + def cc_binary(**attrs): """Bazel cc_binary rule. @@ -36,7 +173,7 @@ def cc_binary(**attrs): """ # buildifier: disable=native-cc - native.cc_binary(**_add_tags(attrs)) + native.cc_binary(**_add_tags(_process_apollo_deps(attrs))) def cc_test(**attrs): """Bazel cc_test rule. @@ -48,7 +185,7 @@ def cc_test(**attrs): """ # buildifier: disable=native-cc - native.cc_test(**_add_tags(attrs)) + native.cc_test(**_add_tags(_process_apollo_deps(attrs))) def cc_library(**attrs): """Bazel cc_library rule. @@ -60,7 +197,7 @@ def cc_library(**attrs): """ # buildifier: disable=native-cc - native.cc_library(**_add_tags(attrs)) + native.cc_library(**_add_tags(_process_apollo_deps(attrs))) def cc_import(**attrs): """Bazel cc_import rule.
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/scripts/runtime_into_standalone.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2021 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### RUNTIME_CONTAINER="apollo_runtime_standalone_${USER}" xhost +local:root 1>/dev/null 2>&1 docker exec -u "${USER}" \ -it "${RUNTIME_CONTAINER}" \ /bin/bash xhost -local:root 1>/dev/null 2>&1
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/scripts/cyber_start.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" source "${CURR_DIR}/docker_base.sh" VERSION_X86_64="cyber-x86_64-18.04-20210315_1535" TESTING_VERSION_X86_64="cyber-x86_64-18.04-testing-20210108_1510" #L4T VERSION_AARCH64="cyber-aarch64-18.04-20201217_1302" CYBER_CONTAINER="apollo_cyber_${USER}" CYBER_INSIDE="in-cyber-docker" DOCKER_REPO="apolloauto/apollo" DOCKER_PULL_CMD="docker pull" SHM_SIZE="2G" SUPPORTED_ARCHS=(x86_64 aarch64) TARGET_ARCH="" USE_LOCAL_IMAGE=0 CUSTOM_DIST= CUSTOM_VERSION= GEOLOC= function _target_arch_check() { local arch="$1" for k in "${SUPPORTED_ARCHS[@]}"; do if [[ "${k}" == "${arch}" ]]; then return fi done error "Unsupported target architecture: ${arch}." exit 1 } function show_usage() { cat <<EOF Usage: $0 [options] ... OPTIONS: -g <us|cn> Pull docker image from mirror registry based on geolocation. -h, --help Display this help and exit. -t, --tag <TAG> Specify docker image with tag to start -d, --dist Specify Apollo distribution(stable/testing) -l, --local Use local docker image. -m <arch> Specify docker image for a different CPU arch. --shm-size <bytes> Size of /dev/shm . Passed directly to "docker run" stop [-f|--force] Stop all running Apollo containers. Use "-f" to force removal. EOF } function parse_arguments() { local use_local_image=0 local custom_version="" local custom_dist="" local target_arch="" local shm_size="" local geo="" while [[ $# -gt 0 ]]; do local opt="$1" shift case "${opt}" in -g | --geo) geo="$1" shift optarg_check_for_opt "${opt}" "${geo}" ;; -t | --tag) if [[ ! -z "${custom_version}" ]]; then warning "Multiple option ${opt} specified, only the last one will take effect." fi custom_version="$1" shift optarg_check_for_opt "${opt}" "${custom_version}" ;; -d | --dist) custom_dist="$1" shift optarg_check_for_opt "${opt}" "${custom_dist}" ;; -h | --help) show_usage exit 1 ;; -l | --local) use_local_image=1 ;; -m) target_arch="$1" shift optarg_check_for_opt "${opt}" "${target_arch}" _target_arch_check "${target_arch}" ;; --shm-size) shm_size="$1" shift optarg_check_for_opt "${opt}" "${shm_size}" ;; stop) local force="$1" info "Now, stop all Apollo containers created by ${USER} ..." stop_all_apollo_containers "${force}" exit 0 ;; *) warning "Unknown option: $1" exit 2 ;; esac done # End while loop [[ ! -z "${geo}" ]] && GEOLOC="${geo}" USE_LOCAL_IMAGE="${use_local_image}" [[ -n "${target_arch}" ]] && TARGET_ARCH="${target_arch}" [[ -n "${custom_version}" ]] && CUSTOM_VERSION="${custom_version}" [[ -n "${custom_dist}" ]] && CUSTOM_DIST="${custom_dist}" [[ -n "${shm_size}" ]] && SHM_SIZE="${shm_size}" } # if [ ! -e /apollo ]; then # sudo ln -sf "${APOLLO_ROOT_DIR}" /apollo # fi # if [ -e /proc/sys/kernel ]; then # echo "/apollo/data/core/core_%e.%p" | sudo tee /proc/sys/kernel/core_pattern > /dev/null # fi # <cyber|dev>-<arch>-<ubuntu-release>-<timestamp> function guess_arch_from_tag() { local tag="$1" local __result="$2" local arch IFS='-' read -ra __arr <<<"${tag}" IFS=' ' # restore if [[ ${#__arr[@]} -lt 3 ]]; then warning "Unexpected image: ${tag}" arch="" else arch="${__arr[1]}" fi eval "${__result}='${arch}'" } function determine_target_version_and_arch() { local version="$1" # If no custom version specified if [[ -z "${version}" ]]; then # if target arch not set, assume it is equal to host arch. if [[ -z "${TARGET_ARCH}" ]]; then TARGET_ARCH="${HOST_ARCH}" fi _target_arch_check "${TARGET_ARCH}" if [[ "${TARGET_ARCH}" == "x86_64" ]]; then if [[ "${CUSTOM_DIST}" == "testing" ]]; then version="${TESTING_VERSION_X86_64}" else version="${VERSION_X86_64}" fi elif [[ "${TARGET_ARCH}" == "aarch64" ]]; then version="${VERSION_AARCH64}" else error "CAN'T REACH HERE" exit 1 fi else # CUSTOM_VERSION specified local supposed_arch guess_arch_from_tag "${version}" supposed_arch if [[ -z "${supposed_arch}" ]]; then error "Can't guess target arch from image tag: ${version}" error " Expected format <target>-<arch>-<ubuntu_release>-<timestamp>" exit 1 fi if [[ -z "${TARGET_ARCH}" ]]; then _target_arch_check "${supposed_arch}" TARGET_ARCH="${supposed_arch}" elif [[ "${TARGET_ARCH}" != "${supposed_arch}" ]]; then error "Target arch (${TARGET_ARCH}) doesn't match supposed arch" \ "(${supposed_arch}) from ${version}" exit 1 fi fi CUSTOM_VERSION="${version}" } function setup_devices_and_mount_volumes() { local __retval="$1" if [[ "${HOST_ARCH}" == "${TARGET_ARCH}" ]]; then source "${APOLLO_ROOT_DIR}/scripts/apollo_base.sh" setup_device fi local volumes volumes="-v ${APOLLO_ROOT_DIR}:/apollo" [ -d "${APOLLO_CONFIG_HOME}" ] || mkdir -p "${APOLLO_CONFIG_HOME}" volumes="-v ${APOLLO_CONFIG_HOME}:${APOLLO_CONFIG_HOME} ${volumes}" if [[ "${HOST_OS}" != "Linux" ]]; then warning "Running Cyber container on ${HOST_OS} is experimental!" else local os_release="$(lsb_release -rs)" case "${os_release}" in 16.04) # Mount host devices into container (/dev) warning "[Deprecated] Support for Ubuntu 16.04 will be removed" \ "in the near future. Please upgrade to ubuntu 18.04+." if [[ "${HOST_ARCH}" == "${TARGET_ARCH}" ]]; then volumes="${volumes} -v /dev:/dev" fi ;; 18.04 | 20.04 | *) if [[ "${HOST_ARCH}" == "${TARGET_ARCH}" ]]; then volumes="${volumes} -v /dev:/dev" fi ;; esac fi volumes="${volumes} -v /etc/localtime:/etc/localtime:ro" # volumes="${volumes} -v /usr/src:/usr/src" if [[ "${kernel}" == "Linux" ]]; then if [[ "${HOST_ARCH}" == "${TARGET_ARCH}" ]]; then volumes="${volumes} -v /dev/null:/dev/raw1394 \ -v /media:/media \ -v /tmp/.X11-unix:/tmp/.X11-unix:rw \ -v /lib/modules:/lib/modules \ " fi fi volumes="$(tr -s " " <<<"${volumes}")" eval "${__retval}='${volumes}'" } function docker_pull_if_needed() { local image="$1" local use_local_image="$2" if [[ ${use_local_image} -eq 1 ]]; then info "Start cyber container based on local image: ${image}" elif docker images -a --format '{{.Repository}}:{{.Tag}}' | grep -q "${image}"; then info "Image ${image} found locally, will be used." use_local_image=1 fi if [[ ${use_local_image} -eq 1 ]]; then return fi image="${DOCKER_REPO}:${image##*:}" echo "Start pulling docker image: ${image}" if [[ -n "${GEO_REGISTRY}" ]]; then image="${GEO_REGISTRY}/${image}" fi if ! ${DOCKER_PULL_CMD} "${image}"; then error "Failed to pull docker image: ${image}" exit 1 fi } function check_multi_arch_support() { if [[ "${TARGET_ARCH}" == "${HOST_ARCH}" ]]; then return fi info "Cyber ${TARGET_ARCH} container running on ${HOST_ARCH} host." # Note(storypku): # ubuntu 18.04: apt-get -y install qemu-user-static # with sudo-no-suid problem local qemu="multiarch/qemu-user-static" local refer="https://github.com/multiarch/qemu-user-static" local qemu_cmd="docker run --rm --privileged ${qemu} --reset -p yes" if docker images --format "{{.Repository}}" | grep -q "${qemu}"; then info "Run: ${qemu_cmd}" ## docker run --rm --privileged "${qemu}" --reset -p yes >/dev/null eval "${qemu_cmd}" >/dev/null info "Multiarch support has been enabled. Ref: ${refer}" else warning "Multiarch support hasn't been enabled. Please make sure the" warning "following command has been executed before continuing:" warning " ${qemu_cmd}" warning "Refer to ${refer} for more." exit 1 fi } function start_cyber_container() { local image="$1" info "Starting docker container \"${CYBER_CONTAINER}\" ..." local user="${USER}" local uid="$(id -u)" local group=$(id -g -n) local gid=$(id -g) local local_host="$(hostname)" local local_volumes setup_devices_and_mount_volumes local_volumes local display="${DISPLAY:-:0}" set -x ${DOCKER_RUN_CMD} -it \ -d \ --privileged \ --name "${CYBER_CONTAINER}" \ -e DISPLAY="${display}" \ -e DOCKER_USER="${user}" \ -e USER="${user}" \ -e DOCKER_USER_ID="${uid}" \ -e DOCKER_GRP="${group}" \ -e DOCKER_GRP_ID="${gid}" \ -e DOCKER_IMG="${image}" \ -e USE_GPU_HOST="${USE_GPU_HOST}" \ -e NVIDIA_VISIBLE_DEVICES=all \ -e NVIDIA_DRIVER_CAPABILITIES=compute,video,graphics,utility \ -e OMP_NUM_THREADS=1 \ ${local_volumes} \ --net host \ -w /apollo \ --add-host "${CYBER_INSIDE}:172.0.0.1" \ --add-host "${local_host}:127.0.0.1" \ --hostname "${CYBER_INSIDE}" \ --shm-size "${SHM_SIZE}" \ --pid=host \ "${image}" \ /bin/bash if [ $? -ne 0 ]; then error "Failed to start docker container \"${CYBER_CONTAINER}\" based on image: ${image}" exit 1 fi set +x } function main() { check_agreement parse_arguments "$@" determine_target_version_and_arch "${CUSTOM_VERSION}" check_multi_arch_support local image="${DOCKER_REPO}:${CUSTOM_VERSION}" geo_specific_config "${GEOLOC}" info "GEO_REGISTRY evaluated to: ${GEO_REGISTRY}" docker_pull_if_needed "${image}" "${USE_LOCAL_IMAGE}" remove_container_if_exists "${CYBER_CONTAINER}" determine_gpu_use_host info "DOCKER_RUN_CMD evaluated to: ${DOCKER_RUN_CMD}" start_cyber_container "${image}" postrun_start_user "${CYBER_CONTAINER}" ok "Congratulations! You have successfully finished setting up CyberRT Docker environment." ok "To log into the newly created CyberRT container, please run the following command:" ok " bash docker/scripts/cyber_into.sh" ok "Enjoy!" } main "$@"
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/scripts/dev_into.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### DOCKER_USER="${USER}" DEV_CONTAINER="apollo_dev_${USER}" xhost +local:root 1>/dev/null 2>&1 docker exec \ -u "${DOCKER_USER}" \ -e HISTFILE=/apollo/.dev_bash_hist \ -it "${DEV_CONTAINER}" \ /bin/bash xhost -local:root 1>/dev/null 2>&1
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/scripts/runtime_start.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2021 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" source "${CURR_DIR}/docker_base.sh" DOCKER_REPO="apolloauto/apollo" RUNTIME_CONTAINER="apollo_runtime_${USER}" RUNTIME_INSIDE="in-runtime-docker" RUNTIME_STANDALONE="false" TARGET_ARCH="$(uname -m)" VERSION_X86_64="runtime-x86_64-18.04-20220803_1505" USER_VERSION_OPT= FAST_MODE="no" GEOLOC= USE_LOCAL_IMAGE=0 VOLUME_VERSION="latest" SHM_SIZE="2G" USER_SPECIFIED_MAPS= MAP_VOLUMES_CONF= OTHER_VOLUMES_CONF= DEFAULT_MAPS=( sunnyvale_big_loop sunnyvale_loop sunnyvale_with_two_offices san_mateo ) DEFAULT_TEST_MAPS=( sunnyvale_big_loop sunnyvale_loop ) function show_usage() { cat <<EOF Usage: $0 [options] ... OPTIONS: -h, --help Display this help and exit. -f, --fast Fast mode without pulling all map volumes. -g, --geo <us|cn|none> Pull docker image from geolocation specific registry mirror. -l, --local Use local docker image. -s, --standalone Run standalone container with all volumes and apollo itself included. -t, --tag <TAG> Specify docker image with tag <TAG> to start. --shm-size <bytes> Size of /dev/shm . Passed directly to "docker run" EOF } function parse_arguments() { local custom_version="" local shm_size="" local geo="" while [ $# -gt 0 ]; do local opt="$1" shift case "${opt}" in -t | --tag) if [ -n "${custom_version}" ]; then warning "Multiple option ${opt} specified, only the last one will take effect." fi custom_version="$1" shift optarg_check_for_opt "${opt}" "${custom_version}" ;; -h | --help) show_usage exit 1 ;; -f | --fast) FAST_MODE="yes" ;; -g | --geo) geo="$1" shift optarg_check_for_opt "${opt}" "${geo}" ;; -l | --local) USE_LOCAL_IMAGE=1 ;; -s | --standalone) RUNTIME_STANDALONE="true" ;; --shm-size) shm_size="$1" shift optarg_check_for_opt "${opt}" "${shm_size}" ;; --map) map_name="$1" shift USER_SPECIFIED_MAPS="${USER_SPECIFIED_MAPS} ${map_name}" ;; *) warning "Unknown option: ${opt}" exit 2 ;; esac done # End while loop [[ -n "${geo}" ]] && GEOLOC="${geo}" [[ -n "${custom_version}" ]] && USER_VERSION_OPT="${custom_version}" [[ -n "${shm_size}" ]] && SHM_SIZE="${shm_size}" } function determine_runtime_image() { local version="$1" if [[ -n "${version}" ]]; then RUNTIME_IMAGE="${DOCKER_REPO}:${version}" return fi if [[ "${TARGET_ARCH}" == "x86_64" ]]; then version="${VERSION_X86_64}" RUNTIME_IMAGE="${DOCKER_REPO}:${version}" else error "Runtime Docker for ${TARGET_ARCH} Not Ready. Exiting..." exit 3 fi } function check_host_environment() { if [[ "${HOST_OS}" != "Linux" ]]; then warning "Linux ONLY support for Apollo Runtime Docker!" exit 1 fi if [[ "${HOST_ARCH}" != "x86_64" ]]; then warning "Apollo Runtime Docker supports x86_64 ONLY!" exit 2 fi } function setup_devices_and_mount_local_volumes() { local __retval="$1" source "${APOLLO_ROOT_DIR}/scripts/apollo_base.sh" setup_device local volumes="" if $RUNTIME_STANDALONE; then volumes="-v ${APOLLO_ROOT_DIR}/data:/apollo/data \ -v ${APOLLO_ROOT_DIR}/modules/calibration/data:/apollo/modules/calibration/data \ -v ${APOLLO_ROOT_DIR}/modules/map/data:/apollo/modules/map/data \ -v ${APOLLO_ROOT_DIR}/output:/apollo/output" else volumes="-v ${APOLLO_ROOT_DIR}:/apollo" fi [ -d "${APOLLO_CONFIG_HOME}" ] || mkdir -p "${APOLLO_CONFIG_HOME}" volumes="-v ${APOLLO_CONFIG_HOME}:${APOLLO_CONFIG_HOME} ${volumes}" local os_release="$(lsb_release -rs)" case "${os_release}" in 16.04) warning "[Deprecated] Support for Ubuntu 16.04 will be removed" \ "in the near future. Please upgrade to ubuntu 18.04+." volumes="${volumes} -v /dev:/dev" ;; 18.04 | 20.04 | *) volumes="${volumes} -v /dev:/dev" ;; esac volumes="${volumes} -v /media:/media \ -v /tmp/.X11-unix:/tmp/.X11-unix:rw \ -v /etc/localtime:/etc/localtime:ro \ -v /lib/modules:/lib/modules" volumes="$(tr -s " " <<<"${volumes}")" eval "${__retval}='${volumes}'" } function docker_pull() { local img="$1" if [[ "${USE_LOCAL_IMAGE}" -gt 0 ]]; then if docker images --format "{{.Repository}}:{{.Tag}}" | grep -q "${img}"; then info "Local image ${img} found and will be used." return fi warning "Image ${img} not found locally although local mode enabled. Trying to pull from remote registry." fi if [[ -n "${GEO_REGISTRY}" ]]; then img="${GEO_REGISTRY}/${img}" fi info "Start pulling docker image ${img} ..." if ! docker pull "${img}"; then error "Failed to pull docker image : ${img}" exit 1 fi } function docker_restart_volume() { local volume="$1" local image="$2" local path="$3" info "Create volume ${volume} from image: ${image}" docker_pull "${image}" docker volume rm "${volume}" >/dev/null 2>&1 docker run -v "${volume}":"${path}" --rm "${image}" true } function restart_map_volume_if_needed() { local map_name="$1" local map_version="$2" local map_volume="apollo_map_volume-${map_name}_${USER}" local map_path="/apollo/modules/map/data/${map_name}" if [[ ${MAP_VOLUMES_CONF} == *"${map_volume}"* ]]; then info "Map ${map_name} has already been included." else local map_image= if [ "${TARGET_ARCH}" = "aarch64" ]; then map_image="${DOCKER_REPO}:map_volume-${map_name}-${TARGET_ARCH}-${map_version}" else map_image="${DOCKER_REPO}:map_volume-${map_name}-${map_version}" fi info "Load map ${map_name} from image: ${map_image}" docker_restart_volume "${map_volume}" "${map_image}" "${map_path}" MAP_VOLUMES_CONF="${MAP_VOLUMES_CONF} --volume ${map_volume}:${map_path}" fi } function mount_map_volumes() { info "Starting mounting map volumes ..." if [ -n "${USER_SPECIFIED_MAPS}" ]; then for map_name in ${USER_SPECIFIED_MAPS}; do restart_map_volume_if_needed "${map_name}" "${VOLUME_VERSION}" done fi if [[ "$FAST_MODE" == "no" ]]; then for map_name in ${DEFAULT_MAPS[@]}; do restart_map_volume_if_needed "${map_name}" "${VOLUME_VERSION}" done else for map_name in ${DEFAULT_TEST_MAPS[@]}; do restart_map_volume_if_needed "${map_name}" "${VOLUME_VERSION}" done fi } function mount_other_volumes() { info "Mount other volumes ..." local volume_conf= # AUDIO local audio_volume="apollo_audio_volume_${USER}" local audio_image="${DOCKER_REPO}:data_volume-audio_model-${TARGET_ARCH}-latest" local audio_path="/apollo/modules/audio/data/" docker_restart_volume "${audio_volume}" "${audio_image}" "${audio_path}" volume_conf="${volume_conf} --volume ${audio_volume}:${audio_path}" # YOLOV4 local yolov4_volume="apollo_yolov4_volume_${USER}" local yolov4_image="${DOCKER_REPO}:yolov4_volume-emergency_detection_model-${TARGET_ARCH}-latest" local yolov4_path="/apollo/modules/perception/camera/lib/obstacle/detector/yolov4/model/" docker_restart_volume "${yolov4_volume}" "${yolov4_image}" "${yolov4_path}" volume_conf="${volume_conf} --volume ${yolov4_volume}:${yolov4_path}" # FASTER_RCNN local faster_rcnn_volume="apollo_faster_rcnn_volume_${USER}" local faster_rcnn_image="${DOCKER_REPO}:faster_rcnn_volume-traffic_light_detection_model-${TARGET_ARCH}-latest" local faster_rcnn_path="/apollo/modules/perception/production/data/perception/camera/models/traffic_light_detection/faster_rcnn_model" docker_restart_volume "${faster_rcnn_volume}" "${faster_rcnn_image}" "${faster_rcnn_path}" volume_conf="${volume_conf} --volume ${faster_rcnn_volume}:${faster_rcnn_path}" # SMOKE if [[ "${TARGET_ARCH}" == "x86_64" ]]; then local smoke_volume="apollo_smoke_volume_${USER}" local smoke_image="${DOCKER_REPO}:smoke_volume-yolo_obstacle_detection_model-${TARGET_ARCH}-latest" local smoke_path="/apollo/modules/perception/production/data/perception/camera/models/yolo_obstacle_detector/smoke_libtorch_model" docker_restart_volume "${smoke_volume}" "${smoke_image}" "${smoke_path}" volume_conf="${volume_conf} --volume ${smoke_volume}:${smoke_path}" fi OTHER_VOLUMES_CONF="${volume_conf}" } function main() { check_host_environment parse_arguments "$@" determine_runtime_image "${USER_VERSION_OPT}" geo_specific_config "${GEOLOC}" if [[ "${USE_LOCAL_IMAGE}" -gt 0 ]]; then info "Start Runtime container based on local image : ${RUNTIME_IMAGE}" fi if ! docker_pull "${RUNTIME_IMAGE}"; then error "Failed to pull docker image ${RUNTIME_IMAGE}" exit 1 fi $RUNTIME_STANDALONE && RUNTIME_CONTAINER="apollo_runtime_standalone_$USER" info "Check and remove existing Apollo Runtime container ..." remove_container_if_exists "${RUNTIME_CONTAINER}" info "Determine whether host GPU is available ..." determine_gpu_use_host info "USE_GPU_HOST: ${USE_GPU_HOST}" local local_volumes= setup_devices_and_mount_local_volumes local_volumes mount_map_volumes $RUNTIME_STANDALONE || mount_other_volumes info "Starting docker container \"${RUNTIME_CONTAINER}\" ..." local local_host="$(hostname)" local display="${DISPLAY:-:0}" local docker_user="${USER}" local docker_uid="$(id -u)" local docker_group="$(id -g -n)" local docker_gid="$(id -g)" set -x ${DOCKER_RUN_CMD} -itd \ --privileged \ --name "${RUNTIME_CONTAINER}" \ -e DISPLAY="${display}" \ -e USER="${USER}" \ -e DOCKER_USER="${docker_user}" \ -e DOCKER_USER_ID="${docker_uid}" \ -e DOCKER_GRP="${docker_group}" \ -e DOCKER_GRP_ID="${docker_gid}" \ -e DOCKER_IMG="${RUNTIME_IMAGE}" \ -e USE_GPU_HOST="${USE_GPU_HOST}" \ -e NVIDIA_VISIBLE_DEVICES=all \ -e NVIDIA_DRIVER_CAPABILITIES=compute,video,graphics,utility \ ${MAP_VOLUMES_CONF} \ ${OTHER_VOLUMES_CONF} \ ${local_volumes} \ --net host \ -w /apollo \ --add-host "${RUNTIME_INSIDE}:127.0.0.1" \ --add-host "${local_host}:127.0.0.1" \ --hostname "${RUNTIME_INSIDE}" \ --shm-size "${SHM_SIZE}" \ --pid=host \ -v /dev/null:/dev/raw1394 \ "${RUNTIME_IMAGE}" \ /bin/bash if [ $? -ne 0 ]; then error "Failed to start docker container \"${RUNTIME_CONTAINER}\" based on image: ${RUNTIME_IMAGE}" exit 1 fi set +x postrun_start_user ${RUNTIME_CONTAINER} $RUNTIME_STANDALONE && docker exec -u root "${RUNTIME_CONTAINER}" bash -c "chown -R ${docker_uid}:${docker_gid} /apollo" ok "Congratulations! You have successfully finished setting up Apollo Runtime Environment." ok "To login into the newly created ${RUNTIME_CONTAINER} container, please run the following command:" $RUNTIME_STANDALONE || ok " bash docker/scripts/runtime_into.sh" $RUNTIME_STANDALONE && ok " bash docker/scripts/runtime_into_standalone.sh" ok "Enjoy!" } main "$@"
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/scripts/cyber_into.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### DOCKER_USER="${USER}" CYBER_CONTAINER="apollo_cyber_${USER}" APOLLO_ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" source "${APOLLO_ROOT_DIR}/scripts/apollo.bashrc" xhost +local:root 1>/dev/null 2>&1 HOST_ARCH="$(uname -m)" TARGET_ARCH="$(docker exec "${CYBER_CONTAINER}" uname -m)" IFS='' read -r -d '' NONROOT_SUDO_ERRMSG <<EOF "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the \ 'nosuid' option set or an NFS file system without root privileges?" EOF if [[ "${HOST_ARCH}" != "${TARGET_ARCH}" ]]; then warning "We only tested aarch containers running on x86_64 hosts." \ "And after we changed from ROOT to NON-ROOT users, executing" \ "sudo operations complains:\n " \ "${NONROOT_SUDO_ERRMSG}" fi if [[ "${TARGET_ARCH}" == "x86_64" || "${TARGET_ARCH}" == "aarch64" ]]; then docker exec \ -u "${DOCKER_USER}" \ -it "${CYBER_CONTAINER}" \ /bin/bash else error "Unsupported architecture: ${TARGET_ARCH}" exit 1 fi # Note(storypku): Tested on Ubuntu 18.04 running on Jetson TX2, # The following steps are no longer needed. # if [ "${TARGET_ARCH}" == "aarch64" ]; then # info "For the first time after CyberRT container starts, you can running" \ # "the following two commands to su to a non-root user:" # info "1) /apollo/scripts/docker_start_user.sh" # info "2) su - ${DOCKER_USER}" # # # warning "! To exit, please use 'ctrl+p ctrl+q' !" # # docker attach "${CYBER_CONTAINER}" # docker exec \ # -u root \ # -it "${CYBER_CONTAINER}" \ # /bin/bash xhost -local:root 1>/dev/null 2>&1
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/scripts/dev_start_gdb_server.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### function check_docker_open() { docker ps --format "{{.Names}}" | grep apollo_dev_$USER 1>/dev/null 2>&1 if [ $? != 0 ]; then echo "The docker is not started, please start it first. " exit 1 fi } function print_usage() { RED='\033[0;31m' BLUE='\033[0;34m' BOLD='\033[1m' NONE='\033[0m' echo -e "\n${RED}Usage${NONE}: .${BOLD}/dev_debug_server.sh${NONE} MODULE_NAME PORT_NUMBER" echo -e "${RED}MODULE_NAME${NONE}: ${BLUE}planning${NONE}: debug the planning module. ${BLUE}control${NONE}: debug the control module. ${BLUE}routing${NONE}: debug the routing module. ..., and so on." echo -e "${RED}PORT_NUMBER${NONE}: ${NONE}a port number, such as '1111'." } if [ $# -lt 2 ];then print_usage exit 1 fi check_docker_open DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "${DIR}/../.." xhost +local:root 1>/dev/null 2>&1 #echo $@ docker exec \ -u $USER \ -it apollo_dev_$USER \ /bin/bash scripts/start_gdb_server.sh $@ xhost -local:root 1>/dev/null 2>&1
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/scripts/dev_start.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" source "${CURR_DIR}/docker_base.sh" CACHE_ROOT_DIR="${APOLLO_ROOT_DIR}/.cache" DOCKER_REPO="apolloauto/apollo" DEV_CONTAINER="apollo_dev_${USER}" DEV_INSIDE="in-dev-docker" SUPPORTED_ARCHS=(x86_64 aarch64) TARGET_ARCH="$(uname -m)" VERSION_X86_64="dev-x86_64-18.04-20221124_1708" TESTING_VERSION_X86_64="dev-x86_64-18.04-testing-20210112_0008" VERSION_AARCH64="dev-aarch64-18.04-20201218_0030" USER_VERSION_OPT= ROCM_DOCKER_REPO="rocmapollo/apollo" VERSION_ROCM_X86_64="dev-x86_64-rocm-18.04-20221027_0916" TESTING_VERSION_ROCM_X86_64="dev-x86_64-rocm-18.04-testing" FAST_MODE="no" GEOLOC= USE_LOCAL_IMAGE=0 CUSTOM_DIST= USER_AGREED="no" VOLUME_VERSION="latest" SHM_SIZE="2G" USER_SPECIFIED_MAPS= MAP_VOLUMES_CONF= OTHER_VOLUMES_CONF= DEFAULT_MAPS=( sunnyvale_big_loop sunnyvale_loop sunnyvale_with_two_offices san_mateo apollo_virutal_map ) DEFAULT_TEST_MAPS=( sunnyvale_big_loop sunnyvale_loop ) function show_usage() { cat <<EOF Usage: $0 [options] ... OPTIONS: -h, --help Display this help and exit. -f, --fast Fast mode without pulling all map volumes. -g, --geo <us|cn|none> Pull docker image from geolocation specific registry mirror. -l, --local Use local docker image. -t, --tag <TAG> Specify docker image with tag <TAG> to start. -d, --dist Specify Apollo distribution(stable/testing) --shm-size <bytes> Size of /dev/shm . Passed directly to "docker run" -y Agree to Apollo License Agreement non-interactively. stop Stop all running Apollo containers. EOF } function parse_arguments() { local custom_version="" local custom_dist="" local shm_size="" local geo="" while [ $# -gt 0 ]; do local opt="$1" shift case "${opt}" in -t | --tag) if [ -n "${custom_version}" ]; then warning "Multiple option ${opt} specified, only the last one will take effect." fi custom_version="$1" shift optarg_check_for_opt "${opt}" "${custom_version}" ;; -d | --dist) custom_dist="$1" shift optarg_check_for_opt "${opt}" "${custom_dist}" ;; -h | --help) show_usage exit 1 ;; -f | --fast) FAST_MODE="yes" ;; -g | --geo) geo="$1" shift optarg_check_for_opt "${opt}" "${geo}" ;; -l | --local) USE_LOCAL_IMAGE=1 ;; --shm-size) shm_size="$1" shift optarg_check_for_opt "${opt}" "${shm_size}" ;; --map) map_name="$1" shift USER_SPECIFIED_MAPS="${USER_SPECIFIED_MAPS} ${map_name}" ;; -y) USER_AGREED="yes" ;; stop) info "Now, stop all Apollo containers created by ${USER} ..." stop_all_apollo_containers "-f" exit 0 ;; *) warning "Unknown option: ${opt}" exit 2 ;; esac done # End while loop [[ -n "${geo}" ]] && GEOLOC="${geo}" [[ -n "${custom_version}" ]] && USER_VERSION_OPT="${custom_version}" [[ -n "${custom_dist}" ]] && CUSTOM_DIST="${custom_dist}" [[ -n "${shm_size}" ]] && SHM_SIZE="${shm_size}" } function determine_dev_image() { local docker_repo="${DOCKER_REPO}" local version="$1" # If no custom version specified if [[ -z "${version}" ]]; then if [[ "${TARGET_ARCH}" == "x86_64" ]]; then if [[ ${USE_AMD_GPU} == 1 ]]; then docker_repo="${ROCM_DOCKER_REPO}" version="${VERSION_ROCM_X86_64}" elif (($USE_NVIDIA_GPU == 1)) || (($USE_GPU_HOST == 0)); then if [[ "${CUSTOM_DIST}" == "testing" ]]; then version="${TESTING_VERSION_X86_64}" else version="${VERSION_X86_64}" fi fi elif [[ "${TARGET_ARCH}" == "aarch64" ]]; then version="${VERSION_AARCH64}" else error "Logic can't reach here! Please report this issue to Apollo@GitHub." exit 3 fi fi DEV_IMAGE="${docker_repo}:${version}" } function check_host_environment() { if [[ "${HOST_OS}" != "Linux" ]]; then warning "Running Apollo dev container on ${HOST_OS} is UNTESTED, exiting..." exit 1 fi } function check_target_arch() { local arch="${TARGET_ARCH}" for ent in "${SUPPORTED_ARCHS[@]}"; do if [[ "${ent}" == "${TARGET_ARCH}" ]]; then return 0 fi done error "Unsupported target architecture: ${TARGET_ARCH}." exit 1 } function setup_devices_and_mount_local_volumes() { local __retval="$1" [ -d "${CACHE_ROOT_DIR}" ] || mkdir -p "${CACHE_ROOT_DIR}" source "${APOLLO_ROOT_DIR}/scripts/apollo_base.sh" setup_device local volumes="-v $APOLLO_ROOT_DIR:/apollo" [ -d "${APOLLO_CONFIG_HOME}" ] || mkdir -p "${APOLLO_CONFIG_HOME}" volumes="-v ${APOLLO_CONFIG_HOME}:${APOLLO_CONFIG_HOME} ${volumes}" local teleop="${APOLLO_ROOT_DIR}/../apollo-teleop" if [ -d "${teleop}" ]; then volumes="${volumes} -v ${teleop}:/apollo/modules/teleop ${volumes}" fi local apollo_tools="${APOLLO_ROOT_DIR}/../apollo-tools" if [ -d "${apollo_tools}" ]; then volumes="${volumes} -v ${apollo_tools}:/tools" fi local os_release="$(lsb_release -rs)" case "${os_release}" in 16.04) warning "[Deprecated] Support for Ubuntu 16.04 will be removed" \ "in the near future. Please upgrade to ubuntu 18.04+." volumes="${volumes} -v /dev:/dev" ;; 18.04 | 20.04 | *) volumes="${volumes} -v /dev:/dev" ;; esac # local tegra_dir="/usr/lib/aarch64-linux-gnu/tegra" # if [[ "${TARGET_ARCH}" == "aarch64" && -d "${tegra_dir}" ]]; then # volumes="${volumes} -v ${tegra_dir}:${tegra_dir}:ro" # fi volumes="${volumes} -v /media:/media \ -v /tmp/.X11-unix:/tmp/.X11-unix:rw \ -v /etc/localtime:/etc/localtime:ro \ -v /usr/src:/usr/src \ -v /lib/modules:/lib/modules" volumes="$(tr -s " " <<<"${volumes}")" eval "${__retval}='${volumes}'" } function docker_pull() { local img="$1" if [[ "${USE_LOCAL_IMAGE}" -gt 0 ]]; then if docker images --format "{{.Repository}}:{{.Tag}}" | grep -q "${img}"; then info "Local image ${img} found and will be used." return fi warning "Image ${img} not found locally although local mode enabled. Trying to pull from remote registry." fi if [[ -n "${GEO_REGISTRY}" ]]; then img="${GEO_REGISTRY}/${img}" fi info "Start pulling docker image ${img} ..." if ! docker pull "${img}"; then error "Failed to pull docker image : ${img}" exit 1 fi } function docker_restart_volume() { local volume="$1" local image="$2" local path="$3" info "Create volume ${volume} from image: ${image}" docker_pull "${image}" docker volume rm "${volume}" >/dev/null 2>&1 docker run -v "${volume}":"${path}" --rm "${image}" true } function restart_map_volume_if_needed() { local map_name="$1" local map_version="$2" local map_volume="apollo_map_volume-${map_name}_${USER}" local map_path="/apollo/modules/map/data/${map_name}" if [[ ${MAP_VOLUMES_CONF} == *"${map_volume}"* ]]; then info "Map ${map_name} has already been included." else local map_image= if [ "${TARGET_ARCH}" = "aarch64" ]; then map_image="${DOCKER_REPO}:map_volume-${map_name}-${TARGET_ARCH}-${map_version}" else map_image="${DOCKER_REPO}:map_volume-${map_name}-${map_version}" fi info "Load map ${map_name} from image: ${map_image}" docker_restart_volume "${map_volume}" "${map_image}" "${map_path}" MAP_VOLUMES_CONF="${MAP_VOLUMES_CONF} --volume ${map_volume}:${map_path}" fi } function mount_map_volumes() { info "Starting mounting map volumes ..." if [ -n "${USER_SPECIFIED_MAPS}" ]; then for map_name in ${USER_SPECIFIED_MAPS}; do restart_map_volume_if_needed "${map_name}" "${VOLUME_VERSION}" done fi if [[ "$FAST_MODE" == "no" ]]; then for map_name in ${DEFAULT_MAPS[@]}; do restart_map_volume_if_needed "${map_name}" "${VOLUME_VERSION}" done else for map_name in ${DEFAULT_TEST_MAPS[@]}; do restart_map_volume_if_needed "${map_name}" "${VOLUME_VERSION}" done fi } function mount_other_volumes() { info "Mount other volumes ..." local volume_conf= # AUDIO local audio_volume="apollo_audio_volume_${USER}" local audio_image="${DOCKER_REPO}:data_volume-audio_model-${TARGET_ARCH}-latest" local audio_path="/apollo/modules/audio/data/" docker_restart_volume "${audio_volume}" "${audio_image}" "${audio_path}" volume_conf="${volume_conf} --volume ${audio_volume}:${audio_path}" #TRAFFIC_LIGHT_DETECTION local tl_detection_volume="apollo_tl_detection_volume_${USER}" local tl_detection_image="${DOCKER_REPO}:traffic_light-detection_caffe_model-${TARGET_ARCH}-latest" local tl_detection_path="/apollo/modules/perception/production/data/perception/camera/models/traffic_light_detection/tl_detection_caffe" docker_restart_volume "${tl_detection_volume}" "${tl_detection_image}" "${tl_detection_path}" volume_conf="${volume_conf} --volume ${tl_detection_volume}:${tl_detection_path}" #TRAFFIC_LIGHT_RECOGNITION local tl_horizontal_volume="apollo_tl_horizontal_volume_${USER}" local tl_horizontal_image="${DOCKER_REPO}:traffic_light-horizontal_caffe_model-${TARGET_ARCH}-latest" local tl_horizontal_path="/apollo/modules/perception/production/data/perception/camera/models/traffic_light_recognition/horizontal_caffe" docker_restart_volume "${tl_horizontal_volume}" "${tl_horizontal_image}" "${tl_horizontal_path}" volume_conf="${volume_conf} --volume ${tl_horizontal_volume}:${tl_horizontal_path}" #TRAFFIC_LIGHT_RECOGNITION local tl_quadrate_volume="apollo_tl_quadrate_volume_${USER}" local tl_quadrate_image="${DOCKER_REPO}:traffic_light-quadrate_caffe_model-${TARGET_ARCH}-latest" local tl_quadrate_path="/apollo/modules/perception/production/data/perception/camera/models/traffic_light_recognition/quadrate_caffe" docker_restart_volume "${tl_quadrate_volume}" "${tl_quadrate_image}" "${tl_quadrate_path}" volume_conf="${volume_conf} --volume ${tl_quadrate_volume}:${tl_quadrate_path}" #TRAFFIC_LIGHT_RECOGNITION local tl_recognition_volume="apollo_tl_recognition_volume_${USER}" local tl_recognition_image="${DOCKER_REPO}:traffic_light-recognition_caffe_model-${TARGET_ARCH}-latest" local tl_recognition_path="/apollo/modules/perception/production/data/perception/camera/models/traffic_light_recognition/vertical_caffe" docker_restart_volume "${tl_recognition_volume}" "${tl_recognition_image}" "${tl_recognition_path}" volume_conf="${volume_conf} --volume ${tl_recognition_volume}:${tl_recognition_path}" #YOLO_OBSTACLE local yolo_volume="yolo_obstacle_volume_${USER}" local yolo_image="${DOCKER_REPO}:yolo_obstacle_model-${TARGET_ARCH}-latest" local yolo_path="/apollo/modules/perception/production/data/perception/camera/models/yolo_obstacle_detector/3d-r4-half_caffe" docker_restart_volume "${yolo_volume}" "${yolo_image}" "${yolo_path}" volume_conf="${volume_conf} --volume ${yolo_volume}:${yolo_path}" #CNNSEG128 local cnnseg_volume="cnnseg_volume_${USER}" local cnnseg_image="${DOCKER_REPO}:cnnseg_caffe_model-${TARGET_ARCH}-latest" local cnnseg_path="/apollo/modules/perception/production/data/perception/lidar/models/cnnseg/cnnseg128_caffe" docker_restart_volume "${cnnseg_volume}" "${cnnseg_image}" "${cnnseg_path}" volume_conf="${volume_conf} --volume ${cnnseg_volume}:${cnnseg_path}" #LANE_DETECTION local lane_detection_volume="lane_detection_volume_${USER}" local lane_detection_image="${DOCKER_REPO}:lane_detection_model-${TARGET_ARCH}-latest" local lane_detection_path="/apollo/modules/perception/production/data/perception/camera/models/lane_detector/darkSCNN_caffe" docker_restart_volume "${lane_detection_volume}" "${lane_detection_image}" "${lane_detection_path}" volume_conf="${volume_conf} --volume ${lane_detection_volume}:${lane_detection_path}" # SMOKE if [[ "${TARGET_ARCH}" == "x86_64" ]]; then local smoke_volume="apollo_smoke_volume_${USER}" local smoke_image="${DOCKER_REPO}:smoke_volume-yolo_obstacle_detection_model-${TARGET_ARCH}-latest" local smoke_path="/apollo/modules/perception/production/data/perception/camera/models/yolo_obstacle_detector/smoke_libtorch_model" docker_restart_volume "${smoke_volume}" "${smoke_image}" "${smoke_path}" volume_conf="${volume_conf} --volume ${smoke_volume}:${smoke_path}" fi OTHER_VOLUMES_CONF="${volume_conf}" } function main() { check_host_environment check_target_arch parse_arguments "$@" if [[ "${USER_AGREED}" != "yes" ]]; then check_agreement fi info "Determine whether host GPU is available ..." determine_gpu_use_host info "USE_GPU_HOST: ${USE_GPU_HOST}" info "USE_AMD_GPU: ${USE_AMD_GPU}" info "USE_NVIDIA_GPU: ${USE_NVIDIA_GPU}" determine_dev_image "${USER_VERSION_OPT}" geo_specific_config "${GEOLOC}" if [[ "${USE_LOCAL_IMAGE}" -gt 0 ]]; then info "Start docker container based on local image : ${DEV_IMAGE}" fi if ! docker_pull "${DEV_IMAGE}"; then error "Failed to pull docker image ${DEV_IMAGE}" exit 1 fi info "Remove existing Apollo Development container ..." remove_container_if_exists ${DEV_CONTAINER} local local_volumes= setup_devices_and_mount_local_volumes local_volumes mount_map_volumes mount_other_volumes info "Starting Docker container \"${DEV_CONTAINER}\" ..." local local_host="$(hostname)" local display="${DISPLAY:-:0}" local user="${USER}" local uid="$(id -u)" local group="$(id -g -n)" local gid="$(id -g)" set -x ${DOCKER_RUN_CMD} -itd \ --privileged \ --name "${DEV_CONTAINER}" \ -e DISPLAY="${display}" \ -e DOCKER_USER="${user}" \ -e USER="${user}" \ -e DOCKER_USER_ID="${uid}" \ -e DOCKER_GRP="${group}" \ -e DOCKER_GRP_ID="${gid}" \ -e DOCKER_IMG="${DEV_IMAGE}" \ -e USE_GPU_HOST="${USE_GPU_HOST}" \ -e NVIDIA_VISIBLE_DEVICES=all \ -e NVIDIA_DRIVER_CAPABILITIES=compute,video,graphics,utility \ ${MAP_VOLUMES_CONF} \ ${OTHER_VOLUMES_CONF} \ ${local_volumes} \ --net host \ -w /apollo \ --add-host "${DEV_INSIDE}:127.0.0.1" \ --add-host "${local_host}:127.0.0.1" \ --hostname "${DEV_INSIDE}" \ --shm-size "${SHM_SIZE}" \ --pid=host \ -v /dev/null:/dev/raw1394 \ "${DEV_IMAGE}" \ /bin/bash if [ $? -ne 0 ]; then error "Failed to start docker container \"${DEV_CONTAINER}\" based on image: ${DEV_IMAGE}" exit 1 fi set +x postrun_start_user "${DEV_CONTAINER}" ok "Congratulations! You have successfully finished setting up Apollo Dev Environment." ok "To login into the newly created ${DEV_CONTAINER} container, please run the following command:" ok " bash docker/scripts/dev_into.sh" ok "Enjoy!" } main "$@"
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/scripts/docker_base.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2021 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" source "${TOP_DIR}/scripts/apollo.bashrc" unset TOP_DIR export HOST_ARCH="$(uname -m)" export HOST_OS="$(uname -s)" GEO_REGISTRY= function geo_specific_config() { local geo="$1" if [[ -z "${geo}" ]]; then info "Use default GeoLocation settings" return fi info "Setup geolocation specific configurations for ${geo}" if [[ "${geo}" == "cn" ]]; then info "GeoLocation settings for Mainland China" GEO_REGISTRY="registry.baidubce.com" else info "GeoLocation settings for ${geo} is not ready, fallback to default" fi } DOCKER_RUN_CMD="docker run" USE_GPU_HOST=0 USE_AMD_GPU=0 USE_NVIDIA_GPU=0 function determine_gpu_use_host() { if [[ "${HOST_ARCH}" == "aarch64" ]]; then if lsmod | grep -q "^nvgpu"; then USE_GPU_HOST=1 fi elif [[ "${HOST_ARCH}" == "x86_64" ]]; then if [[ ! -x "$(command -v nvidia-smi)" ]]; then warning "No nvidia-smi found." elif [[ -z "$(nvidia-smi)" ]]; then warning "No NVIDIA GPU device found." else USE_NVIDIA_GPU=1 fi if [[ ! -x "$(command -v rocm-smi)" ]]; then warning "No rocm-smi found." elif [[ -z "$(rocm-smi)" ]]; then warning "No AMD GPU device found." else USE_AMD_GPU=1 fi if (( $USE_NVIDIA_GPU == 1 )) || (( $USE_AMD_GPU == 1 )); then USE_GPU_HOST=1 else USE_GPU_HOST=0 warning "No any GPU device found. CPU will be used instead." fi else error "Unsupported CPU architecture: ${HOST_ARCH}" exit 1 fi local nv_docker_doc="https://github.com/NVIDIA/nvidia-docker/blob/master/README.md" if (( $USE_NVIDIA_GPU == 1 )); then if [[ -x "$(which nvidia-container-toolkit)" ]]; then local docker_version docker_version="$(docker version --format '{{.Server.Version}}')" if dpkg --compare-versions "${docker_version}" "ge" "19.03"; then DOCKER_RUN_CMD="docker run --gpus all" else warning "Please upgrade to docker-ce 19.03+ to access GPU from container." USE_GPU_HOST=0 fi elif [[ -x "$(which nvidia-docker)" ]]; then DOCKER_RUN_CMD="nvidia-docker run" else USE_GPU_HOST=0 warning "Cannot access GPU from within container. Please install latest Docker" \ "and NVIDIA Container Toolkit as described by: " warning " ${nv_docker_doc}" fi elif (( $USE_AMD_GPU == 1 )); then DOCKER_RUN_CMD="docker run --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video" fi } function remove_container_if_exists() { local container="$1" if docker ps -a --format '{{.Names}}' | grep -q "${container}"; then info "Removing existing Apollo container: ${container}" docker stop "${container}" >/dev/null docker rm -v -f "${container}" 2>/dev/null fi } function postrun_start_user() { local container="$1" if [ "${USER}" != "root" ]; then docker exec -u root "${container}" \ bash -c '/apollo/scripts/docker_start_user.sh' fi } function stop_all_apollo_containers() { local force="$1" local running_containers running_containers="$(docker ps -a --format '{{.Names}}')" for container in ${running_containers[*]}; do if [[ "${container}" =~ apollo_.*_${USER} ]]; then #printf %-*s 70 "Now stop container: ${container} ..." #printf "\033[32m[DONE]\033[0m\n" #printf "\033[31m[FAILED]\033[0m\n" info "Now stop container ${container} ..." if docker stop "${container}" >/dev/null; then if [[ "${force}" == "-f" || "${force}" == "--force" ]]; then docker rm -f "${container}" 2>/dev/null fi info "Done." else warning "Failed." fi fi done } # Check whether user has agreed license agreement function check_agreement() { local agreement_record="${HOME}/.apollo_agreement.txt" if [[ -e "${agreement_record}" ]]; then return 0 fi local agreement_file agreement_file="${APOLLO_ROOT_DIR}/scripts/AGREEMENT.txt" if [[ ! -f "${agreement_file}" ]]; then error "AGREEMENT ${agreement_file} does not exist." exit 1 fi cat "${agreement_file}" local tip="Type 'y' or 'Y' to agree to the license agreement above, \ or type any other key to exit:" echo -n "${tip}" local answer="$(read_one_char_from_stdin)" echo if [[ "${answer}" != "y" ]]; then exit 1 fi cp -f "${agreement_file}" "${agreement_record}" echo "${tip}" >> "${agreement_record}" echo "${user_agreed}" >> "${agreement_record}" } export -f geo_specific_config export -f determine_gpu_use_host export -f stop_all_apollo_containers remove_container_if_exists export -f check_agreement export USE_GPU_HOST export DOCKER_RUN_CMD export GEO_REGISTRY
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/scripts/BUILD
load("//tools/install:install.bzl", "install") package(default_visibility = ["//visibility:public"]) install( name = "install", data = [ ":runtime", ], ) filegroup( name = "runtime", srcs = [ "docker_base.sh", "runtime_start.sh", "runtime_into.sh", "runtime_into_standalone.sh", ], )
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/scripts/runtime_into.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2021 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### DOCKER_USER="${USER}" RUNTIME_CONTAINER="apollo_runtime_${USER}" xhost +local:root 1>/dev/null 2>&1 docker exec -u "${DOCKER_USER}" \ -it "${RUNTIME_CONTAINER}" \ /bin/bash xhost -local:root 1>/dev/null 2>&1
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/standalone.x86_64.sh
#!/bin/bash # Copyright (c) 2021 LG Electronics, Inc. All Rights Reserved DOCKER_REPO=apolloauto/apollo TARGET_ARCH=x86_64 IMAGE_VERSION=18.04-20220803_1505 DEV_IMAGE=${DOCKER_REPO}:dev-${TARGET_ARCH}-${IMAGE_VERSION} RUNTIME_IMAGE=${DOCKER_REPO}:runtime-${TARGET_ARCH}-${IMAGE_VERSION} STANDALONE_IMAGE=${DOCKER_REPO}:standalone-${TARGET_ARCH}-${IMAGE_VERSION} STANDALONE_IMAGE_LATEST=${DOCKER_REPO}:standalone-${TARGET_ARCH}-18.04-6.1-latest set -e if [ "$1" == "rebuild" ] ; then docker/scripts/dev_start.sh -y docker exec -u $USER -t apollo_dev_$USER bazel clean --expunge || true docker exec -u $USER -t apollo_dev_$USER /apollo/apollo.sh release --clean --resolve fi if [ "$1" == "reinstall" ] ; then docker exec -u $USER -t apollo_dev_$USER /apollo/apollo.sh release --clean --resolve fi rm -rf docker/build/output # Expects that the Apollo was already built in apollo_dev_$USER if ! [ -f output/syspkgs.txt ] ; then echo "ERROR: this directory doesn't have output/syspkgs.txt" echo " make sure apollo was built with \"/apollo/apollo.sh release --resolve\"" echo " or add \"rebuild\" parameter to this script" echo " and it will be built automatically" exit 1 fi cp output/syspkgs.txt docker/build/ docker build \ --build-arg DEV_IMAGE_IN=${DEV_IMAGE} \ --build-arg GEOLOC=us \ --build-arg CUDA_LITE=11.1 \ --build-arg CUDNN_VERSION=8.0.4.30 \ --build-arg TENSORRT_VERSION=7.2.1 \ -f docker/build/runtime.x86_64.dockerfile.sample \ docker/build/ \ -t ${RUNTIME_IMAGE} rm -f docker/build/syspkgs.txt mv output docker/build docker build \ --build-arg BASE_IMAGE=${RUNTIME_IMAGE} \ -f docker/build/standalone.x86_64.dockerfile \ docker/build/ \ -t ${STANDALONE_IMAGE} docker tag ${STANDALONE_IMAGE} ${STANDALONE_IMAGE_LATEST} /bin/echo -e "Docker image with prebuilt files was built and tagged as ${STANDALONE_IMAGE}, you can start it with: \n\ bash docker/scripts/runtime_start.sh --standalone --local --tag standalone-${TARGET_ARCH}-${IMAGE_VERSION}\n\ and switch into it with:\n\ bash docker/scripts/runtime_into_standalone.sh"
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/cyber.x86_64.nvidia.dockerfile
ARG BASE_IMAGE FROM ${BASE_IMAGE} ARG APOLLO_DIST ARG GEOLOC ARG CLEAN_DEPS ARG INSTALL_MODE LABEL version="1.2" ENV DEBIAN_FRONTEND=noninteractive ENV PATH /opt/apollo/sysroot/bin:$PATH ENV APOLLO_DIST ${APOLLO_DIST} COPY installers /opt/apollo/installers COPY rcfiles /opt/apollo/rcfiles RUN bash /opt/apollo/installers/install_minimal_environment.sh ${GEOLOC} RUN bash /opt/apollo/installers/install_cmake.sh RUN bash /opt/apollo/installers/install_cyber_deps.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/install_llvm_clang.sh RUN bash /opt/apollo/installers/install_qa_tools.sh RUN bash /opt/apollo/installers/install_visualizer_deps.sh RUN bash /opt/apollo/installers/install_bazel.sh RUN bash /opt/apollo/installers/post_install.sh cyber WORKDIR /apollo
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/cyber.aarch64.nvidia.dockerfile
ARG BASE_IMAGE # ARG BASE_IMAGE=arm64v8/ubuntu:18.04 FROM ${BASE_IMAGE} ARG GEOLOC ARG CLEAN_DEPS ARG INSTALL_MODE LABEL version="1.2" ENV DEBIAN_FRONTEND=noninteractive ENV PATH /opt/apollo/sysroot/bin:$PATH COPY installers /opt/apollo/installers COPY rcfiles /opt/apollo/rcfiles RUN bash /opt/apollo/installers/install_minimal_environment.sh ${GEOLOC} RUN bash /opt/apollo/installers/install_bazel.sh RUN bash /opt/apollo/installers/install_cmake.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/install_llvm_clang.sh RUN bash /opt/apollo/installers/install_cyber_deps.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/install_qa_tools.sh RUN bash /opt/apollo/installers/install_visualizer_deps.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/post_install.sh cyber WORKDIR /apollo
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/base.aarch64.nvidia.dockerfile
ARG BASE_IMAGE FROM ${BASE_IMAGE} ARG CUDA_LITE ARG CUDNN_VERSION ARG TENSORRT_VERSION RUN apt-get update && apt-get install -y --no-install-recommends gnupg2 curl ca-certificates \ && echo "deb [trusted=yes] http://172.17.0.1:8080/arm64/ ./" > /etc/apt/sources.list.d/cuda.list \ && apt-get purge --autoremove -y curl \ && rm -rf /var/lib/apt/lists/* ENV CUDA_VERSION 10.2.89 # For libraries in the cuda-compat-* package: https://docs.nvidia.com/cuda/eula/index.html#attachment-a RUN M="10-2" \ && apt-get update && apt-get install -y --no-install-recommends \ cuda-cudart-${M} \ cuda-libraries-${M} \ cuda-npp-${M} \ cuda-nvtx-${M} \ libcublas10 \ && ln -s cuda-${CUDA_LITE} /usr/local/cuda && \ rm -rf /var/lib/apt/lists/* ENV PATH /usr/local/cuda/bin:${PATH} # nvidia-container-runtime ENV NVIDIA_VISIBLE_DEVICES all ENV NVIDIA_DRIVER_CAPABILITIES compute,utility ENV NVIDIA_REQUIRE_CUDA "cuda>=${CUDA_LITE}" RUN M="10-2" && apt-get update && apt-get install -y --no-install-recommends \ cuda-nvml-dev-${M} \ cuda-command-line-tools-${M} \ cuda-nvprof-${M} \ cuda-npp-dev-${M} \ cuda-libraries-dev-${M} \ cuda-minimal-build-${M} \ libcublas-dev \ cuda-cusparse-${M} \ cuda-cusparse-dev-${M} \ && rm -rf /var/lib/apt/lists/* ENV LIBRARY_PATH /usr/local/cuda/lib64/stubs RUN M="${CUDNN_VERSION%%.*}" \ && PATCH="-1+cuda${CUDA_LITE}" \ && apt-get update \ && apt-get install -y --no-install-recommends \ libcudnn${M}="${CUDNN_VERSION}${PATCH}" \ libcudnn${M}-dev="${CUDNN_VERSION}${PATCH}" \ && apt-mark hold libcudnn${M} \ && rm -rf /var/lib/apt/lists/* \ && echo "Delete static cuDNN libraries..." \ && find /usr/lib/$(uname -m)-linux-gnu -name "libcudnn_*.a" -delete -print ENV CUDNN_VERSION ${CUDNN_VERSION} ENV TENSORRT_PKG_VERSION ${TENSORRT_VERSION}-1+cuda${CUDA_LITE} RUN PATCH="-1+cuda${CUDA_LITE}" && apt-get -y update \ && apt-get install -y --no-install-recommends \ libnvinfer7="${TENSORRT_PKG_VERSION}" \ libnvonnxparsers7="${TENSORRT_PKG_VERSION}" \ libnvparsers7="${TENSORRT_PKG_VERSION}" \ libnvinfer-plugin7="${TENSORRT_PKG_VERSION}" \ libnvinfer-dev="${TENSORRT_PKG_VERSION}" \ libnvonnxparsers-dev="${TENSORRT_PKG_VERSION}" \ libnvparsers-dev="${TENSORRT_PKG_VERSION}" \ libnvinfer-plugin-dev="${TENSORRT_PKG_VERSION}" \ && apt-get -y clean \ && rm -rf /var/lib/apt/lists/* \ && rm -f /etc/apt/sources.list.d/cuda.list ENV TENSORRT_VERSION ${TENSORRT_VERSION}
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/runtime.x86_64.dockerfile.sample
ARG DEV_IMAGE_IN=apolloauto/apollo:dev-x86_64-18.04-20220803_1505 ARG BASE_IMAGE=nvidia/cuda:11.1-runtime-ubuntu18.04 FROM ${DEV_IMAGE_IN} as devel FROM ${BASE_IMAGE} ARG GEOLOC=us ARG CUDA_LITE=11.1 ARG CUDNN_VERSION=8.0.4.30 ARG TENSORRT_VERSION=7.2.1 ENV APOLLO_DIST=stable ENV DEBIAN_FRONTEND=noninteractive ENV PATH /opt/apollo/sysroot/bin:$PATH COPY --from=devel /opt/apollo/rcfiles /opt/apollo/rcfiles/ COPY --from=devel /opt/apollo/installers /opt/apollo/installers RUN if [ "${GEOLOC}" = "cn" ]; then \ cp -f /etc/apt/sources.list /etc/apt/sources.list.orig; \ cp -f /opt/apollo/rcfiles/sources.list.cn.x86_64 /etc/apt/sources.list; \ fi RUN M="${CUDNN_VERSION%%.*}" \ && PATCH="-1+cuda${CUDA_LITE}" \ && apt-get -y update \ && apt-get install -y --no-install-recommends \ libcudnn${M}="${CUDNN_VERSION}${PATCH}" \ && apt-mark hold libcudnn${M} \ && rm -rf /var/lib/apt/lists/* \ && echo "Delete static cuDNN libraries..." \ && find /usr/lib/$(uname -m)-linux-gnu -name "libcudnn_*.a" -delete -print ENV CUDNN_VERSION ${CUDNN_VERSION} RUN PATCH="-1+cuda${CUDA_LITE}" && apt-get -y update \ && apt-get install -y --no-install-recommends \ build-essential \ python3-dev \ libnvinfer7="${TENSORRT_VERSION}${PATCH}" \ libnvonnxparsers7="${TENSORRT_VERSION}${PATCH}" \ libnvparsers7="${TENSORRT_VERSION}${PATCH}" \ libnvinfer-plugin7="${TENSORRT_VERSION}${PATCH}" \ && apt-get -y clean \ && rm -rf /var/lib/apt/lists/* \ && rm -f /etc/apt/sources.list.d/nvidia-ml.list \ && rm -f /etc/apt/sources.list.d/cuda.list ENV TENSORRT_VERSION ${TENSORRT_VERSION} RUN ln -s -f /bin/true /usr/bin/chfn \ && echo "stage=runtime" > /etc/apollo.conf \ && bash /opt/apollo/installers/install_minimal_environment.sh ${GEOLOC} RUN bash /opt/apollo/installers/install_mkl.sh #RUN bash /opt/apollo/installers/install_node.sh RUN bash /opt/apollo/installers/install_python_modules.sh RUN python3 -m pip install --timeout 30 --no-cache-dir opencv-python # TODO(storypku): NodeJS COPY --from=devel /usr/local/fast-rtps /usr/local/fast-rtps COPY --from=devel /usr/local/libtorch_gpu /usr/local/libtorch_gpu COPY --from=devel /usr/local/qt5 /usr/local/qt5 COPY --from=devel /etc/ld.so.conf.d/qt.conf /etc/ld.so.conf.d/qt.conf COPY --from=devel /opt/apollo/pkgs /opt/apollo/pkgs COPY --from=devel /opt/apollo/sysroot/lib /opt/apollo/sysroot/lib #COPY --from=devel /opt/apollo/sysroot/bin /opt/apollo/sysroot/bin COPY --from=devel /etc/profile.d/apollo.sh /etc/profile.d/apollo.sh COPY --from=devel /etc/ld.so.conf.d/apollo.conf /etc/ld.so.conf.d/apollo.conf COPY syspkgs.txt /opt/apollo/syspkgs.txt RUN apt-get -y update \ && apt-get -y install --no-install-recommends \ silversearcher-ag \ $(cat /opt/apollo/syspkgs.txt) \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Restore RUN bash /opt/apollo/installers/install_geo_adjustment.sh us RUN ldconfig ENV PYTHONPATH /apollo:$PYTHONPATH
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/dev.aarch64.nvidia.dockerfile
ARG BASE_IMAGE FROM ${BASE_IMAGE} ARG GEOLOC ARG CLEAN_DEPS ARG INSTALL_MODE WORKDIR /apollo COPY archive /tmp/archive COPY installers /opt/apollo/installers RUN bash /opt/apollo/installers/install_geo_adjustment.sh ${GEOLOC} RUN bash /opt/apollo/installers/install_modules_base.sh RUN bash /opt/apollo/installers/install_gpu_support.sh RUN bash /opt/apollo/installers/install_ordinary_modules.sh RUN bash /opt/apollo/installers/install_drivers_deps.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/install_dreamview_deps.sh ${GEOLOC} RUN bash /opt/apollo/installers/install_contrib_deps.sh RUN bash /opt/apollo/installers/install_release_deps.sh RUN bash /opt/apollo/installers/post_install.sh ${BUILD_STAGE}
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/dev.x86_64.nvidia.dockerfile
ARG BASE_IMAGE FROM ${BASE_IMAGE} ARG GEOLOC ARG CLEAN_DEPS ARG APOLLO_DIST ARG INSTALL_MODE # Note(storypku): # Comment this line if nothing in the `installers` dir got changed. # We can use installers shipped with CyberRT Docker image. COPY installers /opt/apollo/installers RUN bash /opt/apollo/installers/install_geo_adjustment.sh ${GEOLOC} RUN bash /opt/apollo/installers/install_modules_base.sh RUN bash /opt/apollo/installers/install_ordinary_modules.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/install_drivers_deps.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/install_dreamview_deps.sh ${GEOLOC} RUN bash /opt/apollo/installers/install_contrib_deps.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/install_gpu_support.sh RUN bash /opt/apollo/installers/install_release_deps.sh # RUN bash /opt/apollo/installers/install_geo_adjustment.sh us RUN bash /opt/apollo/installers/post_install.sh dev RUN mkdir -p /opt/apollo/neo/data/log && chmod -R 777 /opt/apollo/neo COPY rcfiles/setup.sh /opt/apollo/neo/ RUN echo "source /opt/apollo/neo/setup.sh" >> /etc/skel/.bashrc RUN echo "deb https://apollo-pkg-beta.bj.bcebos.com/neo/beta bionic main" >> /etc/apt/sources.list
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/base.x86_64.nvidia.dockerfile
ARG BASE_IMAGE FROM ${BASE_IMAGE} ARG CUDA_LITE ARG CUDNN_VERSION ARG TENSORRT_VERSION # nvidia gpg key error. ref: https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/ RUN apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/3bf863cc.pub RUN M="${CUDNN_VERSION%%.*}" \ && PATCH="-1+cuda${CUDA_LITE}" \ && apt-get update \ && apt-get install -y --no-install-recommends \ libcudnn${M}="${CUDNN_VERSION}${PATCH}" \ libcudnn${M}-dev="${CUDNN_VERSION}${PATCH}" \ && apt-mark hold libcudnn${M} \ && rm -rf /var/lib/apt/lists/* \ && echo "Delete static cuDNN libraries..." \ && find /usr/lib/$(uname -m)-linux-gnu -name "libcudnn_*.a" -delete -print ENV CUDNN_VERSION ${CUDNN_VERSION} RUN PATCH="-1+cuda${CUDA_LITE}" && apt-get -y update \ && apt-get install -y --no-install-recommends \ libnvinfer7="${TENSORRT_VERSION}${PATCH}" \ libnvonnxparsers7="${TENSORRT_VERSION}${PATCH}" \ libnvparsers7="${TENSORRT_VERSION}${PATCH}" \ libnvinfer-plugin7="${TENSORRT_VERSION}${PATCH}" \ libnvinfer-dev="${TENSORRT_VERSION}${PATCH}" \ libnvonnxparsers-dev="${TENSORRT_VERSION}${PATCH}" \ libnvparsers-dev="${TENSORRT_VERSION}${PATCH}" \ libnvinfer-plugin-dev="${TENSORRT_VERSION}${PATCH}" \ && apt-get -y clean \ && rm -rf /var/lib/apt/lists/* \ && rm -f /etc/apt/sources.list.d/nvidia-ml.list \ && rm -f /etc/apt/sources.list.d/cuda.list ENV TENSORRT_VERSION ${TENSORRT_VERSION} # Notes: # 1) Removed Nvidia apt sources.list to speed up build
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/build_docker.sh
#! /usr/bin/env bash TAB=" " # 4 Spaces APOLLO_REPO="apolloauto/apollo" UBUNTU_LTS="18.04" SUPPORTED_ARCHS=( x86_64 aarch64 ) SUPPORTED_GPUS=( amd nvidia ) SUPPORTED_STAGES=( base cyber dev runtime ) SUPPORTED_DIST=( stable testing ) HOST_ARCH="$(uname -m)" INSTALL_MODE="download" TARGET_GEOLOC="us" TARGET_DIST="stable" TARGET_ARCH= TARGET_GPU= TARGET_STAGE= DOCKERFILE= PREV_IMAGE_TIMESTAMP= USE_CACHE=1 DRY_RUN_ONLY=0 function check_experimental_docker() { local daemon_cfg="/etc/docker/daemon.json" local enabled="$(docker version -f '{{.Server.Experimental}}')" if [ "${enabled}" != "true" ]; then echo "Experimental features should be enabled to run Apollo docker build." echo "Please perform the following two steps to have it enabled:" echo " 1) Add '\"experimental\": true' to '${daemon_cfg}'" echo " The simplest ${daemon_cfg} looks like:" echo " {" echo " \"experimental\": true " echo " }" echo " 2) Restart docker daemon. E.g., 'sudo systemctl restart docker'" exit 1 fi } function cpu_arch_support_check() { local arch="$1" for entry in "${SUPPORTED_ARCHS[@]}"; do if [[ "${entry}" == "${arch}" ]]; then return fi done echo "Unsupported CPU architecture: ${arch}. Exiting..." exit 1 } function gpu_support_check() { local gpu="$1" for entry in "${SUPPORTED_GPUS[@]}"; do if [[ "${entry}" == "${gpu}" ]]; then return fi done echo "Unsupported GPU: ${gpu}. Exiting..." exit 1 } function build_stage_check() { local stage="$1" for entry in "${SUPPORTED_STAGES[@]}"; do if [[ "${entry}" == "${stage}" ]]; then return fi done echo "Unsupported build stage: ${stage}. Exiting..." exit 1 } function determine_target_arch_and_stage() { local dockerfile="$(basename "$1")" IFS='.' read -ra __arr <<< "${dockerfile}" if [[ ${#__arr[@]} -ne 4 ]]; then echo "Expected dockerfile with name [prefix_]<target>.<arch>.<gpu>.dockerfile" echo "Got ${dockerfile}. Exiting..." exit 1 fi IFS=' ' local gpu="${__arr[2]}" gpu_support_check "${gpu}" TARGET_GPU="${gpu}" local arch="${__arr[1]}" cpu_arch_support_check "${arch}" TARGET_ARCH="${arch}" if [[ "${TARGET_ARCH}" != "${HOST_ARCH}" ]]; then echo "[WARNING] HOST_ARCH(${HOST_ARCH}) != TARGET_ARCH(${TARGET_ARCH}) detected." echo "[WARNING] Make sure you have executed the following command:" echo "[WARNING] ${TAB}docker run --rm --privileged multiarch/qemu-user-static --reset -p yes" fi local stage="${__arr[0]##*_}" build_stage_check "${stage}" TARGET_STAGE="${stage}" } CUDA_LITE= CUDNN_VERSION= TENSORRT_VERSION= function determine_cuda_versions() { local arch="$1" local dist="$2" if [[ "${arch}" == "x86_64" ]]; then if [[ "${dist}" == "stable" ]]; then CUDA_LITE=11.1 CUDNN_VERSION="8.0.4.30" TENSORRT_VERSION="7.2.1" else # testing CUDA_LITE=11.1 CUDNN_VERSION="8.0.4.30" TENSORRT_VERSION="7.2.1" fi else # aarch64 CUDA_LITE="10.2" CUDNN_VERSION="8.0.0.180" TENSORRT_VERSION="7.1.3" fi } function determine_prev_image_timestamp() { if [[ ! -z "${PREV_IMAGE_TIMESTAMP}" ]]; then return fi local arch="$1" # x86_64 / aarch64 local stage="$2" # base/cyber/dev/runtime local dist="$3" # stable/testing local result= if [[ "${arch}" == "x86_64" ]]; then if [[ "${stage}" == "dev" ]]; then if [[ "${dist}" == "stable" ]]; then result="20210315_1535" else result="20210108_1510" fi elif [[ "${stage}" == "runtime" ]]; then if [[ "${dist}" == "stable" ]]; then result="20220803_1505" fi fi else # aarch64 if [[ "${stage}" == "cyber" ]]; then if [[ "${dist}" == "stable" ]]; then result="20201217_0752" fi elif [[ "${stage}" == "dev" ]]; then if [[ "${dist}" == "stable" ]]; then result="20201217_1302" fi fi fi PREV_IMAGE_TIMESTAMP="${result}" } IMAGE_IN= IMAGE_OUT= DEV_IMAGE_IN= function determine_images_in_out_x86_64() { local stage="$1" # Build stage, base/cyber/dev local dist="$2" # stable or testing local timestamp="$3" # Timestamp local cudnn_ver="${CUDNN_VERSION%%.*}" local trt_ver="${TENSORRT_VERSION%%.*}" local arch if [[ "${TARGET_GPU}" == "amd" ]]; then arch="x86_64-amd" elif [[ "${TARGET_GPU}" == "nvidia" ]]; then arch="x86_64-nvidia" fi local base_nvidia_image="${APOLLO_REPO}:cuda${CUDA_LITE}-cudnn${cudnn_ver}-trt${trt_ver}-devel-${UBUNTU_LTS}-${arch}" local base_amd_image="rocm/dev-ubuntu-18.04:5.1.1-complete" if [[ "${stage}" == "base" ]]; then if [[ "${TARGET_GPU}" == "nvidia" ]]; then IMAGE_IN="nvidia/cuda:${CUDA_LITE}-devel-ubuntu${UBUNTU_LTS}" IMAGE_OUT="${base_nvidia_image}" else echo "The base Docker for AMD GPU is not ready. Exiting..." exit 1 fi elif [[ "${stage}" == "cyber" ]]; then if [[ "${TARGET_GPU}" == "nvidia" ]]; then IMAGE_IN="${base_nvidia_image}" elif [[ "${TARGET_GPU}" == "amd" ]]; then IMAGE_IN="${base_amd_image}" fi if [[ "${dist}" == "stable" ]]; then IMAGE_OUT="${APOLLO_REPO}:cyber-${arch}-${UBUNTU_LTS}-${timestamp}" else IMAGE_OUT="${APOLLO_REPO}:cyber-${arch}-${UBUNTU_LTS}-testing-${timestamp}" fi elif [[ "${stage}" == "dev" ]]; then if [[ "${dist}" == "stable" ]]; then IMAGE_IN="${APOLLO_REPO}:cyber-${arch}-${UBUNTU_LTS}-${PREV_IMAGE_TIMESTAMP}" IMAGE_OUT="${APOLLO_REPO}:dev-${arch}-${UBUNTU_LTS}-${timestamp}" else IMAGE_IN="${APOLLO_REPO}:cyber-${arch}-${UBUNTU_LTS}-testing-${PREV_IMAGE_TIMESTAMP}" IMAGE_OUT="${APOLLO_REPO}:dev-${arch}-${UBUNTU_LTS}-testing-${timestamp}" fi elif [[ "${stage}" == "runtime" ]]; then if [[ "${dist}" == "stable" ]]; then if [[ "${TARGET_GPU}" == "amd" ]]; then echo "AMD is not supported for runtime Docker. Exiting..." exit 1 fi IMAGE_IN="nvidia/cuda:${CUDA_LITE}-runtime-ubuntu${UBUNTU_LTS}" DEV_IMAGE_IN="${APOLLO_REPO}:dev-${arch}-${UBUNTU_LTS}-${PREV_IMAGE_TIMESTAMP}" IMAGE_OUT="${APOLLO_REPO}:runtime-${arch}-${UBUNTU_LTS}-${timestamp}" else echo "Runtime Docker for Apollo Testing not ready. Exiting..." exit 1 fi else echo "Unknown build stage: ${stage}. Exiting..." exit 1 fi } function determine_images_in_out_aarch64() { local stage="$1" local timestamp="$2" local cudnn_ver="${CUDNN_VERSION%%.*}" local trt_ver="${TENSORRT_VERSION%%.*}" local BASE_FMT="l4t-cuda${CUDA_LITE}-cudnn${cudnn_ver}-trt${trt_ver}-devel-${UBUNTU_LTS}" local CYBER_FMT="cyber-aarch64-nvidia-${UBUNTU_LTS}" if [[ "${TARGET_GPU}" == "amd" ]]; then echo "ARM64 architecture is not supported for AMD GPU target. Exiting..." exit 1 fi if [[ "${stage}" == "base" ]]; then # Ref: https://developer.nvidia.com/embedded/linux-tegra IMAGE_IN="nvcr.io/nvidia/l4t-base:r32.4.4" IMAGE_OUT="${APOLLO_REPO}:${BASE_FMT}-${timestamp}" elif [[ "${stage}" == "cyber" ]]; then IMAGE_IN="${APOLLO_REPO}:${BASE_FMT}-${PREV_IMAGE_TIMESTAMP}" IMAGE_OUT="${APOLLO_REPO}:${CYBER_FMT}-${timestamp}" elif [[ "${stage}" == "dev" ]]; then IMAGE_IN="${APOLLO_REPO}:${CYBER_FMT}-${PREV_IMAGE_TIMESTAMP}" IMAGE_OUT="${APOLLO_REPO}:dev-aarch64-nvidia-${UBUNTU_LTS}-${timestamp}" elif [[ "${stage}" == "runtime" ]]; then echo "Runtime Docker for AArch64 not ready yet. Exiting..." exit 1 else echo "Unknown build stage: ${stage}. Exiting..." exit 1 fi } function determine_images_in_out() { local arch="$1" local stage="$2" local dist="$3" local timestamp="$(date +%Y%m%d_%H%M)" determine_cuda_versions "${arch}" "${dist}" determine_prev_image_timestamp "${arch}" "${stage}" "${dist}" if [[ "${arch}" == "x86_64" ]]; then determine_images_in_out_x86_64 "${stage}" "${dist}" "${timestamp}" else # Only stable images for Aarch64 determine_images_in_out_aarch64 "${stage}" "${timestamp}" fi } function print_usage() { local prog="$(basename $0)" echo "Usage:" echo "${TAB}${prog} -f <Dockerfile> [Options]" echo "Available options:" echo "${TAB}-c,--clean Use \"--no-cache=true\" for docker build" echo "${TAB}-m,--mode \"build\" for build everything from source if possible, \"download\" for using prebuilt ones" echo "${TAB}-g,--geo Enable geo-specific mirrors to speed up build. Currently \"cn\" and \"us\" are supported." echo "${TAB}-d,--dist Whether to build stable(\"stable\") or experimental(\"testing\") Docker images" echo "${TAB}-t,--timestamp Specify image timestamp for previous stage to build image upon. Format: yyyymmdd_hhmm (e.g 20210205_1520)" echo "${TAB}--dry Dry run (for testing purpose)" echo "${TAB}-h,--help Show this message and exit" echo "E.g.," echo "${TAB}${prog} -f cyber.x86_64.dockerfile -m build -g cn" echo "${TAB}${prog} -f dev.aarch64.dockerfile -m download -d testing" } function check_opt_arg() { local opt="$1" local arg="$2" if [[ -z "${arg}" || "${arg}" =~ ^-.* ]]; then echo "Argument missing for option ${opt}. Exiting..." exit 1 fi } function parse_arguments() { if [[ $# -eq 0 ]] || [[ "$1" == "--help" ]]; then print_usage exit 0 fi while [[ $# -gt 0 ]]; do local opt="$1" shift case $opt in -f|--dockerfile) check_opt_arg "${opt}" "$1" DOCKERFILE="$1" shift ;; -m|--mode) check_opt_arg "${opt}" "$1" INSTALL_MODE="$1" shift ;; -g|--geo) check_opt_arg "${opt}" "$1" TARGET_GEOLOC="$1" shift ;; -c|--clean) USE_CACHE=0 ;; -d|--dist) check_opt_arg "${opt}" "$1" TARGET_DIST="$1" shift ;; -t|--timestamp) check_opt_arg "${opt}" "$1" PREV_IMAGE_TIMESTAMP="$1" shift ;; --dry) DRY_RUN_ONLY=1 ;; -h|--help) print_usage exit 0 ;; *) echo "Unknown option: ${opt}" print_usage exit 1 ;; esac done } function check_arguments() { if [[ "${INSTALL_MODE}" == "download" ]]; then echo "Use prebuilt packages for dependencies if possible" elif [[ "${INSTALL_MODE}" == "build" ]]; then echo "Build all packages from source" else echo "Unknown INSTALL_MODE: ${INSTALL_MODE}." exit 1 fi if [[ "${TARGET_GEOLOC}" == "cn" ]]; then echo "Docker image built w/ CN based mirrors." elif [[ "${TARGET_GEOLOC}" != "us" ]]; then echo "Unknown GEOLOC: ${TARGET_GEOLOC}, defaults to 'us'" TARGET_GEOLOC="us" fi if [[ "${TARGET_DIST}" == "stable" ]]; then echo "Stable Docker image will be built." elif [[ "${TARGET_DIST}" == "testing" ]]; then echo "Testing (experimental) Docker image will be built." else echo "Unknown APOLLO_DIST: ${TARGET_DIST}. Exit..." exit 1 fi if [[ -z "${DOCKERFILE}" ]]; then echo "Dockfile not specified. Exiting..." exit 1 fi determine_target_arch_and_stage "${DOCKERFILE}" } function docker_build_preview() { echo "=====.=====.===== Docker Build Preview for ${TARGET_STAGE} =====.=====.=====" echo "| Generated image: ${IMAGE_OUT}" echo "| FROM image: ${IMAGE_IN}" echo "| Dockerfile: ${DOCKERFILE}" echo "| TARGET_ARCH=${TARGET_ARCH}, HOST_ARCH=${HOST_ARCH}" echo "| INSTALL_MODE=${INSTALL_MODE}, GEOLOC=${TARGET_GEOLOC}, APOLLO_DIST=${TARGET_DIST}" echo "=====.=====.=====.=====.=====.=====.=====.=====.=====.=====.=====.=====.=====" } function docker_build_run() { local extra_args="--squash" if [[ "${USE_CACHE}" -eq 0 ]]; then extra_args="${extra_args} --no-cache=true" fi local context="$(dirname "${BASH_SOURCE[0]}")" local build_args="--build-arg BASE_IMAGE=${IMAGE_IN}" if [[ "${TARGET_STAGE}" == "base" ]]; then build_args="${build_args} --build-arg CUDA_LITE=${CUDA_LITE}" build_args="${build_args} --build-arg CUDNN_VERSION=${CUDNN_VERSION}" build_args="${build_args} --build-arg TENSORRT_VERSION=${TENSORRT_VERSION}" elif [[ "${TARGET_STAGE}" == "cyber" || "${TARGET_STAGE}" == "dev" ]]; then build_args="${build_args} --build-arg APOLLO_DIST=${TARGET_DIST}" build_args="${build_args} --build-arg GEOLOC=${TARGET_GEOLOC}" build_args="${build_args} --build-arg CLEAN_DEPS=yes" build_args="${build_args} --build-arg INSTALL_MODE=${INSTALL_MODE}" elif [[ "${TARGET_STAGE}" == "runtime" ]]; then build_args="${build_args} --build-arg GEOLOC=${TARGET_GEOLOC}" build_args="${build_args} --build-arg CUDA_LITE=${CUDA_LITE}" build_args="${build_args} --build-arg CUDNN_VERSION=${CUDNN_VERSION}" build_args="${build_args} --build-arg TENSORRT_VERSION=${TENSORRT_VERSION}" build_args="${build_args} --build-arg DEV_IMAGE_IN=${DEV_IMAGE_IN}" else echo "Unknown build stage: ${TARGET_STAGE}. Exiting..." exit 1 fi set -x docker build --network=host ${extra_args} -t "${IMAGE_OUT}" \ ${build_args} \ -f "${DOCKERFILE}" \ "${context}" set +x } function main() { parse_arguments "$@" check_arguments check_experimental_docker determine_images_in_out "${TARGET_ARCH}" "${TARGET_STAGE}" "${TARGET_DIST}" docker_build_preview if [[ "${DRY_RUN_ONLY}" -gt 0 ]]; then return fi docker_build_run } main "$@"
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/README.md
# Apollo Docker Image Build Process ## Introduction As you may already know, Apollo runs inside Docker container. There are basically two types of Apollo Docker images: CyberRT and Dev. CyberRT images were for developers who want to play with the CyberRT framework only, while Dev images were used to build and run the whole Apollo project. Currently, two CPU architectures are supported: `x86_64` and `aarch64`. **Note** > `dev.aarch64` image was still WIP as of today. It is expected to be ready in > the next few months. In the section below, I will describe briefly the steps to build these Docker images. ## Build CyberRT Image Type `./build_docker.sh -h` for help message: ``` Usage: build_docker.sh -f <Dockerfile> [Options] Available options: -c,--clean Use "--no-cache=true" for docker build -m,--mode "build" for build everything from source if possible, "download" for using prebuilt ones -g,--geo Enable geo-specific mirrors to speed up build. Currently "cn" and "us" are supported. -d,--dist Whether to build stable("stable") or experimental("testing") Docker images -t,--timestamp Specify Cyber image timestamp to build Dev image from it. Format: yyyymmdd_hhmm (e.g 20210205_1520) --dry Dry run (for testing purpose) -h,--help Show this message and exit E.g., build_docker.sh -f cyber.x86_64.dockerfile -m build -g cn build_docker.sh -f dev.aarch64.dockerfile -m download -d testing ``` Here, the `-g/--geo` option is used to enable geo-location based settings (APT & PYPI mirrors, etc.). Two codes (`us` & `cn`) are supported now, and the default is `us`. To build the latest CyberRT image, simply run: ``` ./build_docker.sh -f cyber.<TARGET_ARCH>.dockerfile ``` Users of mainland China can specify `-g cn` to speed up build process: ``` ./build_docker.sh -f cyber.<TARGET_ARCH>.dockerfile -g cn ``` ## Build Apollo Dev Image Run the following command to build Apollo Dev image: ``` build_docker.sh -f dev.<TARGET_ARCH>.dockerfile ``` On success, output messages like the following will be shown at the bottom of your screen. ``` Successfully built baca71e567e6 Successfully tagged apolloauto/apollo:dev-x86_64-18.04-20200824_0339 Built new image apolloauto/apollo:dev-x86_64-18.04-20200824_0339 ``` ## Build Apollo Runtime Docker Image Apollo Runtime Docker was used in combination with Release Build output for easy deployment. You can run the following commands to build Apollo Runtime Docker image on your own. ``` # Generate required APT packages ./apollo.sh release -c -r cd docker/build # Copy the generated package list for docker build cp /apollo/output/syspkgs.txt . cp runtime.x86_64.dockerfile.sample runtime.x86_64.dockerfile bash build_docker.sh -f runtime.x86_64.dockerfile ``` > Note: Apollo Runtime Docker supports x86_64 only as Release Build was not > ready for Aarch64 yet. ## Tips ### Build Log The build log for CyberRT and Dev Docker images was located at `/opt/apollo/build.log`, which contains download links and checksums of dependent packages during Docker build. ### Enable Local HTTP Cache to Speed Up Build You can enable local HTTP cache to speed up package downloading by performing the following steps on your **host** running Docker: 1. Download all prerequisite packages to a directory (say, `$HOME/archive`) with URLs listed in the build log. Pay attention to their checksum. 2. Change to that archive directory and start your local HTTP cache server at port **8388**. ``` cd $HOME/archive nohup python3 -m http.server 8388 & ``` > Note: Another advantage with the local HTTP cache mechanism is, it has little > influence on the final image size. Even if the cached package was missing or > broken, it can still be downloaded from the original URL. 3. Rerun `build_docker.sh`. ## Add New Installer The best practice of a new installer would be: 1. Well tested. Of course. Make it work, and don't break other installers, such as incompatible versions of libraries. 1. Standalone. Have minimum assumption about the basement, which means, you can depend on the base image and `installers/installer_base.sh`. Other than that, you should install all the dependencies in your own installer. 1. Thin. It will generate a new layer in the final image, so please keep it as thin as possible. For example, clean up all intermediate files: ```bash wget xxx.zip # Unzip, make, make install rm -fr xxx.zip xxx ``` 1. Cross-architecture. It would be awesome to work perfectly for different architectures such as `x86_64` and `aarch64`.
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/.dockerignore
*.sh *.md *.dockerfile
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/standalone.x86_64.dockerfile
ARG DOCKER_REPO=apolloauto/apollo ARG TARGET_ARCH=x86_64 ARG IMAGE_VERSION=18.04-20220803_1505 ARG BASE_IMAGE=${DOCKER_REPO}:runtime-${TARGET_ARCH}-${IMAGE_VERSION} FROM ${DOCKER_REPO}:data_volume-audio_model-${TARGET_ARCH}-latest as apollo_audio_volume FROM ${DOCKER_REPO}:yolov4_volume-emergency_detection_model-${TARGET_ARCH}-latest as apollo_yolov4_volume FROM ${DOCKER_REPO}:faster_rcnn_volume-traffic_light_detection_model-${TARGET_ARCH}-latest as apollo_faster_rcnn_volume FROM ${DOCKER_REPO}:smoke_volume-yolo_obstacle_detection_model-${TARGET_ARCH}-latest as apollo_smoke_volume FROM ${BASE_IMAGE} COPY output /apollo COPY --from=apollo_audio_volume \ /apollo/modules/audio \ /apollo/modules/audio COPY --from=apollo_yolov4_volume \ /apollo/modules/perception/camera/lib/obstacle/detector/yolov4 \ /apollo/modules/perception/camera/lib/obstacle/detector/yolov4 COPY --from=apollo_faster_rcnn_volume \ /apollo/modules/perception/production/data/perception/camera/models/traffic_light_detection \ /apollo/modules/perception/production/data/perception/camera/models/traffic_light_detection COPY --from=apollo_smoke_volume \ /apollo/modules/perception/production/data/perception/camera/models/yolo_obstacle_detector \ /apollo/modules/perception/production/data/perception/camera/models/yolo_obstacle_detector
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/cyber.x86_64.amd.dockerfile
ARG BASE_IMAGE FROM ${BASE_IMAGE} ARG APOLLO_DIST ARG GEOLOC ARG CLEAN_DEPS ARG INSTALL_MODE LABEL version="1.2" ENV DEBIAN_FRONTEND=noninteractive ENV PATH /opt/apollo/sysroot/bin:$PATH ENV APOLLO_DIST ${APOLLO_DIST} COPY installers /opt/apollo/installers COPY rcfiles /opt/apollo/rcfiles RUN bash /opt/apollo/installers/install_minimal_environment.sh ${GEOLOC} RUN bash /opt/apollo/installers/install_cmake.sh RUN bash /opt/apollo/installers/install_cyber_deps.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/install_llvm_clang.sh RUN bash /opt/apollo/installers/install_qa_tools.sh RUN bash /opt/apollo/installers/install_visualizer_deps.sh RUN bash /opt/apollo/installers/install_bazel.sh RUN bash /opt/apollo/installers/post_install.sh cyber WORKDIR /apollo
0
apollo_public_repos/apollo/docker
apollo_public_repos/apollo/docker/build/dev.x86_64.amd.dockerfile
ARG BASE_IMAGE FROM ${BASE_IMAGE} ARG GEOLOC ARG CLEAN_DEPS ARG APOLLO_DIST ARG INSTALL_MODE # Note(storypku): # Comment this line if nothing in the `installers` dir got changed. # We can use installers shipped with CyberRT Docker image. COPY installers /opt/apollo/installers RUN bash /opt/apollo/installers/install_geo_adjustment.sh ${GEOLOC} RUN bash /opt/apollo/installers/install_modules_base.sh RUN bash /opt/apollo/installers/install_ordinary_modules.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/install_drivers_deps.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/install_dreamview_deps.sh ${GEOLOC} RUN bash /opt/apollo/installers/install_contrib_deps.sh ${INSTALL_MODE} RUN bash /opt/apollo/installers/install_gpu_support.sh RUN bash /opt/apollo/installers/install_migraphx.sh RUN bash /opt/apollo/installers/install_release_deps.sh # RUN bash /opt/apollo/installers/install_geo_adjustment.sh us RUN bash /opt/apollo/installers/post_install.sh dev
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/sources.list.us.x86_64
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ bionic universe # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic multiverse deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu bionic partner # deb-src http://archive.canonical.com/ubuntu bionic partner deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted # deb-src http://security.ubuntu.com/ubuntu/ bionic-security main restricted deb http://security.ubuntu.com/ubuntu/ bionic-security universe # deb-src http://security.ubuntu.com/ubuntu/ bionic-security universe deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse # deb-src http://security.ubuntu.com/ubuntu/ bionic-security multiverse
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/setup.sh
#! /usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### function pathremove() { local IFS=':' local NEWPATH local DIR local PATHVARIABLE=${2:-PATH} for DIR in ${!PATHVARIABLE}; do if [ "$DIR" != "$1" ]; then NEWPATH=${NEWPATH:+$NEWPATH:}$DIR fi done export $PATHVARIABLE="$NEWPATH" } function pathprepend() { pathremove $1 $2 local PATHVARIABLE=${2:-PATH} export $PATHVARIABLE="$1${!PATHVARIABLE:+:${!PATHVARIABLE}}" } function pathappend() { pathremove $1 $2 local PATHVARIABLE=${2:-PATH} export $PATHVARIABLE="${!PATHVARIABLE:+${!PATHVARIABLE}:}$1" } function setup_gpu_support() { if [ -e /usr/local/cuda/ ]; then pathprepend /usr/local/cuda/bin fi } if [ ! -f /apollo/LICENSE ]; then APOLLO_IN_DOCKER=false APOLLO_PATH="/opt/apollo/neo" APOLLO_ROOT_DIR=${APOLLO_PATH}/packages if [ -f /.dockerenv ]; then APOLLO_IN_DOCKER=true fi export APOLLO_PATH export APOLLO_ROOT_DIR=${APOLLO_PATH}/packages export CYBER_PATH=${APOLLO_ROOT_DIR}/cyber export APOLLO_IN_DOCKER export APOLLO_SYSROOT_DIR=/opt/apollo/sysroot export CYBER_DOMAIN_ID=80 export CYBER_IP=127.0.0.1 export GLOG_log_dir=${APOLLO_PATH}/data/log export GLOG_alsologtostderr=0 export GLOG_colorlogtostderr=1 export GLOG_minloglevel=0 export sysmo_start=0 export USE_ESD_CAN=false fi pathprepend /opt/apollo/neo/bin setup_gpu_support
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/sources.list.cn.aarch64
deb [arch=arm64] http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse deb [arch=arm64] http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse deb [arch=arm64] http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse deb [arch=arm64] http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/sources.list.tsinghua
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/apollo.sh.sample
#! /bin/sh # shellcheck shell=sh # This file was meant to be located at /etc/profile.d/apollo.sh ## Prevent multiple entries of my_bin_path in PATH add_to_path() { if [ -z "$1" ]; then return fi my_bin_path="$1" if [ -n "${PATH##*${my_bin_path}}" ] && [ -n "${PATH##*${my_bin_path}:*}" ]; then export PATH=$PATH:${my_bin_path} fi }
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/user.lcovrc
genhtml_branch_coverage = 1 lcov_branch_coverage = 1
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/bazel_completion.bash
# -*- sh -*- (Bash only) # # Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Bash completion of Bazel commands. # # Provides command-completion for: # - bazel prefix options (e.g. --host_jvm_args) # - blaze command-set (e.g. build, test) # - blaze command-specific options (e.g. --copts) # - values for enum-valued options # - package-names, exploring all package-path roots. # - targets within packages. # Environment variables for customizing behavior: # # BAZEL_COMPLETION_USE_QUERY - if "true", `bazel query` will be used for # autocompletion; otherwise, a heuristic grep is used. This is more accurate # than the heuristic grep, especially for strangely-formatted BUILD files. But # it can be slower, especially if the Bazel server is busy, and more brittle, if # the BUILD file contains serious errors. This is an experimental feature. # # BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN - if "true", autocompletion results for # `bazel run` includes test targets. This is convenient for users who run a lot # of tests/benchmarks locally with 'bazel run'. _bazel_completion_use_query() { _bazel__is_true "${BAZEL_COMPLETION_USE_QUERY}" } _bazel_completion_allow_tests_for_run() { _bazel__is_true "${BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN}" } # -*- sh -*- (Bash only) # # Copyright 2015 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # The template is expanded at build time using tables of commands/options # derived from the bazel executable built in the same client; the expansion is # written to bazel-complete.bash. # # Don't use this script directly. Generate the final script with # bazel build //scripts:bash_completion instead. # This script expects a header to be prepended to it that defines the following # nullary functions: # # _bazel_completion_use_query - Has a successful exit code if # BAZEL_COMPLETION_USE_QUERY is "true". # # _bazel_completion_allow_tests_for_run - Has a successful exit code if # BAZEL_COMPLETION_ALLOW_TESTS_FOR_RUN is "true". # The package path used by the completion routines. Unfortunately # this isn't necessarily the same as the actual package path used by # Bazel, but that's ok. (It's impossible for us to reliably know what # the relevant package-path, so this is just a good guess. Users can # override it if they want.) : ${BAZEL_COMPLETION_PACKAGE_PATH:=%workspace%} # Some commands might interfer with the important one, so don't complete them : ${BAZEL_IGNORED_COMMAND_REGEX:="__none__"} # bazel & ibazel commands : ${BAZEL:=bazel} : ${IBAZEL:=ibazel} # Pattern to match for looking for a target # BAZEL_BUILD_MATCH_PATTERN__* give the pattern for label-* # when looking in the build file. # BAZEL_QUERY_MATCH_PATTERN__* give the pattern for label-* # when using 'bazel query'. # _RUNTEST is a special case for _bazel_completion_allow_tests_for_run. : ${BAZEL_BUILD_MATCH_PATTERN__test:='(.*_test|test_suite)'} : ${BAZEL_QUERY_MATCH_PATTERN__test:='(test|test_suite)'} : ${BAZEL_BUILD_MATCH_PATTERN__bin:='.*_binary'} : ${BAZEL_QUERY_MATCH_PATTERN__bin:='(binary)'} : ${BAZEL_BUILD_MATCH_PATTERN_RUNTEST__bin:='(.*_(binary|test)|test_suite)'} : ${BAZEL_QUERY_MATCH_PATTERN_RUNTEST__bin:='(binary|test)'} : ${BAZEL_BUILD_MATCH_PATTERN__:='.*'} : ${BAZEL_QUERY_MATCH_PATTERN__:=''} # Usage: _bazel__get_rule_match_pattern <command> # Determine what kind of rules to match, based on command. _bazel__get_rule_match_pattern() { local var_name pattern if _bazel_completion_use_query; then var_name="BAZEL_QUERY_MATCH_PATTERN" else var_name="BAZEL_BUILD_MATCH_PATTERN" fi if [[ "$1" =~ ^label-?([a-z]*)$ ]]; then pattern=${BASH_REMATCH[1]:-} if _bazel_completion_allow_tests_for_run; then eval "echo \"\${${var_name}_RUNTEST__${pattern}:-\$${var_name}__${pattern}}\"" else eval "echo \"\$${var_name}__${pattern}\"" fi fi } # Compute workspace directory. Search for the innermost # enclosing directory with a WORKSPACE file. _bazel__get_workspace_path() { local workspace=$PWD while true; do if [ -f "${workspace}/WORKSPACE" ]; then break elif [ -z "$workspace" -o "$workspace" = "/" ]; then workspace=$PWD break; fi workspace=${workspace%/*} done echo $workspace } # Find the current piece of the line to complete, but only do word breaks at # certain characters. In particular, ignore these: "':= # This method also takes into account the current cursor position. # # Works with both bash 3 and 4! Bash 3 and 4 perform different word breaks when # computing the COMP_WORDS array. We need this here because Bazel options are of # the form --a=b, and labels of the form //some/label:target. _bazel__get_cword() { local cur=${COMP_LINE:0:$COMP_POINT} # This expression finds the last word break character, as defined in the # COMP_WORDBREAKS variable, but without '=' or ':', which is not preceeded by # a slash. Quote characters are also excluded. local wordbreaks="$COMP_WORDBREAKS" wordbreaks="${wordbreaks//\'/}" wordbreaks="${wordbreaks//\"/}" wordbreaks="${wordbreaks//:/}" wordbreaks="${wordbreaks//=/}" local word_start=$(expr "$cur" : '.*[^\]['"${wordbreaks}"']') echo "${cur:$word_start}" } # Usage: _bazel__package_path <workspace> <displacement> # # Prints a list of package-path root directories, displaced using the # current displacement from the workspace. All elements have a # trailing slash. _bazel__package_path() { local workspace=$1 displacement=$2 root IFS=: for root in ${BAZEL_COMPLETION_PACKAGE_PATH//\%workspace\%/$workspace}; do unset IFS echo "$root/$displacement" done } # Usage: _bazel__options_for <command> # # Prints the set of options for a given Bazel command, e.g. "build". _bazel__options_for() { local options if [[ "${BAZEL_COMMAND_LIST}" =~ ^(.* )?$1( .*)?$ ]]; then # assumes option names only use ASCII characters local option_name=$(echo $1 | tr a-z A-Z | tr "-" "_") eval "echo \${BAZEL_COMMAND_${option_name}_FLAGS}" | tr " " "\n" fi } # Usage: _bazel__expansion_for <command> # # Prints the completion pattern for a given Bazel command, e.g. "build". _bazel__expansion_for() { local options if [[ "${BAZEL_COMMAND_LIST}" =~ ^(.* )?$1( .*)?$ ]]; then # assumes option names only use ASCII characters local option_name=$(echo $1 | tr a-z A-Z | tr "-" "_") eval "echo \${BAZEL_COMMAND_${option_name}_ARGUMENT}" fi } # Usage: _bazel__matching_targets <kind> <prefix> # # Prints target names of kind <kind> and starting with <prefix> in the BUILD # file given as standard input. <kind> is a basic regex (BRE) used to match the # bazel rule kind and <prefix> is the prefix of the target name. _bazel__matching_targets() { local kind_pattern="$1" local target_prefix="$2" # The following commands do respectively: # Remove BUILD file comments # Replace \n by spaces to have the BUILD file in a single line # Extract all rule types and target names # Grep the kind pattern and the target prefix # Returns the target name sed 's/#.*$//' \ | tr "\n" " " \ | sed 's/\([a-zA-Z0-9_]*\) *(\([^)]* \)\{0,1\}name *= *['\''"]\([a-zA-Z0-9_/.+=,@~-]*\)['\''"][^)]*)/\ type:\1 name:\3\ /g' \ | "grep" -E "^type:$kind_pattern name:$target_prefix" \ | cut -d ':' -f 3 } # Usage: _bazel__is_true <string> # # Returns true or false based on the input string. The following are # valid true values (the rest are false): "1", "true". _bazel__is_true() { local str="$1" [[ "$str" == "1" || "$str" == "true" ]] } # Usage: _bazel__expand_rules_in_package <workspace> <displacement> # <current> <label-type> # # Expands rules in specified packages, exploring all roots of # $BAZEL_COMPLETION_PACKAGE_PATH, not just $(pwd). Only rules # appropriate to the command are printed. Sets $COMPREPLY array to # result. # # If _bazel_completion_use_query has a successful exit code, 'bazel query' is # used instead, with the actual Bazel package path; # $BAZEL_COMPLETION_PACKAGE_PATH is ignored in this case, since the actual Bazel # value is likely to be more accurate. _bazel__expand_rules_in_package() { local workspace=$1 displacement=$2 current=$3 label_type=$4 local package_name=$(echo "$current" | cut -f1 -d:) local rule_prefix=$(echo "$current" | cut -f2 -d:) local root buildfile rule_pattern r result result= pattern=$(_bazel__get_rule_match_pattern "$label_type") if _bazel_completion_use_query; then package_name=$(echo "$package_name" | tr -d "'\"") # remove quotes result=$(${BAZEL} --output_base=/tmp/${BAZEL}-completion-$USER query \ --keep_going --noshow_progress --output=label \ "kind('$pattern rule', '$package_name:*')" 2>/dev/null | cut -f2 -d: | "grep" "^$rule_prefix") else for root in $(_bazel__package_path "$workspace" "$displacement"); do buildfile="$root/$package_name/BUILD.bazel" if [ ! -f "$buildfile" ]; then buildfile="$root/$package_name/BUILD" fi if [ -f "$buildfile" ]; then result=$(_bazel__matching_targets \ "$pattern" "$rule_prefix" <"$buildfile") break fi done fi index=$(echo $result | wc -w) if [ -n "$result" ]; then echo "$result" | tr " " "\n" | sed 's|$| |' fi # Include ":all" wildcard if there was no unique match. (The zero # case is tricky: we need to include "all" in that case since # otherwise we won't expand "a" to "all" in the absence of rules # starting with "a".) if [ $index -ne 1 ] && expr all : "\\($rule_prefix\\)" >/dev/null; then echo "all " fi } # Usage: _bazel__expand_package_name <workspace> <displacement> <current-word> # <label-type> # # Expands directories, but explores all roots of # BAZEL_COMPLETION_PACKAGE_PATH, not just $(pwd). When a directory is # a bazel package, the completion offers "pkg:" so you can expand # inside the package. # Sets $COMPREPLY array to result. _bazel__expand_package_name() { local workspace=$1 displacement=$2 current=$3 type=${4:-} root dir index for root in $(_bazel__package_path "$workspace" "$displacement"); do found=0 for dir in $(compgen -d $root$current); do [ -L "$dir" ] && continue # skip symlinks (e.g. bazel-bin) [[ "$dir" =~ ^(.*/)?\.[^/]*$ ]] && continue # skip dotted dir (e.g. .git) found=1 echo "${dir#$root}/" if [ -f $dir/BUILD.bazel -o -f $dir/BUILD ]; then if [ "${type}" = "label-package" ]; then echo "${dir#$root} " else echo "${dir#$root}:" fi fi done [ $found -gt 0 ] && break # Stop searching package path upon first match. done } # Usage: _bazel__expand_target_pattern <workspace> <displacement> # <word> <label-syntax> # # Expands "word" to match target patterns, using the current workspace # and displacement from it. "command" is used to filter rules. # Sets $COMPREPLY array to result. _bazel__expand_target_pattern() { local workspace=$1 displacement=$2 current=$3 label_syntax=$4 case "$current" in //*:*) # Expand rule names within package, no displacement. if [ "${label_syntax}" = "label-package" ]; then compgen -S " " -W "BUILD" "$(echo current | cut -f ':' -d2)" else _bazel__expand_rules_in_package "$workspace" "" "$current" "$label_syntax" fi ;; *:*) # Expand rule names within package, displaced. if [ "${label_syntax}" = "label-package" ]; then compgen -S " " -W "BUILD" "$(echo current | cut -f ':' -d2)" else _bazel__expand_rules_in_package \ "$workspace" "$displacement" "$current" "$label_syntax" fi ;; //*) # Expand filenames using package-path, no displacement _bazel__expand_package_name "$workspace" "" "$current" "$label_syntax" ;; *) # Expand filenames using package-path, displaced. if [ -n "$current" ]; then _bazel__expand_package_name "$workspace" "$displacement" "$current" "$label_syntax" fi ;; esac } _bazel__get_command() { for word in "${COMP_WORDS[@]:1:COMP_CWORD-1}"; do if echo "$BAZEL_COMMAND_LIST" | "grep" -wsq -e "$word"; then echo $word break fi done } # Returns the displacement to the workspace given in $1 _bazel__get_displacement() { if [[ "$PWD" =~ ^$1/.*$ ]]; then echo ${PWD##$1/}/ fi } # Usage: _bazel__complete_pattern <workspace> <displacement> <current> # <type> # # Expand a word according to a type. The currently supported types are: # - {a,b,c}: an enum that can take value a, b or c # - label: a label of any kind # - label-bin: a label to a runnable rule (basically to a _binary rule) # - label-test: a label to a test rule # - info-key: an info key as listed by `bazel help info-keys` # - command: the name of a command # - path: a file path # - combinaison of previous type using | as separator _bazel__complete_pattern() { local workspace=$1 displacement=$2 current=$3 types=$4 for type in $(echo $types | tr "|" "\n"); do case "$type" in label*) _bazel__expand_target_pattern "$workspace" "$displacement" \ "$current" "$type" ;; info-key) compgen -S " " -W "${BAZEL_INFO_KEYS}" -- "$current" ;; "command") local commands=$(echo "${BAZEL_COMMAND_LIST}" \ | tr " " "\n" | "grep" -v "^${BAZEL_IGNORED_COMMAND_REGEX}$") compgen -S " " -W "${commands}" -- "$current" ;; path) compgen -f -- "$current" ;; *) compgen -S " " -W "$type" -- "$current" ;; esac done } # Usage: _bazel__expand_options <workspace> <displacement> <current-word> # <options> # # Expands options, making sure that if current-word contains an equals sign, # it is handled appropriately. _bazel__expand_options() { local workspace="$1" displacement="$2" cur="$3" options="$4" if [[ $cur =~ = ]]; then # also expands special labels current=$(echo "$cur" | cut -f2 -d=) _bazel__complete_pattern "$workspace" "$displacement" "$current" \ "$(compgen -W "$options" -- "$cur" | cut -f2 -d=)" \ | sort -u else compgen -W "$(echo "$options" | sed 's|=.*$|=|')" -- "$cur" \ | sed 's|\([^=]\)$|\1 |' fi } # Usage: _bazel__abspath <file> # # # Returns the absolute path to a file _bazel__abspath() { echo "$(cd "$(dirname "$1")"; pwd)/$(basename "$1")" } # Usage: _bazel__rc_imports <workspace> <rc-file> # # # Returns the list of other RC imported (or try-imported) by a given RC file # Only return files we can actually find, and only return absolute paths _bazel__rc_imports() { local workspace="$1" rc_dir rc_file="$2" import_files rc_dir=$(dirname $rc_file) import_files=$(cat $rc_file \ | sed 's/#.*//' \ | sed -E "/^(try-){0,1}import/!d" \ | sed -E "s/^(try-){0,1}import ([^ ]*).*$/\2/" \ | sort -u) local confirmed_import_files=() for import in $import_files; do # rc imports can use %workspace% to refer to the workspace, and we need to substitute that here import=${import//\%workspace\%/$workspace} if [[ "${import:0:1}" != "/" ]] ; then import="$rc_dir/$import" fi import=$(_bazel__abspath $import) # Don't bother dealing with it further if we can't find it if [ -f "$import" ] ; then confirmed_import_files+=($import) fi done echo "${confirmed_import_files[@]}" } # Usage: _bazel__rc_expand_imports <workspace> <processed-rc-files ...> __new__ <new-rc-files ...> # # # Function that receives a workspace and two lists. The first list is a list of RC files that have # already been processed, and the second list contains new RC files that need processing. Each new file will be # processed for "{try-}import" lines to discover more RC files that need parsing. # Any lines we find in "{try-}import" will be checked against known files (and not processed again if known). _bazel__rc_expand_imports() { local workspace="$1" rc_file new_found="no" processed_files=() to_process_files=() discovered_files=() # We've consumed workspace shift # Now grab everything else local all_files=($@) for rc_file in ${all_files[@]} ; do if [ "$rc_file" == "__new__" ] ; then new_found="yes" continue elif [ "$new_found" == "no" ] ; then processed_files+=($rc_file) else to_process_files+=($rc_file) fi done # For all the non-processed files, get the list of imports out of each of those files for rc_file in "${to_process_files[@]}"; do local potential_new_files+=($(_bazel__rc_imports "$workspace" "$rc_file")) processed_files+=($rc_file) for potential_new_file in ${potential_new_files[@]} ; do if [[ ! " ${processed_files[@]} " =~ " ${potential_new_file} " ]] ; then discovered_files+=($potential_new_file) fi done done # Finally, return two lists (separated by __new__) of the files that have been fully processed, and # the files that need processing. echo "${processed_files[@]}" "__new__" "${discovered_files[@]}" } # Usage: _bazel__rc_files <workspace> # # # Returns the list of RC files to examine, given the current command-line args. _bazel__rc_files() { local workspace="$1" new_files=() processed_files=() # Handle the workspace RC unless --noworkspace_rc says not to. if [[ ! "${COMP_LINE}" =~ "--noworkspace_rc" ]]; then local workspacerc="$workspace/.bazelrc" if [ -f "$workspacerc" ] ; then new_files+=($(_bazel__abspath $workspacerc)) fi fi # Handle the $HOME RC unless --nohome_rc says not to. if [[ ! "${COMP_LINE}" =~ "--nohome_rc" ]]; then local homerc="$HOME/.bazelrc" if [ -f "$homerc" ] ; then new_files+=($(_bazel__abspath $homerc)) fi fi # Handle the system level RC unless --nosystem_rc says not to. if [[ ! "${COMP_LINE}" =~ "--nosystem_rc" ]]; then local systemrc="/etc/bazel.bazelrc" if [ -f "$systemrc" ] ; then new_files+=($(_bazel__abspath $systemrc)) fi fi # Finally, if the user specified any on the command-line, then grab those # keeping in mind that there may be several. if [[ "${COMP_LINE}" =~ "--bazelrc=" ]]; then # There's got to be a better way to do this, but... it gets the job done, # even if there are multiple --bazelrc on the command line. The sed command # SHOULD be simpler, but capturing several instances of the same pattern # from the same line is tricky because of the greedy nature of .* # Instead we transform it to multiple lines, and then back. local cmdlnrcs=$(echo ${COMP_LINE} | sed -E "s/--bazelrc=/\n--bazelrc=/g" | sed -E "/--bazelrc/!d;s/^--bazelrc=([^ ]*).*$/\1/g" | tr "\n" " ") for rc_file in $cmdlnrcs; do if [ -f "$rc_file" ] ; then new_files+=($(_bazel__abspath $rc_file)) fi done fi # Each time we call _bazel__rc_expand_imports, it may find new files which then need to be expanded as well, # so we loop until we've processed all new files. while (( ${#new_files[@]} > 0 )) ; do local all_files=($(_bazel__rc_expand_imports "$workspace" "${processed_files[@]}" "__new__" "${new_files[@]}")) local new_found="no" new_files=() processed_files=() for file in ${all_files[@]} ; do if [ "$file" == "__new__" ] ; then new_found="yes" continue elif [ "$new_found" == "no" ] ; then processed_files+=($file) else new_files+=($file) fi done done echo "${processed_files[@]}" } # Usage: _bazel__all_configs <workspace> <command> # # # Gets contents of all RC files and searches them for config names # that could be used for expansion. _bazel__all_configs() { local workspace="$1" command="$2" rc_files # Start out getting a list of all RC files that we can look for configs in # This respects the various command line options documented at # https://docs.bazel.build/versions/2.0.0/guide.html#bazelrc rc_files=$(_bazel__rc_files "$workspace") # Commands can inherit configs from other commands, so build up command_match, which is # a match list of the various commands that we can match against, given the command # specified by the user local build_inherit=("aquery" "clean" "coverage" "cquery" "info" "mobile-install" "print_action" "run" "test") local test_inherit=("coverage") local command_match="$command" if [[ "${build_inherit[@]}" =~ "$command" ]]; then command_match="$command_match|build" fi if [[ "${test_inherit[@]}" =~ "$command" ]]; then command_match="$command_match|test" fi # The following commands do respectively: # Gets the contents of all relevant/allowed RC files # Remove file comments # Filter only the configs relevant to the current command # Extract the config names # Filters out redundant names and returns the results cat $rc_files \ | sed 's/#.*//' \ | sed -E "/^($command_match):/!d" \ | sed -E "s/^($command_match):([^ ]*).*$/\2/" \ | sort -u } # Usage: _bazel__expand_config <workspace> <command> <current-word> # # # Expands configs, checking through the allowed rc files and parsing for configs # relevant to the current command _bazel__expand_config() { local workspace="$1" command="$2" cur="$3" rc_files all_configs all_configs=$(_bazel__all_configs "$workspace" "$command") compgen -S " " -W "$all_configs" -- "$cur" } _bazel__complete_stdout() { local cur=$(_bazel__get_cword) word command displacement workspace # Determine command: "" (startup-options) or one of $BAZEL_COMMAND_LIST. command="$(_bazel__get_command)" workspace="$(_bazel__get_workspace_path)" displacement="$(_bazel__get_displacement ${workspace})" case "$command" in "") # Expand startup-options or commands local commands=$(echo "${BAZEL_COMMAND_LIST}" \ | tr " " "\n" | "grep" -v "^${BAZEL_IGNORED_COMMAND_REGEX}$") _bazel__expand_options "$workspace" "$displacement" "$cur" \ "${commands}\ ${BAZEL_STARTUP_OPTIONS}" ;; *) case "$cur" in --config=*) # Expand options: _bazel__expand_config "$workspace" "$command" "${cur#"--config="}" ;; -*) # Expand options: _bazel__expand_options "$workspace" "$displacement" "$cur" \ "$(_bazel__options_for $command)" ;; *) # Expand target pattern expansion_pattern="$(_bazel__expansion_for $command)" NON_QUOTE_REGEX="^[\"']" if [[ $command = query && $cur =~ $NON_QUOTE_REGEX ]]; then : # Ideally we would expand query expressions---it's not # that hard, conceptually---but readline is just too # damn complex when it comes to quotation. Instead, # for query, we just expand target patterns, unless # the first char is a quote. elif [ -n "$expansion_pattern" ]; then _bazel__complete_pattern \ "$workspace" "$displacement" "$cur" "$expansion_pattern" fi ;; esac ;; esac } _bazel__to_compreply() { local replies="$1" COMPREPLY=() # Trick to preserve whitespaces while IFS="" read -r reply; do COMPREPLY+=("${reply}") done < <(echo "${replies}") # Null may be set despite there being no completions if [ ${#COMPREPLY[@]} -eq 1 ] && [ -z ${COMPREPLY[0]} ]; then COMPREPLY=() fi } _bazel__complete() { _bazel__to_compreply "$(_bazel__complete_stdout)" } # Some users have aliases such as bt="bazel test" or bb="bazel build", this # completion function allows them to have auto-completion for these aliases. _bazel__complete_target_stdout() { local cur=$(_bazel__get_cword) word command displacement workspace # Determine command: "" (startup-options) or one of $BAZEL_COMMAND_LIST. command="$1" workspace="$(_bazel__get_workspace_path)" displacement="$(_bazel__get_displacement ${workspace})" _bazel__to_compreply "$(_bazel__expand_target_pattern "$workspace" "$displacement" \ "$cur" "$(_bazel__expansion_for $command)")" } # default completion for bazel complete -F _bazel__complete -o nospace "${BAZEL}" complete -F _bazel__complete -o nospace "${IBAZEL}" BAZEL_COMMAND_LIST="analyze-profile aquery build canonicalize-flags clean config coverage cquery dump fetch help info license mobile-install print_action query run shutdown sync test version" BAZEL_INFO_KEYS=" workspace install_base output_base execution_root output_path client-env bazel-bin bazel-genfiles bazel-testlogs release server_pid server_log package_path used-heap-size used-heap-size-after-gc committed-heap-size max-heap-size gc-time gc-count java-runtime java-vm java-home character-encoding defaults-package build-language default-package-path starlark-semantics " BAZEL_STARTUP_OPTIONS=" --batch --nobatch --batch_cpu_scheduling --nobatch_cpu_scheduling --bazelrc= --block_for_lock --noblock_for_lock --client_debug --noclient_debug --connect_timeout_secs= --deep_execroot --nodeep_execroot --expand_configs_in_place --noexpand_configs_in_place --failure_detail_out=path --home_rc --nohome_rc --host_jvm_args= --host_jvm_debug --host_jvm_profile= --idle_server_tasks --noidle_server_tasks --ignore_all_rc_files --noignore_all_rc_files --incompatible_enable_execution_transition --noincompatible_enable_execution_transition --io_nice_level= --macos_qos_class= --max_idle_secs= --output_base=path --output_user_root=path --server_javabase= --server_jvm_out=path --shutdown_on_low_sys_mem --noshutdown_on_low_sys_mem --system_rc --nosystem_rc --unlimit_coredumps --nounlimit_coredumps --watchfs --nowatchfs --windows_enable_symlinks --nowindows_enable_symlinks --workspace_rc --noworkspace_rc " BAZEL_COMMAND_ANALYZE_PROFILE_ARGUMENT="path" BAZEL_COMMAND_ANALYZE_PROFILE_FLAGS=" --all_incompatible_changes --announce_rc --noannounce_rc --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_metadata= --color={yes,no,auto} --config= --curses={yes,no,auto} --distdir= --dump= --enable_platform_specific_config --noenable_platform_specific_config --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_disable_external_package --noexperimental_disable_external_package --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_oom_more_eagerly_threshold= --experimental_platforms_api --noexperimental_platforms_api --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_resolved_file_instead_of_workspace= --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_verify_repository_rules= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_workspace_rules_log_file=path --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --http_timeout_scaling= --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --json_trace_compression={auto,yes,no} --nojson_trace_compression --keep_state_after_build --nokeep_state_after_build --legacy_important_outputs --nolegacy_important_outputs --logging= --max_computation_steps= --memory_profile_stable_heap_parameters= --nested_set_depth_limit= --override_repository= --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --project_id= --repository_cache=path --show_progress --noshow_progress --show_progress_rate_limit= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --starlark_cpu_profile= --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --track_incremental_state --notrack_incremental_state --ui_actions_shown= --ui_event_filters= --watchfs --nowatchfs " BAZEL_COMMAND_AQUERY_ARGUMENT="label" BAZEL_COMMAND_AQUERY_FLAGS=" --action_env= --all_incompatible_changes --allow_analysis_failures --noallow_analysis_failures --analysis_testing_deps_limit= --android_compiler= --android_cpu= --android_crosstool_top=label --android_databinding_use_v3_4_args --noandroid_databinding_use_v3_4_args --android_dynamic_mode={off,default,fully} --android_grte_top=label --android_manifest_merger={legacy,android,force_android} --android_manifest_merger_order={alphabetical,alphabetical_by_configuration,dependency} --android_resource_shrinking --noandroid_resource_shrinking --android_sdk=label --announce --noannounce --announce_rc --noannounce_rc --apk_signing_method={v1,v2,v1_v2} --apple_bitcode= --apple_compiler= --apple_crosstool_top=label --apple_enable_auto_dsym_dbg --noapple_enable_auto_dsym_dbg --apple_generate_dsym --noapple_generate_dsym --apple_grte_top=label --apple_sdk=label --aspect_deps={off,conservative,precise} --aspects= --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --auto_cpu_environment_group=label --auto_output_filter={none,all,packages,subpackages} --bep_publish_used_heap_size_post_build --nobep_publish_used_heap_size_post_build --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --break_build_on_parallel_dex2oat_failure --nobreak_build_on_parallel_dex2oat_failure --build --nobuild --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_manual_tests --nobuild_manual_tests --build_metadata= --build_python_zip={auto,yes,no} --nobuild_python_zip --build_runfile_links --nobuild_runfile_links --build_runfile_manifests --nobuild_runfile_manifests --build_tag_filters= --build_test_dwp --nobuild_test_dwp --build_tests_only --nobuild_tests_only --cache_test_results={auto,yes,no} --nocache_test_results --catalyst_cpus= --cc_output_directory_tag= --cc_proto_library_header_suffixes= --cc_proto_library_source_suffixes= --check_constraint= --check_licenses --nocheck_licenses --check_tests_up_to_date --nocheck_tests_up_to_date --check_up_to_date --nocheck_up_to_date --check_visibility --nocheck_visibility --collapse_duplicate_defines --nocollapse_duplicate_defines --collect_code_coverage --nocollect_code_coverage --color={yes,no,auto} --combined_report={none,lcov} --compilation_mode={fastbuild,dbg,opt} --compile_one_dependency --nocompile_one_dependency --compiler= --config= --conlyopt= --copt= --coverage_report_generator=label --coverage_support=label --cpu= --crosstool_top=label --cs_fdo_absolute_path= --cs_fdo_instrument= --cs_fdo_profile=label --curses={yes,no,auto} --custom_malloc=label --cxxopt= --default_ios_provisioning_profile=label --define= --deleted_packages= --desugar_for_android --nodesugar_for_android --device_debug_entitlements --nodevice_debug_entitlements --discard_analysis_cache --nodiscard_analysis_cache --disk_cache=path --distdir= --distinct_host_configuration --nodistinct_host_configuration --dynamic_mode={off,default,fully} --embed_label= --enable_apple_binary_native_protos --noenable_apple_binary_native_protos --enable_fdo_profile_absolute_path --noenable_fdo_profile_absolute_path --enable_platform_specific_config --noenable_platform_specific_config --enable_runfiles={auto,yes,no} --noenable_runfiles --enforce_constraints --noenforce_constraints --execution_log_binary_file=path --execution_log_json_file=path --expand_test_suites --noexpand_test_suites --experimental_action_listener= --experimental_add_exec_constraints_to_targets= --experimental_allow_android_library_deps_without_srcs --noexperimental_allow_android_library_deps_without_srcs --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_android_compress_java_resources --noexperimental_android_compress_java_resources --experimental_android_databinding_v2 --noexperimental_android_databinding_v2 --experimental_android_resource_shrinking --noexperimental_android_resource_shrinking --experimental_android_rewrite_dexes_with_rex --noexperimental_android_rewrite_dexes_with_rex --experimental_android_use_parallel_dex2oat --noexperimental_android_use_parallel_dex2oat --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cancel_concurrent_tests --noexperimental_cancel_concurrent_tests --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_check_desugar_deps --noexperimental_check_desugar_deps --experimental_convenience_symlinks={normal,clean,ignore,log_only} --experimental_convenience_symlinks_bep_event --noexperimental_convenience_symlinks_bep_event --experimental_delay_virtual_input_materialization --noexperimental_delay_virtual_input_materialization --experimental_desugar_java8_libs --noexperimental_desugar_java8_libs --experimental_disable_external_package --noexperimental_disable_external_package --experimental_docker_image= --experimental_docker_privileged --noexperimental_docker_privileged --experimental_docker_use_customized_images --noexperimental_docker_use_customized_images --experimental_docker_verbose --noexperimental_docker_verbose --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_enable_docker_sandbox --noexperimental_enable_docker_sandbox --experimental_enable_flag_alias --noexperimental_enable_flag_alias --experimental_enable_objc_cc_deps --noexperimental_enable_objc_cc_deps --experimental_execution_log_file=path --experimental_extra_action_filter= --experimental_extra_action_top_level_only --noexperimental_extra_action_top_level_only --experimental_fetch_all_coverage_outputs --noexperimental_fetch_all_coverage_outputs --experimental_filter_library_jar_with_program_jar --noexperimental_filter_library_jar_with_program_jar --experimental_forward_instrumented_files_info_by_default --noexperimental_forward_instrumented_files_info_by_default --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_import_deps_checking={off,warning,error} --experimental_inmemory_dotd_files --noexperimental_inmemory_dotd_files --experimental_inmemory_jdeps_files --noexperimental_inmemory_jdeps_files --experimental_inprocess_symlink_creation --noexperimental_inprocess_symlink_creation --experimental_interleave_loading_and_analysis --noexperimental_interleave_loading_and_analysis --experimental_j2objc_header_map --noexperimental_j2objc_header_map --experimental_j2objc_shorter_header_path --noexperimental_j2objc_shorter_header_path --experimental_java_classpath={off,javabuilder,bazel} --experimental_java_proto_add_allowed_public_imports --noexperimental_java_proto_add_allowed_public_imports --experimental_local_execution_delay= --experimental_local_memory_estimate --noexperimental_local_memory_estimate --experimental_materialize_param_files_directly --noexperimental_materialize_param_files_directly --experimental_multi_cpu= --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_objc_enable_module_maps --noexperimental_objc_enable_module_maps --experimental_objc_fastbuild_options= --experimental_objc_include_scanning --noexperimental_objc_include_scanning --experimental_omitfp --noexperimental_omitfp --experimental_oom_more_eagerly_threshold= --experimental_persistent_javac --experimental_persistent_test_runner --noexperimental_persistent_test_runner --experimental_platforms_api --noexperimental_platforms_api --experimental_prefer_mutual_xcode --noexperimental_prefer_mutual_xcode --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_proto_descriptor_sets_include_source_info --noexperimental_proto_descriptor_sets_include_source_info --experimental_proto_extra_actions --noexperimental_proto_extra_actions --experimental_remotable_source_manifests --noexperimental_remotable_source_manifests --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_run_validations --noexperimental_run_validations --experimental_sandbox_async_tree_delete_idle_threads= --experimental_sandboxfs_map_symlink_targets --noexperimental_sandboxfs_map_symlink_targets --experimental_sandboxfs_path= --experimental_save_feature_state --noexperimental_save_feature_state --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_spawn_scheduler --experimental_split_xml_generation --noexperimental_split_xml_generation --experimental_starlark_cc_import --noexperimental_starlark_cc_import --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_strict_fileset_output --noexperimental_strict_fileset_output --experimental_strict_java_deps={off,warn,error,strict,default} --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_use_llvm_covmap --noexperimental_use_llvm_covmap --experimental_use_sandboxfs={auto,yes,no} --noexperimental_use_sandboxfs --experimental_use_windows_sandbox={auto,yes,no} --noexperimental_use_windows_sandbox --experimental_verify_repository_rules= --experimental_windows_sandbox_path= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_worker_max_multiplex_instances= --experimental_worker_multiplex --noexperimental_worker_multiplex --experimental_workspace_rules_log_file=path --explain=path --explicit_java_test_deps --noexplicit_java_test_deps --extra_execution_platforms= --extra_toolchains= --fat_apk_cpu= --fat_apk_hwasan --nofat_apk_hwasan --fdo_instrument= --fdo_optimize= --fdo_prefetch_hints=label --fdo_profile=label --features= --fission= --flag_alias= --flaky_test_attempts= --force_pic --noforce_pic --genrule_strategy= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --grte_top=label --high_priority_workers= --host_action_env= --host_compilation_mode={fastbuild,dbg,opt} --host_compiler= --host_conlyopt= --host_copt= --host_cpu= --host_crosstool_top=label --host_cxxopt= --host_force_python={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --host_grte_top=label --host_java_launcher=label --host_java_toolchain=label --host_javabase=label --host_javacopt= --host_linkopt= --host_platform=label --host_swiftcopt= --http_timeout_scaling= --ignore_unsupported_sandboxing --noignore_unsupported_sandboxing --implicit_deps --noimplicit_deps --include_artifacts --noinclude_artifacts --include_aspects --noinclude_aspects --include_commandline --noinclude_commandline --include_param_files --noinclude_param_files --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_avoid_conflict_dlls --noincompatible_avoid_conflict_dlls --incompatible_default_to_explicit_init_py --noincompatible_default_to_explicit_init_py --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_expand_if_all_available_in_flag_set --noincompatible_disable_expand_if_all_available_in_flag_set --incompatible_disable_native_android_rules --noincompatible_disable_native_android_rules --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_legacy_py_provider --noincompatible_disallow_legacy_py_provider --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_dont_enable_host_nonhost_crosstool_features --noincompatible_dont_enable_host_nonhost_crosstool_features --incompatible_enable_android_toolchain_resolution --noincompatible_enable_android_toolchain_resolution --incompatible_force_strict_header_check_from_starlark --noincompatible_force_strict_header_check_from_starlark --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_make_thinlto_command_lines_standalone --noincompatible_make_thinlto_command_lines_standalone --incompatible_merge_genfiles_directory --noincompatible_merge_genfiles_directory --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_compile_info_migration --noincompatible_objc_compile_info_migration --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prohibit_aapt1 --noincompatible_prohibit_aapt1 --incompatible_proto_output_v2 --noincompatible_proto_output_v2 --incompatible_py2_outputs_are_suffixed --noincompatible_py2_outputs_are_suffixed --incompatible_py3_is_default --noincompatible_py3_is_default --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --noincompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --incompatible_remove_legacy_whole_archive --noincompatible_remove_legacy_whole_archive --incompatible_remove_local_resources --noincompatible_remove_local_resources --incompatible_require_ctx_in_configure_features --noincompatible_require_ctx_in_configure_features --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_strict_action_env --noincompatible_strict_action_env --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_use_platforms_repo_for_constraints --noincompatible_use_platforms_repo_for_constraints --incompatible_use_python_toolchains --noincompatible_use_python_toolchains --incompatible_validate_top_level_header_inclusions --noincompatible_validate_top_level_header_inclusions --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --incremental_dexing --noincremental_dexing --infer_universe_scope --noinfer_universe_scope --instrument_test_targets --noinstrument_test_targets --instrumentation_filter= --interface_shared_objects --nointerface_shared_objects --ios_cpu= --ios_memleaks --noios_memleaks --ios_minimum_os= --ios_multi_cpus= --ios_sdk_version= --ios_signing_cert_name= --ios_simulator_device= --ios_simulator_version= --j2objc_translation_flags= --java_debug --java_deps --nojava_deps --java_header_compilation --nojava_header_compilation --java_launcher=label --java_toolchain=label --javabase=label --javacopt= --jobs= --json_trace_compression={auto,yes,no} --nojson_trace_compression --jvmopt= --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_external_runfiles --nolegacy_external_runfiles --legacy_important_outputs --nolegacy_important_outputs --legacy_main_dex_list_generator=label --legacy_whole_archive --nolegacy_whole_archive --linkopt= --loading_phase_threads= --local_cpu_resources= --local_ram_resources= --local_resources= --local_termination_grace_seconds= --local_test_jobs= --logging= --ltobackendopt= --ltoindexopt= --macos_cpus= --macos_minimum_os= --macos_sdk_version= --materialize_param_files --nomaterialize_param_files --max_computation_steps= --max_config_changes_to_show= --max_test_output_bytes= --memory_profile_stable_heap_parameters= --message_translations= --minimum_os_version= --modify_execution_info= --nested_set_depth_limit= --nodep_deps --nonodep_deps --objc_debug_with_GLIBCXX --noobjc_debug_with_GLIBCXX --objc_enable_binary_stripping --noobjc_enable_binary_stripping --objc_generate_linkmap --noobjc_generate_linkmap --objc_use_dotd_pruning --noobjc_use_dotd_pruning --objccopt= --output= --output_filter= --output_groups= --override_repository= --package_path= --parse_headers_verifies_modules --noparse_headers_verifies_modules --per_file_copt= --per_file_ltobackendopt= --persistent_android_resource_processor --platform_mappings=path --platform_suffix= --platforms= --plugin= --process_headers_in_dependencies --noprocess_headers_in_dependencies --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --progress_report_interval= --proguard_top=label --project_id= --propeller_optimize=label --proto:default_values --noproto:default_values --proto:definition_stack --noproto:definition_stack --proto:flatten_selects --noproto:flatten_selects --proto:include_synthetic_attribute_hash --noproto:include_synthetic_attribute_hash --proto:instantiation_stack --noproto:instantiation_stack --proto:locations --noproto:locations --proto:output_rule_attrs= --proto:rule_inputs_and_outputs --noproto:rule_inputs_and_outputs --proto_compiler=label --proto_toolchain_for_cc=label --proto_toolchain_for_j2objc=label --proto_toolchain_for_java=label --proto_toolchain_for_javalite=label --protocopt= --python2_path= --python3_path= --python_path= --python_top=label --python_version={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --relative_locations --norelative_locations --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repo_env= --repository_cache=path --run_under= --runs_per_test= --runs_per_test_detects_flakes --noruns_per_test_detects_flakes --sandbox_add_mount_pair= --sandbox_base= --sandbox_block_path= --sandbox_debug --nosandbox_debug --sandbox_default_allow_network --nosandbox_default_allow_network --sandbox_fake_hostname --nosandbox_fake_hostname --sandbox_fake_username --nosandbox_fake_username --sandbox_tmpfs_path= --sandbox_writable_path= --save_temps --nosave_temps --share_native_deps --noshare_native_deps --shell_executable=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_result= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --skyframe_state --noskyframe_state --slim_profile --noslim_profile --spawn_strategy= --stamp --nostamp --starlark_cpu_profile= --strategy= --strategy_regexp= --strict_filesets --nostrict_filesets --strict_proto_deps={off,warn,error,strict,default} --strict_system_includes --nostrict_system_includes --strip={always,sometimes,never} --stripopt= --subcommands={true,pretty_print,false} --swiftcopt= --symlink_prefix= --target_environment= --target_pattern_file= --target_platform_fallback=label --test_arg= --test_env= --test_filter= --test_keep_going --notest_keep_going --test_lang_filters= --test_output={summary,errors,all,streamed} --test_result_expiration= --test_runner_fail_fast --notest_runner_fail_fast --test_sharding_strategy={explicit,disabled} --test_size_filters= --test_strategy= --test_summary={short,terse,detailed,none,testcase} --test_tag_filters= --test_timeout= --test_timeout_filters= --test_tmpdir=path --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_deps --notool_deps --tool_tag= --toolchain_resolution_debug --notoolchain_resolution_debug --track_incremental_state --notrack_incremental_state --translations={auto,yes,no} --notranslations --trim_test_configuration --notrim_test_configuration --tvos_cpus= --tvos_minimum_os= --tvos_sdk_version= --tvos_simulator_device= --tvos_simulator_version= --ui_actions_shown= --ui_event_filters= --universe_scope= --use_ijars --nouse_ijars --use_singlejar_apkbuilder --nouse_singlejar_apkbuilder --verbose_explanations --noverbose_explanations --verbose_failures --noverbose_failures --watchfs --nowatchfs --watchos_cpus= --watchos_minimum_os= --watchos_sdk_version= --watchos_simulator_device= --watchos_simulator_version= --worker_extra_flag= --worker_max_instances= --worker_quit_after_build --noworker_quit_after_build --worker_sandboxing --noworker_sandboxing --worker_verbose --noworker_verbose --workspace_status_command=path --xbinary_fdo=label --xcode_version= --xcode_version_config=label " BAZEL_COMMAND_BUILD_ARGUMENT="label" BAZEL_COMMAND_BUILD_FLAGS=" --action_env= --all_incompatible_changes --allow_analysis_failures --noallow_analysis_failures --analysis_testing_deps_limit= --android_compiler= --android_cpu= --android_crosstool_top=label --android_databinding_use_v3_4_args --noandroid_databinding_use_v3_4_args --android_dynamic_mode={off,default,fully} --android_grte_top=label --android_manifest_merger={legacy,android,force_android} --android_manifest_merger_order={alphabetical,alphabetical_by_configuration,dependency} --android_resource_shrinking --noandroid_resource_shrinking --android_sdk=label --announce --noannounce --announce_rc --noannounce_rc --apk_signing_method={v1,v2,v1_v2} --apple_bitcode= --apple_compiler= --apple_crosstool_top=label --apple_enable_auto_dsym_dbg --noapple_enable_auto_dsym_dbg --apple_generate_dsym --noapple_generate_dsym --apple_grte_top=label --apple_sdk=label --aspects= --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --auto_cpu_environment_group=label --auto_output_filter={none,all,packages,subpackages} --bep_publish_used_heap_size_post_build --nobep_publish_used_heap_size_post_build --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --break_build_on_parallel_dex2oat_failure --nobreak_build_on_parallel_dex2oat_failure --build --nobuild --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_manual_tests --nobuild_manual_tests --build_metadata= --build_python_zip={auto,yes,no} --nobuild_python_zip --build_runfile_links --nobuild_runfile_links --build_runfile_manifests --nobuild_runfile_manifests --build_tag_filters= --build_test_dwp --nobuild_test_dwp --build_tests_only --nobuild_tests_only --cache_test_results={auto,yes,no} --nocache_test_results --catalyst_cpus= --cc_output_directory_tag= --cc_proto_library_header_suffixes= --cc_proto_library_source_suffixes= --check_constraint= --check_licenses --nocheck_licenses --check_tests_up_to_date --nocheck_tests_up_to_date --check_up_to_date --nocheck_up_to_date --check_visibility --nocheck_visibility --collapse_duplicate_defines --nocollapse_duplicate_defines --collect_code_coverage --nocollect_code_coverage --color={yes,no,auto} --combined_report={none,lcov} --compilation_mode={fastbuild,dbg,opt} --compile_one_dependency --nocompile_one_dependency --compiler= --config= --conlyopt= --copt= --coverage_report_generator=label --coverage_support=label --cpu= --crosstool_top=label --cs_fdo_absolute_path= --cs_fdo_instrument= --cs_fdo_profile=label --curses={yes,no,auto} --custom_malloc=label --cxxopt= --default_ios_provisioning_profile=label --define= --deleted_packages= --desugar_for_android --nodesugar_for_android --device_debug_entitlements --nodevice_debug_entitlements --discard_analysis_cache --nodiscard_analysis_cache --disk_cache=path --distdir= --distinct_host_configuration --nodistinct_host_configuration --dynamic_mode={off,default,fully} --embed_label= --enable_apple_binary_native_protos --noenable_apple_binary_native_protos --enable_fdo_profile_absolute_path --noenable_fdo_profile_absolute_path --enable_platform_specific_config --noenable_platform_specific_config --enable_runfiles={auto,yes,no} --noenable_runfiles --enforce_constraints --noenforce_constraints --execution_log_binary_file=path --execution_log_json_file=path --expand_test_suites --noexpand_test_suites --experimental_action_listener= --experimental_add_exec_constraints_to_targets= --experimental_allow_android_library_deps_without_srcs --noexperimental_allow_android_library_deps_without_srcs --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_android_compress_java_resources --noexperimental_android_compress_java_resources --experimental_android_databinding_v2 --noexperimental_android_databinding_v2 --experimental_android_resource_shrinking --noexperimental_android_resource_shrinking --experimental_android_rewrite_dexes_with_rex --noexperimental_android_rewrite_dexes_with_rex --experimental_android_use_parallel_dex2oat --noexperimental_android_use_parallel_dex2oat --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cancel_concurrent_tests --noexperimental_cancel_concurrent_tests --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_check_desugar_deps --noexperimental_check_desugar_deps --experimental_convenience_symlinks={normal,clean,ignore,log_only} --experimental_convenience_symlinks_bep_event --noexperimental_convenience_symlinks_bep_event --experimental_delay_virtual_input_materialization --noexperimental_delay_virtual_input_materialization --experimental_desugar_java8_libs --noexperimental_desugar_java8_libs --experimental_disable_external_package --noexperimental_disable_external_package --experimental_docker_image= --experimental_docker_privileged --noexperimental_docker_privileged --experimental_docker_use_customized_images --noexperimental_docker_use_customized_images --experimental_docker_verbose --noexperimental_docker_verbose --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_enable_docker_sandbox --noexperimental_enable_docker_sandbox --experimental_enable_flag_alias --noexperimental_enable_flag_alias --experimental_enable_objc_cc_deps --noexperimental_enable_objc_cc_deps --experimental_execution_log_file=path --experimental_extra_action_filter= --experimental_extra_action_top_level_only --noexperimental_extra_action_top_level_only --experimental_fetch_all_coverage_outputs --noexperimental_fetch_all_coverage_outputs --experimental_filter_library_jar_with_program_jar --noexperimental_filter_library_jar_with_program_jar --experimental_forward_instrumented_files_info_by_default --noexperimental_forward_instrumented_files_info_by_default --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_import_deps_checking={off,warning,error} --experimental_inmemory_dotd_files --noexperimental_inmemory_dotd_files --experimental_inmemory_jdeps_files --noexperimental_inmemory_jdeps_files --experimental_inprocess_symlink_creation --noexperimental_inprocess_symlink_creation --experimental_interleave_loading_and_analysis --noexperimental_interleave_loading_and_analysis --experimental_j2objc_header_map --noexperimental_j2objc_header_map --experimental_j2objc_shorter_header_path --noexperimental_j2objc_shorter_header_path --experimental_java_classpath={off,javabuilder,bazel} --experimental_java_proto_add_allowed_public_imports --noexperimental_java_proto_add_allowed_public_imports --experimental_local_execution_delay= --experimental_local_memory_estimate --noexperimental_local_memory_estimate --experimental_materialize_param_files_directly --noexperimental_materialize_param_files_directly --experimental_multi_cpu= --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_objc_enable_module_maps --noexperimental_objc_enable_module_maps --experimental_objc_fastbuild_options= --experimental_objc_include_scanning --noexperimental_objc_include_scanning --experimental_omitfp --noexperimental_omitfp --experimental_oom_more_eagerly_threshold= --experimental_persistent_javac --experimental_persistent_test_runner --noexperimental_persistent_test_runner --experimental_platforms_api --noexperimental_platforms_api --experimental_prefer_mutual_xcode --noexperimental_prefer_mutual_xcode --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_proto_descriptor_sets_include_source_info --noexperimental_proto_descriptor_sets_include_source_info --experimental_proto_extra_actions --noexperimental_proto_extra_actions --experimental_remotable_source_manifests --noexperimental_remotable_source_manifests --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_run_validations --noexperimental_run_validations --experimental_sandbox_async_tree_delete_idle_threads= --experimental_sandboxfs_map_symlink_targets --noexperimental_sandboxfs_map_symlink_targets --experimental_sandboxfs_path= --experimental_save_feature_state --noexperimental_save_feature_state --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_spawn_scheduler --experimental_split_xml_generation --noexperimental_split_xml_generation --experimental_starlark_cc_import --noexperimental_starlark_cc_import --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_strict_fileset_output --noexperimental_strict_fileset_output --experimental_strict_java_deps={off,warn,error,strict,default} --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_use_llvm_covmap --noexperimental_use_llvm_covmap --experimental_use_sandboxfs={auto,yes,no} --noexperimental_use_sandboxfs --experimental_use_windows_sandbox={auto,yes,no} --noexperimental_use_windows_sandbox --experimental_verify_repository_rules= --experimental_windows_sandbox_path= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_worker_max_multiplex_instances= --experimental_worker_multiplex --noexperimental_worker_multiplex --experimental_workspace_rules_log_file=path --explain=path --explicit_java_test_deps --noexplicit_java_test_deps --extra_execution_platforms= --extra_toolchains= --fat_apk_cpu= --fat_apk_hwasan --nofat_apk_hwasan --fdo_instrument= --fdo_optimize= --fdo_prefetch_hints=label --fdo_profile=label --features= --fission= --flag_alias= --flaky_test_attempts= --force_pic --noforce_pic --genrule_strategy= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --grte_top=label --high_priority_workers= --host_action_env= --host_compilation_mode={fastbuild,dbg,opt} --host_compiler= --host_conlyopt= --host_copt= --host_cpu= --host_crosstool_top=label --host_cxxopt= --host_force_python={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --host_grte_top=label --host_java_launcher=label --host_java_toolchain=label --host_javabase=label --host_javacopt= --host_linkopt= --host_platform=label --host_swiftcopt= --http_timeout_scaling= --ignore_unsupported_sandboxing --noignore_unsupported_sandboxing --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_avoid_conflict_dlls --noincompatible_avoid_conflict_dlls --incompatible_default_to_explicit_init_py --noincompatible_default_to_explicit_init_py --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_expand_if_all_available_in_flag_set --noincompatible_disable_expand_if_all_available_in_flag_set --incompatible_disable_native_android_rules --noincompatible_disable_native_android_rules --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_legacy_py_provider --noincompatible_disallow_legacy_py_provider --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_dont_enable_host_nonhost_crosstool_features --noincompatible_dont_enable_host_nonhost_crosstool_features --incompatible_enable_android_toolchain_resolution --noincompatible_enable_android_toolchain_resolution --incompatible_force_strict_header_check_from_starlark --noincompatible_force_strict_header_check_from_starlark --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_make_thinlto_command_lines_standalone --noincompatible_make_thinlto_command_lines_standalone --incompatible_merge_genfiles_directory --noincompatible_merge_genfiles_directory --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_compile_info_migration --noincompatible_objc_compile_info_migration --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prohibit_aapt1 --noincompatible_prohibit_aapt1 --incompatible_py2_outputs_are_suffixed --noincompatible_py2_outputs_are_suffixed --incompatible_py3_is_default --noincompatible_py3_is_default --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --noincompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --incompatible_remove_legacy_whole_archive --noincompatible_remove_legacy_whole_archive --incompatible_remove_local_resources --noincompatible_remove_local_resources --incompatible_require_ctx_in_configure_features --noincompatible_require_ctx_in_configure_features --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_strict_action_env --noincompatible_strict_action_env --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_use_platforms_repo_for_constraints --noincompatible_use_platforms_repo_for_constraints --incompatible_use_python_toolchains --noincompatible_use_python_toolchains --incompatible_validate_top_level_header_inclusions --noincompatible_validate_top_level_header_inclusions --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --incremental_dexing --noincremental_dexing --instrument_test_targets --noinstrument_test_targets --instrumentation_filter= --interface_shared_objects --nointerface_shared_objects --ios_cpu= --ios_memleaks --noios_memleaks --ios_minimum_os= --ios_multi_cpus= --ios_sdk_version= --ios_signing_cert_name= --ios_simulator_device= --ios_simulator_version= --j2objc_translation_flags= --java_debug --java_deps --nojava_deps --java_header_compilation --nojava_header_compilation --java_launcher=label --java_toolchain=label --javabase=label --javacopt= --jobs= --json_trace_compression={auto,yes,no} --nojson_trace_compression --jvmopt= --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_external_runfiles --nolegacy_external_runfiles --legacy_important_outputs --nolegacy_important_outputs --legacy_main_dex_list_generator=label --legacy_whole_archive --nolegacy_whole_archive --linkopt= --loading_phase_threads= --local_cpu_resources= --local_ram_resources= --local_resources= --local_termination_grace_seconds= --local_test_jobs= --logging= --ltobackendopt= --ltoindexopt= --macos_cpus= --macos_minimum_os= --macos_sdk_version= --materialize_param_files --nomaterialize_param_files --max_computation_steps= --max_config_changes_to_show= --max_test_output_bytes= --memory_profile_stable_heap_parameters= --message_translations= --minimum_os_version= --modify_execution_info= --nested_set_depth_limit= --objc_debug_with_GLIBCXX --noobjc_debug_with_GLIBCXX --objc_enable_binary_stripping --noobjc_enable_binary_stripping --objc_generate_linkmap --noobjc_generate_linkmap --objc_use_dotd_pruning --noobjc_use_dotd_pruning --objccopt= --output_filter= --output_groups= --override_repository= --package_path= --parse_headers_verifies_modules --noparse_headers_verifies_modules --per_file_copt= --per_file_ltobackendopt= --persistent_android_resource_processor --platform_mappings=path --platform_suffix= --platforms= --plugin= --process_headers_in_dependencies --noprocess_headers_in_dependencies --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --progress_report_interval= --proguard_top=label --project_id= --propeller_optimize=label --proto_compiler=label --proto_toolchain_for_cc=label --proto_toolchain_for_j2objc=label --proto_toolchain_for_java=label --proto_toolchain_for_javalite=label --protocopt= --python2_path= --python3_path= --python_path= --python_top=label --python_version={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repo_env= --repository_cache=path --run_under= --runs_per_test= --runs_per_test_detects_flakes --noruns_per_test_detects_flakes --sandbox_add_mount_pair= --sandbox_base= --sandbox_block_path= --sandbox_debug --nosandbox_debug --sandbox_default_allow_network --nosandbox_default_allow_network --sandbox_fake_hostname --nosandbox_fake_hostname --sandbox_fake_username --nosandbox_fake_username --sandbox_tmpfs_path= --sandbox_writable_path= --save_temps --nosave_temps --share_native_deps --noshare_native_deps --shell_executable=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_result= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --spawn_strategy= --stamp --nostamp --starlark_cpu_profile= --strategy= --strategy_regexp= --strict_filesets --nostrict_filesets --strict_proto_deps={off,warn,error,strict,default} --strict_system_includes --nostrict_system_includes --strip={always,sometimes,never} --stripopt= --subcommands={true,pretty_print,false} --swiftcopt= --symlink_prefix= --target_environment= --target_pattern_file= --target_platform_fallback=label --test_arg= --test_env= --test_filter= --test_keep_going --notest_keep_going --test_lang_filters= --test_output={summary,errors,all,streamed} --test_result_expiration= --test_runner_fail_fast --notest_runner_fail_fast --test_sharding_strategy={explicit,disabled} --test_size_filters= --test_strategy= --test_summary={short,terse,detailed,none,testcase} --test_tag_filters= --test_timeout= --test_timeout_filters= --test_tmpdir=path --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --toolchain_resolution_debug --notoolchain_resolution_debug --track_incremental_state --notrack_incremental_state --translations={auto,yes,no} --notranslations --trim_test_configuration --notrim_test_configuration --tvos_cpus= --tvos_minimum_os= --tvos_sdk_version= --tvos_simulator_device= --tvos_simulator_version= --ui_actions_shown= --ui_event_filters= --use_ijars --nouse_ijars --use_singlejar_apkbuilder --nouse_singlejar_apkbuilder --verbose_explanations --noverbose_explanations --verbose_failures --noverbose_failures --watchfs --nowatchfs --watchos_cpus= --watchos_minimum_os= --watchos_sdk_version= --watchos_simulator_device= --watchos_simulator_version= --worker_extra_flag= --worker_max_instances= --worker_quit_after_build --noworker_quit_after_build --worker_sandboxing --noworker_sandboxing --worker_verbose --noworker_verbose --workspace_status_command=path --xbinary_fdo=label --xcode_version= --xcode_version_config=label " BAZEL_COMMAND_CANONICALIZE_FLAGS_FLAGS=" --all_incompatible_changes --announce_rc --noannounce_rc --aspect_deps={off,conservative,precise} --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_metadata= --canonicalize_policy --nocanonicalize_policy --color={yes,no,auto} --config= --curses={yes,no,auto} --deleted_packages= --disk_cache=path --distdir= --enable_platform_specific_config --noenable_platform_specific_config --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_disable_external_package --noexperimental_disable_external_package --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_graphless_genquery_force_sort --noexperimental_graphless_genquery_force_sort --experimental_graphless_query={auto,yes,no} --noexperimental_graphless_query --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_oom_more_eagerly_threshold= --experimental_platforms_api --noexperimental_platforms_api --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_verify_repository_rules= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_workspace_rules_log_file=path --for_command= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --graph:conditional_edges_limit= --graph:factored --nograph:factored --graph:node_limit= --grpc_keepalive_time= --grpc_keepalive_timeout= --http_timeout_scaling= --implicit_deps --noimplicit_deps --include_aspects --noinclude_aspects --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prefer_unordered_output --noincompatible_prefer_unordered_output --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --infer_universe_scope --noinfer_universe_scope --invocation_policy= --json_trace_compression={auto,yes,no} --nojson_trace_compression --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_important_outputs --nolegacy_important_outputs --line_terminator_null --noline_terminator_null --loading_phase_threads= --logging= --max_computation_steps= --memory_profile_stable_heap_parameters= --nested_set_depth_limit= --nodep_deps --nonodep_deps --noorder_results --null --order_output={no,deps,auto,full} --order_results --output= --override_repository= --package_path= --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --project_id= --proto:default_values --noproto:default_values --proto:definition_stack --noproto:definition_stack --proto:flatten_selects --noproto:flatten_selects --proto:include_synthetic_attribute_hash --noproto:include_synthetic_attribute_hash --proto:instantiation_stack --noproto:instantiation_stack --proto:locations --noproto:locations --proto:output_rule_attrs= --proto:rule_inputs_and_outputs --noproto:rule_inputs_and_outputs --query_file= --relative_locations --norelative_locations --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repository_cache=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --show_warnings --noshow_warnings --slim_profile --noslim_profile --starlark_cpu_profile= --strict_test_suite --nostrict_test_suite --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_deps --notool_deps --tool_tag= --track_incremental_state --notrack_incremental_state --ui_actions_shown= --ui_event_filters= --universe_scope= --watchfs --nowatchfs --xml:default_values --noxml:default_values --xml:line_numbers --noxml:line_numbers " BAZEL_COMMAND_CLEAN_FLAGS=" --action_env= --all_incompatible_changes --allow_analysis_failures --noallow_analysis_failures --analysis_testing_deps_limit= --android_compiler= --android_cpu= --android_crosstool_top=label --android_databinding_use_v3_4_args --noandroid_databinding_use_v3_4_args --android_dynamic_mode={off,default,fully} --android_grte_top=label --android_manifest_merger={legacy,android,force_android} --android_manifest_merger_order={alphabetical,alphabetical_by_configuration,dependency} --android_resource_shrinking --noandroid_resource_shrinking --android_sdk=label --announce --noannounce --announce_rc --noannounce_rc --apk_signing_method={v1,v2,v1_v2} --apple_bitcode= --apple_compiler= --apple_crosstool_top=label --apple_enable_auto_dsym_dbg --noapple_enable_auto_dsym_dbg --apple_generate_dsym --noapple_generate_dsym --apple_grte_top=label --apple_sdk=label --aspects= --async --noasync --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --auto_cpu_environment_group=label --auto_output_filter={none,all,packages,subpackages} --bep_publish_used_heap_size_post_build --nobep_publish_used_heap_size_post_build --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --break_build_on_parallel_dex2oat_failure --nobreak_build_on_parallel_dex2oat_failure --build --nobuild --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_manual_tests --nobuild_manual_tests --build_metadata= --build_python_zip={auto,yes,no} --nobuild_python_zip --build_runfile_links --nobuild_runfile_links --build_runfile_manifests --nobuild_runfile_manifests --build_tag_filters= --build_test_dwp --nobuild_test_dwp --build_tests_only --nobuild_tests_only --cache_test_results={auto,yes,no} --nocache_test_results --catalyst_cpus= --cc_output_directory_tag= --cc_proto_library_header_suffixes= --cc_proto_library_source_suffixes= --check_constraint= --check_licenses --nocheck_licenses --check_tests_up_to_date --nocheck_tests_up_to_date --check_up_to_date --nocheck_up_to_date --check_visibility --nocheck_visibility --collapse_duplicate_defines --nocollapse_duplicate_defines --collect_code_coverage --nocollect_code_coverage --color={yes,no,auto} --combined_report={none,lcov} --compilation_mode={fastbuild,dbg,opt} --compile_one_dependency --nocompile_one_dependency --compiler= --config= --conlyopt= --copt= --coverage_report_generator=label --coverage_support=label --cpu= --crosstool_top=label --cs_fdo_absolute_path= --cs_fdo_instrument= --cs_fdo_profile=label --curses={yes,no,auto} --custom_malloc=label --cxxopt= --default_ios_provisioning_profile=label --define= --deleted_packages= --desugar_for_android --nodesugar_for_android --device_debug_entitlements --nodevice_debug_entitlements --discard_analysis_cache --nodiscard_analysis_cache --disk_cache=path --distdir= --distinct_host_configuration --nodistinct_host_configuration --dynamic_mode={off,default,fully} --embed_label= --enable_apple_binary_native_protos --noenable_apple_binary_native_protos --enable_fdo_profile_absolute_path --noenable_fdo_profile_absolute_path --enable_platform_specific_config --noenable_platform_specific_config --enable_runfiles={auto,yes,no} --noenable_runfiles --enforce_constraints --noenforce_constraints --execution_log_binary_file=path --execution_log_json_file=path --expand_test_suites --noexpand_test_suites --experimental_action_listener= --experimental_add_exec_constraints_to_targets= --experimental_allow_android_library_deps_without_srcs --noexperimental_allow_android_library_deps_without_srcs --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_android_compress_java_resources --noexperimental_android_compress_java_resources --experimental_android_databinding_v2 --noexperimental_android_databinding_v2 --experimental_android_resource_shrinking --noexperimental_android_resource_shrinking --experimental_android_rewrite_dexes_with_rex --noexperimental_android_rewrite_dexes_with_rex --experimental_android_use_parallel_dex2oat --noexperimental_android_use_parallel_dex2oat --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cancel_concurrent_tests --noexperimental_cancel_concurrent_tests --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_check_desugar_deps --noexperimental_check_desugar_deps --experimental_convenience_symlinks={normal,clean,ignore,log_only} --experimental_convenience_symlinks_bep_event --noexperimental_convenience_symlinks_bep_event --experimental_delay_virtual_input_materialization --noexperimental_delay_virtual_input_materialization --experimental_desugar_java8_libs --noexperimental_desugar_java8_libs --experimental_disable_external_package --noexperimental_disable_external_package --experimental_docker_image= --experimental_docker_privileged --noexperimental_docker_privileged --experimental_docker_use_customized_images --noexperimental_docker_use_customized_images --experimental_docker_verbose --noexperimental_docker_verbose --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_enable_docker_sandbox --noexperimental_enable_docker_sandbox --experimental_enable_flag_alias --noexperimental_enable_flag_alias --experimental_enable_objc_cc_deps --noexperimental_enable_objc_cc_deps --experimental_execution_log_file=path --experimental_extra_action_filter= --experimental_extra_action_top_level_only --noexperimental_extra_action_top_level_only --experimental_fetch_all_coverage_outputs --noexperimental_fetch_all_coverage_outputs --experimental_filter_library_jar_with_program_jar --noexperimental_filter_library_jar_with_program_jar --experimental_forward_instrumented_files_info_by_default --noexperimental_forward_instrumented_files_info_by_default --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_import_deps_checking={off,warning,error} --experimental_inmemory_dotd_files --noexperimental_inmemory_dotd_files --experimental_inmemory_jdeps_files --noexperimental_inmemory_jdeps_files --experimental_inprocess_symlink_creation --noexperimental_inprocess_symlink_creation --experimental_interleave_loading_and_analysis --noexperimental_interleave_loading_and_analysis --experimental_j2objc_header_map --noexperimental_j2objc_header_map --experimental_j2objc_shorter_header_path --noexperimental_j2objc_shorter_header_path --experimental_java_classpath={off,javabuilder,bazel} --experimental_java_proto_add_allowed_public_imports --noexperimental_java_proto_add_allowed_public_imports --experimental_local_execution_delay= --experimental_local_memory_estimate --noexperimental_local_memory_estimate --experimental_materialize_param_files_directly --noexperimental_materialize_param_files_directly --experimental_multi_cpu= --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_objc_enable_module_maps --noexperimental_objc_enable_module_maps --experimental_objc_fastbuild_options= --experimental_objc_include_scanning --noexperimental_objc_include_scanning --experimental_omitfp --noexperimental_omitfp --experimental_oom_more_eagerly_threshold= --experimental_persistent_javac --experimental_persistent_test_runner --noexperimental_persistent_test_runner --experimental_platforms_api --noexperimental_platforms_api --experimental_prefer_mutual_xcode --noexperimental_prefer_mutual_xcode --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_proto_descriptor_sets_include_source_info --noexperimental_proto_descriptor_sets_include_source_info --experimental_proto_extra_actions --noexperimental_proto_extra_actions --experimental_remotable_source_manifests --noexperimental_remotable_source_manifests --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_run_validations --noexperimental_run_validations --experimental_sandbox_async_tree_delete_idle_threads= --experimental_sandboxfs_map_symlink_targets --noexperimental_sandboxfs_map_symlink_targets --experimental_sandboxfs_path= --experimental_save_feature_state --noexperimental_save_feature_state --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_spawn_scheduler --experimental_split_xml_generation --noexperimental_split_xml_generation --experimental_starlark_cc_import --noexperimental_starlark_cc_import --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_strict_fileset_output --noexperimental_strict_fileset_output --experimental_strict_java_deps={off,warn,error,strict,default} --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_use_llvm_covmap --noexperimental_use_llvm_covmap --experimental_use_sandboxfs={auto,yes,no} --noexperimental_use_sandboxfs --experimental_use_windows_sandbox={auto,yes,no} --noexperimental_use_windows_sandbox --experimental_verify_repository_rules= --experimental_windows_sandbox_path= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_worker_max_multiplex_instances= --experimental_worker_multiplex --noexperimental_worker_multiplex --experimental_workspace_rules_log_file=path --explain=path --explicit_java_test_deps --noexplicit_java_test_deps --expunge --noexpunge --expunge_async --extra_execution_platforms= --extra_toolchains= --fat_apk_cpu= --fat_apk_hwasan --nofat_apk_hwasan --fdo_instrument= --fdo_optimize= --fdo_prefetch_hints=label --fdo_profile=label --features= --fission= --flag_alias= --flaky_test_attempts= --force_pic --noforce_pic --genrule_strategy= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --grte_top=label --high_priority_workers= --host_action_env= --host_compilation_mode={fastbuild,dbg,opt} --host_compiler= --host_conlyopt= --host_copt= --host_cpu= --host_crosstool_top=label --host_cxxopt= --host_force_python={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --host_grte_top=label --host_java_launcher=label --host_java_toolchain=label --host_javabase=label --host_javacopt= --host_linkopt= --host_platform=label --host_swiftcopt= --http_timeout_scaling= --ignore_unsupported_sandboxing --noignore_unsupported_sandboxing --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_avoid_conflict_dlls --noincompatible_avoid_conflict_dlls --incompatible_default_to_explicit_init_py --noincompatible_default_to_explicit_init_py --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_expand_if_all_available_in_flag_set --noincompatible_disable_expand_if_all_available_in_flag_set --incompatible_disable_native_android_rules --noincompatible_disable_native_android_rules --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_legacy_py_provider --noincompatible_disallow_legacy_py_provider --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_dont_enable_host_nonhost_crosstool_features --noincompatible_dont_enable_host_nonhost_crosstool_features --incompatible_enable_android_toolchain_resolution --noincompatible_enable_android_toolchain_resolution --incompatible_force_strict_header_check_from_starlark --noincompatible_force_strict_header_check_from_starlark --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_make_thinlto_command_lines_standalone --noincompatible_make_thinlto_command_lines_standalone --incompatible_merge_genfiles_directory --noincompatible_merge_genfiles_directory --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_compile_info_migration --noincompatible_objc_compile_info_migration --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prohibit_aapt1 --noincompatible_prohibit_aapt1 --incompatible_py2_outputs_are_suffixed --noincompatible_py2_outputs_are_suffixed --incompatible_py3_is_default --noincompatible_py3_is_default --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --noincompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --incompatible_remove_legacy_whole_archive --noincompatible_remove_legacy_whole_archive --incompatible_remove_local_resources --noincompatible_remove_local_resources --incompatible_require_ctx_in_configure_features --noincompatible_require_ctx_in_configure_features --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_strict_action_env --noincompatible_strict_action_env --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_use_platforms_repo_for_constraints --noincompatible_use_platforms_repo_for_constraints --incompatible_use_python_toolchains --noincompatible_use_python_toolchains --incompatible_validate_top_level_header_inclusions --noincompatible_validate_top_level_header_inclusions --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --incremental_dexing --noincremental_dexing --instrument_test_targets --noinstrument_test_targets --instrumentation_filter= --interface_shared_objects --nointerface_shared_objects --ios_cpu= --ios_memleaks --noios_memleaks --ios_minimum_os= --ios_multi_cpus= --ios_sdk_version= --ios_signing_cert_name= --ios_simulator_device= --ios_simulator_version= --j2objc_translation_flags= --java_debug --java_deps --nojava_deps --java_header_compilation --nojava_header_compilation --java_launcher=label --java_toolchain=label --javabase=label --javacopt= --jobs= --json_trace_compression={auto,yes,no} --nojson_trace_compression --jvmopt= --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_external_runfiles --nolegacy_external_runfiles --legacy_important_outputs --nolegacy_important_outputs --legacy_main_dex_list_generator=label --legacy_whole_archive --nolegacy_whole_archive --linkopt= --loading_phase_threads= --local_cpu_resources= --local_ram_resources= --local_resources= --local_termination_grace_seconds= --local_test_jobs= --logging= --ltobackendopt= --ltoindexopt= --macos_cpus= --macos_minimum_os= --macos_sdk_version= --materialize_param_files --nomaterialize_param_files --max_computation_steps= --max_config_changes_to_show= --max_test_output_bytes= --memory_profile_stable_heap_parameters= --message_translations= --minimum_os_version= --modify_execution_info= --nested_set_depth_limit= --objc_debug_with_GLIBCXX --noobjc_debug_with_GLIBCXX --objc_enable_binary_stripping --noobjc_enable_binary_stripping --objc_generate_linkmap --noobjc_generate_linkmap --objc_use_dotd_pruning --noobjc_use_dotd_pruning --objccopt= --output_filter= --output_groups= --override_repository= --package_path= --parse_headers_verifies_modules --noparse_headers_verifies_modules --per_file_copt= --per_file_ltobackendopt= --persistent_android_resource_processor --platform_mappings=path --platform_suffix= --platforms= --plugin= --process_headers_in_dependencies --noprocess_headers_in_dependencies --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --progress_report_interval= --proguard_top=label --project_id= --propeller_optimize=label --proto_compiler=label --proto_toolchain_for_cc=label --proto_toolchain_for_j2objc=label --proto_toolchain_for_java=label --proto_toolchain_for_javalite=label --protocopt= --python2_path= --python3_path= --python_path= --python_top=label --python_version={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repo_env= --repository_cache=path --run_under= --runs_per_test= --runs_per_test_detects_flakes --noruns_per_test_detects_flakes --sandbox_add_mount_pair= --sandbox_base= --sandbox_block_path= --sandbox_debug --nosandbox_debug --sandbox_default_allow_network --nosandbox_default_allow_network --sandbox_fake_hostname --nosandbox_fake_hostname --sandbox_fake_username --nosandbox_fake_username --sandbox_tmpfs_path= --sandbox_writable_path= --save_temps --nosave_temps --share_native_deps --noshare_native_deps --shell_executable=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_result= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --spawn_strategy= --stamp --nostamp --starlark_cpu_profile= --strategy= --strategy_regexp= --strict_filesets --nostrict_filesets --strict_proto_deps={off,warn,error,strict,default} --strict_system_includes --nostrict_system_includes --strip={always,sometimes,never} --stripopt= --subcommands={true,pretty_print,false} --swiftcopt= --symlink_prefix= --target_environment= --target_pattern_file= --target_platform_fallback=label --test_arg= --test_env= --test_filter= --test_keep_going --notest_keep_going --test_lang_filters= --test_output={summary,errors,all,streamed} --test_result_expiration= --test_runner_fail_fast --notest_runner_fail_fast --test_sharding_strategy={explicit,disabled} --test_size_filters= --test_strategy= --test_summary={short,terse,detailed,none,testcase} --test_tag_filters= --test_timeout= --test_timeout_filters= --test_tmpdir=path --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --toolchain_resolution_debug --notoolchain_resolution_debug --track_incremental_state --notrack_incremental_state --translations={auto,yes,no} --notranslations --trim_test_configuration --notrim_test_configuration --tvos_cpus= --tvos_minimum_os= --tvos_sdk_version= --tvos_simulator_device= --tvos_simulator_version= --ui_actions_shown= --ui_event_filters= --use_ijars --nouse_ijars --use_singlejar_apkbuilder --nouse_singlejar_apkbuilder --verbose_explanations --noverbose_explanations --verbose_failures --noverbose_failures --watchfs --nowatchfs --watchos_cpus= --watchos_minimum_os= --watchos_sdk_version= --watchos_simulator_device= --watchos_simulator_version= --worker_extra_flag= --worker_max_instances= --worker_quit_after_build --noworker_quit_after_build --worker_sandboxing --noworker_sandboxing --worker_verbose --noworker_verbose --workspace_status_command=path --xbinary_fdo=label --xcode_version= --xcode_version_config=label " BAZEL_COMMAND_CONFIG_ARGUMENT="string" BAZEL_COMMAND_CONFIG_FLAGS=" --action_env= --all_incompatible_changes --allow_analysis_failures --noallow_analysis_failures --analysis_testing_deps_limit= --android_compiler= --android_cpu= --android_crosstool_top=label --android_databinding_use_v3_4_args --noandroid_databinding_use_v3_4_args --android_dynamic_mode={off,default,fully} --android_grte_top=label --android_manifest_merger={legacy,android,force_android} --android_manifest_merger_order={alphabetical,alphabetical_by_configuration,dependency} --android_resource_shrinking --noandroid_resource_shrinking --android_sdk=label --announce --noannounce --announce_rc --noannounce_rc --apk_signing_method={v1,v2,v1_v2} --apple_bitcode= --apple_compiler= --apple_crosstool_top=label --apple_enable_auto_dsym_dbg --noapple_enable_auto_dsym_dbg --apple_generate_dsym --noapple_generate_dsym --apple_grte_top=label --apple_sdk=label --aspects= --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --auto_cpu_environment_group=label --auto_output_filter={none,all,packages,subpackages} --bep_publish_used_heap_size_post_build --nobep_publish_used_heap_size_post_build --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --break_build_on_parallel_dex2oat_failure --nobreak_build_on_parallel_dex2oat_failure --build --nobuild --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_manual_tests --nobuild_manual_tests --build_metadata= --build_python_zip={auto,yes,no} --nobuild_python_zip --build_runfile_links --nobuild_runfile_links --build_runfile_manifests --nobuild_runfile_manifests --build_tag_filters= --build_test_dwp --nobuild_test_dwp --build_tests_only --nobuild_tests_only --cache_test_results={auto,yes,no} --nocache_test_results --catalyst_cpus= --cc_output_directory_tag= --cc_proto_library_header_suffixes= --cc_proto_library_source_suffixes= --check_constraint= --check_licenses --nocheck_licenses --check_tests_up_to_date --nocheck_tests_up_to_date --check_up_to_date --nocheck_up_to_date --check_visibility --nocheck_visibility --collapse_duplicate_defines --nocollapse_duplicate_defines --collect_code_coverage --nocollect_code_coverage --color={yes,no,auto} --combined_report={none,lcov} --compilation_mode={fastbuild,dbg,opt} --compile_one_dependency --nocompile_one_dependency --compiler= --config= --conlyopt= --copt= --coverage_report_generator=label --coverage_support=label --cpu= --crosstool_top=label --cs_fdo_absolute_path= --cs_fdo_instrument= --cs_fdo_profile=label --curses={yes,no,auto} --custom_malloc=label --cxxopt= --default_ios_provisioning_profile=label --define= --deleted_packages= --desugar_for_android --nodesugar_for_android --device_debug_entitlements --nodevice_debug_entitlements --discard_analysis_cache --nodiscard_analysis_cache --disk_cache=path --distdir= --distinct_host_configuration --nodistinct_host_configuration --dump_all --nodump_all --dynamic_mode={off,default,fully} --embed_label= --enable_apple_binary_native_protos --noenable_apple_binary_native_protos --enable_fdo_profile_absolute_path --noenable_fdo_profile_absolute_path --enable_platform_specific_config --noenable_platform_specific_config --enable_runfiles={auto,yes,no} --noenable_runfiles --enforce_constraints --noenforce_constraints --execution_log_binary_file=path --execution_log_json_file=path --expand_test_suites --noexpand_test_suites --experimental_action_listener= --experimental_add_exec_constraints_to_targets= --experimental_allow_android_library_deps_without_srcs --noexperimental_allow_android_library_deps_without_srcs --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_android_compress_java_resources --noexperimental_android_compress_java_resources --experimental_android_databinding_v2 --noexperimental_android_databinding_v2 --experimental_android_resource_shrinking --noexperimental_android_resource_shrinking --experimental_android_rewrite_dexes_with_rex --noexperimental_android_rewrite_dexes_with_rex --experimental_android_use_parallel_dex2oat --noexperimental_android_use_parallel_dex2oat --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cancel_concurrent_tests --noexperimental_cancel_concurrent_tests --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_check_desugar_deps --noexperimental_check_desugar_deps --experimental_convenience_symlinks={normal,clean,ignore,log_only} --experimental_convenience_symlinks_bep_event --noexperimental_convenience_symlinks_bep_event --experimental_delay_virtual_input_materialization --noexperimental_delay_virtual_input_materialization --experimental_desugar_java8_libs --noexperimental_desugar_java8_libs --experimental_disable_external_package --noexperimental_disable_external_package --experimental_docker_image= --experimental_docker_privileged --noexperimental_docker_privileged --experimental_docker_use_customized_images --noexperimental_docker_use_customized_images --experimental_docker_verbose --noexperimental_docker_verbose --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_enable_docker_sandbox --noexperimental_enable_docker_sandbox --experimental_enable_flag_alias --noexperimental_enable_flag_alias --experimental_enable_objc_cc_deps --noexperimental_enable_objc_cc_deps --experimental_execution_log_file=path --experimental_extra_action_filter= --experimental_extra_action_top_level_only --noexperimental_extra_action_top_level_only --experimental_fetch_all_coverage_outputs --noexperimental_fetch_all_coverage_outputs --experimental_filter_library_jar_with_program_jar --noexperimental_filter_library_jar_with_program_jar --experimental_forward_instrumented_files_info_by_default --noexperimental_forward_instrumented_files_info_by_default --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_import_deps_checking={off,warning,error} --experimental_inmemory_dotd_files --noexperimental_inmemory_dotd_files --experimental_inmemory_jdeps_files --noexperimental_inmemory_jdeps_files --experimental_inprocess_symlink_creation --noexperimental_inprocess_symlink_creation --experimental_interleave_loading_and_analysis --noexperimental_interleave_loading_and_analysis --experimental_j2objc_header_map --noexperimental_j2objc_header_map --experimental_j2objc_shorter_header_path --noexperimental_j2objc_shorter_header_path --experimental_java_classpath={off,javabuilder,bazel} --experimental_java_proto_add_allowed_public_imports --noexperimental_java_proto_add_allowed_public_imports --experimental_local_execution_delay= --experimental_local_memory_estimate --noexperimental_local_memory_estimate --experimental_materialize_param_files_directly --noexperimental_materialize_param_files_directly --experimental_multi_cpu= --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_objc_enable_module_maps --noexperimental_objc_enable_module_maps --experimental_objc_fastbuild_options= --experimental_objc_include_scanning --noexperimental_objc_include_scanning --experimental_omitfp --noexperimental_omitfp --experimental_oom_more_eagerly_threshold= --experimental_persistent_javac --experimental_persistent_test_runner --noexperimental_persistent_test_runner --experimental_platforms_api --noexperimental_platforms_api --experimental_prefer_mutual_xcode --noexperimental_prefer_mutual_xcode --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_proto_descriptor_sets_include_source_info --noexperimental_proto_descriptor_sets_include_source_info --experimental_proto_extra_actions --noexperimental_proto_extra_actions --experimental_remotable_source_manifests --noexperimental_remotable_source_manifests --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_run_validations --noexperimental_run_validations --experimental_sandbox_async_tree_delete_idle_threads= --experimental_sandboxfs_map_symlink_targets --noexperimental_sandboxfs_map_symlink_targets --experimental_sandboxfs_path= --experimental_save_feature_state --noexperimental_save_feature_state --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_spawn_scheduler --experimental_split_xml_generation --noexperimental_split_xml_generation --experimental_starlark_cc_import --noexperimental_starlark_cc_import --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_strict_fileset_output --noexperimental_strict_fileset_output --experimental_strict_java_deps={off,warn,error,strict,default} --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_use_llvm_covmap --noexperimental_use_llvm_covmap --experimental_use_sandboxfs={auto,yes,no} --noexperimental_use_sandboxfs --experimental_use_windows_sandbox={auto,yes,no} --noexperimental_use_windows_sandbox --experimental_verify_repository_rules= --experimental_windows_sandbox_path= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_worker_max_multiplex_instances= --experimental_worker_multiplex --noexperimental_worker_multiplex --experimental_workspace_rules_log_file=path --explain=path --explicit_java_test_deps --noexplicit_java_test_deps --extra_execution_platforms= --extra_toolchains= --fat_apk_cpu= --fat_apk_hwasan --nofat_apk_hwasan --fdo_instrument= --fdo_optimize= --fdo_prefetch_hints=label --fdo_profile=label --features= --fission= --flag_alias= --flaky_test_attempts= --force_pic --noforce_pic --genrule_strategy= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --grte_top=label --high_priority_workers= --host_action_env= --host_compilation_mode={fastbuild,dbg,opt} --host_compiler= --host_conlyopt= --host_copt= --host_cpu= --host_crosstool_top=label --host_cxxopt= --host_force_python={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --host_grte_top=label --host_java_launcher=label --host_java_toolchain=label --host_javabase=label --host_javacopt= --host_linkopt= --host_platform=label --host_swiftcopt= --http_timeout_scaling= --ignore_unsupported_sandboxing --noignore_unsupported_sandboxing --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_avoid_conflict_dlls --noincompatible_avoid_conflict_dlls --incompatible_default_to_explicit_init_py --noincompatible_default_to_explicit_init_py --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_expand_if_all_available_in_flag_set --noincompatible_disable_expand_if_all_available_in_flag_set --incompatible_disable_native_android_rules --noincompatible_disable_native_android_rules --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_legacy_py_provider --noincompatible_disallow_legacy_py_provider --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_dont_enable_host_nonhost_crosstool_features --noincompatible_dont_enable_host_nonhost_crosstool_features --incompatible_enable_android_toolchain_resolution --noincompatible_enable_android_toolchain_resolution --incompatible_force_strict_header_check_from_starlark --noincompatible_force_strict_header_check_from_starlark --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_make_thinlto_command_lines_standalone --noincompatible_make_thinlto_command_lines_standalone --incompatible_merge_genfiles_directory --noincompatible_merge_genfiles_directory --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_compile_info_migration --noincompatible_objc_compile_info_migration --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prohibit_aapt1 --noincompatible_prohibit_aapt1 --incompatible_py2_outputs_are_suffixed --noincompatible_py2_outputs_are_suffixed --incompatible_py3_is_default --noincompatible_py3_is_default --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --noincompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --incompatible_remove_legacy_whole_archive --noincompatible_remove_legacy_whole_archive --incompatible_remove_local_resources --noincompatible_remove_local_resources --incompatible_require_ctx_in_configure_features --noincompatible_require_ctx_in_configure_features --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_strict_action_env --noincompatible_strict_action_env --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_use_platforms_repo_for_constraints --noincompatible_use_platforms_repo_for_constraints --incompatible_use_python_toolchains --noincompatible_use_python_toolchains --incompatible_validate_top_level_header_inclusions --noincompatible_validate_top_level_header_inclusions --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --incremental_dexing --noincremental_dexing --instrument_test_targets --noinstrument_test_targets --instrumentation_filter= --interface_shared_objects --nointerface_shared_objects --ios_cpu= --ios_memleaks --noios_memleaks --ios_minimum_os= --ios_multi_cpus= --ios_sdk_version= --ios_signing_cert_name= --ios_simulator_device= --ios_simulator_version= --j2objc_translation_flags= --java_debug --java_deps --nojava_deps --java_header_compilation --nojava_header_compilation --java_launcher=label --java_toolchain=label --javabase=label --javacopt= --jobs= --json_trace_compression={auto,yes,no} --nojson_trace_compression --jvmopt= --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_external_runfiles --nolegacy_external_runfiles --legacy_important_outputs --nolegacy_important_outputs --legacy_main_dex_list_generator=label --legacy_whole_archive --nolegacy_whole_archive --linkopt= --loading_phase_threads= --local_cpu_resources= --local_ram_resources= --local_resources= --local_termination_grace_seconds= --local_test_jobs= --logging= --ltobackendopt= --ltoindexopt= --macos_cpus= --macos_minimum_os= --macos_sdk_version= --materialize_param_files --nomaterialize_param_files --max_computation_steps= --max_config_changes_to_show= --max_test_output_bytes= --memory_profile_stable_heap_parameters= --message_translations= --minimum_os_version= --modify_execution_info= --nested_set_depth_limit= --objc_debug_with_GLIBCXX --noobjc_debug_with_GLIBCXX --objc_enable_binary_stripping --noobjc_enable_binary_stripping --objc_generate_linkmap --noobjc_generate_linkmap --objc_use_dotd_pruning --noobjc_use_dotd_pruning --objccopt= --output={text,json} --output_filter= --output_groups= --override_repository= --package_path= --parse_headers_verifies_modules --noparse_headers_verifies_modules --per_file_copt= --per_file_ltobackendopt= --persistent_android_resource_processor --platform_mappings=path --platform_suffix= --platforms= --plugin= --process_headers_in_dependencies --noprocess_headers_in_dependencies --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --progress_report_interval= --proguard_top=label --project_id= --propeller_optimize=label --proto_compiler=label --proto_toolchain_for_cc=label --proto_toolchain_for_j2objc=label --proto_toolchain_for_java=label --proto_toolchain_for_javalite=label --protocopt= --python2_path= --python3_path= --python_path= --python_top=label --python_version={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repo_env= --repository_cache=path --run_under= --runs_per_test= --runs_per_test_detects_flakes --noruns_per_test_detects_flakes --sandbox_add_mount_pair= --sandbox_base= --sandbox_block_path= --sandbox_debug --nosandbox_debug --sandbox_default_allow_network --nosandbox_default_allow_network --sandbox_fake_hostname --nosandbox_fake_hostname --sandbox_fake_username --nosandbox_fake_username --sandbox_tmpfs_path= --sandbox_writable_path= --save_temps --nosave_temps --share_native_deps --noshare_native_deps --shell_executable=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_result= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --spawn_strategy= --stamp --nostamp --starlark_cpu_profile= --strategy= --strategy_regexp= --strict_filesets --nostrict_filesets --strict_proto_deps={off,warn,error,strict,default} --strict_system_includes --nostrict_system_includes --strip={always,sometimes,never} --stripopt= --subcommands={true,pretty_print,false} --swiftcopt= --symlink_prefix= --target_environment= --target_pattern_file= --target_platform_fallback=label --test_arg= --test_env= --test_filter= --test_keep_going --notest_keep_going --test_lang_filters= --test_output={summary,errors,all,streamed} --test_result_expiration= --test_runner_fail_fast --notest_runner_fail_fast --test_sharding_strategy={explicit,disabled} --test_size_filters= --test_strategy= --test_summary={short,terse,detailed,none,testcase} --test_tag_filters= --test_timeout= --test_timeout_filters= --test_tmpdir=path --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --toolchain_resolution_debug --notoolchain_resolution_debug --track_incremental_state --notrack_incremental_state --translations={auto,yes,no} --notranslations --trim_test_configuration --notrim_test_configuration --tvos_cpus= --tvos_minimum_os= --tvos_sdk_version= --tvos_simulator_device= --tvos_simulator_version= --ui_actions_shown= --ui_event_filters= --use_ijars --nouse_ijars --use_singlejar_apkbuilder --nouse_singlejar_apkbuilder --verbose_explanations --noverbose_explanations --verbose_failures --noverbose_failures --watchfs --nowatchfs --watchos_cpus= --watchos_minimum_os= --watchos_sdk_version= --watchos_simulator_device= --watchos_simulator_version= --worker_extra_flag= --worker_max_instances= --worker_quit_after_build --noworker_quit_after_build --worker_sandboxing --noworker_sandboxing --worker_verbose --noworker_verbose --workspace_status_command=path --xbinary_fdo=label --xcode_version= --xcode_version_config=label " BAZEL_COMMAND_COVERAGE_ARGUMENT="label-test" BAZEL_COMMAND_COVERAGE_FLAGS=" --action_env= --all_incompatible_changes --allow_analysis_failures --noallow_analysis_failures --analysis_testing_deps_limit= --android_compiler= --android_cpu= --android_crosstool_top=label --android_databinding_use_v3_4_args --noandroid_databinding_use_v3_4_args --android_dynamic_mode={off,default,fully} --android_grte_top=label --android_manifest_merger={legacy,android,force_android} --android_manifest_merger_order={alphabetical,alphabetical_by_configuration,dependency} --android_resource_shrinking --noandroid_resource_shrinking --android_sdk=label --announce --noannounce --announce_rc --noannounce_rc --apk_signing_method={v1,v2,v1_v2} --apple_bitcode= --apple_compiler= --apple_crosstool_top=label --apple_enable_auto_dsym_dbg --noapple_enable_auto_dsym_dbg --apple_generate_dsym --noapple_generate_dsym --apple_grte_top=label --apple_sdk=label --aspects= --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --auto_cpu_environment_group=label --auto_output_filter={none,all,packages,subpackages} --bep_publish_used_heap_size_post_build --nobep_publish_used_heap_size_post_build --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --break_build_on_parallel_dex2oat_failure --nobreak_build_on_parallel_dex2oat_failure --build --nobuild --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_manual_tests --nobuild_manual_tests --build_metadata= --build_python_zip={auto,yes,no} --nobuild_python_zip --build_runfile_links --nobuild_runfile_links --build_runfile_manifests --nobuild_runfile_manifests --build_tag_filters= --build_test_dwp --nobuild_test_dwp --build_tests_only --nobuild_tests_only --cache_test_results={auto,yes,no} --nocache_test_results --catalyst_cpus= --cc_output_directory_tag= --cc_proto_library_header_suffixes= --cc_proto_library_source_suffixes= --check_constraint= --check_licenses --nocheck_licenses --check_tests_up_to_date --nocheck_tests_up_to_date --check_up_to_date --nocheck_up_to_date --check_visibility --nocheck_visibility --collapse_duplicate_defines --nocollapse_duplicate_defines --collect_code_coverage --nocollect_code_coverage --color={yes,no,auto} --combined_report={none,lcov} --compilation_mode={fastbuild,dbg,opt} --compile_one_dependency --nocompile_one_dependency --compiler= --config= --conlyopt= --copt= --coverage_report_generator=label --coverage_support=label --cpu= --crosstool_top=label --cs_fdo_absolute_path= --cs_fdo_instrument= --cs_fdo_profile=label --curses={yes,no,auto} --custom_malloc=label --cxxopt= --default_ios_provisioning_profile=label --define= --deleted_packages= --desugar_for_android --nodesugar_for_android --device_debug_entitlements --nodevice_debug_entitlements --discard_analysis_cache --nodiscard_analysis_cache --disk_cache=path --distdir= --distinct_host_configuration --nodistinct_host_configuration --dynamic_mode={off,default,fully} --embed_label= --enable_apple_binary_native_protos --noenable_apple_binary_native_protos --enable_fdo_profile_absolute_path --noenable_fdo_profile_absolute_path --enable_platform_specific_config --noenable_platform_specific_config --enable_runfiles={auto,yes,no} --noenable_runfiles --enforce_constraints --noenforce_constraints --execution_log_binary_file=path --execution_log_json_file=path --expand_test_suites --noexpand_test_suites --experimental_action_listener= --experimental_add_exec_constraints_to_targets= --experimental_allow_android_library_deps_without_srcs --noexperimental_allow_android_library_deps_without_srcs --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_android_compress_java_resources --noexperimental_android_compress_java_resources --experimental_android_databinding_v2 --noexperimental_android_databinding_v2 --experimental_android_resource_shrinking --noexperimental_android_resource_shrinking --experimental_android_rewrite_dexes_with_rex --noexperimental_android_rewrite_dexes_with_rex --experimental_android_use_parallel_dex2oat --noexperimental_android_use_parallel_dex2oat --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cancel_concurrent_tests --noexperimental_cancel_concurrent_tests --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_check_desugar_deps --noexperimental_check_desugar_deps --experimental_convenience_symlinks={normal,clean,ignore,log_only} --experimental_convenience_symlinks_bep_event --noexperimental_convenience_symlinks_bep_event --experimental_delay_virtual_input_materialization --noexperimental_delay_virtual_input_materialization --experimental_desugar_java8_libs --noexperimental_desugar_java8_libs --experimental_disable_external_package --noexperimental_disable_external_package --experimental_docker_image= --experimental_docker_privileged --noexperimental_docker_privileged --experimental_docker_use_customized_images --noexperimental_docker_use_customized_images --experimental_docker_verbose --noexperimental_docker_verbose --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_enable_docker_sandbox --noexperimental_enable_docker_sandbox --experimental_enable_flag_alias --noexperimental_enable_flag_alias --experimental_enable_objc_cc_deps --noexperimental_enable_objc_cc_deps --experimental_execution_log_file=path --experimental_extra_action_filter= --experimental_extra_action_top_level_only --noexperimental_extra_action_top_level_only --experimental_fetch_all_coverage_outputs --noexperimental_fetch_all_coverage_outputs --experimental_filter_library_jar_with_program_jar --noexperimental_filter_library_jar_with_program_jar --experimental_forward_instrumented_files_info_by_default --noexperimental_forward_instrumented_files_info_by_default --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_import_deps_checking={off,warning,error} --experimental_inmemory_dotd_files --noexperimental_inmemory_dotd_files --experimental_inmemory_jdeps_files --noexperimental_inmemory_jdeps_files --experimental_inprocess_symlink_creation --noexperimental_inprocess_symlink_creation --experimental_interleave_loading_and_analysis --noexperimental_interleave_loading_and_analysis --experimental_j2objc_header_map --noexperimental_j2objc_header_map --experimental_j2objc_shorter_header_path --noexperimental_j2objc_shorter_header_path --experimental_java_classpath={off,javabuilder,bazel} --experimental_java_proto_add_allowed_public_imports --noexperimental_java_proto_add_allowed_public_imports --experimental_local_execution_delay= --experimental_local_memory_estimate --noexperimental_local_memory_estimate --experimental_materialize_param_files_directly --noexperimental_materialize_param_files_directly --experimental_multi_cpu= --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_objc_enable_module_maps --noexperimental_objc_enable_module_maps --experimental_objc_fastbuild_options= --experimental_objc_include_scanning --noexperimental_objc_include_scanning --experimental_omitfp --noexperimental_omitfp --experimental_oom_more_eagerly_threshold= --experimental_persistent_javac --experimental_persistent_test_runner --noexperimental_persistent_test_runner --experimental_platforms_api --noexperimental_platforms_api --experimental_prefer_mutual_xcode --noexperimental_prefer_mutual_xcode --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_proto_descriptor_sets_include_source_info --noexperimental_proto_descriptor_sets_include_source_info --experimental_proto_extra_actions --noexperimental_proto_extra_actions --experimental_remotable_source_manifests --noexperimental_remotable_source_manifests --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_run_validations --noexperimental_run_validations --experimental_sandbox_async_tree_delete_idle_threads= --experimental_sandboxfs_map_symlink_targets --noexperimental_sandboxfs_map_symlink_targets --experimental_sandboxfs_path= --experimental_save_feature_state --noexperimental_save_feature_state --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_spawn_scheduler --experimental_split_xml_generation --noexperimental_split_xml_generation --experimental_starlark_cc_import --noexperimental_starlark_cc_import --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_strict_fileset_output --noexperimental_strict_fileset_output --experimental_strict_java_deps={off,warn,error,strict,default} --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_use_llvm_covmap --noexperimental_use_llvm_covmap --experimental_use_sandboxfs={auto,yes,no} --noexperimental_use_sandboxfs --experimental_use_windows_sandbox={auto,yes,no} --noexperimental_use_windows_sandbox --experimental_verify_repository_rules= --experimental_windows_sandbox_path= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_worker_max_multiplex_instances= --experimental_worker_multiplex --noexperimental_worker_multiplex --experimental_workspace_rules_log_file=path --explain=path --explicit_java_test_deps --noexplicit_java_test_deps --extra_execution_platforms= --extra_toolchains= --fat_apk_cpu= --fat_apk_hwasan --nofat_apk_hwasan --fdo_instrument= --fdo_optimize= --fdo_prefetch_hints=label --fdo_profile=label --features= --fission= --flag_alias= --flaky_test_attempts= --force_pic --noforce_pic --genrule_strategy= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --grte_top=label --high_priority_workers= --host_action_env= --host_compilation_mode={fastbuild,dbg,opt} --host_compiler= --host_conlyopt= --host_copt= --host_cpu= --host_crosstool_top=label --host_cxxopt= --host_force_python={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --host_grte_top=label --host_java_launcher=label --host_java_toolchain=label --host_javabase=label --host_javacopt= --host_linkopt= --host_platform=label --host_swiftcopt= --http_timeout_scaling= --ignore_unsupported_sandboxing --noignore_unsupported_sandboxing --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_avoid_conflict_dlls --noincompatible_avoid_conflict_dlls --incompatible_default_to_explicit_init_py --noincompatible_default_to_explicit_init_py --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_expand_if_all_available_in_flag_set --noincompatible_disable_expand_if_all_available_in_flag_set --incompatible_disable_native_android_rules --noincompatible_disable_native_android_rules --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_legacy_py_provider --noincompatible_disallow_legacy_py_provider --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_dont_enable_host_nonhost_crosstool_features --noincompatible_dont_enable_host_nonhost_crosstool_features --incompatible_enable_android_toolchain_resolution --noincompatible_enable_android_toolchain_resolution --incompatible_force_strict_header_check_from_starlark --noincompatible_force_strict_header_check_from_starlark --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_make_thinlto_command_lines_standalone --noincompatible_make_thinlto_command_lines_standalone --incompatible_merge_genfiles_directory --noincompatible_merge_genfiles_directory --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_compile_info_migration --noincompatible_objc_compile_info_migration --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prohibit_aapt1 --noincompatible_prohibit_aapt1 --incompatible_py2_outputs_are_suffixed --noincompatible_py2_outputs_are_suffixed --incompatible_py3_is_default --noincompatible_py3_is_default --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --noincompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --incompatible_remove_legacy_whole_archive --noincompatible_remove_legacy_whole_archive --incompatible_remove_local_resources --noincompatible_remove_local_resources --incompatible_require_ctx_in_configure_features --noincompatible_require_ctx_in_configure_features --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_strict_action_env --noincompatible_strict_action_env --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_use_platforms_repo_for_constraints --noincompatible_use_platforms_repo_for_constraints --incompatible_use_python_toolchains --noincompatible_use_python_toolchains --incompatible_validate_top_level_header_inclusions --noincompatible_validate_top_level_header_inclusions --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --incremental_dexing --noincremental_dexing --instrument_test_targets --noinstrument_test_targets --instrumentation_filter= --interface_shared_objects --nointerface_shared_objects --ios_cpu= --ios_memleaks --noios_memleaks --ios_minimum_os= --ios_multi_cpus= --ios_sdk_version= --ios_signing_cert_name= --ios_simulator_device= --ios_simulator_version= --j2objc_translation_flags= --java_debug --java_deps --nojava_deps --java_header_compilation --nojava_header_compilation --java_launcher=label --java_toolchain=label --javabase=label --javacopt= --jobs= --json_trace_compression={auto,yes,no} --nojson_trace_compression --jvmopt= --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_external_runfiles --nolegacy_external_runfiles --legacy_important_outputs --nolegacy_important_outputs --legacy_main_dex_list_generator=label --legacy_whole_archive --nolegacy_whole_archive --linkopt= --loading_phase_threads= --local_cpu_resources= --local_ram_resources= --local_resources= --local_termination_grace_seconds= --local_test_jobs= --logging= --ltobackendopt= --ltoindexopt= --macos_cpus= --macos_minimum_os= --macos_sdk_version= --materialize_param_files --nomaterialize_param_files --max_computation_steps= --max_config_changes_to_show= --max_test_output_bytes= --memory_profile_stable_heap_parameters= --message_translations= --minimum_os_version= --modify_execution_info= --nested_set_depth_limit= --objc_debug_with_GLIBCXX --noobjc_debug_with_GLIBCXX --objc_enable_binary_stripping --noobjc_enable_binary_stripping --objc_generate_linkmap --noobjc_generate_linkmap --objc_use_dotd_pruning --noobjc_use_dotd_pruning --objccopt= --output_filter= --output_groups= --override_repository= --package_path= --parse_headers_verifies_modules --noparse_headers_verifies_modules --per_file_copt= --per_file_ltobackendopt= --persistent_android_resource_processor --platform_mappings=path --platform_suffix= --platforms= --plugin= --print_relative_test_log_paths --noprint_relative_test_log_paths --process_headers_in_dependencies --noprocess_headers_in_dependencies --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --progress_report_interval= --proguard_top=label --project_id= --propeller_optimize=label --proto_compiler=label --proto_toolchain_for_cc=label --proto_toolchain_for_j2objc=label --proto_toolchain_for_java=label --proto_toolchain_for_javalite=label --protocopt= --python2_path= --python3_path= --python_path= --python_top=label --python_version={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repo_env= --repository_cache=path --run_under= --runs_per_test= --runs_per_test_detects_flakes --noruns_per_test_detects_flakes --sandbox_add_mount_pair= --sandbox_base= --sandbox_block_path= --sandbox_debug --nosandbox_debug --sandbox_default_allow_network --nosandbox_default_allow_network --sandbox_fake_hostname --nosandbox_fake_hostname --sandbox_fake_username --nosandbox_fake_username --sandbox_tmpfs_path= --sandbox_writable_path= --save_temps --nosave_temps --share_native_deps --noshare_native_deps --shell_executable=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_result= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --spawn_strategy= --stamp --nostamp --starlark_cpu_profile= --strategy= --strategy_regexp= --strict_filesets --nostrict_filesets --strict_proto_deps={off,warn,error,strict,default} --strict_system_includes --nostrict_system_includes --strip={always,sometimes,never} --stripopt= --subcommands={true,pretty_print,false} --swiftcopt= --symlink_prefix= --target_environment= --target_pattern_file= --target_platform_fallback=label --test_arg= --test_env= --test_filter= --test_keep_going --notest_keep_going --test_lang_filters= --test_output={summary,errors,all,streamed} --test_result_expiration= --test_runner_fail_fast --notest_runner_fail_fast --test_sharding_strategy={explicit,disabled} --test_size_filters= --test_strategy= --test_summary={short,terse,detailed,none,testcase} --test_tag_filters= --test_timeout= --test_timeout_filters= --test_tmpdir=path --test_verbose_timeout_warnings --notest_verbose_timeout_warnings --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --toolchain_resolution_debug --notoolchain_resolution_debug --track_incremental_state --notrack_incremental_state --translations={auto,yes,no} --notranslations --trim_test_configuration --notrim_test_configuration --tvos_cpus= --tvos_minimum_os= --tvos_sdk_version= --tvos_simulator_device= --tvos_simulator_version= --ui_actions_shown= --ui_event_filters= --use_ijars --nouse_ijars --use_singlejar_apkbuilder --nouse_singlejar_apkbuilder --verbose_explanations --noverbose_explanations --verbose_failures --noverbose_failures --verbose_test_summary --noverbose_test_summary --watchfs --nowatchfs --watchos_cpus= --watchos_minimum_os= --watchos_sdk_version= --watchos_simulator_device= --watchos_simulator_version= --worker_extra_flag= --worker_max_instances= --worker_quit_after_build --noworker_quit_after_build --worker_sandboxing --noworker_sandboxing --worker_verbose --noworker_verbose --workspace_status_command=path --xbinary_fdo=label --xcode_version= --xcode_version_config=label " BAZEL_COMMAND_CQUERY_ARGUMENT="label" BAZEL_COMMAND_CQUERY_FLAGS=" --action_env= --all_incompatible_changes --allow_analysis_failures --noallow_analysis_failures --analysis_testing_deps_limit= --android_compiler= --android_cpu= --android_crosstool_top=label --android_databinding_use_v3_4_args --noandroid_databinding_use_v3_4_args --android_dynamic_mode={off,default,fully} --android_grte_top=label --android_manifest_merger={legacy,android,force_android} --android_manifest_merger_order={alphabetical,alphabetical_by_configuration,dependency} --android_resource_shrinking --noandroid_resource_shrinking --android_sdk=label --announce --noannounce --announce_rc --noannounce_rc --apk_signing_method={v1,v2,v1_v2} --apple_bitcode= --apple_compiler= --apple_crosstool_top=label --apple_enable_auto_dsym_dbg --noapple_enable_auto_dsym_dbg --apple_generate_dsym --noapple_generate_dsym --apple_grte_top=label --apple_sdk=label --aspect_deps={off,conservative,precise} --aspects= --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --auto_cpu_environment_group=label --auto_output_filter={none,all,packages,subpackages} --bep_publish_used_heap_size_post_build --nobep_publish_used_heap_size_post_build --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --break_build_on_parallel_dex2oat_failure --nobreak_build_on_parallel_dex2oat_failure --build --nobuild --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_manual_tests --nobuild_manual_tests --build_metadata= --build_python_zip={auto,yes,no} --nobuild_python_zip --build_runfile_links --nobuild_runfile_links --build_runfile_manifests --nobuild_runfile_manifests --build_tag_filters= --build_test_dwp --nobuild_test_dwp --build_tests_only --nobuild_tests_only --cache_test_results={auto,yes,no} --nocache_test_results --catalyst_cpus= --cc_output_directory_tag= --cc_proto_library_header_suffixes= --cc_proto_library_source_suffixes= --check_constraint= --check_licenses --nocheck_licenses --check_tests_up_to_date --nocheck_tests_up_to_date --check_up_to_date --nocheck_up_to_date --check_visibility --nocheck_visibility --collapse_duplicate_defines --nocollapse_duplicate_defines --collect_code_coverage --nocollect_code_coverage --color={yes,no,auto} --combined_report={none,lcov} --compilation_mode={fastbuild,dbg,opt} --compile_one_dependency --nocompile_one_dependency --compiler= --config= --conlyopt= --copt= --coverage_report_generator=label --coverage_support=label --cpu= --crosstool_top=label --cs_fdo_absolute_path= --cs_fdo_instrument= --cs_fdo_profile=label --curses={yes,no,auto} --custom_malloc=label --cxxopt= --default_ios_provisioning_profile=label --define= --deleted_packages= --desugar_for_android --nodesugar_for_android --device_debug_entitlements --nodevice_debug_entitlements --discard_analysis_cache --nodiscard_analysis_cache --disk_cache=path --distdir= --distinct_host_configuration --nodistinct_host_configuration --dynamic_mode={off,default,fully} --embed_label= --enable_apple_binary_native_protos --noenable_apple_binary_native_protos --enable_fdo_profile_absolute_path --noenable_fdo_profile_absolute_path --enable_platform_specific_config --noenable_platform_specific_config --enable_runfiles={auto,yes,no} --noenable_runfiles --enforce_constraints --noenforce_constraints --execution_log_binary_file=path --execution_log_json_file=path --expand_test_suites --noexpand_test_suites --experimental_action_listener= --experimental_add_exec_constraints_to_targets= --experimental_allow_android_library_deps_without_srcs --noexperimental_allow_android_library_deps_without_srcs --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_android_compress_java_resources --noexperimental_android_compress_java_resources --experimental_android_databinding_v2 --noexperimental_android_databinding_v2 --experimental_android_resource_shrinking --noexperimental_android_resource_shrinking --experimental_android_rewrite_dexes_with_rex --noexperimental_android_rewrite_dexes_with_rex --experimental_android_use_parallel_dex2oat --noexperimental_android_use_parallel_dex2oat --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cancel_concurrent_tests --noexperimental_cancel_concurrent_tests --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_check_desugar_deps --noexperimental_check_desugar_deps --experimental_convenience_symlinks={normal,clean,ignore,log_only} --experimental_convenience_symlinks_bep_event --noexperimental_convenience_symlinks_bep_event --experimental_delay_virtual_input_materialization --noexperimental_delay_virtual_input_materialization --experimental_desugar_java8_libs --noexperimental_desugar_java8_libs --experimental_disable_external_package --noexperimental_disable_external_package --experimental_docker_image= --experimental_docker_privileged --noexperimental_docker_privileged --experimental_docker_use_customized_images --noexperimental_docker_use_customized_images --experimental_docker_verbose --noexperimental_docker_verbose --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_enable_docker_sandbox --noexperimental_enable_docker_sandbox --experimental_enable_flag_alias --noexperimental_enable_flag_alias --experimental_enable_objc_cc_deps --noexperimental_enable_objc_cc_deps --experimental_execution_log_file=path --experimental_extra_action_filter= --experimental_extra_action_top_level_only --noexperimental_extra_action_top_level_only --experimental_fetch_all_coverage_outputs --noexperimental_fetch_all_coverage_outputs --experimental_filter_library_jar_with_program_jar --noexperimental_filter_library_jar_with_program_jar --experimental_forward_instrumented_files_info_by_default --noexperimental_forward_instrumented_files_info_by_default --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_import_deps_checking={off,warning,error} --experimental_inmemory_dotd_files --noexperimental_inmemory_dotd_files --experimental_inmemory_jdeps_files --noexperimental_inmemory_jdeps_files --experimental_inprocess_symlink_creation --noexperimental_inprocess_symlink_creation --experimental_interleave_loading_and_analysis --noexperimental_interleave_loading_and_analysis --experimental_j2objc_header_map --noexperimental_j2objc_header_map --experimental_j2objc_shorter_header_path --noexperimental_j2objc_shorter_header_path --experimental_java_classpath={off,javabuilder,bazel} --experimental_java_proto_add_allowed_public_imports --noexperimental_java_proto_add_allowed_public_imports --experimental_local_execution_delay= --experimental_local_memory_estimate --noexperimental_local_memory_estimate --experimental_materialize_param_files_directly --noexperimental_materialize_param_files_directly --experimental_multi_cpu= --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_objc_enable_module_maps --noexperimental_objc_enable_module_maps --experimental_objc_fastbuild_options= --experimental_objc_include_scanning --noexperimental_objc_include_scanning --experimental_omitfp --noexperimental_omitfp --experimental_oom_more_eagerly_threshold= --experimental_persistent_javac --experimental_persistent_test_runner --noexperimental_persistent_test_runner --experimental_platforms_api --noexperimental_platforms_api --experimental_prefer_mutual_xcode --noexperimental_prefer_mutual_xcode --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_proto_descriptor_sets_include_source_info --noexperimental_proto_descriptor_sets_include_source_info --experimental_proto_extra_actions --noexperimental_proto_extra_actions --experimental_remotable_source_manifests --noexperimental_remotable_source_manifests --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_run_validations --noexperimental_run_validations --experimental_sandbox_async_tree_delete_idle_threads= --experimental_sandboxfs_map_symlink_targets --noexperimental_sandboxfs_map_symlink_targets --experimental_sandboxfs_path= --experimental_save_feature_state --noexperimental_save_feature_state --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_spawn_scheduler --experimental_split_xml_generation --noexperimental_split_xml_generation --experimental_starlark_cc_import --noexperimental_starlark_cc_import --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_strict_fileset_output --noexperimental_strict_fileset_output --experimental_strict_java_deps={off,warn,error,strict,default} --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_use_llvm_covmap --noexperimental_use_llvm_covmap --experimental_use_sandboxfs={auto,yes,no} --noexperimental_use_sandboxfs --experimental_use_windows_sandbox={auto,yes,no} --noexperimental_use_windows_sandbox --experimental_verify_repository_rules= --experimental_windows_sandbox_path= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_worker_max_multiplex_instances= --experimental_worker_multiplex --noexperimental_worker_multiplex --experimental_workspace_rules_log_file=path --explain=path --explicit_java_test_deps --noexplicit_java_test_deps --extra_execution_platforms= --extra_toolchains= --fat_apk_cpu= --fat_apk_hwasan --nofat_apk_hwasan --fdo_instrument= --fdo_optimize= --fdo_prefetch_hints=label --fdo_profile=label --features= --fission= --flag_alias= --flaky_test_attempts= --force_pic --noforce_pic --genrule_strategy= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --grte_top=label --high_priority_workers= --host_action_env= --host_compilation_mode={fastbuild,dbg,opt} --host_compiler= --host_conlyopt= --host_copt= --host_cpu= --host_crosstool_top=label --host_cxxopt= --host_force_python={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --host_grte_top=label --host_java_launcher=label --host_java_toolchain=label --host_javabase=label --host_javacopt= --host_linkopt= --host_platform=label --host_swiftcopt= --http_timeout_scaling= --ignore_unsupported_sandboxing --noignore_unsupported_sandboxing --implicit_deps --noimplicit_deps --include_aspects --noinclude_aspects --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_avoid_conflict_dlls --noincompatible_avoid_conflict_dlls --incompatible_default_to_explicit_init_py --noincompatible_default_to_explicit_init_py --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_expand_if_all_available_in_flag_set --noincompatible_disable_expand_if_all_available_in_flag_set --incompatible_disable_native_android_rules --noincompatible_disable_native_android_rules --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_legacy_py_provider --noincompatible_disallow_legacy_py_provider --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_dont_enable_host_nonhost_crosstool_features --noincompatible_dont_enable_host_nonhost_crosstool_features --incompatible_enable_android_toolchain_resolution --noincompatible_enable_android_toolchain_resolution --incompatible_force_strict_header_check_from_starlark --noincompatible_force_strict_header_check_from_starlark --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_make_thinlto_command_lines_standalone --noincompatible_make_thinlto_command_lines_standalone --incompatible_merge_genfiles_directory --noincompatible_merge_genfiles_directory --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_compile_info_migration --noincompatible_objc_compile_info_migration --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prohibit_aapt1 --noincompatible_prohibit_aapt1 --incompatible_py2_outputs_are_suffixed --noincompatible_py2_outputs_are_suffixed --incompatible_py3_is_default --noincompatible_py3_is_default --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --noincompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --incompatible_remove_legacy_whole_archive --noincompatible_remove_legacy_whole_archive --incompatible_remove_local_resources --noincompatible_remove_local_resources --incompatible_require_ctx_in_configure_features --noincompatible_require_ctx_in_configure_features --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_strict_action_env --noincompatible_strict_action_env --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_use_platforms_repo_for_constraints --noincompatible_use_platforms_repo_for_constraints --incompatible_use_python_toolchains --noincompatible_use_python_toolchains --incompatible_validate_top_level_header_inclusions --noincompatible_validate_top_level_header_inclusions --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --incremental_dexing --noincremental_dexing --infer_universe_scope --noinfer_universe_scope --instrument_test_targets --noinstrument_test_targets --instrumentation_filter= --interface_shared_objects --nointerface_shared_objects --ios_cpu= --ios_memleaks --noios_memleaks --ios_minimum_os= --ios_multi_cpus= --ios_sdk_version= --ios_signing_cert_name= --ios_simulator_device= --ios_simulator_version= --j2objc_translation_flags= --java_debug --java_deps --nojava_deps --java_header_compilation --nojava_header_compilation --java_launcher=label --java_toolchain=label --javabase=label --javacopt= --jobs= --json_trace_compression={auto,yes,no} --nojson_trace_compression --jvmopt= --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_external_runfiles --nolegacy_external_runfiles --legacy_important_outputs --nolegacy_important_outputs --legacy_main_dex_list_generator=label --legacy_whole_archive --nolegacy_whole_archive --linkopt= --loading_phase_threads= --local_cpu_resources= --local_ram_resources= --local_resources= --local_termination_grace_seconds= --local_test_jobs= --logging= --ltobackendopt= --ltoindexopt= --macos_cpus= --macos_minimum_os= --macos_sdk_version= --materialize_param_files --nomaterialize_param_files --max_computation_steps= --max_config_changes_to_show= --max_test_output_bytes= --memory_profile_stable_heap_parameters= --message_translations= --minimum_os_version= --modify_execution_info= --nested_set_depth_limit= --nodep_deps --nonodep_deps --objc_debug_with_GLIBCXX --noobjc_debug_with_GLIBCXX --objc_enable_binary_stripping --noobjc_enable_binary_stripping --objc_generate_linkmap --noobjc_generate_linkmap --objc_use_dotd_pruning --noobjc_use_dotd_pruning --objccopt= --output= --output_filter= --output_groups= --override_repository= --package_path= --parse_headers_verifies_modules --noparse_headers_verifies_modules --per_file_copt= --per_file_ltobackendopt= --persistent_android_resource_processor --platform_mappings=path --platform_suffix= --platforms= --plugin= --process_headers_in_dependencies --noprocess_headers_in_dependencies --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --progress_report_interval= --proguard_top=label --project_id= --propeller_optimize=label --proto:default_values --noproto:default_values --proto:definition_stack --noproto:definition_stack --proto:flatten_selects --noproto:flatten_selects --proto:include_configurations --noproto:include_configurations --proto:include_synthetic_attribute_hash --noproto:include_synthetic_attribute_hash --proto:instantiation_stack --noproto:instantiation_stack --proto:locations --noproto:locations --proto:output_rule_attrs= --proto:rule_inputs_and_outputs --noproto:rule_inputs_and_outputs --proto_compiler=label --proto_toolchain_for_cc=label --proto_toolchain_for_j2objc=label --proto_toolchain_for_java=label --proto_toolchain_for_javalite=label --protocopt= --python2_path= --python3_path= --python_path= --python_top=label --python_version={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --relative_locations --norelative_locations --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repo_env= --repository_cache=path --run_under= --runs_per_test= --runs_per_test_detects_flakes --noruns_per_test_detects_flakes --sandbox_add_mount_pair= --sandbox_base= --sandbox_block_path= --sandbox_debug --nosandbox_debug --sandbox_default_allow_network --nosandbox_default_allow_network --sandbox_fake_hostname --nosandbox_fake_hostname --sandbox_fake_username --nosandbox_fake_username --sandbox_tmpfs_path= --sandbox_writable_path= --save_temps --nosave_temps --share_native_deps --noshare_native_deps --shell_executable=path --show_config_fragments={off,direct_host_only,direct,transitive} --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_result= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --spawn_strategy= --stamp --nostamp --starlark:expr= --starlark_cpu_profile= --strategy= --strategy_regexp= --strict_filesets --nostrict_filesets --strict_proto_deps={off,warn,error,strict,default} --strict_system_includes --nostrict_system_includes --strip={always,sometimes,never} --stripopt= --subcommands={true,pretty_print,false} --swiftcopt= --symlink_prefix= --target_environment= --target_pattern_file= --target_platform_fallback=label --test_arg= --test_env= --test_filter= --test_keep_going --notest_keep_going --test_lang_filters= --test_output={summary,errors,all,streamed} --test_result_expiration= --test_runner_fail_fast --notest_runner_fail_fast --test_sharding_strategy={explicit,disabled} --test_size_filters= --test_strategy= --test_summary={short,terse,detailed,none,testcase} --test_tag_filters= --test_timeout= --test_timeout_filters= --test_tmpdir=path --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_deps --notool_deps --tool_tag= --toolchain_resolution_debug --notoolchain_resolution_debug --track_incremental_state --notrack_incremental_state --transitions={full,lite,none} --translations={auto,yes,no} --notranslations --trim_test_configuration --notrim_test_configuration --tvos_cpus= --tvos_minimum_os= --tvos_sdk_version= --tvos_simulator_device= --tvos_simulator_version= --ui_actions_shown= --ui_event_filters= --universe_scope= --use_ijars --nouse_ijars --use_singlejar_apkbuilder --nouse_singlejar_apkbuilder --verbose_explanations --noverbose_explanations --verbose_failures --noverbose_failures --watchfs --nowatchfs --watchos_cpus= --watchos_minimum_os= --watchos_sdk_version= --watchos_simulator_device= --watchos_simulator_version= --worker_extra_flag= --worker_max_instances= --worker_quit_after_build --noworker_quit_after_build --worker_sandboxing --noworker_sandboxing --worker_verbose --noworker_verbose --workspace_status_command=path --xbinary_fdo=label --xcode_version= --xcode_version_config=label " BAZEL_COMMAND_DUMP_FLAGS=" --action_cache --noaction_cache --action_graph= --action_graph:include_artifacts --noaction_graph:include_artifacts --action_graph:include_cmdline --noaction_graph:include_cmdline --action_graph:targets= --all_incompatible_changes --announce_rc --noannounce_rc --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_metadata= --color={yes,no,auto} --config= --curses={yes,no,auto} --distdir= --enable_platform_specific_config --noenable_platform_specific_config --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_disable_external_package --noexperimental_disable_external_package --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_oom_more_eagerly_threshold= --experimental_platforms_api --noexperimental_platforms_api --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_resolved_file_instead_of_workspace= --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_verify_repository_rules= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_workspace_rules_log_file=path --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --http_timeout_scaling= --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --json_trace_compression={auto,yes,no} --nojson_trace_compression --keep_state_after_build --nokeep_state_after_build --legacy_important_outputs --nolegacy_important_outputs --logging= --max_computation_steps= --memory_profile_stable_heap_parameters= --nested_set_depth_limit= --override_repository= --packages --nopackages --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --project_id= --repository_cache=path --rule_classes --norule_classes --rules --norules --show_progress --noshow_progress --show_progress_rate_limit= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --skyframe={off,summary,detailed} --skylark_memory= --slim_profile --noslim_profile --starlark_cpu_profile= --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --track_incremental_state --notrack_incremental_state --ui_actions_shown= --ui_event_filters= --watchfs --nowatchfs " BAZEL_COMMAND_FETCH_ARGUMENT="label" BAZEL_COMMAND_FETCH_FLAGS=" --all_incompatible_changes --announce_rc --noannounce_rc --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_metadata= --color={yes,no,auto} --config= --curses={yes,no,auto} --deleted_packages= --disk_cache=path --distdir= --enable_platform_specific_config --noenable_platform_specific_config --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_disable_external_package --noexperimental_disable_external_package --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_oom_more_eagerly_threshold= --experimental_platforms_api --noexperimental_platforms_api --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_verify_repository_rules= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_workspace_rules_log_file=path --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --http_timeout_scaling= --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --json_trace_compression={auto,yes,no} --nojson_trace_compression --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_important_outputs --nolegacy_important_outputs --loading_phase_threads= --logging= --max_computation_steps= --memory_profile_stable_heap_parameters= --nested_set_depth_limit= --override_repository= --package_path= --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --project_id= --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repository_cache=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --starlark_cpu_profile= --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --track_incremental_state --notrack_incremental_state --ui_actions_shown= --ui_event_filters= --watchfs --nowatchfs " BAZEL_COMMAND_HELP_ARGUMENT="command|{startup_options,target-syntax,info-keys}" BAZEL_COMMAND_HELP_FLAGS=" --all_incompatible_changes --announce_rc --noannounce_rc --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_metadata= --color={yes,no,auto} --config= --curses={yes,no,auto} --distdir= --enable_platform_specific_config --noenable_platform_specific_config --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_disable_external_package --noexperimental_disable_external_package --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_oom_more_eagerly_threshold= --experimental_platforms_api --noexperimental_platforms_api --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_resolved_file_instead_of_workspace= --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_verify_repository_rules= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_workspace_rules_log_file=path --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --help_verbosity={long,medium,short} --http_timeout_scaling= --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --json_trace_compression={auto,yes,no} --nojson_trace_compression --keep_state_after_build --nokeep_state_after_build --legacy_important_outputs --nolegacy_important_outputs --logging= --long --max_computation_steps= --memory_profile_stable_heap_parameters= --nested_set_depth_limit= --override_repository= --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --project_id= --repository_cache=path --short --show_progress --noshow_progress --show_progress_rate_limit= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --starlark_cpu_profile= --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --track_incremental_state --notrack_incremental_state --ui_actions_shown= --ui_event_filters= --watchfs --nowatchfs " BAZEL_COMMAND_INFO_ARGUMENT="info-key" BAZEL_COMMAND_INFO_FLAGS=" --action_env= --all_incompatible_changes --allow_analysis_failures --noallow_analysis_failures --analysis_testing_deps_limit= --android_compiler= --android_cpu= --android_crosstool_top=label --android_databinding_use_v3_4_args --noandroid_databinding_use_v3_4_args --android_dynamic_mode={off,default,fully} --android_grte_top=label --android_manifest_merger={legacy,android,force_android} --android_manifest_merger_order={alphabetical,alphabetical_by_configuration,dependency} --android_resource_shrinking --noandroid_resource_shrinking --android_sdk=label --announce --noannounce --announce_rc --noannounce_rc --apk_signing_method={v1,v2,v1_v2} --apple_bitcode= --apple_compiler= --apple_crosstool_top=label --apple_enable_auto_dsym_dbg --noapple_enable_auto_dsym_dbg --apple_generate_dsym --noapple_generate_dsym --apple_grte_top=label --apple_sdk=label --aspects= --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --auto_cpu_environment_group=label --auto_output_filter={none,all,packages,subpackages} --bep_publish_used_heap_size_post_build --nobep_publish_used_heap_size_post_build --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --break_build_on_parallel_dex2oat_failure --nobreak_build_on_parallel_dex2oat_failure --build --nobuild --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_manual_tests --nobuild_manual_tests --build_metadata= --build_python_zip={auto,yes,no} --nobuild_python_zip --build_runfile_links --nobuild_runfile_links --build_runfile_manifests --nobuild_runfile_manifests --build_tag_filters= --build_test_dwp --nobuild_test_dwp --build_tests_only --nobuild_tests_only --cache_test_results={auto,yes,no} --nocache_test_results --catalyst_cpus= --cc_output_directory_tag= --cc_proto_library_header_suffixes= --cc_proto_library_source_suffixes= --check_constraint= --check_licenses --nocheck_licenses --check_tests_up_to_date --nocheck_tests_up_to_date --check_up_to_date --nocheck_up_to_date --check_visibility --nocheck_visibility --collapse_duplicate_defines --nocollapse_duplicate_defines --collect_code_coverage --nocollect_code_coverage --color={yes,no,auto} --combined_report={none,lcov} --compilation_mode={fastbuild,dbg,opt} --compile_one_dependency --nocompile_one_dependency --compiler= --config= --conlyopt= --copt= --coverage_report_generator=label --coverage_support=label --cpu= --crosstool_top=label --cs_fdo_absolute_path= --cs_fdo_instrument= --cs_fdo_profile=label --curses={yes,no,auto} --custom_malloc=label --cxxopt= --default_ios_provisioning_profile=label --define= --deleted_packages= --desugar_for_android --nodesugar_for_android --device_debug_entitlements --nodevice_debug_entitlements --discard_analysis_cache --nodiscard_analysis_cache --disk_cache=path --distdir= --distinct_host_configuration --nodistinct_host_configuration --dynamic_mode={off,default,fully} --embed_label= --enable_apple_binary_native_protos --noenable_apple_binary_native_protos --enable_fdo_profile_absolute_path --noenable_fdo_profile_absolute_path --enable_platform_specific_config --noenable_platform_specific_config --enable_runfiles={auto,yes,no} --noenable_runfiles --enforce_constraints --noenforce_constraints --execution_log_binary_file=path --execution_log_json_file=path --expand_test_suites --noexpand_test_suites --experimental_action_listener= --experimental_add_exec_constraints_to_targets= --experimental_allow_android_library_deps_without_srcs --noexperimental_allow_android_library_deps_without_srcs --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_android_compress_java_resources --noexperimental_android_compress_java_resources --experimental_android_databinding_v2 --noexperimental_android_databinding_v2 --experimental_android_resource_shrinking --noexperimental_android_resource_shrinking --experimental_android_rewrite_dexes_with_rex --noexperimental_android_rewrite_dexes_with_rex --experimental_android_use_parallel_dex2oat --noexperimental_android_use_parallel_dex2oat --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cancel_concurrent_tests --noexperimental_cancel_concurrent_tests --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_check_desugar_deps --noexperimental_check_desugar_deps --experimental_convenience_symlinks={normal,clean,ignore,log_only} --experimental_convenience_symlinks_bep_event --noexperimental_convenience_symlinks_bep_event --experimental_delay_virtual_input_materialization --noexperimental_delay_virtual_input_materialization --experimental_desugar_java8_libs --noexperimental_desugar_java8_libs --experimental_disable_external_package --noexperimental_disable_external_package --experimental_docker_image= --experimental_docker_privileged --noexperimental_docker_privileged --experimental_docker_use_customized_images --noexperimental_docker_use_customized_images --experimental_docker_verbose --noexperimental_docker_verbose --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_enable_docker_sandbox --noexperimental_enable_docker_sandbox --experimental_enable_flag_alias --noexperimental_enable_flag_alias --experimental_enable_objc_cc_deps --noexperimental_enable_objc_cc_deps --experimental_execution_log_file=path --experimental_extra_action_filter= --experimental_extra_action_top_level_only --noexperimental_extra_action_top_level_only --experimental_fetch_all_coverage_outputs --noexperimental_fetch_all_coverage_outputs --experimental_filter_library_jar_with_program_jar --noexperimental_filter_library_jar_with_program_jar --experimental_forward_instrumented_files_info_by_default --noexperimental_forward_instrumented_files_info_by_default --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_import_deps_checking={off,warning,error} --experimental_inmemory_dotd_files --noexperimental_inmemory_dotd_files --experimental_inmemory_jdeps_files --noexperimental_inmemory_jdeps_files --experimental_inprocess_symlink_creation --noexperimental_inprocess_symlink_creation --experimental_interleave_loading_and_analysis --noexperimental_interleave_loading_and_analysis --experimental_j2objc_header_map --noexperimental_j2objc_header_map --experimental_j2objc_shorter_header_path --noexperimental_j2objc_shorter_header_path --experimental_java_classpath={off,javabuilder,bazel} --experimental_java_proto_add_allowed_public_imports --noexperimental_java_proto_add_allowed_public_imports --experimental_local_execution_delay= --experimental_local_memory_estimate --noexperimental_local_memory_estimate --experimental_materialize_param_files_directly --noexperimental_materialize_param_files_directly --experimental_multi_cpu= --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_objc_enable_module_maps --noexperimental_objc_enable_module_maps --experimental_objc_fastbuild_options= --experimental_objc_include_scanning --noexperimental_objc_include_scanning --experimental_omitfp --noexperimental_omitfp --experimental_oom_more_eagerly_threshold= --experimental_persistent_javac --experimental_persistent_test_runner --noexperimental_persistent_test_runner --experimental_platforms_api --noexperimental_platforms_api --experimental_prefer_mutual_xcode --noexperimental_prefer_mutual_xcode --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_proto_descriptor_sets_include_source_info --noexperimental_proto_descriptor_sets_include_source_info --experimental_proto_extra_actions --noexperimental_proto_extra_actions --experimental_remotable_source_manifests --noexperimental_remotable_source_manifests --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_run_validations --noexperimental_run_validations --experimental_sandbox_async_tree_delete_idle_threads= --experimental_sandboxfs_map_symlink_targets --noexperimental_sandboxfs_map_symlink_targets --experimental_sandboxfs_path= --experimental_save_feature_state --noexperimental_save_feature_state --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_spawn_scheduler --experimental_split_xml_generation --noexperimental_split_xml_generation --experimental_starlark_cc_import --noexperimental_starlark_cc_import --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_strict_fileset_output --noexperimental_strict_fileset_output --experimental_strict_java_deps={off,warn,error,strict,default} --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_use_llvm_covmap --noexperimental_use_llvm_covmap --experimental_use_sandboxfs={auto,yes,no} --noexperimental_use_sandboxfs --experimental_use_windows_sandbox={auto,yes,no} --noexperimental_use_windows_sandbox --experimental_verify_repository_rules= --experimental_windows_sandbox_path= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_worker_max_multiplex_instances= --experimental_worker_multiplex --noexperimental_worker_multiplex --experimental_workspace_rules_log_file=path --explain=path --explicit_java_test_deps --noexplicit_java_test_deps --extra_execution_platforms= --extra_toolchains= --fat_apk_cpu= --fat_apk_hwasan --nofat_apk_hwasan --fdo_instrument= --fdo_optimize= --fdo_prefetch_hints=label --fdo_profile=label --features= --fission= --flag_alias= --flaky_test_attempts= --force_pic --noforce_pic --genrule_strategy= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --grte_top=label --high_priority_workers= --host_action_env= --host_compilation_mode={fastbuild,dbg,opt} --host_compiler= --host_conlyopt= --host_copt= --host_cpu= --host_crosstool_top=label --host_cxxopt= --host_force_python={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --host_grte_top=label --host_java_launcher=label --host_java_toolchain=label --host_javabase=label --host_javacopt= --host_linkopt= --host_platform=label --host_swiftcopt= --http_timeout_scaling= --ignore_unsupported_sandboxing --noignore_unsupported_sandboxing --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_avoid_conflict_dlls --noincompatible_avoid_conflict_dlls --incompatible_default_to_explicit_init_py --noincompatible_default_to_explicit_init_py --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_expand_if_all_available_in_flag_set --noincompatible_disable_expand_if_all_available_in_flag_set --incompatible_disable_native_android_rules --noincompatible_disable_native_android_rules --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_legacy_py_provider --noincompatible_disallow_legacy_py_provider --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_dont_enable_host_nonhost_crosstool_features --noincompatible_dont_enable_host_nonhost_crosstool_features --incompatible_enable_android_toolchain_resolution --noincompatible_enable_android_toolchain_resolution --incompatible_force_strict_header_check_from_starlark --noincompatible_force_strict_header_check_from_starlark --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_make_thinlto_command_lines_standalone --noincompatible_make_thinlto_command_lines_standalone --incompatible_merge_genfiles_directory --noincompatible_merge_genfiles_directory --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_compile_info_migration --noincompatible_objc_compile_info_migration --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prohibit_aapt1 --noincompatible_prohibit_aapt1 --incompatible_py2_outputs_are_suffixed --noincompatible_py2_outputs_are_suffixed --incompatible_py3_is_default --noincompatible_py3_is_default --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --noincompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --incompatible_remove_legacy_whole_archive --noincompatible_remove_legacy_whole_archive --incompatible_remove_local_resources --noincompatible_remove_local_resources --incompatible_require_ctx_in_configure_features --noincompatible_require_ctx_in_configure_features --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_strict_action_env --noincompatible_strict_action_env --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_use_platforms_repo_for_constraints --noincompatible_use_platforms_repo_for_constraints --incompatible_use_python_toolchains --noincompatible_use_python_toolchains --incompatible_validate_top_level_header_inclusions --noincompatible_validate_top_level_header_inclusions --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --incremental_dexing --noincremental_dexing --instrument_test_targets --noinstrument_test_targets --instrumentation_filter= --interface_shared_objects --nointerface_shared_objects --ios_cpu= --ios_memleaks --noios_memleaks --ios_minimum_os= --ios_multi_cpus= --ios_sdk_version= --ios_signing_cert_name= --ios_simulator_device= --ios_simulator_version= --j2objc_translation_flags= --java_debug --java_deps --nojava_deps --java_header_compilation --nojava_header_compilation --java_launcher=label --java_toolchain=label --javabase=label --javacopt= --jobs= --json_trace_compression={auto,yes,no} --nojson_trace_compression --jvmopt= --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_external_runfiles --nolegacy_external_runfiles --legacy_important_outputs --nolegacy_important_outputs --legacy_main_dex_list_generator=label --legacy_whole_archive --nolegacy_whole_archive --linkopt= --loading_phase_threads= --local_cpu_resources= --local_ram_resources= --local_resources= --local_termination_grace_seconds= --local_test_jobs= --logging= --ltobackendopt= --ltoindexopt= --macos_cpus= --macos_minimum_os= --macos_sdk_version= --materialize_param_files --nomaterialize_param_files --max_computation_steps= --max_config_changes_to_show= --max_test_output_bytes= --memory_profile_stable_heap_parameters= --message_translations= --minimum_os_version= --modify_execution_info= --nested_set_depth_limit= --objc_debug_with_GLIBCXX --noobjc_debug_with_GLIBCXX --objc_enable_binary_stripping --noobjc_enable_binary_stripping --objc_generate_linkmap --noobjc_generate_linkmap --objc_use_dotd_pruning --noobjc_use_dotd_pruning --objccopt= --output_filter= --output_groups= --override_repository= --package_path= --parse_headers_verifies_modules --noparse_headers_verifies_modules --per_file_copt= --per_file_ltobackendopt= --persistent_android_resource_processor --platform_mappings=path --platform_suffix= --platforms= --plugin= --process_headers_in_dependencies --noprocess_headers_in_dependencies --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --progress_report_interval= --proguard_top=label --project_id= --propeller_optimize=label --proto_compiler=label --proto_toolchain_for_cc=label --proto_toolchain_for_j2objc=label --proto_toolchain_for_java=label --proto_toolchain_for_javalite=label --protocopt= --python2_path= --python3_path= --python_path= --python_top=label --python_version={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repo_env= --repository_cache=path --run_under= --runs_per_test= --runs_per_test_detects_flakes --noruns_per_test_detects_flakes --sandbox_add_mount_pair= --sandbox_base= --sandbox_block_path= --sandbox_debug --nosandbox_debug --sandbox_default_allow_network --nosandbox_default_allow_network --sandbox_fake_hostname --nosandbox_fake_hostname --sandbox_fake_username --nosandbox_fake_username --sandbox_tmpfs_path= --sandbox_writable_path= --save_temps --nosave_temps --share_native_deps --noshare_native_deps --shell_executable=path --show_loading_progress --noshow_loading_progress --show_make_env --noshow_make_env --show_progress --noshow_progress --show_progress_rate_limit= --show_result= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --spawn_strategy= --stamp --nostamp --starlark_cpu_profile= --strategy= --strategy_regexp= --strict_filesets --nostrict_filesets --strict_proto_deps={off,warn,error,strict,default} --strict_system_includes --nostrict_system_includes --strip={always,sometimes,never} --stripopt= --subcommands={true,pretty_print,false} --swiftcopt= --symlink_prefix= --target_environment= --target_pattern_file= --target_platform_fallback=label --test_arg= --test_env= --test_filter= --test_keep_going --notest_keep_going --test_lang_filters= --test_output={summary,errors,all,streamed} --test_result_expiration= --test_runner_fail_fast --notest_runner_fail_fast --test_sharding_strategy={explicit,disabled} --test_size_filters= --test_strategy= --test_summary={short,terse,detailed,none,testcase} --test_tag_filters= --test_timeout= --test_timeout_filters= --test_tmpdir=path --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --toolchain_resolution_debug --notoolchain_resolution_debug --track_incremental_state --notrack_incremental_state --translations={auto,yes,no} --notranslations --trim_test_configuration --notrim_test_configuration --tvos_cpus= --tvos_minimum_os= --tvos_sdk_version= --tvos_simulator_device= --tvos_simulator_version= --ui_actions_shown= --ui_event_filters= --use_ijars --nouse_ijars --use_singlejar_apkbuilder --nouse_singlejar_apkbuilder --verbose_explanations --noverbose_explanations --verbose_failures --noverbose_failures --watchfs --nowatchfs --watchos_cpus= --watchos_minimum_os= --watchos_sdk_version= --watchos_simulator_device= --watchos_simulator_version= --worker_extra_flag= --worker_max_instances= --worker_quit_after_build --noworker_quit_after_build --worker_sandboxing --noworker_sandboxing --worker_verbose --noworker_verbose --workspace_status_command=path --xbinary_fdo=label --xcode_version= --xcode_version_config=label " BAZEL_COMMAND_LICENSE_FLAGS=" --all_incompatible_changes --announce_rc --noannounce_rc --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_metadata= --color={yes,no,auto} --config= --curses={yes,no,auto} --distdir= --enable_platform_specific_config --noenable_platform_specific_config --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_disable_external_package --noexperimental_disable_external_package --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_oom_more_eagerly_threshold= --experimental_platforms_api --noexperimental_platforms_api --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_resolved_file_instead_of_workspace= --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_verify_repository_rules= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_workspace_rules_log_file=path --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --http_timeout_scaling= --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --json_trace_compression={auto,yes,no} --nojson_trace_compression --keep_state_after_build --nokeep_state_after_build --legacy_important_outputs --nolegacy_important_outputs --logging= --max_computation_steps= --memory_profile_stable_heap_parameters= --nested_set_depth_limit= --override_repository= --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --project_id= --repository_cache=path --show_progress --noshow_progress --show_progress_rate_limit= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --starlark_cpu_profile= --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --track_incremental_state --notrack_incremental_state --ui_actions_shown= --ui_event_filters= --watchfs --nowatchfs " BAZEL_COMMAND_MOBILE_INSTALL_ARGUMENT="label" BAZEL_COMMAND_MOBILE_INSTALL_FLAGS=" --action_env= --adb= --adb_arg= --all_incompatible_changes --allow_analysis_failures --noallow_analysis_failures --analysis_testing_deps_limit= --android_compiler= --android_cpu= --android_crosstool_top=label --android_databinding_use_v3_4_args --noandroid_databinding_use_v3_4_args --android_dynamic_mode={off,default,fully} --android_grte_top=label --android_manifest_merger={legacy,android,force_android} --android_manifest_merger_order={alphabetical,alphabetical_by_configuration,dependency} --android_resource_shrinking --noandroid_resource_shrinking --android_sdk=label --announce --noannounce --announce_rc --noannounce_rc --apk_signing_method={v1,v2,v1_v2} --apple_bitcode= --apple_compiler= --apple_crosstool_top=label --apple_enable_auto_dsym_dbg --noapple_enable_auto_dsym_dbg --apple_generate_dsym --noapple_generate_dsym --apple_grte_top=label --apple_sdk=label --aspects= --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --auto_cpu_environment_group=label --auto_output_filter={none,all,packages,subpackages} --bep_publish_used_heap_size_post_build --nobep_publish_used_heap_size_post_build --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --break_build_on_parallel_dex2oat_failure --nobreak_build_on_parallel_dex2oat_failure --build --nobuild --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_manual_tests --nobuild_manual_tests --build_metadata= --build_python_zip={auto,yes,no} --nobuild_python_zip --build_runfile_links --nobuild_runfile_links --build_runfile_manifests --nobuild_runfile_manifests --build_tag_filters= --build_test_dwp --nobuild_test_dwp --build_tests_only --nobuild_tests_only --cache_test_results={auto,yes,no} --nocache_test_results --catalyst_cpus= --cc_output_directory_tag= --cc_proto_library_header_suffixes= --cc_proto_library_source_suffixes= --check_constraint= --check_licenses --nocheck_licenses --check_tests_up_to_date --nocheck_tests_up_to_date --check_up_to_date --nocheck_up_to_date --check_visibility --nocheck_visibility --collapse_duplicate_defines --nocollapse_duplicate_defines --collect_code_coverage --nocollect_code_coverage --color={yes,no,auto} --combined_report={none,lcov} --compilation_mode={fastbuild,dbg,opt} --compile_one_dependency --nocompile_one_dependency --compiler= --config= --conlyopt= --copt= --coverage_report_generator=label --coverage_support=label --cpu= --crosstool_top=label --cs_fdo_absolute_path= --cs_fdo_instrument= --cs_fdo_profile=label --curses={yes,no,auto} --custom_malloc=label --cxxopt= --debug_app --default_ios_provisioning_profile=label --define= --deleted_packages= --desugar_for_android --nodesugar_for_android --device= --device_debug_entitlements --nodevice_debug_entitlements --discard_analysis_cache --nodiscard_analysis_cache --disk_cache=path --distdir= --distinct_host_configuration --nodistinct_host_configuration --dynamic_mode={off,default,fully} --embed_label= --enable_apple_binary_native_protos --noenable_apple_binary_native_protos --enable_fdo_profile_absolute_path --noenable_fdo_profile_absolute_path --enable_platform_specific_config --noenable_platform_specific_config --enable_runfiles={auto,yes,no} --noenable_runfiles --enforce_constraints --noenforce_constraints --execution_log_binary_file=path --execution_log_json_file=path --expand_test_suites --noexpand_test_suites --experimental_action_listener= --experimental_add_exec_constraints_to_targets= --experimental_allow_android_library_deps_without_srcs --noexperimental_allow_android_library_deps_without_srcs --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_android_compress_java_resources --noexperimental_android_compress_java_resources --experimental_android_databinding_v2 --noexperimental_android_databinding_v2 --experimental_android_resource_shrinking --noexperimental_android_resource_shrinking --experimental_android_rewrite_dexes_with_rex --noexperimental_android_rewrite_dexes_with_rex --experimental_android_use_parallel_dex2oat --noexperimental_android_use_parallel_dex2oat --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cancel_concurrent_tests --noexperimental_cancel_concurrent_tests --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_check_desugar_deps --noexperimental_check_desugar_deps --experimental_convenience_symlinks={normal,clean,ignore,log_only} --experimental_convenience_symlinks_bep_event --noexperimental_convenience_symlinks_bep_event --experimental_delay_virtual_input_materialization --noexperimental_delay_virtual_input_materialization --experimental_desugar_java8_libs --noexperimental_desugar_java8_libs --experimental_disable_external_package --noexperimental_disable_external_package --experimental_docker_image= --experimental_docker_privileged --noexperimental_docker_privileged --experimental_docker_use_customized_images --noexperimental_docker_use_customized_images --experimental_docker_verbose --noexperimental_docker_verbose --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_enable_docker_sandbox --noexperimental_enable_docker_sandbox --experimental_enable_flag_alias --noexperimental_enable_flag_alias --experimental_enable_objc_cc_deps --noexperimental_enable_objc_cc_deps --experimental_execution_log_file=path --experimental_extra_action_filter= --experimental_extra_action_top_level_only --noexperimental_extra_action_top_level_only --experimental_fetch_all_coverage_outputs --noexperimental_fetch_all_coverage_outputs --experimental_filter_library_jar_with_program_jar --noexperimental_filter_library_jar_with_program_jar --experimental_forward_instrumented_files_info_by_default --noexperimental_forward_instrumented_files_info_by_default --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_import_deps_checking={off,warning,error} --experimental_inmemory_dotd_files --noexperimental_inmemory_dotd_files --experimental_inmemory_jdeps_files --noexperimental_inmemory_jdeps_files --experimental_inprocess_symlink_creation --noexperimental_inprocess_symlink_creation --experimental_interleave_loading_and_analysis --noexperimental_interleave_loading_and_analysis --experimental_j2objc_header_map --noexperimental_j2objc_header_map --experimental_j2objc_shorter_header_path --noexperimental_j2objc_shorter_header_path --experimental_java_classpath={off,javabuilder,bazel} --experimental_java_proto_add_allowed_public_imports --noexperimental_java_proto_add_allowed_public_imports --experimental_local_execution_delay= --experimental_local_memory_estimate --noexperimental_local_memory_estimate --experimental_materialize_param_files_directly --noexperimental_materialize_param_files_directly --experimental_multi_cpu= --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_objc_enable_module_maps --noexperimental_objc_enable_module_maps --experimental_objc_fastbuild_options= --experimental_objc_include_scanning --noexperimental_objc_include_scanning --experimental_omitfp --noexperimental_omitfp --experimental_oom_more_eagerly_threshold= --experimental_persistent_javac --experimental_persistent_test_runner --noexperimental_persistent_test_runner --experimental_platforms_api --noexperimental_platforms_api --experimental_prefer_mutual_xcode --noexperimental_prefer_mutual_xcode --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_proto_descriptor_sets_include_source_info --noexperimental_proto_descriptor_sets_include_source_info --experimental_proto_extra_actions --noexperimental_proto_extra_actions --experimental_remotable_source_manifests --noexperimental_remotable_source_manifests --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_run_validations --noexperimental_run_validations --experimental_sandbox_async_tree_delete_idle_threads= --experimental_sandboxfs_map_symlink_targets --noexperimental_sandboxfs_map_symlink_targets --experimental_sandboxfs_path= --experimental_save_feature_state --noexperimental_save_feature_state --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_spawn_scheduler --experimental_split_xml_generation --noexperimental_split_xml_generation --experimental_starlark_cc_import --noexperimental_starlark_cc_import --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_strict_fileset_output --noexperimental_strict_fileset_output --experimental_strict_java_deps={off,warn,error,strict,default} --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_use_llvm_covmap --noexperimental_use_llvm_covmap --experimental_use_sandboxfs={auto,yes,no} --noexperimental_use_sandboxfs --experimental_use_windows_sandbox={auto,yes,no} --noexperimental_use_windows_sandbox --experimental_verify_repository_rules= --experimental_windows_sandbox_path= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_worker_max_multiplex_instances= --experimental_worker_multiplex --noexperimental_worker_multiplex --experimental_workspace_rules_log_file=path --explain=path --explicit_java_test_deps --noexplicit_java_test_deps --extra_execution_platforms= --extra_toolchains= --fat_apk_cpu= --fat_apk_hwasan --nofat_apk_hwasan --fdo_instrument= --fdo_optimize= --fdo_prefetch_hints=label --fdo_profile=label --features= --fission= --flag_alias= --flaky_test_attempts= --force_pic --noforce_pic --genrule_strategy= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --grte_top=label --high_priority_workers= --host_action_env= --host_compilation_mode={fastbuild,dbg,opt} --host_compiler= --host_conlyopt= --host_copt= --host_cpu= --host_crosstool_top=label --host_cxxopt= --host_force_python={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --host_grte_top=label --host_java_launcher=label --host_java_toolchain=label --host_javabase=label --host_javacopt= --host_linkopt= --host_platform=label --host_swiftcopt= --http_timeout_scaling= --ignore_unsupported_sandboxing --noignore_unsupported_sandboxing --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_avoid_conflict_dlls --noincompatible_avoid_conflict_dlls --incompatible_default_to_explicit_init_py --noincompatible_default_to_explicit_init_py --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_expand_if_all_available_in_flag_set --noincompatible_disable_expand_if_all_available_in_flag_set --incompatible_disable_native_android_rules --noincompatible_disable_native_android_rules --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_legacy_py_provider --noincompatible_disallow_legacy_py_provider --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_dont_enable_host_nonhost_crosstool_features --noincompatible_dont_enable_host_nonhost_crosstool_features --incompatible_enable_android_toolchain_resolution --noincompatible_enable_android_toolchain_resolution --incompatible_force_strict_header_check_from_starlark --noincompatible_force_strict_header_check_from_starlark --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_make_thinlto_command_lines_standalone --noincompatible_make_thinlto_command_lines_standalone --incompatible_merge_genfiles_directory --noincompatible_merge_genfiles_directory --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_compile_info_migration --noincompatible_objc_compile_info_migration --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prohibit_aapt1 --noincompatible_prohibit_aapt1 --incompatible_py2_outputs_are_suffixed --noincompatible_py2_outputs_are_suffixed --incompatible_py3_is_default --noincompatible_py3_is_default --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --noincompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --incompatible_remove_legacy_whole_archive --noincompatible_remove_legacy_whole_archive --incompatible_remove_local_resources --noincompatible_remove_local_resources --incompatible_require_ctx_in_configure_features --noincompatible_require_ctx_in_configure_features --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_strict_action_env --noincompatible_strict_action_env --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_use_platforms_repo_for_constraints --noincompatible_use_platforms_repo_for_constraints --incompatible_use_python_toolchains --noincompatible_use_python_toolchains --incompatible_validate_top_level_header_inclusions --noincompatible_validate_top_level_header_inclusions --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --incremental --noincremental --incremental_dexing --noincremental_dexing --incremental_install_verbosity= --instrument_test_targets --noinstrument_test_targets --instrumentation_filter= --interface_shared_objects --nointerface_shared_objects --ios_cpu= --ios_memleaks --noios_memleaks --ios_minimum_os= --ios_multi_cpus= --ios_sdk_version= --ios_signing_cert_name= --ios_simulator_device= --ios_simulator_version= --j2objc_translation_flags= --java_debug --java_deps --nojava_deps --java_header_compilation --nojava_header_compilation --java_launcher=label --java_toolchain=label --javabase=label --javacopt= --jobs= --json_trace_compression={auto,yes,no} --nojson_trace_compression --jvmopt= --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_external_runfiles --nolegacy_external_runfiles --legacy_important_outputs --nolegacy_important_outputs --legacy_main_dex_list_generator=label --legacy_whole_archive --nolegacy_whole_archive --linkopt= --loading_phase_threads= --local_cpu_resources= --local_ram_resources= --local_resources= --local_termination_grace_seconds= --local_test_jobs= --logging= --ltobackendopt= --ltoindexopt= --macos_cpus= --macos_minimum_os= --macos_sdk_version= --materialize_param_files --nomaterialize_param_files --max_computation_steps= --max_config_changes_to_show= --max_test_output_bytes= --memory_profile_stable_heap_parameters= --message_translations= --minimum_os_version= --mode={classic,classic_internal_test_do_not_use,skylark} --modify_execution_info= --nested_set_depth_limit= --objc_debug_with_GLIBCXX --noobjc_debug_with_GLIBCXX --objc_enable_binary_stripping --noobjc_enable_binary_stripping --objc_generate_linkmap --noobjc_generate_linkmap --objc_use_dotd_pruning --noobjc_use_dotd_pruning --objccopt= --output_filter= --output_groups= --override_repository= --package_path= --parse_headers_verifies_modules --noparse_headers_verifies_modules --per_file_copt= --per_file_ltobackendopt= --persistent_android_resource_processor --platform_mappings=path --platform_suffix= --platforms= --plugin= --process_headers_in_dependencies --noprocess_headers_in_dependencies --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --progress_report_interval= --proguard_top=label --project_id= --propeller_optimize=label --proto_compiler=label --proto_toolchain_for_cc=label --proto_toolchain_for_j2objc=label --proto_toolchain_for_java=label --proto_toolchain_for_javalite=label --protocopt= --python2_path= --python3_path= --python_path= --python_top=label --python_version={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repo_env= --repository_cache=path --run_under= --runs_per_test= --runs_per_test_detects_flakes --noruns_per_test_detects_flakes --sandbox_add_mount_pair= --sandbox_base= --sandbox_block_path= --sandbox_debug --nosandbox_debug --sandbox_default_allow_network --nosandbox_default_allow_network --sandbox_fake_hostname --nosandbox_fake_hostname --sandbox_fake_username --nosandbox_fake_username --sandbox_tmpfs_path= --sandbox_writable_path= --save_temps --nosave_temps --share_native_deps --noshare_native_deps --shell_executable=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_result= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --spawn_strategy= --split_apks --nosplit_apks --stamp --nostamp --starlark_cpu_profile= --start={no,cold,warm,debug} --start_app --strategy= --strategy_regexp= --strict_filesets --nostrict_filesets --strict_proto_deps={off,warn,error,strict,default} --strict_system_includes --nostrict_system_includes --strip={always,sometimes,never} --stripopt= --subcommands={true,pretty_print,false} --swiftcopt= --symlink_prefix= --target_environment= --target_pattern_file= --target_platform_fallback=label --test_arg= --test_env= --test_filter= --test_keep_going --notest_keep_going --test_lang_filters= --test_output={summary,errors,all,streamed} --test_result_expiration= --test_runner_fail_fast --notest_runner_fail_fast --test_sharding_strategy={explicit,disabled} --test_size_filters= --test_strategy= --test_summary={short,terse,detailed,none,testcase} --test_tag_filters= --test_timeout= --test_timeout_filters= --test_tmpdir=path --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --toolchain_resolution_debug --notoolchain_resolution_debug --track_incremental_state --notrack_incremental_state --translations={auto,yes,no} --notranslations --trim_test_configuration --notrim_test_configuration --tvos_cpus= --tvos_minimum_os= --tvos_sdk_version= --tvos_simulator_device= --tvos_simulator_version= --ui_actions_shown= --ui_event_filters= --use_ijars --nouse_ijars --use_singlejar_apkbuilder --nouse_singlejar_apkbuilder --verbose_explanations --noverbose_explanations --verbose_failures --noverbose_failures --watchfs --nowatchfs --watchos_cpus= --watchos_minimum_os= --watchos_sdk_version= --watchos_simulator_device= --watchos_simulator_version= --worker_extra_flag= --worker_max_instances= --worker_quit_after_build --noworker_quit_after_build --worker_sandboxing --noworker_sandboxing --worker_verbose --noworker_verbose --workspace_status_command=path --xbinary_fdo=label --xcode_version= --xcode_version_config=label " BAZEL_COMMAND_PRINT_ACTION_ARGUMENT="label" BAZEL_COMMAND_PRINT_ACTION_FLAGS=" --action_env= --all_incompatible_changes --allow_analysis_failures --noallow_analysis_failures --analysis_testing_deps_limit= --android_compiler= --android_cpu= --android_crosstool_top=label --android_databinding_use_v3_4_args --noandroid_databinding_use_v3_4_args --android_dynamic_mode={off,default,fully} --android_grte_top=label --android_manifest_merger={legacy,android,force_android} --android_manifest_merger_order={alphabetical,alphabetical_by_configuration,dependency} --android_resource_shrinking --noandroid_resource_shrinking --android_sdk=label --announce --noannounce --announce_rc --noannounce_rc --apk_signing_method={v1,v2,v1_v2} --apple_bitcode= --apple_compiler= --apple_crosstool_top=label --apple_enable_auto_dsym_dbg --noapple_enable_auto_dsym_dbg --apple_generate_dsym --noapple_generate_dsym --apple_grte_top=label --apple_sdk=label --aspects= --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --auto_cpu_environment_group=label --auto_output_filter={none,all,packages,subpackages} --bep_publish_used_heap_size_post_build --nobep_publish_used_heap_size_post_build --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --break_build_on_parallel_dex2oat_failure --nobreak_build_on_parallel_dex2oat_failure --build --nobuild --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_manual_tests --nobuild_manual_tests --build_metadata= --build_python_zip={auto,yes,no} --nobuild_python_zip --build_runfile_links --nobuild_runfile_links --build_runfile_manifests --nobuild_runfile_manifests --build_tag_filters= --build_test_dwp --nobuild_test_dwp --build_tests_only --nobuild_tests_only --cache_test_results={auto,yes,no} --nocache_test_results --catalyst_cpus= --cc_output_directory_tag= --cc_proto_library_header_suffixes= --cc_proto_library_source_suffixes= --check_constraint= --check_licenses --nocheck_licenses --check_tests_up_to_date --nocheck_tests_up_to_date --check_up_to_date --nocheck_up_to_date --check_visibility --nocheck_visibility --collapse_duplicate_defines --nocollapse_duplicate_defines --collect_code_coverage --nocollect_code_coverage --color={yes,no,auto} --combined_report={none,lcov} --compilation_mode={fastbuild,dbg,opt} --compile_one_dependency --nocompile_one_dependency --compiler= --config= --conlyopt= --copt= --coverage_report_generator=label --coverage_support=label --cpu= --crosstool_top=label --cs_fdo_absolute_path= --cs_fdo_instrument= --cs_fdo_profile=label --curses={yes,no,auto} --custom_malloc=label --cxxopt= --default_ios_provisioning_profile=label --define= --deleted_packages= --desugar_for_android --nodesugar_for_android --device_debug_entitlements --nodevice_debug_entitlements --discard_analysis_cache --nodiscard_analysis_cache --disk_cache=path --distdir= --distinct_host_configuration --nodistinct_host_configuration --dynamic_mode={off,default,fully} --embed_label= --enable_apple_binary_native_protos --noenable_apple_binary_native_protos --enable_fdo_profile_absolute_path --noenable_fdo_profile_absolute_path --enable_platform_specific_config --noenable_platform_specific_config --enable_runfiles={auto,yes,no} --noenable_runfiles --enforce_constraints --noenforce_constraints --execution_log_binary_file=path --execution_log_json_file=path --expand_test_suites --noexpand_test_suites --experimental_action_listener= --experimental_add_exec_constraints_to_targets= --experimental_allow_android_library_deps_without_srcs --noexperimental_allow_android_library_deps_without_srcs --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_android_compress_java_resources --noexperimental_android_compress_java_resources --experimental_android_databinding_v2 --noexperimental_android_databinding_v2 --experimental_android_resource_shrinking --noexperimental_android_resource_shrinking --experimental_android_rewrite_dexes_with_rex --noexperimental_android_rewrite_dexes_with_rex --experimental_android_use_parallel_dex2oat --noexperimental_android_use_parallel_dex2oat --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cancel_concurrent_tests --noexperimental_cancel_concurrent_tests --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_check_desugar_deps --noexperimental_check_desugar_deps --experimental_convenience_symlinks={normal,clean,ignore,log_only} --experimental_convenience_symlinks_bep_event --noexperimental_convenience_symlinks_bep_event --experimental_delay_virtual_input_materialization --noexperimental_delay_virtual_input_materialization --experimental_desugar_java8_libs --noexperimental_desugar_java8_libs --experimental_disable_external_package --noexperimental_disable_external_package --experimental_docker_image= --experimental_docker_privileged --noexperimental_docker_privileged --experimental_docker_use_customized_images --noexperimental_docker_use_customized_images --experimental_docker_verbose --noexperimental_docker_verbose --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_enable_docker_sandbox --noexperimental_enable_docker_sandbox --experimental_enable_flag_alias --noexperimental_enable_flag_alias --experimental_enable_objc_cc_deps --noexperimental_enable_objc_cc_deps --experimental_execution_log_file=path --experimental_extra_action_filter= --experimental_extra_action_top_level_only --noexperimental_extra_action_top_level_only --experimental_fetch_all_coverage_outputs --noexperimental_fetch_all_coverage_outputs --experimental_filter_library_jar_with_program_jar --noexperimental_filter_library_jar_with_program_jar --experimental_forward_instrumented_files_info_by_default --noexperimental_forward_instrumented_files_info_by_default --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_import_deps_checking={off,warning,error} --experimental_inmemory_dotd_files --noexperimental_inmemory_dotd_files --experimental_inmemory_jdeps_files --noexperimental_inmemory_jdeps_files --experimental_inprocess_symlink_creation --noexperimental_inprocess_symlink_creation --experimental_interleave_loading_and_analysis --noexperimental_interleave_loading_and_analysis --experimental_j2objc_header_map --noexperimental_j2objc_header_map --experimental_j2objc_shorter_header_path --noexperimental_j2objc_shorter_header_path --experimental_java_classpath={off,javabuilder,bazel} --experimental_java_proto_add_allowed_public_imports --noexperimental_java_proto_add_allowed_public_imports --experimental_local_execution_delay= --experimental_local_memory_estimate --noexperimental_local_memory_estimate --experimental_materialize_param_files_directly --noexperimental_materialize_param_files_directly --experimental_multi_cpu= --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_objc_enable_module_maps --noexperimental_objc_enable_module_maps --experimental_objc_fastbuild_options= --experimental_objc_include_scanning --noexperimental_objc_include_scanning --experimental_omitfp --noexperimental_omitfp --experimental_oom_more_eagerly_threshold= --experimental_persistent_javac --experimental_persistent_test_runner --noexperimental_persistent_test_runner --experimental_platforms_api --noexperimental_platforms_api --experimental_prefer_mutual_xcode --noexperimental_prefer_mutual_xcode --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_proto_descriptor_sets_include_source_info --noexperimental_proto_descriptor_sets_include_source_info --experimental_proto_extra_actions --noexperimental_proto_extra_actions --experimental_remotable_source_manifests --noexperimental_remotable_source_manifests --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_run_validations --noexperimental_run_validations --experimental_sandbox_async_tree_delete_idle_threads= --experimental_sandboxfs_map_symlink_targets --noexperimental_sandboxfs_map_symlink_targets --experimental_sandboxfs_path= --experimental_save_feature_state --noexperimental_save_feature_state --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_spawn_scheduler --experimental_split_xml_generation --noexperimental_split_xml_generation --experimental_starlark_cc_import --noexperimental_starlark_cc_import --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_strict_fileset_output --noexperimental_strict_fileset_output --experimental_strict_java_deps={off,warn,error,strict,default} --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_use_llvm_covmap --noexperimental_use_llvm_covmap --experimental_use_sandboxfs={auto,yes,no} --noexperimental_use_sandboxfs --experimental_use_windows_sandbox={auto,yes,no} --noexperimental_use_windows_sandbox --experimental_verify_repository_rules= --experimental_windows_sandbox_path= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_worker_max_multiplex_instances= --experimental_worker_multiplex --noexperimental_worker_multiplex --experimental_workspace_rules_log_file=path --explain=path --explicit_java_test_deps --noexplicit_java_test_deps --extra_execution_platforms= --extra_toolchains= --fat_apk_cpu= --fat_apk_hwasan --nofat_apk_hwasan --fdo_instrument= --fdo_optimize= --fdo_prefetch_hints=label --fdo_profile=label --features= --fission= --flag_alias= --flaky_test_attempts= --force_pic --noforce_pic --genrule_strategy= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --grte_top=label --high_priority_workers= --host_action_env= --host_compilation_mode={fastbuild,dbg,opt} --host_compiler= --host_conlyopt= --host_copt= --host_cpu= --host_crosstool_top=label --host_cxxopt= --host_force_python={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --host_grte_top=label --host_java_launcher=label --host_java_toolchain=label --host_javabase=label --host_javacopt= --host_linkopt= --host_platform=label --host_swiftcopt= --http_timeout_scaling= --ignore_unsupported_sandboxing --noignore_unsupported_sandboxing --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_avoid_conflict_dlls --noincompatible_avoid_conflict_dlls --incompatible_default_to_explicit_init_py --noincompatible_default_to_explicit_init_py --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_expand_if_all_available_in_flag_set --noincompatible_disable_expand_if_all_available_in_flag_set --incompatible_disable_native_android_rules --noincompatible_disable_native_android_rules --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_legacy_py_provider --noincompatible_disallow_legacy_py_provider --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_dont_enable_host_nonhost_crosstool_features --noincompatible_dont_enable_host_nonhost_crosstool_features --incompatible_enable_android_toolchain_resolution --noincompatible_enable_android_toolchain_resolution --incompatible_force_strict_header_check_from_starlark --noincompatible_force_strict_header_check_from_starlark --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_make_thinlto_command_lines_standalone --noincompatible_make_thinlto_command_lines_standalone --incompatible_merge_genfiles_directory --noincompatible_merge_genfiles_directory --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_compile_info_migration --noincompatible_objc_compile_info_migration --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prohibit_aapt1 --noincompatible_prohibit_aapt1 --incompatible_py2_outputs_are_suffixed --noincompatible_py2_outputs_are_suffixed --incompatible_py3_is_default --noincompatible_py3_is_default --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --noincompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --incompatible_remove_legacy_whole_archive --noincompatible_remove_legacy_whole_archive --incompatible_remove_local_resources --noincompatible_remove_local_resources --incompatible_require_ctx_in_configure_features --noincompatible_require_ctx_in_configure_features --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_strict_action_env --noincompatible_strict_action_env --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_use_platforms_repo_for_constraints --noincompatible_use_platforms_repo_for_constraints --incompatible_use_python_toolchains --noincompatible_use_python_toolchains --incompatible_validate_top_level_header_inclusions --noincompatible_validate_top_level_header_inclusions --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --incremental_dexing --noincremental_dexing --instrument_test_targets --noinstrument_test_targets --instrumentation_filter= --interface_shared_objects --nointerface_shared_objects --ios_cpu= --ios_memleaks --noios_memleaks --ios_minimum_os= --ios_multi_cpus= --ios_sdk_version= --ios_signing_cert_name= --ios_simulator_device= --ios_simulator_version= --j2objc_translation_flags= --java_debug --java_deps --nojava_deps --java_header_compilation --nojava_header_compilation --java_launcher=label --java_toolchain=label --javabase=label --javacopt= --jobs= --json_trace_compression={auto,yes,no} --nojson_trace_compression --jvmopt= --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_external_runfiles --nolegacy_external_runfiles --legacy_important_outputs --nolegacy_important_outputs --legacy_main_dex_list_generator=label --legacy_whole_archive --nolegacy_whole_archive --linkopt= --loading_phase_threads= --local_cpu_resources= --local_ram_resources= --local_resources= --local_termination_grace_seconds= --local_test_jobs= --logging= --ltobackendopt= --ltoindexopt= --macos_cpus= --macos_minimum_os= --macos_sdk_version= --materialize_param_files --nomaterialize_param_files --max_computation_steps= --max_config_changes_to_show= --max_test_output_bytes= --memory_profile_stable_heap_parameters= --message_translations= --minimum_os_version= --modify_execution_info= --nested_set_depth_limit= --objc_debug_with_GLIBCXX --noobjc_debug_with_GLIBCXX --objc_enable_binary_stripping --noobjc_enable_binary_stripping --objc_generate_linkmap --noobjc_generate_linkmap --objc_use_dotd_pruning --noobjc_use_dotd_pruning --objccopt= --output_filter= --output_groups= --override_repository= --package_path= --parse_headers_verifies_modules --noparse_headers_verifies_modules --per_file_copt= --per_file_ltobackendopt= --persistent_android_resource_processor --platform_mappings=path --platform_suffix= --platforms= --plugin= --print_action_mnemonics= --process_headers_in_dependencies --noprocess_headers_in_dependencies --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --progress_report_interval= --proguard_top=label --project_id= --propeller_optimize=label --proto_compiler=label --proto_toolchain_for_cc=label --proto_toolchain_for_j2objc=label --proto_toolchain_for_java=label --proto_toolchain_for_javalite=label --protocopt= --python2_path= --python3_path= --python_path= --python_top=label --python_version={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repo_env= --repository_cache=path --run_under= --runs_per_test= --runs_per_test_detects_flakes --noruns_per_test_detects_flakes --sandbox_add_mount_pair= --sandbox_base= --sandbox_block_path= --sandbox_debug --nosandbox_debug --sandbox_default_allow_network --nosandbox_default_allow_network --sandbox_fake_hostname --nosandbox_fake_hostname --sandbox_fake_username --nosandbox_fake_username --sandbox_tmpfs_path= --sandbox_writable_path= --save_temps --nosave_temps --share_native_deps --noshare_native_deps --shell_executable=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_result= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --spawn_strategy= --stamp --nostamp --starlark_cpu_profile= --strategy= --strategy_regexp= --strict_filesets --nostrict_filesets --strict_proto_deps={off,warn,error,strict,default} --strict_system_includes --nostrict_system_includes --strip={always,sometimes,never} --stripopt= --subcommands={true,pretty_print,false} --swiftcopt= --symlink_prefix= --target_environment= --target_pattern_file= --target_platform_fallback=label --test_arg= --test_env= --test_filter= --test_keep_going --notest_keep_going --test_lang_filters= --test_output={summary,errors,all,streamed} --test_result_expiration= --test_runner_fail_fast --notest_runner_fail_fast --test_sharding_strategy={explicit,disabled} --test_size_filters= --test_strategy= --test_summary={short,terse,detailed,none,testcase} --test_tag_filters= --test_timeout= --test_timeout_filters= --test_tmpdir=path --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --toolchain_resolution_debug --notoolchain_resolution_debug --track_incremental_state --notrack_incremental_state --translations={auto,yes,no} --notranslations --trim_test_configuration --notrim_test_configuration --tvos_cpus= --tvos_minimum_os= --tvos_sdk_version= --tvos_simulator_device= --tvos_simulator_version= --ui_actions_shown= --ui_event_filters= --use_ijars --nouse_ijars --use_singlejar_apkbuilder --nouse_singlejar_apkbuilder --verbose_explanations --noverbose_explanations --verbose_failures --noverbose_failures --watchfs --nowatchfs --watchos_cpus= --watchos_minimum_os= --watchos_sdk_version= --watchos_simulator_device= --watchos_simulator_version= --worker_extra_flag= --worker_max_instances= --worker_quit_after_build --noworker_quit_after_build --worker_sandboxing --noworker_sandboxing --worker_verbose --noworker_verbose --workspace_status_command=path --xbinary_fdo=label --xcode_version= --xcode_version_config=label " BAZEL_COMMAND_QUERY_ARGUMENT="label" BAZEL_COMMAND_QUERY_FLAGS=" --all_incompatible_changes --announce_rc --noannounce_rc --aspect_deps={off,conservative,precise} --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_metadata= --color={yes,no,auto} --config= --curses={yes,no,auto} --deleted_packages= --disk_cache=path --distdir= --enable_platform_specific_config --noenable_platform_specific_config --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_disable_external_package --noexperimental_disable_external_package --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_graphless_genquery_force_sort --noexperimental_graphless_genquery_force_sort --experimental_graphless_query={auto,yes,no} --noexperimental_graphless_query --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_oom_more_eagerly_threshold= --experimental_platforms_api --noexperimental_platforms_api --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_verify_repository_rules= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_workspace_rules_log_file=path --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --graph:conditional_edges_limit= --graph:factored --nograph:factored --graph:node_limit= --grpc_keepalive_time= --grpc_keepalive_timeout= --http_timeout_scaling= --implicit_deps --noimplicit_deps --include_aspects --noinclude_aspects --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prefer_unordered_output --noincompatible_prefer_unordered_output --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --infer_universe_scope --noinfer_universe_scope --json_trace_compression={auto,yes,no} --nojson_trace_compression --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_important_outputs --nolegacy_important_outputs --line_terminator_null --noline_terminator_null --loading_phase_threads= --logging= --max_computation_steps= --memory_profile_stable_heap_parameters= --nested_set_depth_limit= --nodep_deps --nonodep_deps --noorder_results --null --order_output={no,deps,auto,full} --order_results --output= --override_repository= --package_path= --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --project_id= --proto:default_values --noproto:default_values --proto:definition_stack --noproto:definition_stack --proto:flatten_selects --noproto:flatten_selects --proto:include_synthetic_attribute_hash --noproto:include_synthetic_attribute_hash --proto:instantiation_stack --noproto:instantiation_stack --proto:locations --noproto:locations --proto:output_rule_attrs= --proto:rule_inputs_and_outputs --noproto:rule_inputs_and_outputs --query_file= --relative_locations --norelative_locations --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repository_cache=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --starlark_cpu_profile= --strict_test_suite --nostrict_test_suite --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_deps --notool_deps --tool_tag= --track_incremental_state --notrack_incremental_state --ui_actions_shown= --ui_event_filters= --universe_scope= --watchfs --nowatchfs --xml:default_values --noxml:default_values --xml:line_numbers --noxml:line_numbers " BAZEL_COMMAND_RUN_ARGUMENT="label-bin" BAZEL_COMMAND_RUN_FLAGS=" --action_env= --all_incompatible_changes --allow_analysis_failures --noallow_analysis_failures --analysis_testing_deps_limit= --android_compiler= --android_cpu= --android_crosstool_top=label --android_databinding_use_v3_4_args --noandroid_databinding_use_v3_4_args --android_dynamic_mode={off,default,fully} --android_grte_top=label --android_manifest_merger={legacy,android,force_android} --android_manifest_merger_order={alphabetical,alphabetical_by_configuration,dependency} --android_resource_shrinking --noandroid_resource_shrinking --android_sdk=label --announce --noannounce --announce_rc --noannounce_rc --apk_signing_method={v1,v2,v1_v2} --apple_bitcode= --apple_compiler= --apple_crosstool_top=label --apple_enable_auto_dsym_dbg --noapple_enable_auto_dsym_dbg --apple_generate_dsym --noapple_generate_dsym --apple_grte_top=label --apple_sdk=label --aspects= --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --auto_cpu_environment_group=label --auto_output_filter={none,all,packages,subpackages} --bep_publish_used_heap_size_post_build --nobep_publish_used_heap_size_post_build --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --break_build_on_parallel_dex2oat_failure --nobreak_build_on_parallel_dex2oat_failure --build --nobuild --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_manual_tests --nobuild_manual_tests --build_metadata= --build_python_zip={auto,yes,no} --nobuild_python_zip --build_runfile_links --nobuild_runfile_links --build_runfile_manifests --nobuild_runfile_manifests --build_tag_filters= --build_test_dwp --nobuild_test_dwp --build_tests_only --nobuild_tests_only --cache_test_results={auto,yes,no} --nocache_test_results --catalyst_cpus= --cc_output_directory_tag= --cc_proto_library_header_suffixes= --cc_proto_library_source_suffixes= --check_constraint= --check_licenses --nocheck_licenses --check_tests_up_to_date --nocheck_tests_up_to_date --check_up_to_date --nocheck_up_to_date --check_visibility --nocheck_visibility --collapse_duplicate_defines --nocollapse_duplicate_defines --collect_code_coverage --nocollect_code_coverage --color={yes,no,auto} --combined_report={none,lcov} --compilation_mode={fastbuild,dbg,opt} --compile_one_dependency --nocompile_one_dependency --compiler= --config= --conlyopt= --copt= --coverage_report_generator=label --coverage_support=label --cpu= --crosstool_top=label --cs_fdo_absolute_path= --cs_fdo_instrument= --cs_fdo_profile=label --curses={yes,no,auto} --custom_malloc=label --cxxopt= --default_ios_provisioning_profile=label --define= --deleted_packages= --desugar_for_android --nodesugar_for_android --device_debug_entitlements --nodevice_debug_entitlements --discard_analysis_cache --nodiscard_analysis_cache --disk_cache=path --distdir= --distinct_host_configuration --nodistinct_host_configuration --dynamic_mode={off,default,fully} --embed_label= --enable_apple_binary_native_protos --noenable_apple_binary_native_protos --enable_fdo_profile_absolute_path --noenable_fdo_profile_absolute_path --enable_platform_specific_config --noenable_platform_specific_config --enable_runfiles={auto,yes,no} --noenable_runfiles --enforce_constraints --noenforce_constraints --execution_log_binary_file=path --execution_log_json_file=path --expand_test_suites --noexpand_test_suites --experimental_action_listener= --experimental_add_exec_constraints_to_targets= --experimental_allow_android_library_deps_without_srcs --noexperimental_allow_android_library_deps_without_srcs --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_android_compress_java_resources --noexperimental_android_compress_java_resources --experimental_android_databinding_v2 --noexperimental_android_databinding_v2 --experimental_android_resource_shrinking --noexperimental_android_resource_shrinking --experimental_android_rewrite_dexes_with_rex --noexperimental_android_rewrite_dexes_with_rex --experimental_android_use_parallel_dex2oat --noexperimental_android_use_parallel_dex2oat --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cancel_concurrent_tests --noexperimental_cancel_concurrent_tests --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_check_desugar_deps --noexperimental_check_desugar_deps --experimental_convenience_symlinks={normal,clean,ignore,log_only} --experimental_convenience_symlinks_bep_event --noexperimental_convenience_symlinks_bep_event --experimental_delay_virtual_input_materialization --noexperimental_delay_virtual_input_materialization --experimental_desugar_java8_libs --noexperimental_desugar_java8_libs --experimental_disable_external_package --noexperimental_disable_external_package --experimental_docker_image= --experimental_docker_privileged --noexperimental_docker_privileged --experimental_docker_use_customized_images --noexperimental_docker_use_customized_images --experimental_docker_verbose --noexperimental_docker_verbose --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_enable_docker_sandbox --noexperimental_enable_docker_sandbox --experimental_enable_flag_alias --noexperimental_enable_flag_alias --experimental_enable_objc_cc_deps --noexperimental_enable_objc_cc_deps --experimental_execution_log_file=path --experimental_extra_action_filter= --experimental_extra_action_top_level_only --noexperimental_extra_action_top_level_only --experimental_fetch_all_coverage_outputs --noexperimental_fetch_all_coverage_outputs --experimental_filter_library_jar_with_program_jar --noexperimental_filter_library_jar_with_program_jar --experimental_forward_instrumented_files_info_by_default --noexperimental_forward_instrumented_files_info_by_default --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_import_deps_checking={off,warning,error} --experimental_inmemory_dotd_files --noexperimental_inmemory_dotd_files --experimental_inmemory_jdeps_files --noexperimental_inmemory_jdeps_files --experimental_inprocess_symlink_creation --noexperimental_inprocess_symlink_creation --experimental_interleave_loading_and_analysis --noexperimental_interleave_loading_and_analysis --experimental_j2objc_header_map --noexperimental_j2objc_header_map --experimental_j2objc_shorter_header_path --noexperimental_j2objc_shorter_header_path --experimental_java_classpath={off,javabuilder,bazel} --experimental_java_proto_add_allowed_public_imports --noexperimental_java_proto_add_allowed_public_imports --experimental_local_execution_delay= --experimental_local_memory_estimate --noexperimental_local_memory_estimate --experimental_materialize_param_files_directly --noexperimental_materialize_param_files_directly --experimental_multi_cpu= --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_objc_enable_module_maps --noexperimental_objc_enable_module_maps --experimental_objc_fastbuild_options= --experimental_objc_include_scanning --noexperimental_objc_include_scanning --experimental_omitfp --noexperimental_omitfp --experimental_oom_more_eagerly_threshold= --experimental_persistent_javac --experimental_persistent_test_runner --noexperimental_persistent_test_runner --experimental_platforms_api --noexperimental_platforms_api --experimental_prefer_mutual_xcode --noexperimental_prefer_mutual_xcode --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_proto_descriptor_sets_include_source_info --noexperimental_proto_descriptor_sets_include_source_info --experimental_proto_extra_actions --noexperimental_proto_extra_actions --experimental_remotable_source_manifests --noexperimental_remotable_source_manifests --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_run_validations --noexperimental_run_validations --experimental_sandbox_async_tree_delete_idle_threads= --experimental_sandboxfs_map_symlink_targets --noexperimental_sandboxfs_map_symlink_targets --experimental_sandboxfs_path= --experimental_save_feature_state --noexperimental_save_feature_state --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_spawn_scheduler --experimental_split_xml_generation --noexperimental_split_xml_generation --experimental_starlark_cc_import --noexperimental_starlark_cc_import --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_strict_fileset_output --noexperimental_strict_fileset_output --experimental_strict_java_deps={off,warn,error,strict,default} --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_use_llvm_covmap --noexperimental_use_llvm_covmap --experimental_use_sandboxfs={auto,yes,no} --noexperimental_use_sandboxfs --experimental_use_windows_sandbox={auto,yes,no} --noexperimental_use_windows_sandbox --experimental_verify_repository_rules= --experimental_windows_sandbox_path= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_worker_max_multiplex_instances= --experimental_worker_multiplex --noexperimental_worker_multiplex --experimental_workspace_rules_log_file=path --explain=path --explicit_java_test_deps --noexplicit_java_test_deps --extra_execution_platforms= --extra_toolchains= --fat_apk_cpu= --fat_apk_hwasan --nofat_apk_hwasan --fdo_instrument= --fdo_optimize= --fdo_prefetch_hints=label --fdo_profile=label --features= --fission= --flag_alias= --flaky_test_attempts= --force_pic --noforce_pic --genrule_strategy= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --grte_top=label --high_priority_workers= --host_action_env= --host_compilation_mode={fastbuild,dbg,opt} --host_compiler= --host_conlyopt= --host_copt= --host_cpu= --host_crosstool_top=label --host_cxxopt= --host_force_python={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --host_grte_top=label --host_java_launcher=label --host_java_toolchain=label --host_javabase=label --host_javacopt= --host_linkopt= --host_platform=label --host_swiftcopt= --http_timeout_scaling= --ignore_unsupported_sandboxing --noignore_unsupported_sandboxing --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_avoid_conflict_dlls --noincompatible_avoid_conflict_dlls --incompatible_default_to_explicit_init_py --noincompatible_default_to_explicit_init_py --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_expand_if_all_available_in_flag_set --noincompatible_disable_expand_if_all_available_in_flag_set --incompatible_disable_native_android_rules --noincompatible_disable_native_android_rules --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_legacy_py_provider --noincompatible_disallow_legacy_py_provider --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_dont_enable_host_nonhost_crosstool_features --noincompatible_dont_enable_host_nonhost_crosstool_features --incompatible_enable_android_toolchain_resolution --noincompatible_enable_android_toolchain_resolution --incompatible_force_strict_header_check_from_starlark --noincompatible_force_strict_header_check_from_starlark --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_make_thinlto_command_lines_standalone --noincompatible_make_thinlto_command_lines_standalone --incompatible_merge_genfiles_directory --noincompatible_merge_genfiles_directory --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_compile_info_migration --noincompatible_objc_compile_info_migration --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prohibit_aapt1 --noincompatible_prohibit_aapt1 --incompatible_py2_outputs_are_suffixed --noincompatible_py2_outputs_are_suffixed --incompatible_py3_is_default --noincompatible_py3_is_default --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --noincompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --incompatible_remove_legacy_whole_archive --noincompatible_remove_legacy_whole_archive --incompatible_remove_local_resources --noincompatible_remove_local_resources --incompatible_require_ctx_in_configure_features --noincompatible_require_ctx_in_configure_features --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_strict_action_env --noincompatible_strict_action_env --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_use_platforms_repo_for_constraints --noincompatible_use_platforms_repo_for_constraints --incompatible_use_python_toolchains --noincompatible_use_python_toolchains --incompatible_validate_top_level_header_inclusions --noincompatible_validate_top_level_header_inclusions --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --incremental_dexing --noincremental_dexing --instrument_test_targets --noinstrument_test_targets --instrumentation_filter= --interface_shared_objects --nointerface_shared_objects --ios_cpu= --ios_memleaks --noios_memleaks --ios_minimum_os= --ios_multi_cpus= --ios_sdk_version= --ios_signing_cert_name= --ios_simulator_device= --ios_simulator_version= --j2objc_translation_flags= --java_debug --java_deps --nojava_deps --java_header_compilation --nojava_header_compilation --java_launcher=label --java_toolchain=label --javabase=label --javacopt= --jobs= --json_trace_compression={auto,yes,no} --nojson_trace_compression --jvmopt= --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_external_runfiles --nolegacy_external_runfiles --legacy_important_outputs --nolegacy_important_outputs --legacy_main_dex_list_generator=label --legacy_whole_archive --nolegacy_whole_archive --linkopt= --loading_phase_threads= --local_cpu_resources= --local_ram_resources= --local_resources= --local_termination_grace_seconds= --local_test_jobs= --logging= --ltobackendopt= --ltoindexopt= --macos_cpus= --macos_minimum_os= --macos_sdk_version= --materialize_param_files --nomaterialize_param_files --max_computation_steps= --max_config_changes_to_show= --max_test_output_bytes= --memory_profile_stable_heap_parameters= --message_translations= --minimum_os_version= --modify_execution_info= --nested_set_depth_limit= --objc_debug_with_GLIBCXX --noobjc_debug_with_GLIBCXX --objc_enable_binary_stripping --noobjc_enable_binary_stripping --objc_generate_linkmap --noobjc_generate_linkmap --objc_use_dotd_pruning --noobjc_use_dotd_pruning --objccopt= --output_filter= --output_groups= --override_repository= --package_path= --parse_headers_verifies_modules --noparse_headers_verifies_modules --per_file_copt= --per_file_ltobackendopt= --persistent_android_resource_processor --platform_mappings=path --platform_suffix= --platforms= --plugin= --process_headers_in_dependencies --noprocess_headers_in_dependencies --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --progress_report_interval= --proguard_top=label --project_id= --propeller_optimize=label --proto_compiler=label --proto_toolchain_for_cc=label --proto_toolchain_for_j2objc=label --proto_toolchain_for_java=label --proto_toolchain_for_javalite=label --protocopt= --python2_path= --python3_path= --python_path= --python_top=label --python_version={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repo_env= --repository_cache=path --run_under= --runs_per_test= --runs_per_test_detects_flakes --noruns_per_test_detects_flakes --sandbox_add_mount_pair= --sandbox_base= --sandbox_block_path= --sandbox_debug --nosandbox_debug --sandbox_default_allow_network --nosandbox_default_allow_network --sandbox_fake_hostname --nosandbox_fake_hostname --sandbox_fake_username --nosandbox_fake_username --sandbox_tmpfs_path= --sandbox_writable_path= --save_temps --nosave_temps --script_path=path --share_native_deps --noshare_native_deps --shell_executable=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_result= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --spawn_strategy= --stamp --nostamp --starlark_cpu_profile= --strategy= --strategy_regexp= --strict_filesets --nostrict_filesets --strict_proto_deps={off,warn,error,strict,default} --strict_system_includes --nostrict_system_includes --strip={always,sometimes,never} --stripopt= --subcommands={true,pretty_print,false} --swiftcopt= --symlink_prefix= --target_environment= --target_pattern_file= --target_platform_fallback=label --test_arg= --test_env= --test_filter= --test_keep_going --notest_keep_going --test_lang_filters= --test_output={summary,errors,all,streamed} --test_result_expiration= --test_runner_fail_fast --notest_runner_fail_fast --test_sharding_strategy={explicit,disabled} --test_size_filters= --test_strategy= --test_summary={short,terse,detailed,none,testcase} --test_tag_filters= --test_timeout= --test_timeout_filters= --test_tmpdir=path --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --toolchain_resolution_debug --notoolchain_resolution_debug --track_incremental_state --notrack_incremental_state --translations={auto,yes,no} --notranslations --trim_test_configuration --notrim_test_configuration --tvos_cpus= --tvos_minimum_os= --tvos_sdk_version= --tvos_simulator_device= --tvos_simulator_version= --ui_actions_shown= --ui_event_filters= --use_ijars --nouse_ijars --use_singlejar_apkbuilder --nouse_singlejar_apkbuilder --verbose_explanations --noverbose_explanations --verbose_failures --noverbose_failures --watchfs --nowatchfs --watchos_cpus= --watchos_minimum_os= --watchos_sdk_version= --watchos_simulator_device= --watchos_simulator_version= --worker_extra_flag= --worker_max_instances= --worker_quit_after_build --noworker_quit_after_build --worker_sandboxing --noworker_sandboxing --worker_verbose --noworker_verbose --workspace_status_command=path --xbinary_fdo=label --xcode_version= --xcode_version_config=label " BAZEL_COMMAND_SHUTDOWN_FLAGS=" --all_incompatible_changes --announce_rc --noannounce_rc --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_metadata= --color={yes,no,auto} --config= --curses={yes,no,auto} --distdir= --enable_platform_specific_config --noenable_platform_specific_config --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_disable_external_package --noexperimental_disable_external_package --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_oom_more_eagerly_threshold= --experimental_platforms_api --noexperimental_platforms_api --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_resolved_file_instead_of_workspace= --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_verify_repository_rules= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_workspace_rules_log_file=path --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --http_timeout_scaling= --iff_heap_size_greater_than= --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --json_trace_compression={auto,yes,no} --nojson_trace_compression --keep_state_after_build --nokeep_state_after_build --legacy_important_outputs --nolegacy_important_outputs --logging= --max_computation_steps= --memory_profile_stable_heap_parameters= --nested_set_depth_limit= --override_repository= --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --project_id= --repository_cache=path --show_progress --noshow_progress --show_progress_rate_limit= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --starlark_cpu_profile= --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --track_incremental_state --notrack_incremental_state --ui_actions_shown= --ui_event_filters= --watchfs --nowatchfs " BAZEL_COMMAND_SYNC_FLAGS=" --all_incompatible_changes --announce_rc --noannounce_rc --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_metadata= --color={yes,no,auto} --config= --configure --noconfigure --curses={yes,no,auto} --deleted_packages= --disk_cache=path --distdir= --enable_platform_specific_config --noenable_platform_specific_config --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_disable_external_package --noexperimental_disable_external_package --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_oom_more_eagerly_threshold= --experimental_platforms_api --noexperimental_platforms_api --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_verify_repository_rules= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_workspace_rules_log_file=path --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --http_timeout_scaling= --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --json_trace_compression={auto,yes,no} --nojson_trace_compression --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_important_outputs --nolegacy_important_outputs --loading_phase_threads= --logging= --max_computation_steps= --memory_profile_stable_heap_parameters= --nested_set_depth_limit= --only= --override_repository= --package_path= --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --project_id= --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repository_cache=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --starlark_cpu_profile= --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --track_incremental_state --notrack_incremental_state --ui_actions_shown= --ui_event_filters= --watchfs --nowatchfs " BAZEL_COMMAND_TEST_ARGUMENT="label-test" BAZEL_COMMAND_TEST_FLAGS=" --action_env= --all_incompatible_changes --allow_analysis_failures --noallow_analysis_failures --analysis_testing_deps_limit= --android_compiler= --android_cpu= --android_crosstool_top=label --android_databinding_use_v3_4_args --noandroid_databinding_use_v3_4_args --android_dynamic_mode={off,default,fully} --android_grte_top=label --android_manifest_merger={legacy,android,force_android} --android_manifest_merger_order={alphabetical,alphabetical_by_configuration,dependency} --android_resource_shrinking --noandroid_resource_shrinking --android_sdk=label --announce --noannounce --announce_rc --noannounce_rc --apk_signing_method={v1,v2,v1_v2} --apple_bitcode= --apple_compiler= --apple_crosstool_top=label --apple_enable_auto_dsym_dbg --noapple_enable_auto_dsym_dbg --apple_generate_dsym --noapple_generate_dsym --apple_grte_top=label --apple_sdk=label --aspects= --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --auto_cpu_environment_group=label --auto_output_filter={none,all,packages,subpackages} --bep_publish_used_heap_size_post_build --nobep_publish_used_heap_size_post_build --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --break_build_on_parallel_dex2oat_failure --nobreak_build_on_parallel_dex2oat_failure --build --nobuild --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_manual_tests --nobuild_manual_tests --build_metadata= --build_python_zip={auto,yes,no} --nobuild_python_zip --build_runfile_links --nobuild_runfile_links --build_runfile_manifests --nobuild_runfile_manifests --build_tag_filters= --build_test_dwp --nobuild_test_dwp --build_tests_only --nobuild_tests_only --cache_test_results={auto,yes,no} --nocache_test_results --catalyst_cpus= --cc_output_directory_tag= --cc_proto_library_header_suffixes= --cc_proto_library_source_suffixes= --check_constraint= --check_licenses --nocheck_licenses --check_tests_up_to_date --nocheck_tests_up_to_date --check_up_to_date --nocheck_up_to_date --check_visibility --nocheck_visibility --collapse_duplicate_defines --nocollapse_duplicate_defines --collect_code_coverage --nocollect_code_coverage --color={yes,no,auto} --combined_report={none,lcov} --compilation_mode={fastbuild,dbg,opt} --compile_one_dependency --nocompile_one_dependency --compiler= --config= --conlyopt= --copt= --coverage_report_generator=label --coverage_support=label --cpu= --crosstool_top=label --cs_fdo_absolute_path= --cs_fdo_instrument= --cs_fdo_profile=label --curses={yes,no,auto} --custom_malloc=label --cxxopt= --default_ios_provisioning_profile=label --define= --deleted_packages= --desugar_for_android --nodesugar_for_android --device_debug_entitlements --nodevice_debug_entitlements --discard_analysis_cache --nodiscard_analysis_cache --disk_cache=path --distdir= --distinct_host_configuration --nodistinct_host_configuration --dynamic_mode={off,default,fully} --embed_label= --enable_apple_binary_native_protos --noenable_apple_binary_native_protos --enable_fdo_profile_absolute_path --noenable_fdo_profile_absolute_path --enable_platform_specific_config --noenable_platform_specific_config --enable_runfiles={auto,yes,no} --noenable_runfiles --enforce_constraints --noenforce_constraints --execution_log_binary_file=path --execution_log_json_file=path --expand_test_suites --noexpand_test_suites --experimental_action_listener= --experimental_add_exec_constraints_to_targets= --experimental_allow_android_library_deps_without_srcs --noexperimental_allow_android_library_deps_without_srcs --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_android_compress_java_resources --noexperimental_android_compress_java_resources --experimental_android_databinding_v2 --noexperimental_android_databinding_v2 --experimental_android_resource_shrinking --noexperimental_android_resource_shrinking --experimental_android_rewrite_dexes_with_rex --noexperimental_android_rewrite_dexes_with_rex --experimental_android_use_parallel_dex2oat --noexperimental_android_use_parallel_dex2oat --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cancel_concurrent_tests --noexperimental_cancel_concurrent_tests --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_check_desugar_deps --noexperimental_check_desugar_deps --experimental_convenience_symlinks={normal,clean,ignore,log_only} --experimental_convenience_symlinks_bep_event --noexperimental_convenience_symlinks_bep_event --experimental_delay_virtual_input_materialization --noexperimental_delay_virtual_input_materialization --experimental_desugar_java8_libs --noexperimental_desugar_java8_libs --experimental_disable_external_package --noexperimental_disable_external_package --experimental_docker_image= --experimental_docker_privileged --noexperimental_docker_privileged --experimental_docker_use_customized_images --noexperimental_docker_use_customized_images --experimental_docker_verbose --noexperimental_docker_verbose --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_enable_docker_sandbox --noexperimental_enable_docker_sandbox --experimental_enable_flag_alias --noexperimental_enable_flag_alias --experimental_enable_objc_cc_deps --noexperimental_enable_objc_cc_deps --experimental_execution_log_file=path --experimental_extra_action_filter= --experimental_extra_action_top_level_only --noexperimental_extra_action_top_level_only --experimental_fetch_all_coverage_outputs --noexperimental_fetch_all_coverage_outputs --experimental_filter_library_jar_with_program_jar --noexperimental_filter_library_jar_with_program_jar --experimental_forward_instrumented_files_info_by_default --noexperimental_forward_instrumented_files_info_by_default --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_guard_against_concurrent_changes --noexperimental_guard_against_concurrent_changes --experimental_import_deps_checking={off,warning,error} --experimental_inmemory_dotd_files --noexperimental_inmemory_dotd_files --experimental_inmemory_jdeps_files --noexperimental_inmemory_jdeps_files --experimental_inprocess_symlink_creation --noexperimental_inprocess_symlink_creation --experimental_interleave_loading_and_analysis --noexperimental_interleave_loading_and_analysis --experimental_j2objc_header_map --noexperimental_j2objc_header_map --experimental_j2objc_shorter_header_path --noexperimental_j2objc_shorter_header_path --experimental_java_classpath={off,javabuilder,bazel} --experimental_java_proto_add_allowed_public_imports --noexperimental_java_proto_add_allowed_public_imports --experimental_local_execution_delay= --experimental_local_memory_estimate --noexperimental_local_memory_estimate --experimental_materialize_param_files_directly --noexperimental_materialize_param_files_directly --experimental_multi_cpu= --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_objc_enable_module_maps --noexperimental_objc_enable_module_maps --experimental_objc_fastbuild_options= --experimental_objc_include_scanning --noexperimental_objc_include_scanning --experimental_omitfp --noexperimental_omitfp --experimental_oom_more_eagerly_threshold= --experimental_persistent_javac --experimental_persistent_test_runner --noexperimental_persistent_test_runner --experimental_platforms_api --noexperimental_platforms_api --experimental_prefer_mutual_xcode --noexperimental_prefer_mutual_xcode --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_proto_descriptor_sets_include_source_info --noexperimental_proto_descriptor_sets_include_source_info --experimental_proto_extra_actions --noexperimental_proto_extra_actions --experimental_remotable_source_manifests --noexperimental_remotable_source_manifests --experimental_remote_downloader= --experimental_remote_grpc_log=path --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_repository_resolved_file= --experimental_resolved_file_instead_of_workspace= --experimental_run_validations --noexperimental_run_validations --experimental_sandbox_async_tree_delete_idle_threads= --experimental_sandboxfs_map_symlink_targets --noexperimental_sandboxfs_map_symlink_targets --experimental_sandboxfs_path= --experimental_save_feature_state --noexperimental_save_feature_state --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_spawn_scheduler --experimental_split_xml_generation --noexperimental_split_xml_generation --experimental_starlark_cc_import --noexperimental_starlark_cc_import --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_strict_fileset_output --noexperimental_strict_fileset_output --experimental_strict_java_deps={off,warn,error,strict,default} --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_use_llvm_covmap --noexperimental_use_llvm_covmap --experimental_use_sandboxfs={auto,yes,no} --noexperimental_use_sandboxfs --experimental_use_windows_sandbox={auto,yes,no} --noexperimental_use_windows_sandbox --experimental_verify_repository_rules= --experimental_windows_sandbox_path= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_worker_max_multiplex_instances= --experimental_worker_multiplex --noexperimental_worker_multiplex --experimental_workspace_rules_log_file=path --explain=path --explicit_java_test_deps --noexplicit_java_test_deps --extra_execution_platforms= --extra_toolchains= --fat_apk_cpu= --fat_apk_hwasan --nofat_apk_hwasan --fdo_instrument= --fdo_optimize= --fdo_prefetch_hints=label --fdo_profile=label --features= --fission= --flag_alias= --flaky_test_attempts= --force_pic --noforce_pic --genrule_strategy= --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --grte_top=label --high_priority_workers= --host_action_env= --host_compilation_mode={fastbuild,dbg,opt} --host_compiler= --host_conlyopt= --host_copt= --host_cpu= --host_crosstool_top=label --host_cxxopt= --host_force_python={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --host_grte_top=label --host_java_launcher=label --host_java_toolchain=label --host_javabase=label --host_javacopt= --host_linkopt= --host_platform=label --host_swiftcopt= --http_timeout_scaling= --ignore_unsupported_sandboxing --noignore_unsupported_sandboxing --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_avoid_conflict_dlls --noincompatible_avoid_conflict_dlls --incompatible_default_to_explicit_init_py --noincompatible_default_to_explicit_init_py --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_expand_if_all_available_in_flag_set --noincompatible_disable_expand_if_all_available_in_flag_set --incompatible_disable_native_android_rules --noincompatible_disable_native_android_rules --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_legacy_py_provider --noincompatible_disallow_legacy_py_provider --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_dont_enable_host_nonhost_crosstool_features --noincompatible_dont_enable_host_nonhost_crosstool_features --incompatible_enable_android_toolchain_resolution --noincompatible_enable_android_toolchain_resolution --incompatible_force_strict_header_check_from_starlark --noincompatible_force_strict_header_check_from_starlark --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_make_thinlto_command_lines_standalone --noincompatible_make_thinlto_command_lines_standalone --incompatible_merge_genfiles_directory --noincompatible_merge_genfiles_directory --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_compile_info_migration --noincompatible_objc_compile_info_migration --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_prohibit_aapt1 --noincompatible_prohibit_aapt1 --incompatible_py2_outputs_are_suffixed --noincompatible_py2_outputs_are_suffixed --incompatible_py3_is_default --noincompatible_py3_is_default --incompatible_remote_results_ignore_disk --noincompatible_remote_results_ignore_disk --incompatible_remote_symlinks --noincompatible_remote_symlinks --incompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --noincompatible_remove_cpu_and_compiler_attributes_from_cc_toolchain --incompatible_remove_legacy_whole_archive --noincompatible_remove_legacy_whole_archive --incompatible_remove_local_resources --noincompatible_remove_local_resources --incompatible_require_ctx_in_configure_features --noincompatible_require_ctx_in_configure_features --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_strict_action_env --noincompatible_strict_action_env --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_use_platforms_repo_for_constraints --noincompatible_use_platforms_repo_for_constraints --incompatible_use_python_toolchains --noincompatible_use_python_toolchains --incompatible_validate_top_level_header_inclusions --noincompatible_validate_top_level_header_inclusions --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --incremental_dexing --noincremental_dexing --instrument_test_targets --noinstrument_test_targets --instrumentation_filter= --interface_shared_objects --nointerface_shared_objects --ios_cpu= --ios_memleaks --noios_memleaks --ios_minimum_os= --ios_multi_cpus= --ios_sdk_version= --ios_signing_cert_name= --ios_simulator_device= --ios_simulator_version= --j2objc_translation_flags= --java_debug --java_deps --nojava_deps --java_header_compilation --nojava_header_compilation --java_launcher=label --java_toolchain=label --javabase=label --javacopt= --jobs= --json_trace_compression={auto,yes,no} --nojson_trace_compression --jvmopt= --keep_going --nokeep_going --keep_state_after_build --nokeep_state_after_build --legacy_external_runfiles --nolegacy_external_runfiles --legacy_important_outputs --nolegacy_important_outputs --legacy_main_dex_list_generator=label --legacy_whole_archive --nolegacy_whole_archive --linkopt= --loading_phase_threads= --local_cpu_resources= --local_ram_resources= --local_resources= --local_termination_grace_seconds= --local_test_jobs= --logging= --ltobackendopt= --ltoindexopt= --macos_cpus= --macos_minimum_os= --macos_sdk_version= --materialize_param_files --nomaterialize_param_files --max_computation_steps= --max_config_changes_to_show= --max_test_output_bytes= --memory_profile_stable_heap_parameters= --message_translations= --minimum_os_version= --modify_execution_info= --nested_set_depth_limit= --objc_debug_with_GLIBCXX --noobjc_debug_with_GLIBCXX --objc_enable_binary_stripping --noobjc_enable_binary_stripping --objc_generate_linkmap --noobjc_generate_linkmap --objc_use_dotd_pruning --noobjc_use_dotd_pruning --objccopt= --output_filter= --output_groups= --override_repository= --package_path= --parse_headers_verifies_modules --noparse_headers_verifies_modules --per_file_copt= --per_file_ltobackendopt= --persistent_android_resource_processor --platform_mappings=path --platform_suffix= --platforms= --plugin= --print_relative_test_log_paths --noprint_relative_test_log_paths --process_headers_in_dependencies --noprocess_headers_in_dependencies --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --progress_report_interval= --proguard_top=label --project_id= --propeller_optimize=label --proto_compiler=label --proto_toolchain_for_cc=label --proto_toolchain_for_j2objc=label --proto_toolchain_for_java=label --proto_toolchain_for_javalite=label --protocopt= --python2_path= --python3_path= --python_path= --python_top=label --python_version={py2,py3,py2and3,py2only,py3only,_internal_sentinel} --remote_accept_cached --noremote_accept_cached --remote_allow_symlink_upload --noremote_allow_symlink_upload --remote_cache= --remote_cache_header= --remote_default_exec_properties= --remote_default_platform_properties= --remote_download_minimal --remote_download_outputs={all,minimal,toplevel} --remote_download_symlink_template= --remote_download_toplevel --remote_downloader_header= --remote_exec_header= --remote_execution_priority= --remote_executor= --remote_header= --remote_instance_name= --remote_local_fallback --noremote_local_fallback --remote_local_fallback_strategy= --remote_max_connections= --remote_proxy= --remote_result_cache_priority= --remote_retries= --remote_timeout= --remote_upload_local_results --noremote_upload_local_results --remote_verify_downloads --noremote_verify_downloads --repo_env= --repository_cache=path --run_under= --runs_per_test= --runs_per_test_detects_flakes --noruns_per_test_detects_flakes --sandbox_add_mount_pair= --sandbox_base= --sandbox_block_path= --sandbox_debug --nosandbox_debug --sandbox_default_allow_network --nosandbox_default_allow_network --sandbox_fake_hostname --nosandbox_fake_hostname --sandbox_fake_username --nosandbox_fake_username --sandbox_tmpfs_path= --sandbox_writable_path= --save_temps --nosave_temps --share_native_deps --noshare_native_deps --shell_executable=path --show_loading_progress --noshow_loading_progress --show_progress --noshow_progress --show_progress_rate_limit= --show_result= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --spawn_strategy= --stamp --nostamp --starlark_cpu_profile= --strategy= --strategy_regexp= --strict_filesets --nostrict_filesets --strict_proto_deps={off,warn,error,strict,default} --strict_system_includes --nostrict_system_includes --strip={always,sometimes,never} --stripopt= --subcommands={true,pretty_print,false} --swiftcopt= --symlink_prefix= --target_environment= --target_pattern_file= --target_platform_fallback=label --test_arg= --test_env= --test_filter= --test_keep_going --notest_keep_going --test_lang_filters= --test_output={summary,errors,all,streamed} --test_result_expiration= --test_runner_fail_fast --notest_runner_fail_fast --test_sharding_strategy={explicit,disabled} --test_size_filters= --test_strategy= --test_summary={short,terse,detailed,none,testcase} --test_tag_filters= --test_timeout= --test_timeout_filters= --test_tmpdir=path --test_verbose_timeout_warnings --notest_verbose_timeout_warnings --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --toolchain_resolution_debug --notoolchain_resolution_debug --track_incremental_state --notrack_incremental_state --translations={auto,yes,no} --notranslations --trim_test_configuration --notrim_test_configuration --tvos_cpus= --tvos_minimum_os= --tvos_sdk_version= --tvos_simulator_device= --tvos_simulator_version= --ui_actions_shown= --ui_event_filters= --use_ijars --nouse_ijars --use_singlejar_apkbuilder --nouse_singlejar_apkbuilder --verbose_explanations --noverbose_explanations --verbose_failures --noverbose_failures --verbose_test_summary --noverbose_test_summary --watchfs --nowatchfs --watchos_cpus= --watchos_minimum_os= --watchos_sdk_version= --watchos_simulator_device= --watchos_simulator_version= --worker_extra_flag= --worker_max_instances= --worker_quit_after_build --noworker_quit_after_build --worker_sandboxing --noworker_sandboxing --worker_verbose --noworker_verbose --workspace_status_command=path --xbinary_fdo=label --xcode_version= --xcode_version_config=label " BAZEL_COMMAND_VERSION_FLAGS=" --all_incompatible_changes --announce_rc --noannounce_rc --attempt_to_print_relative_paths --noattempt_to_print_relative_paths --bes_backend= --bes_best_effort --nobes_best_effort --bes_keywords= --bes_lifecycle_events --nobes_lifecycle_events --bes_outerr_buffer_size= --bes_outerr_chunk_size= --bes_proxy= --bes_results_url= --bes_timeout= --build_event_binary_file= --build_event_binary_file_path_conversion --nobuild_event_binary_file_path_conversion --build_event_json_file= --build_event_json_file_path_conversion --nobuild_event_json_file_path_conversion --build_event_max_named_set_of_file_entries= --build_event_publish_all_actions --nobuild_event_publish_all_actions --build_event_text_file= --build_event_text_file_path_conversion --nobuild_event_text_file_path_conversion --build_metadata= --color={yes,no,auto} --config= --curses={yes,no,auto} --distdir= --enable_platform_specific_config --noenable_platform_specific_config --experimental_allow_tags_propagation --noexperimental_allow_tags_propagation --experimental_announce_profile_path --noexperimental_announce_profile_path --experimental_build_event_expand_filesets --noexperimental_build_event_expand_filesets --experimental_build_event_fully_resolve_fileset_symlinks --noexperimental_build_event_fully_resolve_fileset_symlinks --experimental_build_event_upload_strategy= --experimental_cc_shared_library --noexperimental_cc_shared_library --experimental_disable_external_package --noexperimental_disable_external_package --experimental_enable_android_migration_apis --noexperimental_enable_android_migration_apis --experimental_generate_json_trace_profile --noexperimental_generate_json_trace_profile --experimental_google_legacy_api --noexperimental_google_legacy_api --experimental_multi_threaded_digest --noexperimental_multi_threaded_digest --experimental_ninja_actions --noexperimental_ninja_actions --experimental_oom_more_eagerly_threshold= --experimental_platforms_api --noexperimental_platforms_api --experimental_profile_additional_tasks= --experimental_profile_cpu_usage --noexperimental_profile_cpu_usage --experimental_profile_include_primary_output --noexperimental_profile_include_primary_output --experimental_profile_include_target_label --noexperimental_profile_include_target_label --experimental_repo_remote_exec --noexperimental_repo_remote_exec --experimental_repository_cache_hardlinks --noexperimental_repository_cache_hardlinks --experimental_repository_hash_file= --experimental_resolved_file_instead_of_workspace= --experimental_scale_timeouts= --experimental_sibling_repository_layout --noexperimental_sibling_repository_layout --experimental_starlark_config_transitions --noexperimental_starlark_config_transitions --experimental_stream_log_file_uploads --noexperimental_stream_log_file_uploads --experimental_ui_max_stdouterr_bytes= --experimental_ui_mode={oldest_actions,mnemonic_histogram} --experimental_verify_repository_rules= --experimental_windows_watchfs --noexperimental_windows_watchfs --experimental_workspace_rules_log_file=path --gnu_format --nognu_format --google_auth_scopes= --google_credentials= --google_default_credentials --nogoogle_default_credentials --grpc_keepalive_time= --grpc_keepalive_timeout= --http_timeout_scaling= --incompatible_always_check_depset_elements --noincompatible_always_check_depset_elements --incompatible_depset_for_libraries_to_link_getter --noincompatible_depset_for_libraries_to_link_getter --incompatible_disable_depset_items --noincompatible_disable_depset_items --incompatible_disable_target_provider_fields --noincompatible_disable_target_provider_fields --incompatible_disable_third_party_license_checking --noincompatible_disable_third_party_license_checking --incompatible_disallow_empty_glob --noincompatible_disallow_empty_glob --incompatible_disallow_legacy_javainfo --noincompatible_disallow_legacy_javainfo --incompatible_disallow_struct_provider_syntax --noincompatible_disallow_struct_provider_syntax --incompatible_do_not_split_linking_cmdline --noincompatible_do_not_split_linking_cmdline --incompatible_java_common_parameters --noincompatible_java_common_parameters --incompatible_linkopts_to_linklibs --noincompatible_linkopts_to_linklibs --incompatible_new_actions_api --noincompatible_new_actions_api --incompatible_no_attr_license --noincompatible_no_attr_license --incompatible_no_implicit_file_export --noincompatible_no_implicit_file_export --incompatible_no_rule_outputs_param --noincompatible_no_rule_outputs_param --incompatible_objc_provider_remove_compile_info --noincompatible_objc_provider_remove_compile_info --incompatible_require_linker_input_cc_api --noincompatible_require_linker_input_cc_api --incompatible_restrict_string_escapes --noincompatible_restrict_string_escapes --incompatible_run_shell_command_string --noincompatible_run_shell_command_string --incompatible_string_replace_count --noincompatible_string_replace_count --incompatible_use_cc_configure_from_rules_cc --noincompatible_use_cc_configure_from_rules_cc --incompatible_visibility_private_attributes_at_definition --noincompatible_visibility_private_attributes_at_definition --json_trace_compression={auto,yes,no} --nojson_trace_compression --keep_state_after_build --nokeep_state_after_build --legacy_important_outputs --nolegacy_important_outputs --logging= --max_computation_steps= --memory_profile_stable_heap_parameters= --nested_set_depth_limit= --override_repository= --profile=path --progress_in_terminal_title --noprogress_in_terminal_title --project_id= --repository_cache=path --show_progress --noshow_progress --show_progress_rate_limit= --show_task_finish --noshow_task_finish --show_timestamps --noshow_timestamps --slim_profile --noslim_profile --starlark_cpu_profile= --tls_certificate= --tls_client_certificate= --tls_client_key= --tool_tag= --track_incremental_state --notrack_incremental_state --ui_actions_shown= --ui_event_filters= --watchfs --nowatchfs "
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/sources.list.us.aarch64
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://ports.ubuntu.com/ubuntu-ports/ bionic universe # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic universe deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates universe # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu bionic partner # deb-src http://archive.canonical.com/ubuntu bionic partner deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security universe # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security universe deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/user.bash_aliases
#!/usr/bin/env bash export PS1="\[\e[31m\][\[\e[m\]\[\e[32m\]\u\[\e[m\]\[\e[33m\]@\[\e[m\]\[\e[35m\]\h\[\e[m\]:\[\e[36m\]\w\[\e[m\]\[\e[31m\]]\[\e[m\]\[\e[1;32m\]\\$\[\e[m\] " export PATH="$PATH:/apollo/scripts" for script in /etc/profile.d/*.sh ; do . "${script}" done ulimit -c unlimited #if [ -e "/apollo/scripts/apollo_base.sh" ]; then # . /apollo/scripts/apollo_base.sh #fi if [ -e "/apollo/cyber/setup.bash" ]; then . /apollo/cyber/setup.bash fi if [ -e "/apollo/scripts/apollo_auto_complete.bash" ]; then . /apollo/scripts/apollo_auto_complete.bash fi if [ -f /etc/bash_completion.d/bazel ]; then . /etc/bash_completion.d/bazel fi export EDITOR="vim" alias v="vim" alias bb="bazel build" alias bt="bazel test" function inc() { local _path="$1" if [ -d "${_path}" ]; then /bin/grep "#include" -r "${_path}" | awk -F':' '{print $2}' | sort -u elif [ -f "${_path}" ]; then /bin/grep "#include" -r "${_path}" | sort -u fi } function sl() { if [ -z "$1" ]; then error "No file specified" return fi local sed_cmd sed_cmd="$(command -v sed)" if [ -z "${sed_cmd}" ]; then error "sed not found in PATH" return fi local filename_w_ln="$1"; shift; local fname="${filename_w_ln%:*}" local start_ln=1 if [[ "${filename_w_ln}" =~ :.* ]]; then start_ln="${filename_w_ln##*:}" elif [ -z "$1" ]; then start_ln=1 else start_ln="$1"; shift fi local line_cnt=9; # 10 if [ -n "$1" ]; then line_cnt="$1"; shift fi # '10,33p' print line 10 to line 33 ${sed_cmd} -n "${start_ln},+${line_cnt}p" "${fname}" }
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/sources.list.cn.x86_64
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/user.vimrc
set nocompatible set encoding=utf-8 set hlsearch set smartindent set ruler set number set ts=2 set sw=2 set expandtab autocmd FileType make setlocal noexpandtab
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/sources.list.aliyun
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted # deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted # deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted deb http://mirrors.aliyun.com/ubuntu/ bionic universe # deb-src http://mirrors.aliyun.com/ubuntu/ bionic universe deb http://mirrors.aliyun.com/ubuntu/ bionic-updates universe # deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates universe deb http://mirrors.aliyun.com/ubuntu/ bionic multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ bionic multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu bionic-security main restricted # deb-src http://mirrors.aliyun.com/ubuntu bionic-security main restricted deb http://mirrors.aliyun.com/ubuntu bionic-security universe # deb-src http://mirrors.aliyun.com/ubuntu bionic-security universe deb http://mirrors.aliyun.com/ubuntu bionic-security multiverse # deb-src http://mirrors.aliyun.com/ubuntu bionic-security multiverse
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/rcfiles/user.config.pycodestyle
[pycodestyle] count = False ignore = E226,E302,E41 max-line-length = 100 statistics = True
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/post_install.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e build_stage="${1:-dev}" echo "stage=${build_stage}" > /etc/apollo.conf if [[ "${build_stage}" == "cyber" ]]; then #TODO(storypku): revisit this later # https://stackoverflow.com/questions/25193161 # /chfn-pam-system-error-intermittently-in-docker-hub-builds ln -s -f /bin/true /usr/bin/chfn else echo "Nothing else need to be done in stage ${build_stage}" fi
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_yarn.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh # Ref https://classic.yarnpkg.com/en/docs/install/#debian-stable # Don't use tee here. It complains # "Warning: apt-key output should not be parsed (stdout is not a terminal)" # otherwise. curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list apt_get_update_and_install yarn info "Successfully installed yarn" apt-get clean rm -fr /etc/apt/sources.list.d/yarn.list
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_proj.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh apt_get_update_and_install \ libsqlite3-dev \ sqlite3 \ libtiff-dev \ libcurl4-openssl-dev # Note(storypku) # apt_get_update_and_install libproj-dev # proj installed via apt was 4.9.3, incompatible with pyproj which # requres proj >= 6.2.0 if ldconfig -p | grep -q "libproj.so"; then warning "Proj was already installed. Reinstallation skipped." exit 0 fi VERSION="7.1.0" PKG_NAME="proj-${VERSION}.tar.gz" CHECKSUM="876151e2279346f6bdbc63bd59790b48733496a957bccd5e51b640fdd26eaa8d" DOWNLOAD_LINK="https://github.com/OSGeo/PROJ/releases/download/${VERSION}/${PKG_NAME}" download_if_not_cached "$PKG_NAME" "$CHECKSUM" "$DOWNLOAD_LINK" tar xzf "${PKG_NAME}" pushd proj-${VERSION} >/dev/null mkdir build && cd build cmake .. \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=OFF \ -DCMAKE_INSTALL_PREFIX="${SYSROOT_DIR}" \ -DCMAKE_BUILD_TYPE=Release make -j$(nproc) make install popd >/dev/null ldconfig ok "Successfully built proj = ${VERSION}" rm -fr "${PKG_NAME}" "proj-${VERSION}" if [[ -n "${CLEAN_DEPS}" ]]; then # Remove build-deps for proj apt_get_remove \ libsqlite3-dev \ sqlite3 \ libtiff-dev \ libcurl4-openssl-dev fi # Clean up cache to reduce layer size. apt-get clean && rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_rpp.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2022 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### INSTALL_MODE="$1"; shift set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh APOLLO_SYSROOT_INC="/opt/apollo/sysroot/include" # install half.hpp required dependency HALF_HPP="half.hpp" DST_HALF_DIR="/usr/local/include" DST_HALF="${DST_HALF_DIR}/${HALF_HPP}" if [ ! -f "${DST_HALF}" ]; then VERSION="2.2.0" PKG_NAME="half-${VERSION}.zip" wget https://sourceforge.net/projects/half/files/half/"${VERSION}"/"${PKG_NAME}" unzip "$PKG_NAME" -d "${PKG_NAME%.zip}" mkdir -p $DST_HALF_DIR mv "${PKG_NAME%.zip}/include/${HALF_HPP}" $DST_HALF_DIR ldconfig rm "${PKG_NAME}" rm -fr "${PKG_NAME%.zip}" ok "Successfully installed half ${VERSION}" else info "half is already installed here: ${DST_HALF}" info "To reinstall half delete ${DST_HALF} first" fi # install rpp RPP_DIR=rpp/.git if [ -d $RPP_DIR ]; then rm -fr rpp fi RPP_SO="libamd_rpp.so" DST_RPP_DIR="/opt/rocm/rpp/lib" DST_RPP_SO="${DST_RPP_DIR}/${RPP_SO}" if [ ! -f "${DST_RPP_SO}" ]; then git clone https://github.com/GPUOpen-ProfessionalCompute-Libraries/rpp cd rpp info "" git reset --hard 27284078458fbfa685f11083315394f3a4cd952f info "" cd .. pushd rpp mkdir -p build && cd build cmake -DBACKEND=HIP -DCMAKE_CXX_FLAGS="-I${DST_HALF_DIR}" -DINCLUDE_LIST="${APOLLO_SYSROOT_INC}" .. make -j$(nproc) make install popd cp -rLfs "/opt/rocm/rpp/include/." "/opt/rocm/include/" cp -rLfs "/opt/rocm/rpp/lib/." "/opt/rocm/lib/" rm -fr rpp ok "Successfully installed RPP" else info "RPP is already installed here: ${DST_RPP_DIR}" info "To reinstall RPP delete ${DST_RPP_SO} first" fi
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_shfmt.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh TARGET_ARCH="$(uname -m)" VERSION="3.2.1" BIN_NAME="" CHECKSUM="" if [ "$TARGET_ARCH" == "x86_64" ]; then BIN_NAME="shfmt_v${VERSION}_linux_amd64" CHECKSUM="43439b996942b53dfafa9b6ff084f394555d049c98fb7ec37978f7668b43e1be" elif [ "$TARGET_ARCH" == "aarch64" ]; then BIN_NAME="shfmt_v${VERSION}_linux_arm64" CHECKSUM="1cb7fc0ace531b907977827a0fe31f6e2595afcafe554e6d7f9d6f4470e37336" else error "Target arch ${TARGET_ARCH} not supported yet" exit 1 fi DOWNLOAD_LINK="https://github.com/mvdan/sh/releases/download/v${VERSION}/${BIN_NAME}" download_if_not_cached "${BIN_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" cp -f "${BIN_NAME}" "${SYSROOT_DIR}/bin/shfmt" chmod a+x "${SYSROOT_DIR}/bin/shfmt" ok "Successfully installed shfmt ${VERSION}." # cleanup rm -rf "${BIN_NAME}"
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_osqp.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh OSQP_VER="0.5.0" # OSQP_VER="0.6.0" PKG_NAME_OSQP="osqp-${OSQP_VER}.tar.gz" # FOR 0.6.0 #CHECKSUM="6e00d11d1f88c1e32a4419324b7539b89e8f9cbb1c50afe69f375347c989ba2b" CHECKSUM="e0932d1f7bc56dbe526bee4a81331c1694d94c570f8ac6a6cb413f38904e0f64" DOWNLOAD_LINK="https://github.com/oxfordcontrol/osqp/archive/v${OSQP_VER}.tar.gz" download_if_not_cached "${PKG_NAME_OSQP}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf "${PKG_NAME_OSQP}" pushd "osqp-${OSQP_VER}" PKG_NAME="qdldl-0.1.4.tar.gz" CHECKSUM="4eaed3b2d66d051cea0a57b0f80a81fc04ec72c8a906f8020b2b07e31d3b549c" DOWNLOAD_LINK="https://github.com/oxfordcontrol/qdldl/archive/v0.1.4.tar.gz" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_NAME} --strip-components=1 \ -C ./lin_sys/direct/qdldl/qdldl_sources rm -rf ${PKG_NAME} mkdir build && cd build cmake .. \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_INSTALL_PREFIX="${SYSROOT_DIR}" \ -DCMAKE_BUILD_TYPE=Release make -j$(nproc) make install popd rm -rf "osqp-${OSQP_VER}" "${PKG_NAME_OSQP}" ldconfig ok "Successfully installed osqp-${OSQP_VER}"
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_libtorch.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### set -e CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh # TODO(build): Docs on how to build libtorch on Jetson boards # References: # https://github.com/ApolloAuto/apollo/blob/pre6/docker/build/installers/install_libtorch.sh # https://github.com/dusty-nv/jetson-containers/blob/master/Dockerfile.pytorch # https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-6-0-now-available # https://github.com/pytorch/pytorch/blob/master/docker/caffe2/ubuntu-16.04-cpu-all-options/Dockerfile bash ${CURR_DIR}/install_mkl.sh TARGET_ARCH="$(uname -m)" ##============================================================## # libtorch_cpu if [[ "${TARGET_ARCH}" == "x86_64" ]]; then # https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.5.0%2Bcpu.zip VERSION="1.7.0-2" CHECKSUM="02fd4f30e97ce8911ef933d0516660892392e95e6768b50f591f4727f6224390" elif [[ "${TARGET_ARCH}" == "aarch64" ]]; then VERSION="1.6.0-1" CHECKSUM="6d1fba522e746213c209fbf6275fa6bac68e360bcd11cbd4d3bdbddb657bee82" else error "libtorch for ${TARGET_ARCH} not ready. Exiting..." exit 1 fi PKG_NAME="libtorch_cpu-${VERSION}-linux-${TARGET_ARCH}.tar.gz" DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf "${PKG_NAME}" mv "${PKG_NAME%.tar.gz}" /usr/local/libtorch_cpu rm -f "${PKG_NAME}" ok "Successfully installed libtorch_cpu ${VERSION}" ##============================================================## # libtorch_gpu determine_gpu_use_host if [[ "${USE_NVIDIA_GPU}" -eq 1 ]]; then # libtorch_gpu nvidia if [[ "${TARGET_ARCH}" == "x86_64" ]]; then VERSION="1.7.0-2" CHECKSUM="b64977ca4a13ab41599bac8a846e8782c67ded8d562fdf437f0e606cd5a3b588" PKG_NAME="libtorch_gpu-${VERSION}-cu111-linux-x86_64.tar.gz" else # AArch64 VERSION="1.6.0-1" PKG_NAME="libtorch_gpu-1.6.0-1-linux-aarch64.tar.gz" CHECKSUM="eeb5a223d9dbe40fe96f16e6711c49a3777cea2c0a8da2445d63e117fdad0385" fi DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf "${PKG_NAME}" mv "${PKG_NAME%.tar.gz}" /usr/local/libtorch_gpu/ elif [[ "${USE_AMD_GPU}" -eq 1 ]]; then if [[ "${TARGET_ARCH}" == "x86_64" ]]; then PKG_NAME="libtorch_amd.tar.gz" FILE_ID="1UMzACmxzZD8KVitEnSk-BhXa38Kkl4P-" else # AArch64 error "AMD libtorch for ${TARGET_ARCH} not ready. Exiting..." exit 1 fi DOWNLOAD_LINK="https://docs.google.com/uc?export=download&id=${FILE_ID}" wget --load-cookies /tmp/cookies.txt \ "https://docs.google.com/uc?export=download&confirm= $(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies \ --no-check-certificate ${DOWNLOAD_LINK} \ -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=${FILE_ID}" \ -O "${PKG_NAME}" && rm -rf /tmp/cookies.txt tar xzf "${PKG_NAME}" mv "${PKG_NAME%.tar.gz}/libtorch" /usr/local/libtorch_gpu/ mv "${PKG_NAME%.tar.gz}/libtorch_deps/libamdhip64.so.4" /opt/rocm/hip/lib/ mv "${PKG_NAME%.tar.gz}/libtorch_deps/libmagma.so" /opt/apollo/sysroot/lib/ mv "${PKG_NAME%.tar.gz}/libtorch_deps/"* /usr/local/lib/ rm -r "${PKG_NAME%.tar.gz}" ldconfig fi # Cleanup rm -f "${PKG_NAME}" ok "Successfully installed libtorch_gpu ${VERSION}"
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_qa_tools.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh TARGET_ARCH="$(uname -m)" ## NOTE: ## buildifier/buildozer was moved into install_bazel.sh. apt_get_update_and_install \ lcov # cppcheck # valgrind # libgoogle-perftools4 # gperftools # PROFILER_SO="/usr/lib/${TARGET_ARCH}-linux-gnu/libprofiler.so" # if [ ! -e "${PROFILER_SO}" ]; then # # libgoogle-perftools4: /usr/lib/x86_64-linux-gnu/libprofiler.so.0 # ln -s "${PROFILER_SO}.0" "${PROFILER_SO}" # fi bash ${CURR_DIR}/install_shellcheck.sh bash ${CURR_DIR}/install_gperftools.sh #bash ${CURR_DIR}/install_benchmark.sh # Generate Tech Docs # bash ${CURR_DIR}/install_doxygen.sh # sphinx ? ## Linters and formatters for Python # pylint/autopep8/pyflakes pip3_install pycodestyle \ flake8 \ yapf # shfmt bash ${CURR_DIR}/install_shfmt.sh # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_ipopt.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh apt_get_update_and_install \ coinor-libipopt-dev #FIXME(all): dirty hack here. sed -i '/#define __IPSMARTPTR_HPP__/a\#define HAVE_CSTDDEF' \ /usr/include/coin/IpSmartPtr.hpp # Source Code Package Link: https://github.com/coin-or/Ipopt/releases
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_bazel.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh TARGET_ARCH=$(uname -m) BAZEL_VERSION="3.7.1" BUILDTOOLS_VERSION="3.5.0" if [[ "$TARGET_ARCH" == "x86_64" ]]; then # https://docs.bazel.build/versions/master/install-ubuntu.html PKG_NAME="bazel_${BAZEL_VERSION}-linux-x86_64.deb" DOWNLOAD_LINK="https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/${PKG_NAME}" SHA256SUM="2c6c68c23618ac3f37c73ba111f79212b33968217e1a293aa9bf5a17cdd3212b" download_if_not_cached $PKG_NAME $SHA256SUM $DOWNLOAD_LINK apt_get_update_and_install \ zlib1g-dev # https://docs.bazel.build/versions/master/install-ubuntu.html#step-3-install-a-jdk-optional # openjdk-11-jdk dpkg -i "${PKG_NAME}" # Cleanup right after installation rm -rf "${PKG_NAME}" ## buildifier ## PKG_NAME="buildifier-${BUILDTOOLS_VERSION}.${TARGET_ARCH}.bin" CHECKSUM="f9a9c082b8190b9260fce2986aeba02a25d41c00178855a1425e1ce6f1169843" DOWNLOAD_LINK="https://github.com/bazelbuild/buildtools/releases/download/${BUILDTOOLS_VERSION}/buildifier" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" cp -f ${PKG_NAME} "${SYSROOT_DIR}/bin/buildifier" chmod a+x "${SYSROOT_DIR}/bin/buildifier" rm -rf ${PKG_NAME} info "Done installing bazel ${BAZEL_VERSION} with buildifier ${BUILDTOOLS_VERSION}" elif [[ "$TARGET_ARCH" == "aarch64" ]]; then ARM64_BINARY="bazel-${BAZEL_VERSION}-linux-arm64" CHECKSUM="af2b09fc30123af7aee992eba285c61758c343480116ba76d880268e40d081a5" DOWNLOAD_LINK="https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/${ARM64_BINARY}" # https://github.com/bazelbuild/bazel/releases/download/3.5.0/bazel-3.5.0-linux-arm64 download_if_not_cached "${ARM64_BINARY}" "${CHECKSUM}" "${DOWNLOAD_LINK}" cp -f ${ARM64_BINARY} "${SYSROOT_DIR}/bin/bazel" chmod a+x "${SYSROOT_DIR}/bin/bazel" rm -rf "${ARM64_BINARY}" cp /opt/apollo/rcfiles/bazel_completion.bash /etc/bash_completion.d/bazel PKG_NAME="buildifier-${BUILDTOOLS_VERSION}-linux-arm64" CHECKSUM="19d5b358cb099e264086b26091661fd7548df0a2400e47fd98238cfe0a3e67f9" DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" cp -f ${PKG_NAME} "${SYSROOT_DIR}/bin/buildifier" chmod a+x "${SYSROOT_DIR}/bin/buildifier" rm -rf ${PKG_NAME} info "Done installing bazel ${BAZEL_VERSION} with buildifier ${BUILDTOOLS_VERSION}" else error "Target arch ${TARGET_ARCH} not supported yet" exit 1 fi # Note(storypku): # Used by `apollo.sh config` to determine native cuda compute capability. bash ${CURR_DIR}/install_deviceQuery.sh # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_fast-rtps.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2019 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### INSTALL_MODE="$1"; shift if [[ -z "${INSTALL_MODE}" ]]; then INSTALL_MODE="download" fi set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh TARGET_ARCH="$(uname -m)" apt_get_update_and_install \ libasio-dev \ libtinyxml2-dev # Note(storypku) # 1) More recent Fast-DDS (formerly Fast-RTPS) implementations: # Ref: https://github.com/eProsima/Fast-DDS # Ref: https://github.com/ros2/rmw_fastrtps # 2) How to create the diff # git diff --submodule=diff > /tmp/FastRTPS_1.5.0.patch # Ref: https://stackoverflow.com/questions/10757091/git-list-of-all-changed-files-including-those-in-submodules DEST_DIR="/usr/local/fast-rtps" if [[ "${INSTALL_MODE}" == "build" ]]; then git clone --single-branch --branch release/1.5.0 --depth 1 https://github.com/eProsima/Fast-RTPS.git pushd Fast-RTPS git submodule update --init patch -p1 < ../FastRTPS_1.5.0.patch mkdir -p build && cd build cmake -DEPROSIMA_BUILD=ON \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=${DEST_DIR} .. make -j$(nproc) make install popd rm -fr Fast-RTPS exit 0 fi if [[ "${TARGET_ARCH}" == "x86_64" ]]; then PKG_NAME="fast-rtps-1.5.0-1.prebuilt.x86_64.tar.gz" CHECKSUM="7f6cd1bee91f3c08149013b3d0d5ff46290fbed17b13a584fe8625d7553f603d" DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_NAME} mv fast-rtps-1.5.0-1 "${DEST_DIR}" rm -rf ${PKG_NAME} else # aarch64 PKG_NAME="fast-rtps-1.5.0-1.prebuilt.aarch64.tar.gz" CHECKSUM="4c02a60ab114dafecb6bfc9c54bb9250f39fc44529253268138df1abddd5a011" DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_NAME} mv fast-rtps-1.5.0-1 "${DEST_DIR}" rm -rf ${PKG_NAME} fi echo "${DEST_DIR}/lib" >> "${APOLLO_LD_FILE}" ldconfig if [[ -n "${CLEAN_DEPS}" ]] ; then apt_get_remove libasio-dev libtinyxml2-dev fi
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_opencv.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh if ldconfig -p | grep -q libopencv_core; then info "OpenCV was already installed" exit 0 fi WORKHORSE="$1" if [ -z "${WORKHORSE}" ]; then WORKHORSE="cpu" fi # Note(all): opencv_contrib is not required in cpu mode BUILD_CONTRIB="no" # 1) Install OpenCV via apt # apt-get -y update && \ # apt-get -y install \ # libopencv-core-dev \ # libopencv-imgproc-dev \ # libopencv-imgcodecs-dev \ # libopencv-highgui-dev \ # libopencv-dev # 2) Build OpenCV from source # RTFM: https://src.fedoraproject.org/rpms/opencv/blob/master/f/opencv.spec apt_get_update_and_install \ libjpeg-dev \ libpng-dev \ libtiff-dev \ libgtk2.0-dev \ libv4l-dev \ libeigen3-dev \ libopenblas-dev \ libatlas-base-dev \ libxvidcore-dev \ libx264-dev \ libopenni-dev \ libwebp-dev pip3_install numpy VERSION="4.4.0" PKG_OCV="opencv-${VERSION}.tar.gz" CHECKSUM="bb95acd849e458be7f7024d17968568d1ccd2f0681d47fd60d34ffb4b8c52563" DOWNLOAD_LINK="https://github.com/opencv/opencv/archive/${VERSION}.tar.gz" download_if_not_cached "${PKG_OCV}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_OCV} # https://stackoverflow.com/questions/12427928/configure-and-build-opencv-to-custom-ffmpeg-install # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${SYSROOT_DIR}/lib # export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${SYSROOT_DIR}/lib/pkgconfig # export PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR:${SYSROOT_DIR}/lib # libgtk-3-dev libtbb2 libtbb-dev # -DWITH_GTK=ON -DWITH_TBB=ON GPU_OPTIONS= if [ "${WORKHORSE}" = "gpu" ]; then GPU_OPTIONS="-DWITH_CUDA=ON -DWITH_CUFFT=ON -DWITH_CUBLAS=ON -DWITH_CUDNN=ON" GPU_OPTIONS="${GPU_OPTIONS} -DCUDA_PROPAGATE_HOST_FLAGS=OFF" GPU_OPTIONS="${GPU_OPTIONS} -DCUDA_ARCH_BIN=${SUPPORTED_NVIDIA_SMS// /,}" # GPU_OPTIONS="${GPU_OPTIONS} -DWITH_NVCUVID=ON" BUILD_CONTRIB="yes" else GPU_OPTIONS="-DWITH_CUDA=OFF" fi if [ "${BUILD_CONTRIB}" = "yes" ]; then FACE_MODEL_DATA="face_landmark_model.dat" CHECKSUM="eeab592db2861a6c94d592a48456cf59945d31483ce94a6bc4d3a4e318049ba3" DOWNLOAD_LINK="https://raw.githubusercontent.com/opencv/opencv_3rdparty/8afa57abc8229d611c4937165d20e2a2d9fc5a12/${FACE_MODEL_DATA}" download_if_not_cached "${FACE_MODEL_DATA}" "${CHECKSUM}" "${DOWNLOAD_LINK}" PKG_CONTRIB="opencv_contrib-${VERSION}.tar.gz" CHECKSUM="a69772f553b32427e09ffbfd0c8d5e5e47f7dab8b3ffc02851ffd7f912b76840" DOWNLOAD_LINK="https://github.com/opencv/opencv_contrib/archive/${VERSION}.tar.gz" download_if_not_cached "${PKG_CONTRIB}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_CONTRIB} sed -i "s|https://raw.githubusercontent.com/opencv/opencv_3rdparty/.*|file://${CURR_DIR}/\"|g" \ opencv_contrib-${VERSION}/modules/face/CMakeLists.txt fi TARGET_ARCH="$(uname -m)" EXTRA_OPTIONS= if [ "${TARGET_ARCH}" = "x86_64" ]; then EXTRA_OPTIONS="${EXTRA_OPTIONS} -DCPU_BASELINE=SSE4" fi if [ "${BUILD_CONTRIB}" = "yes" ]; then EXTRA_OPTIONS="${EXTRA_OPTIONS} -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-${VERSION}/modules" else EXTRA_OPTIONS="${EXTRA_OPTIONS} -DBUILD_opencv_world=OFF" fi # -DBUILD_LIST=core,highgui,improc pushd "opencv-${VERSION}" [[ ! -e build ]] && mkdir build pushd build cmake .. \ -DCMAKE_INSTALL_PREFIX="${SYSROOT_DIR}" \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=ON \ -DENABLE_PRECOMPILED_HEADERS=OFF \ -DOPENCV_GENERATE_PKGCONFIG=ON \ -DBUILD_EXAMPLES=OFF \ -DBUILD_DOCS=OFF \ -DBUILD_TESTS=OFF \ -DBUILD_PERF_TESTS=OFF \ -DBUILD_JAVA=OFF \ -DBUILD_PROTOBUF=OFF \ -DPROTOBUF_UPDATE_FILES=ON \ -DINSTALL_C_EXAMPLES=OFF \ -DWITH_QT=OFF \ -DWITH_GTK=ON \ -DWITH_GTK_2_X=ON \ -DWITH_IPP=OFF \ -DWITH_ITT=OFF \ -DWITH_TBB=OFF \ -DWITH_EIGEN=ON \ -DWITH_FFMPEG=ON \ -DWITH_LIBV4L=ON \ -DWITH_OPENMP=ON \ -DWITH_OPENNI=ON \ -DWITH_OPENCL=ON \ -DWITH_WEBP=ON \ -DOpenGL_GL_PREFERENCE=GLVND \ -DBUILD_opencv_python2=OFF \ -DBUILD_opencv_python3=ON \ -DBUILD_NEW_PYTHON_SUPPORT=ON \ -DPYTHON_DEFAULT_EXECUTABLE="$(which python3)" \ -DOPENCV_PYTHON3_INSTALL_PATH="/usr/local/lib/python$(py3_version)/dist-packages" \ -DOPENCV_ENABLE_NONFREE=ON \ -DCV_TRACE=OFF \ ${GPU_OPTIONS} \ ${EXTRA_OPTIONS} make -j$(nproc) make install popd popd ldconfig ok "Successfully installed OpenCV ${VERSION}." rm -rf opencv* if [[ "${BUILD_CONTRIB}" == "yes" ]]; then rm -rf ${CURR_DIR}/${FACE_MODEL_DATA} fi if [[ -n "${CLEAN_DEPS}" ]]; then apt_get_remove \ libjpeg-dev \ libpng-dev \ libtiff-dev \ libv4l-dev \ libeigen3-dev \ libopenblas-dev \ libatlas-base-dev \ libxvidcore-dev \ libx264-dev \ libgtk2.0-dev \ libopenni-dev apt_get_update_and_install libgtk2.0-0 fi
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/pcl-sse-fix-1.10.1.patch
diff -aruN pcl-pcl-1.10.1.orig/cmake/pcl_find_sse.cmake pcl-pcl-1.10.1/cmake/pcl_find_sse.cmake --- pcl-pcl-1.10.1.orig/cmake/pcl_find_sse.cmake 2020-07-07 20:35:54.475887756 -0700 +++ pcl-pcl-1.10.1/cmake/pcl_find_sse.cmake 2020-07-07 20:40:22.728476949 -0700 @@ -4,20 +4,6 @@ set(SSE_FLAGS) set(SSE_DEFINITIONS) - if(NOT CMAKE_CROSSCOMPILING) - # Test GCC/G++ and CLANG - if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG) - include(CheckCXXCompilerFlag) - check_cxx_compiler_flag("-march=native" HAVE_MARCH) - if(HAVE_MARCH) - list(APPEND SSE_FLAGS "-march=native") - else() - list(APPEND SSE_FLAGS "-mtune=native") - endif() - message(STATUS "Using CPU native flags for SSE optimization: ${SSE_FLAGS}") - endif() - endif() - # Unfortunately we need to check for SSE to enable "-mfpmath=sse" alongside # "-march=native". The reason for this is that by default, 32bit architectures # tend to use the x87 FPU (which has 80 bit internal precision), thus leading
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_abseil.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh # todo(zero): if check "libabsl_base.so" is enough if ldconfig -p | grep -q "libabsl_base.so" ; then info "Found existing Abseil installation. Reinstallation skipped." exit 0 fi # Install abseil. VERSION="20200225.2" PKG_NAME="abseil-cpp-${VERSION}.tar.gz" DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${VERSION}.tar.gz" CHECKSUM="f41868f7a938605c92936230081175d1eae87f6ea2c248f41077c8f88316f111" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" DEST_DIR="/opt/apollo/absl" tar xzf "${PKG_NAME}" pushd "abseil-cpp-${VERSION}" mkdir build && cd build cmake .. \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_CXX_STANDARD=14 \ -DCMAKE_INSTALL_PREFIX=${DEST_DIR} cmake --build . --target install popd echo "${DEST_DIR}/lib" >> "${APOLLO_LD_FILE}" ldconfig # Clean up rm -rf "abseil-cpp-${VERSION}" "${PKG_NAME}"
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_vtk.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh apt_get_update_and_install \ libjpeg-dev \ libpng-dev \ libtiff-dev \ libeigen3-dev \ liblzma-dev \ libxml2-dev \ liblz4-dev \ libdouble-conversion-dev \ libsqlite3-dev \ libglew-dev \ libtheora-dev \ libogg-dev \ libxt-dev \ libfreetype6-dev \ libjsoncpp-dev \ libhdf5-dev if ldconfig -p | grep -q libvtkCommonCore; then info "Found existing VTK installation. Skip re-installing." exit 0 fi TARGET_ARCH="$(uname -m)" # Note(storypku): # Although VTK can be installed via apt, build it from source to # 1) reduce image size # 2) avoid a lot of dependencies # RTFM: # 1) https://src.fedoraproject.org/rpms/vtk/blob/master/f/vtk.spec # 2) https://vtk.org/Wiki/VTK/Building/Linux VERSION=8.2.0 PKG_NAME="VTK-8.2.0.tar.gz" CHECKSUM="34c3dc775261be5e45a8049155f7228b6bd668106c72a3c435d95730d17d57bb" DOWNLOAD_LINK=https://www.vtk.org/files/release/8.2/VTK-8.2.0.tar.gz download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_NAME} # Note(storypku): Qt-related features disabled # VTK_USE_BOOST pushd VTK-${VERSION} mkdir build && cd build cmake .. \ -DVTK_USE_SYSTEM_LIBRARIES=ON \ -DVTK_USE_SYSTEM_JPEG=ON \ -DVTK_USE_SYSTEM_PNG=ON \ -DVTK_USE_SYSTEM_TIFF=ON \ -DVTK_USE_SYSTEM_EIGEN=ON \ -DVTK_USE_SYSTEM_LZMA=ON \ -DVTK_USE_SYSTEM_ZLIB=ON \ -DVTK_USE_SYSTEM_LZ4=ON \ -DVTK_USE_SYSTEM_LIBXML2=ON \ -DVTK_USE_SYSTEM_EXPAT=ON \ -DVTK_USE_SYSTEM_LIBPROJ=OFF \ -DVTK_USE_SYSTEM_SQLITE=ON \ -DVTK_USE_SYSTEM_PUGIXML=OFF \ -DVTK_USE_SYSTEM_NETCDF=OFF \ -DVTK_USE_SYSTEM_GL2PS=OFF \ -DVTK_USE_SYSTEM_LIBHARU=OFF \ -DVTK_USE_SYSTEM_JSONCPP=ON \ -DVTK_Group_Qt=OFF \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_INSTALL_PREFIX="${SYSROOT_DIR}" \ -DCMAKE_BUILD_TYPE=Release thread_num="$(nproc)" if [ "${TARGET_ARCH}" = "aarch64" ]; then thread_num=$((thread_num / 2)) fi make -j${thread_num} make install popd ldconfig info "Ok. Done installing VTK-${VERSION}" # clean up rm -rf ${PKG_NAME} VTK-${VERSION} if [[ -n "${CLEAN_DEPS}" ]]; then apt_get_remove \ libjpeg-dev \ libpng-dev \ libtiff-dev \ libeigen3-dev \ liblzma-dev \ libxml2-dev \ liblz4-dev \ libdouble-conversion-dev \ libsqlite3-dev \ libglew-dev \ libtheora-dev \ libogg-dev \ libxt-dev \ libfreetype6-dev \ libjsoncpp-dev \ libhdf5-dev # install Runtime-deps for VTK apt_get_update_and_install \ libglew2.0 \ libdouble-conversion1 \ libxml2 \ libjsoncpp1 \ libhdf5-100 fi
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_magma.sh
#! /usr/bin/env bash ############################################################################### # Copyright 2021 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### set -e CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh if ldconfig -p | grep -q magma ; then warning "Magma already installed, re-installation skipped." exit 0 fi : ${INSTALL_MODE:=download} # : ${APOLLO_DIST:=stable} # re-enable this if differentiation is needed. GPU_ARCHS= function determine_gpu_targets() { IFS=' ' read -r -a sms <<< "${SUPPORTED_NVIDIA_SMS}" local archs= for sm in "${sms[@]}"; do if [[ -z "${archs}" ]]; then archs="sm_${sm//./}" else archs+=" sm_${sm//./}" fi done GPU_ARCHS="${archs}" } determine_gpu_targets apt_get_update_and_install \ libopenblas-dev \ gfortran TARGET_ARCH="$(uname -m)" VERSION="2.5.4" if [[ "${INSTALL_MODE}" == "download" ]]; then if [[ "${TARGET_ARCH}" == "x86_64" ]]; then CHECKSUM="546f7739109ba6cf93696882d8b18c0e35e68e0c8531ce9f9ca8fa345a1f227c" PKG_NAME="magma-${VERSION}-cu111-x86_64.tar.gz" else # AArch64 CHECKSUM="95b9cc9a42e05af3572fe22210230bdbeec023c9481eaeae1f9de051d1171893" PKG_NAME="magma-${VERSION}-cu102-aarch64.tar.gz" fi DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_NAME} pushd ${PKG_NAME%.tar.gz} mv include/* ${SYSROOT_DIR}/include/ mv lib/*.so ${SYSROOT_DIR}/lib/ [[ -d ${SYSROOT_DIR}/lib/pkgconfig ]] || mkdir -p ${SYSROOT_DIR}/lib/pkgconfig install -t ${SYSROOT_DIR}/lib/pkgconfig lib/pkgconfig/magma.pc popd rm -rf ${PKG_NAME%.tar.gz} ${PKG_NAME} ok "Successfully installed magma-${VERSION} in download mode" else PKG_NAME="magma-${VERSION}.tar.gz" DOWNLOAD_LINK="http://icl.utk.edu/projectsfiles/magma/downloads/${PKG_NAME}" CHECKSUM="7734fb417ae0c367b418dea15096aef2e278a423e527c615aab47f0683683b67" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_NAME} pushd magma-${VERSION} mkdir build && cd build cmake .. \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_INSTALL_PREFIX="${SYSROOT_DIR}" \ -DCMAKE_BUILD_TYPE=Release \ -DGPU_TARGET="${GPU_ARCHS}" # E.g., sm_52 sm_60 sm_61 sm_70 sm_75 make -j$(nproc) make install popd rm -rf magma-${VERSION} ${PKG_NAME} fi info "Successfully built Magma for CUDA SMs=${GPU_ARCHS}" ldconfig if [[ -n "${CLEAN_DEPS}" ]]; then apt_get_remove gfortran fi
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_minimal_environment.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh MY_GEO=$1; shift ARCH="$(uname -m)" ##----------------------------## ## APT sources.list settings | ##----------------------------## if [[ "${ARCH}" == "x86_64" ]]; then if [[ "${MY_GEO}" == "cn" ]]; then cp -f "${RCFILES_DIR}/sources.list.cn.x86_64" /etc/apt/sources.list # sed -i 's/nvidia.com/nvidia.cn/g' /etc/apt/sources.list.d/nvidia-ml.list else sed -i 's/archive.ubuntu.com/us.archive.ubuntu.com/g' /etc/apt/sources.list fi else # aarch64 if [[ "${MY_GEO}" == "cn" ]]; then cp -f "${RCFILES_DIR}/sources.list.cn.aarch64" /etc/apt/sources.list fi fi # Disabled: # apt-file apt_get_update_and_install \ apt-utils \ bc \ curl \ file \ gawk \ git \ less \ lsof \ python3 \ python3-pip \ python3-distutils \ sed \ software-properties-common \ sudo \ unzip \ vim \ wget \ zip \ xz-utils if [[ "${ARCH}" == "aarch64" ]]; then apt-get -y install kmod fi MY_STAGE= if [[ -f /etc/apollo.conf ]]; then MY_STAGE="$(awk -F '=' '/^stage=/ {print $2}' /etc/apollo.conf 2>/dev/null)" fi if [[ "${MY_STAGE}" != "runtime" ]]; then apt_get_update_and_install \ build-essential \ autoconf \ automake \ gcc-7 \ g++-7 \ gdb \ libtool \ patch \ pkg-config \ python3-dev \ libexpat1-dev \ linux-libc-dev # Note(storypku): # Set the last two packages to manually installed: # libexpat1-dev was required by python3-dev # linux-libc-dev was required by bazel/clang/cuda/... fi ##----------------## ## SUDO ## ##----------------## sed -i /etc/sudoers -re 's/^%sudo.*/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' ##----------------## ## default shell ## ##----------------## chsh -s /bin/bash ln -s /bin/bash /bin/sh -f ##----------------## ## Python Setings | ##----------------## update-alternatives --install /usr/bin/python python /usr/bin/python3 36 if [[ "${MY_GEO}" == "cn" ]]; then # configure tsinghua's pypi mirror for x86_64 and aarch64 PYPI_MIRROR="https://pypi.tuna.tsinghua.edu.cn/simple" pip3_install -i "$PYPI_MIRROR" pip -U python3 -m pip config set global.index-url "$PYPI_MIRROR" else pip3_install pip -U fi pip3_install -U setuptools pip3_install -U wheel # Kick down the ladder apt-get -y autoremove python3-pip # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install.sh
#! /usr/bin/env bash INSTALLERS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" GEOLOC=cn function main() { sudo cp -r ${INSTALLERS_DIR}/../rcfiles /opt/apollo/ bash ${INSTALLERS_DIR}/install_geo_adjustment.sh ${GEOLOC} bash ${INSTALLERS_DIR}/install_minimal_environment.sh ${GEOLOC} bash ${INSTALLERS_DIR}/install_cmake.sh bash ${INSTALLERS_DIR}/install_cyber_deps.sh bash ${INSTALLERS_DIR}/install_llvm_clang.sh bash ${INSTALLERS_DIR}/install_qa_tools.sh bash ${INSTALLERS_DIR}/install_visualizer_deps.sh bash ${INSTALLERS_DIR}/install_bazel.sh bash ${INSTALLERS_DIR}/install_modules_base.sh bash ${INSTALLERS_DIR}/install_gpu_support.sh bash ${INSTALLERS_DIR}/install_ordinary_modules.sh bash ${INSTALLERS_DIR}/install_drivers_deps.sh bash ${INSTALLERS_DIR}/install_dreamview_deps.sh ${GEOLOC} } main "$@"
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_geo_adjustment.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e TARGET_ARCH="$(uname -m)" cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh MY_GEO=$1; shift ##----------------------------## ## APT sources.list settings | ##----------------------------## echo "My geolocation is ${MY_GEO}" PREV_GEO="us" if egrep -q "(tsinghua|aliyun)" /etc/apt/sources.list; then PREV_GEO="cn" fi if [[ "${MY_GEO}" == "${PREV_GEO}" ]]; then info "Skipped Geo Reconfiguration as ${MY_GEO}==${PREV_GEO}" exit 0 else warning "Perform Geo Adjustment from ${PREV_GEO} to ${MY_GEO}" fi # us->cn if [ "$MY_GEO" == "cn" ]; then cp -f "${RCFILES_DIR}/sources.list.cn.${TARGET_ARCH}" /etc/apt/sources.list # Mirror from Tsinghua Univ. PYPI_MIRROR="https://pypi.tuna.tsinghua.edu.cn/simple" python3 -m pip config set global.index-url "$PYPI_MIRROR" elif [ "$MY_GEO" == "us" ]; then cp -f "${RCFILES_DIR}/sources.list.us.${TARGET_ARCH}" /etc/apt/sources.list PYPI_MIRROR="https://pypi.org/simple" python3 -m pip config set global.index-url "$PYPI_MIRROR" fi
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_ffmpeg.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2019 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd $( dirname "${BASH_SOURCE[0]}") . ./installer_base.sh # References # 1) http://www.linuxfromscratch.org/blfs/view/svn/multimedia/ffmpeg.html # 2) https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu # 3) https://linuxize.com/post/how-to-install-ffmpeg-on-ubuntu-18-04 # 4) https://launchpad.net/~savoury1/+archive/ubuntu/ffmpeg4 # We choose 1) in this script # cat > /etc/apt/sources.list.d/ffmpeg4.list <<EOF # deb http://ppa.launchpad.net/savoury1/ffmpeg4/ubuntu bionic main # EOF # apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 374C7797FB006459 apt_get_update_and_install \ nasm \ yasm \ libx265-dev \ libass-dev \ libfdk-aac-dev \ libmp3lame-dev \ libopus-dev \ libtheora-dev \ libvorbis-dev \ libvpx-dev \ libx264-dev \ libnuma-dev VERSION="4.3.1" PKG_NAME="ffmpeg-${VERSION}.tar.xz" CHECKSUM="ad009240d46e307b4e03a213a0f49c11b650e445b1f8be0dda2a9212b34d2ffb" DOWNLOAD_LINK="http://ffmpeg.org/releases/ffmpeg-${VERSION}.tar.xz" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xJf ${PKG_NAME} pushd ffmpeg-${VERSION} sed -i 's/-lflite"/-lflite -lasound"/' configure ./configure \ --prefix=${SYSROOT_DIR} \ --extra-libs="-lpthread -lm" \ --enable-gpl \ --enable-version3 \ --enable-nonfree \ --disable-static \ --enable-shared \ --disable-debug \ --enable-avresample \ --enable-libass \ --enable-libfdk-aac \ --enable-libfreetype \ --enable-libmp3lame \ --enable-libopus \ --enable-libtheora \ --enable-libvorbis \ --enable-libvpx \ --enable-libx264 \ --enable-libx265 \ --enable-nonfree make -j$(nproc) make install popd ldconfig rm -fr ${PKG_NAME} ffmpeg-${VERSION} if [[ -n "${CLEAN_DEPS}" ]]; then apt_get_remove \ nasm \ yasm \ libx265-dev \ libass-dev \ libfdk-aac-dev \ libmp3lame-dev \ libopus-dev \ libtheora-dev \ libvorbis-dev \ libvpx-dev \ libx264-dev # Don't remove libnuma-dev as it is required by coinor-libipopt1v5 # install runtime-dependencies of ffmpeg apt_get_update_and_install \ libvpx5 \ libx264-152 \ libx265-146 \ libopus0 \ libmp3lame0 \ libvorbis0a \ libvorbisenc2 \ libfdk-aac1 \ libass9 \ libtheora0 fi
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_contrib_deps.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh # placeholder # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_node.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e geo="${1:-us}" cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh VERSION="6.5.1" NODE_VERSION="12.18.1" PKG_NAME="n-${VERSION}.tar.gz" CHECKSUM="5833f15893b9951a9ed59487e87b6c181d96b83a525846255872c4f92f0d25dd" DOWNLOAD_LINK="https://github.com/tj/n/archive/v${VERSION}.tar.gz" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf "${PKG_NAME}" info "Install Node for $geo ..." if [[ "${geo}" == "cn" ]]; then export N_NODE_MIRROR=https://npm.taobao.org/mirrors/node fi pushd n-${VERSION} make install n ${NODE_VERSION} popd rm -fr "${PKG_NAME}" "n-${VERSION}"
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_protobuf.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh # Notes on Protobuf Installer: # 1) protobuf for cpp didn't need to be pre-installed into system # 2) protobuf for python should be provided for cyber testcases VERSION="3.14.0" PKG_NAME="protobuf-${VERSION}.tar.gz" CHECKSUM="d0f5f605d0d656007ce6c8b5a82df3037e1d8fe8b121ed42e536f569dec16113" DOWNLOAD_LINK="https://github.com/protocolbuffers/protobuf/archive/v${VERSION}.tar.gz" #PKG_NAME="protobuf-cpp-${VERSION}.tar.gz" #CHECKSUM="4ef97ec6a8e0570d22ad8c57c99d2055a61ea2643b8e1a0998d2c844916c4968" #DOWNLOAD_LINK="https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protobuf-cpp-${VERSION}.tar.gz" download_if_not_cached "$PKG_NAME" "$CHECKSUM" "$DOWNLOAD_LINK" tar xzf ${PKG_NAME} # https://developers.google.com/protocol-buffers/docs/reference/python-generated#cpp_impl export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp pushd protobuf-${VERSION} mkdir cmake/build && cd cmake/build cmake .. \ -DBUILD_SHARED_LIBS=ON \ -Dprotobuf_BUILD_TESTS=OFF \ -DCMAKE_INSTALL_PREFIX:PATH="/usr" \ -DCMAKE_BUILD_TYPE=Release # ./configure --prefix=/usr make -j$(nproc) make install ldconfig cd ../../python # Cf. https://github.com/protocolbuffers/protobuf/tree/master/python python setup.py install --cpp_implementation popd echo -e "\nexport PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp" | tee -a "${APOLLO_PROFILE}" ok "Successfully installed protobuf, VERSION=${VERSION}" # Clean up. rm -fr ${PKG_NAME} protobuf-${VERSION}
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_benchmark.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh VERSION="1.5.1" PKG_NAME="benchmark-${VERSION}.tar.gz" CHECKSUM="23082937d1663a53b90cb5b61df4bcc312f6dee7018da78ba00dd6bd669dfef2" DOWNLOAD_LINK="https://github.com/google/benchmark/archive/v${VERSION}.tar.gz" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf "${PKG_NAME}" pushd "benchmark-${VERSION}" mkdir build && cd build cmake .. \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX="${SYSROOT_DIR}" \ -DBENCHMARK_ENABLE_LTO=true \ -DBENCHMARK_ENABLE_GTEST_TESTS=OFF make -j$(nproc) make install popd ldconfig ok "Successfully installed benchmark ${VERSION}." rm -fr "${PKG_NAME}" "benchmark-${VERSION}"
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_fftw3.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" # shellcheck source=./installer_base.sh . ./installer_base.sh apt_get_update_and_install libfftw3-dev info "Removing static fftw3 libs..." find "/usr/lib/$(uname -m)-linux-gnu" -name "libfftw3*.a" -delete -print # Source Package Link: # http://www.fftw.org/fftw-3.3.8.tar.gz # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_adolc.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" # Related projects # https://github.com/CSCsw/ColPack.git # https://github.com/coin-or/ADOL-C apt-get -y update && \ apt-get -y install \ libcolpack-dev \ libadolc-dev
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_mpi.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh apt_get_update_and_install mpi-default-dev mpi-default-bin libopenmpi-dev exit 0 WORKHORSE="$1" if [ -z "${WORKHORSE}" ]; then WORKHORSE="cpu" fi apt_get_update_and_install gfortran libhwloc-dev hwloc-nox libevent-dev # Ref: https://www.open-mpi.org/software/ompi/v4.0/ VERSION="4.0.4" PKG_NAME="openmpi-${VERSION}.tar.bz2" CHECKSUM="47e24eb2223fe5d24438658958a313b6b7a55bb281563542e1afc9dec4a31ac4" DOWNLOAD_LINK="https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-${VERSION}.tar.bz2" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" GPU_OPTIONS="" if [ "${WORKHORSE}" = "gpu" ]; then GPU_OPTIONS="--with-cuda" else GPU_OPTIONS="--with-cuda=no" fi TARGET_ARCH="$(uname -m)" # --target "${TARGET_ARCH}" \ tar xjf "${PKG_NAME}" pushd openmpi-${VERSION} ./configure \ --prefix="${SYSROOT_DIR}" \ --build "${TARGET_ARCH}" \ --disable-silent-rules \ --enable-builtin-atomics \ --enable-mpi-cxx \ --with-pic \ --enable-mpi1-compatibility \ --with-hwloc=/usr \ --with-libevent=external \ "${GPU_OPTIONS}" make -j$(nproc) make install popd rm -rf "${PKG_NAME}" "openmpi-${VERSION}" ldconfig apt-get clean && apt-get -y purge --autoremove gfortran info "Done installing openmpi-${VERSION}" # openmpi @cuda # MPICH # Ref: https://www.mpich.org # Inter MPI # Ref: https://software.intel.com/content/www/us/en/develop/tools/mpi-library.html
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_deviceQuery.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### INSTALL_MODE="$1"; shift if [[ -z "${INSTALL_MODE}" ]]; then INSTALL_MODE="download" fi # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh TARGET_ARCH="$(uname -m)" if [[ -z "${CUDA_VERSION}" || "${INSTALL_MODE}" == "download" ]] then if [[ "${TARGET_ARCH}" == "x86_64" ]]; then CUDA_VERSION="11.1.74-1" else CUDA_VERSION="10.2.89-1" fi fi MAIN_VER_DOT="${CUDA_VERSION%.*}" MAIN_VER="${MAIN_VER_DOT//./-}" CUDA_SAMPLES="cuda-samples" DEVICE_QUERY_BINARY= CHECKSUM= DEMO_SUITE_DEST_DIR="/usr/local/cuda-${MAIN_VER_DOT}/extras/demo_suite" if [[ -x "${DEMO_SUITE_DEST_DIR}/deviceQuery" ]]; then info "Found existing deviceQuery under ${DEMO_SUITE_DEST_DIR}, do nothing." exit 0 fi if [[ "${INSTALL_MODE}" == "download" ]]; then # steps to download if [[ "${TARGET_ARCH}" == "x86_64" ]]; then DEVICE_QUERY_BINARY="deviceQuery-${MAIN_VER}_${CUDA_VERSION}_amd64.bin" CHECKSUM="da573cc68ad5fb227047064d73123a8a966df35be19b68163338b6dc0d576c84" elif [[ "${TARGET_ARCH}" == "aarch64" ]]; then DEVICE_QUERY_BINARY="deviceQuery-${MAIN_VER}_${CUDA_VERSION}_arm64.bin" CHECKSUM="fe55e0da8ec20dc13e778ddf7ba95bca45efd51d8f4e6c4fd05f2fb9856f4ac8" else error "Support for ${TARGET_ARCH} not ready yet." exit 1 fi DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${DEVICE_QUERY_BINARY}" download_if_not_cached "${DEVICE_QUERY_BINARY}" "${CHECKSUM}" "${DOWNLOAD_LINK}" [[ -d "${DEMO_SUITE_DEST_DIR}" ]] || mkdir -p "${DEMO_SUITE_DEST_DIR}" cp ${DEVICE_QUERY_BINARY} "${DEMO_SUITE_DEST_DIR}/deviceQuery" chmod a+x "${DEMO_SUITE_DEST_DIR}/deviceQuery" # clean up rm -rf "${DEVICE_QUERY_BINARY}" else # steps to build from source git clone -b v${MAIN_VER_DOT} --single-branch https://github.com/NVIDIA/${CUDA_SAMPLES}.git ${CUDA_SAMPLES} pushd ${CUDA_SAMPLES}/Samples/deviceQuery/ if [[ "${TARGET_ARCH}" == "x86_64" ]]; then make elif [[ "${TARGET_ARCH}" == "aarch64" ]]; then make TARGET_ARCH=aarch64 else error "Support for ${TARGET_ARCH} not ready yet." exit 1 fi [[ -d "${DEMO_SUITE_DEST_DIR}" ]] || mkdir -p "${DEMO_SUITE_DEST_DIR}" cp deviceQuery "${DEMO_SUITE_DEST_DIR}/" chmod a+x "${DEMO_SUITE_DEST_DIR}/deviceQuery" popd # clean up rm -rf "${CUDA_SAMPLES}" fi
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_drivers_deps.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e MY_MODE="$1" CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh bash ${CURR_DIR}/install_opencv.sh bash ${CURR_DIR}/install_adv_plat.sh "${MY_MODE}" bash ${CURR_DIR}/install_proj.sh # Required by Python audio driver apt_get_update_and_install \ python3-pyaudio \ portaudio19-dev # Required by LiDAR drivers for packets captured via pcap apt_get_update_and_install \ libpcap-dev # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_python_modules.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh # Note(storypku): # libgeos-dev for shapely # libhdf5-dev for h5py apt_get_update_and_install \ libgeos-dev \ libhdf5-dev # libc6-dev [[ -f /usr/include/xlocale.h ]] || ln -s /usr/include/locale.h /usr/include/xlocale.h pip3_install -r py3_requirements.txt # Since pypcd installed via `pip install` only works with python2.7, # we can only install it this way git clone https://github.com/DanielPollithy/pypcd pushd pypcd >/dev/null make install popd >/dev/null rm -rf pypcd if [[ -n "${CLEAN_DEPS}" ]]; then apt_get_remove libhdf5-dev apt_get_update_and_install \ libhdf5-100 fi # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_modules_base.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh # Dependency: # openmpi <- boost <- vtk <- pcl # bash ${CURR_DIR}/install_mpi.sh bash ${CURR_DIR}/install_boost.sh bash ${CURR_DIR}/install_ffmpeg.sh # Proj was required to install VTK bash ${CURR_DIR}/install_proj.sh bash ${CURR_DIR}/install_vtk.sh # PCL is required by [ Perception Localization Dreamview ] bash ${CURR_DIR}/install_pcl.sh # OpenCV depends on ffmpeg and vtk bash ${CURR_DIR}/install_opencv.sh # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_migraphx.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### set -e CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh TARGET_ARCH="$(uname -m)" if [[ "${TARGET_ARCH}" == "x86_64" ]]; then PKG_NAME="migraphx.tar.gz" FILE_ID="1PiZP1YDU1scSY3kRz2qBLq3H35gteaHB" else # AArch64 error "AMD migraphx for ${TARGET_ARCH} not ready. Exiting..." exit 1 fi DOWNLOAD_LINK="https://docs.google.com/uc?export=download&id=${FILE_ID}" wget --load-cookies /tmp/cookies.txt \ "https://docs.google.com/uc?export=download&confirm= $(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies \ --no-check-certificate ${DOWNLOAD_LINK} \ -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=${FILE_ID}" \ -O "${PKG_NAME}" && rm -rf /tmp/cookies.txt tar xzf "${PKG_NAME}" mv "${PKG_NAME%.tar.gz}" /opt/rocm/migraphx cp -rLfs "/opt/rocm/migraphx/include/." "/opt/rocm/include/" cp -rLfs "/opt/rocm/migraphx/lib/." "/opt/rocm/lib/" # Cleanup rm -f "${PKG_NAME}" ok "Successfully installed migraphx"
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/FastRTPS_1.5.0.patch
diff --git a/cmake/dev/check_configuration.cmake b/cmake/dev/check_configuration.cmake index 67e4a14..55f62ea 100644 --- a/cmake/dev/check_configuration.cmake +++ b/cmake/dev/check_configuration.cmake @@ -14,6 +14,7 @@ macro(check_stdcxx) # Check C++11 + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") include(CheckCXXCompilerFlag) if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") diff --git a/examples/C++/DeadlineQoSExample/deadlineQoS.cxx b/examples/C++/DeadlineQoSExample/deadlineQoS.cxx index 97c458b..bcabede 100644 --- a/examples/C++/DeadlineQoSExample/deadlineQoS.cxx +++ b/examples/C++/DeadlineQoSExample/deadlineQoS.cxx @@ -15,6 +15,7 @@ #include <chrono> #include "deadlineQoS.h" +#include <functional> #include <string> using namespace asio; diff --git a/include/fastrtps/Domain.h b/include/fastrtps/Domain.h index 20558a4..634f0e8 100644 --- a/include/fastrtps/Domain.h +++ b/include/fastrtps/Domain.h @@ -19,7 +19,7 @@ #ifndef DOMAIN_H_ #define DOMAIN_H_ - +#include <mutex> #include "attributes/ParticipantAttributes.h" namespace eprosima{ @@ -164,7 +164,7 @@ private: static std::vector<t_p_Participant> m_participants; static bool default_xml_profiles_loaded; - + static std::mutex m_lock; }; } /* namespace */ diff --git a/include/fastrtps/rtps/builtin/discovery/participant/PDPSimpleListener.h b/include/fastrtps/rtps/builtin/discovery/participant/PDPSimpleListener.h index e076206..2b2f58b 100644 --- a/include/fastrtps/rtps/builtin/discovery/participant/PDPSimpleListener.h +++ b/include/fastrtps/rtps/builtin/discovery/participant/PDPSimpleListener.h @@ -70,9 +70,9 @@ public: */ bool getKey(CacheChange_t* change); //!Temporal RTPSParticipantProxyData object used to read the messages. - ParticipantProxyData m_ParticipantProxyData; + //ParticipantProxyData m_ParticipantProxyData; //!Auxiliary message. - CDRMessage_t aux_msg; + //CDRMessage_t aux_msg; }; diff --git a/include/fastrtps/rtps/messages/RTPS_messages.h b/include/fastrtps/rtps/messages/RTPS_messages.h index 67afd91..1655cc5 100644 --- a/include/fastrtps/rtps/messages/RTPS_messages.h +++ b/include/fastrtps/rtps/messages/RTPS_messages.h @@ -29,22 +29,22 @@ namespace fastrtps{ namespace rtps{ // //!@brief Enumeration of the different Submessages types -#define PAD 0x01 -#define ACKNACK 0x06 -#define HEARTBEAT 0x07 -#define GAP 0x08 -#define INFO_TS 0x09 -#define INFO_SRC 0x0c -#define INFO_REPLY_IP4 0x0d -#define INFO_DST 0x0e -#define INFO_REPLY 0x0f -#define NACK_FRAG 0x12 -#define HEARTBEAT_FRAG 0x13 -#define DATA 0x15 -#define DATA_FRAG 0x16 -#define SEC_PREFIX 0x31 -#define SRTPS_PREFIX 0x33 +const int PAD = 0x01; +const int ACKNACK = 0x06; +const int HEARTBEAT = 0x07; +const int GAP = 0x08; +const int INFO_TS = 0x09; +const int INFO_SRC = 0x0c; +const int INFO_REPLY_IP4 = 0x0d; +const int INFO_DST = 0x0e; +const int INFO_REPLY = 0x0f; +const int NACK_FRAG = 0x12; +const int HEARTBEAT_FRAG = 0x13; +const int DATA = 0x15; +const int DATA_FRAG = 0x16; +const int SEC_PREFIX = 0x31; +const int SRTPS_PREFIX = 0x33; //!@brief Structure Header_t, RTPS Message Header Structure. //!@ingroup COMMON_MODULE struct Header_t{ diff --git a/include/fastrtps/rtps/reader/StatefulReader.h b/include/fastrtps/rtps/reader/StatefulReader.h index 7a29832..28d806c 100644 --- a/include/fastrtps/rtps/reader/StatefulReader.h +++ b/include/fastrtps/rtps/reader/StatefulReader.h @@ -165,6 +165,7 @@ class StatefulReader:public RTPSReader */ inline size_t getMatchedWritersSize() const { return matched_writers.size(); } + void sendFragAck(WriterProxy *mp_WP, CacheChange_t *cit); /*! * @brief Returns there is a clean state with all Writers. * It occurs when the Reader received all samples sent by Writers. In other words, diff --git a/include/fastrtps/rtps/writer/RTPSWriter.h b/include/fastrtps/rtps/writer/RTPSWriter.h index f2a40d9..62d4bb8 100644 --- a/include/fastrtps/rtps/writer/RTPSWriter.h +++ b/include/fastrtps/rtps/writer/RTPSWriter.h @@ -23,6 +23,7 @@ #include "../messages/RTPSMessageGroup.h" #include "../attributes/WriterAttributes.h" #include <vector> +#include <functional> #include <memory> namespace eprosima { diff --git a/include/fastrtps/utils/IPFinder.h b/include/fastrtps/utils/IPFinder.h index 3d50819..2969584 100644 --- a/include/fastrtps/utils/IPFinder.h +++ b/include/fastrtps/utils/IPFinder.h @@ -61,7 +61,7 @@ public: IPFinder(); virtual ~IPFinder(); - RTPS_DllAPI static bool getIPs(std::vector<info_IP>* vec_name, bool return_loopback = false); + RTPS_DllAPI static bool getIPs(std::vector<info_IP>* vec_name, bool return_loopback = true); /** * Get the IP4Adresses in all interfaces. diff --git a/src/cpp/Domain.cpp b/src/cpp/Domain.cpp index 2a0fc9c..6d8c3db 100644 --- a/src/cpp/Domain.cpp +++ b/src/cpp/Domain.cpp @@ -40,6 +40,7 @@ namespace fastrtps { std::vector<Domain::t_p_Participant> Domain::m_participants; bool Domain::default_xml_profiles_loaded = false; +std::mutex Domain::m_lock; Domain::Domain() @@ -55,6 +56,7 @@ Domain::~Domain() void Domain::stopAll() { + std::lock_guard<std::mutex> guard(m_lock); while(m_participants.size()>0) { Domain::removeParticipant(m_participants.begin()->first); @@ -65,6 +67,7 @@ void Domain::stopAll() bool Domain::removeParticipant(Participant* part) { + std::lock_guard<std::mutex> guard(m_lock); if(part!=nullptr) { for(auto it = m_participants.begin();it!= m_participants.end();++it) @@ -83,6 +86,7 @@ bool Domain::removeParticipant(Participant* part) bool Domain::removePublisher(Publisher* pub) { + std::lock_guard<std::mutex> guard(m_lock); if(pub!=nullptr) { for(auto it = m_participants.begin();it!= m_participants.end();++it) @@ -99,6 +103,7 @@ bool Domain::removePublisher(Publisher* pub) bool Domain::removeSubscriber(Subscriber* sub) { + std::lock_guard<std::mutex> guard(m_lock); if(sub!=nullptr) { for(auto it = m_participants.begin();it!= m_participants.end();++it) @@ -132,6 +137,7 @@ Participant* Domain::createParticipant(const std::string &participant_profile, P Participant* Domain::createParticipant(ParticipantAttributes& att,ParticipantListener* listen) { + std::lock_guard<std::mutex> guard(m_lock); Participant* pubsubpar = new Participant(); ParticipantImpl* pspartimpl = new ParticipantImpl(att,pubsubpar,listen); RTPSParticipant* part = RTPSDomain::createParticipant(att.rtps,&pspartimpl->m_rtps_listener); @@ -165,6 +171,7 @@ Publisher* Domain::createPublisher(Participant *part, const std::string &publish Publisher* Domain::createPublisher(Participant *part, PublisherAttributes &att, PublisherListener *listen) { + std::lock_guard<std::mutex> guard(m_lock); for (auto it = m_participants.begin(); it != m_participants.end(); ++it) { if(it->second->getGuid() == part->getGuid()) @@ -189,6 +196,7 @@ Subscriber* Domain::createSubscriber(Participant *part, const std::string &subsc Subscriber* Domain::createSubscriber(Participant *part, SubscriberAttributes &att, SubscriberListener *listen) { + std::lock_guard<std::mutex> guard(m_lock); for (auto it = m_participants.begin(); it != m_participants.end(); ++it) { if(it->second->getGuid() == part->getGuid()) @@ -201,6 +209,7 @@ Subscriber* Domain::createSubscriber(Participant *part, SubscriberAttributes &at bool Domain::getRegisteredType(Participant* part, const char* typeName, TopicDataType** type) { + std::lock_guard<std::mutex> guard(m_lock); for (auto it = m_participants.begin(); it != m_participants.end();++it) { if(it->second->getGuid() == part->getGuid()) @@ -213,6 +222,7 @@ bool Domain::getRegisteredType(Participant* part, const char* typeName, TopicDat bool Domain::registerType(Participant* part, TopicDataType* type) { + std::lock_guard<std::mutex> guard(m_lock); //TODO El registro debería hacerse de manera que no tengamos un objeto del usuario sino que tengamos un objeto TopicDataTYpe propio para que no //haya problemas si el usuario lo destruye antes de tiempo. for (auto it = m_participants.begin(); it != m_participants.end();++it) @@ -227,6 +237,7 @@ bool Domain::registerType(Participant* part, TopicDataType* type) bool Domain::unregisterType(Participant* part, const char* typeName) { + std::lock_guard<std::mutex> guard(m_lock); //TODO El registro debería hacerse de manera que no tengamos un objeto del usuario sino que tengamos un objeto TopicDataTYpe propio para que no //haya problemas si el usuario lo destruye antes de tiempo. for (auto it = m_participants.begin(); it != m_participants.end();++it) diff --git a/src/cpp/publisher/PublisherImpl.cpp b/src/cpp/publisher/PublisherImpl.cpp index dbaa079..e3e2dcc 100644 --- a/src/cpp/publisher/PublisherImpl.cpp +++ b/src/cpp/publisher/PublisherImpl.cpp @@ -117,6 +117,7 @@ bool PublisherImpl::create_new_change_with_params(ChangeKind_t changeKind, void* } //TODO(Ricardo) This logic in a class. Then a user of rtps layer can use it. + high_mark_for_frag_ = 16 << 10; if(high_mark_for_frag_ == 0) { uint32_t max_data_size = mp_writer->getMaxDataSize(); diff --git a/src/cpp/rtps/builtin/BuiltinProtocols.cpp b/src/cpp/rtps/builtin/BuiltinProtocols.cpp index 97e7a14..76367e9 100644 --- a/src/cpp/rtps/builtin/BuiltinProtocols.cpp +++ b/src/cpp/rtps/builtin/BuiltinProtocols.cpp @@ -53,10 +53,12 @@ BuiltinProtocols::~BuiltinProtocols() { if(mp_PDP != nullptr) mp_PDP->announceParticipantState(true, true); // TODO Auto-generated destructor stub - if(mp_WLP!=nullptr) - delete(mp_WLP); if(mp_PDP!=nullptr) delete(mp_PDP); + + // last destroy, since PDP proxy data will use + if(mp_WLP!=nullptr) + delete(mp_WLP); } diff --git a/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp b/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp index 5e008c9..c0dfb1a 100644 --- a/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp +++ b/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp @@ -75,6 +75,7 @@ bool EDP::newLocalReaderProxyData(RTPSReader* reader,TopicAttributes& att, Reade reader->m_acceptMessagesFromUnkownWriters = false; //ADD IT TO THE LIST OF READERPROXYDATA ParticipantProxyData* pdata = nullptr; + std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); if(!this->mp_PDP->addReaderProxyData(rpd, false, nullptr, &pdata)) { delete(rpd); @@ -106,6 +107,7 @@ bool EDP::newLocalWriterProxyData(RTPSWriter* writer,TopicAttributes& att, Write wpd->userDefinedId(writer->getAttributes()->getUserDefinedID()); //ADD IT TO THE LIST OF READERPROXYDATA ParticipantProxyData* pdata = nullptr; + std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); if(!this->mp_PDP->addWriterProxyData(wpd, false, nullptr, &pdata)) { delete(wpd); @@ -123,6 +125,7 @@ bool EDP::updatedLocalReader(RTPSReader* R,ReaderQos& rqos) { ParticipantProxyData* pdata = nullptr; ReaderProxyData* rdata = nullptr; + std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); if(this->mp_PDP->lookupReaderProxyData(R->getGuid(),&rdata, &pdata)) { rdata->m_qos.setQos(rqos,false); @@ -140,6 +143,7 @@ bool EDP::updatedLocalWriter(RTPSWriter* W,WriterQos& wqos) { ParticipantProxyData* pdata = nullptr; WriterProxyData* wdata = nullptr; + std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); if(this->mp_PDP->lookupWriterProxyData(W->getGuid(),&wdata, &pdata)) { wdata->m_qos.setQos(wqos,false); @@ -159,6 +163,7 @@ bool EDP::removeWriterProxy(const GUID_t& writer) ParticipantProxyData* pdata = nullptr; WriterProxyData* wdata = nullptr; // Block because other thread can be removing the participant. + //std::lock_guard<std::recursive_mutex> guard(*mp_RTPSParticipant->getParticipantMutex()); std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); if(this->mp_PDP->lookupWriterProxyData(writer,&wdata, &pdata)) { @@ -176,6 +181,7 @@ bool EDP::removeReaderProxy(const GUID_t& reader) ParticipantProxyData* pdata = nullptr; ReaderProxyData* rdata = nullptr; // Block because other thread can be removing the participant. + //std::lock_guard<std::recursive_mutex> guard(*mp_RTPSParticipant->getParticipantMutex()); std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); if(this->mp_PDP->lookupReaderProxyData(reader,&rdata, &pdata)) { @@ -432,10 +438,10 @@ bool EDP::pairingReader(RTPSReader* R) { ParticipantProxyData* pdata = nullptr; ReaderProxyData* rdata = nullptr; + std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); if(this->mp_PDP->lookupReaderProxyData(R->getGuid(),&rdata, &pdata)) { logInfo(RTPS_EDP,R->getGuid()<<" in topic: \"" << rdata->topicName() <<"\""); - std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); for(std::vector<ParticipantProxyData*>::const_iterator pit = mp_PDP->ParticipantProxiesBegin(); pit!=mp_PDP->ParticipantProxiesEnd();++pit) { @@ -515,10 +521,10 @@ bool EDP::pairingWriter(RTPSWriter* W) { ParticipantProxyData* pdata = nullptr; WriterProxyData* wdata = nullptr; + std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); if(this->mp_PDP->lookupWriterProxyData(W->getGuid(),&wdata, &pdata)) { logInfo(RTPS_EDP, W->getGuid() << " in topic: \"" << wdata->topicName() <<"\""); - std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); for(std::vector<ParticipantProxyData*>::const_iterator pit = mp_PDP->ParticipantProxiesBegin(); pit!=mp_PDP->ParticipantProxiesEnd();++pit) { @@ -609,6 +615,7 @@ bool EDP::pairingReaderProxy(ParticipantProxyData* pdata, ReaderProxyData* rdata lock.unlock(); ParticipantProxyData* wpdata = nullptr; WriterProxyData* wdata = nullptr; + std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); if(mp_PDP->lookupWriterProxyData(writerGUID,&wdata, &wpdata)) { std::unique_lock<std::recursive_mutex> plock(*pdata->mp_mutex); @@ -769,6 +776,7 @@ bool EDP::pairingWriterProxy(ParticipantProxyData *pdata, WriterProxyData* wdata lock.unlock(); ParticipantProxyData* rpdata = nullptr; ReaderProxyData* rdata = nullptr; + std::lock_guard<std::recursive_mutex> pguard(*mp_PDP->getMutex()); if(mp_PDP->lookupReaderProxyData(readerGUID, &rdata, &rpdata)) { std::unique_lock<std::recursive_mutex> plock(*pdata->mp_mutex); diff --git a/src/cpp/rtps/builtin/discovery/endpoint/EDPSimple.cpp b/src/cpp/rtps/builtin/discovery/endpoint/EDPSimple.cpp index 0770888..68d2e12 100644 --- a/src/cpp/rtps/builtin/discovery/endpoint/EDPSimple.cpp +++ b/src/cpp/rtps/builtin/discovery/endpoint/EDPSimple.cpp @@ -129,6 +129,8 @@ bool EDPSimple::createSEDPEndpoints() watt.times.nackResponseDelay.fraction = 0; watt.times.initialHeartbeatDelay.seconds = 0; watt.times.initialHeartbeatDelay.fraction = 0; + watt.times.heartbeatPeriod.seconds = 1; + watt.times.heartbeatPeriod.fraction = 0; if(mp_RTPSParticipant->getRTPSParticipantAttributes().throughputController.bytesPerPeriod != UINT32_MAX && mp_RTPSParticipant->getRTPSParticipantAttributes().throughputController.periodMillisecs != 0) watt.mode = ASYNCHRONOUS_WRITER; @@ -219,6 +221,8 @@ bool EDPSimple::createSEDPEndpoints() watt.times.nackResponseDelay.fraction = 0; watt.times.initialHeartbeatDelay.seconds = 0; watt.times.initialHeartbeatDelay.fraction = 0; + watt.times.heartbeatPeriod.seconds = 1; + watt.times.heartbeatPeriod.fraction = 0; if(mp_RTPSParticipant->getRTPSParticipantAttributes().throughputController.bytesPerPeriod != UINT32_MAX && mp_RTPSParticipant->getRTPSParticipantAttributes().throughputController.periodMillisecs != 0) watt.mode = ASYNCHRONOUS_WRITER; @@ -422,7 +426,7 @@ void EDPSimple::assignRemoteEndpoints(ParticipantProxyData* pdata) watt.guid.guidPrefix = pdata->m_guid.guidPrefix; watt.guid.entityId = c_EntityId_SEDPPubWriter; watt.endpoint.unicastLocatorList = pdata->m_metatrafficUnicastLocatorList; - watt.endpoint.multicastLocatorList = pdata->m_metatrafficMulticastLocatorList; + //watt.endpoint.multicastLocatorList = pdata->m_metatrafficMulticastLocatorList; watt.endpoint.reliabilityKind = RELIABLE; watt.endpoint.durabilityKind = TRANSIENT_LOCAL; pdata->m_builtinWriters.push_back(watt); @@ -440,7 +444,7 @@ void EDPSimple::assignRemoteEndpoints(ParticipantProxyData* pdata) ratt.guid.guidPrefix = pdata->m_guid.guidPrefix; ratt.guid.entityId = c_EntityId_SEDPPubReader; ratt.endpoint.unicastLocatorList = pdata->m_metatrafficUnicastLocatorList; - ratt.endpoint.multicastLocatorList = pdata->m_metatrafficMulticastLocatorList; + //ratt.endpoint.multicastLocatorList = pdata->m_metatrafficMulticastLocatorList; ratt.endpoint.durabilityKind = TRANSIENT_LOCAL; ratt.endpoint.reliabilityKind = RELIABLE; pdata->m_builtinReaders.push_back(ratt); @@ -457,7 +461,7 @@ void EDPSimple::assignRemoteEndpoints(ParticipantProxyData* pdata) watt.guid.guidPrefix = pdata->m_guid.guidPrefix; watt.guid.entityId = c_EntityId_SEDPSubWriter; watt.endpoint.unicastLocatorList = pdata->m_metatrafficUnicastLocatorList; - watt.endpoint.multicastLocatorList = pdata->m_metatrafficMulticastLocatorList; + //watt.endpoint.multicastLocatorList = pdata->m_metatrafficMulticastLocatorList; watt.endpoint.reliabilityKind = RELIABLE; watt.endpoint.durabilityKind = TRANSIENT_LOCAL; pdata->m_builtinWriters.push_back(watt); @@ -475,7 +479,7 @@ void EDPSimple::assignRemoteEndpoints(ParticipantProxyData* pdata) ratt.guid.guidPrefix = pdata->m_guid.guidPrefix; ratt.guid.entityId = c_EntityId_SEDPSubReader; ratt.endpoint.unicastLocatorList = pdata->m_metatrafficUnicastLocatorList; - ratt.endpoint.multicastLocatorList = pdata->m_metatrafficMulticastLocatorList; + //ratt.endpoint.multicastLocatorList = pdata->m_metatrafficMulticastLocatorList; ratt.endpoint.durabilityKind = TRANSIENT_LOCAL; ratt.endpoint.reliabilityKind = RELIABLE; pdata->m_builtinReaders.push_back(ratt); diff --git a/src/cpp/rtps/builtin/discovery/endpoint/EDPSimpleListeners.cpp b/src/cpp/rtps/builtin/discovery/endpoint/EDPSimpleListeners.cpp index 992d442..3bb0ace 100644 --- a/src/cpp/rtps/builtin/discovery/endpoint/EDPSimpleListeners.cpp +++ b/src/cpp/rtps/builtin/discovery/endpoint/EDPSimpleListeners.cpp @@ -72,6 +72,7 @@ void EDPSimplePUBListener::onNewCacheChangeAdded(RTPSReader* /*reader*/, const C //LOOK IF IS AN UPDATED INFORMATION WriterProxyData* wdata = nullptr; ParticipantProxyData* pdata = nullptr; + std::lock_guard<std::recursive_mutex> pguard(*mp_SEDP->mp_PDP->getMutex()); if(this->mp_SEDP->mp_PDP->addWriterProxyData(&writerProxyData,true,&wdata,&pdata)) //ADDED NEW DATA { //CHECK the locators: @@ -207,6 +208,7 @@ void EDPSimpleSUBListener::onNewCacheChangeAdded(RTPSReader* /*reader*/, const C //LOOK IF IS AN UPDATED INFORMATION ReaderProxyData* rdata = nullptr; ParticipantProxyData* pdata = nullptr; + std::lock_guard<std::recursive_mutex> pguard(*mp_SEDP->mp_PDP->getMutex()); if(this->mp_SEDP->mp_PDP->addReaderProxyData(&readerProxyData,true,&rdata,&pdata)) //ADDED NEW DATA { pdata->mp_mutex->lock(); diff --git a/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp b/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp index e5f4708..09b629a 100644 --- a/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp +++ b/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp @@ -221,7 +221,8 @@ void PDPSimple::announceParticipantState(bool new_change, bool dispose) { logInfo(RTPS_PDP,"Announcing RTPSParticipant State (new change: "<< new_change <<")"); CacheChange_t* change = nullptr; - + bool unsent_change = false; + { std::lock_guard<std::recursive_mutex> guardPDP(*this->mp_mutex); if(!dispose) @@ -257,7 +258,8 @@ void PDPSimple::announceParticipantState(bool new_change, bool dispose) } else { - mp_SPDPWriter->unsent_changes_reset(); + unsent_change = true; + //mp_SPDPWriter->unsent_changes_reset(); } } else @@ -286,7 +288,10 @@ void PDPSimple::announceParticipantState(bool new_change, bool dispose) mp_SPDPWriterHistory->add_change(change); } } - + } + if (unsent_change) { + mp_SPDPWriter->unsent_changes_reset(); + } } bool PDPSimple::lookupReaderProxyData(const GUID_t& reader, ReaderProxyData** rdata, ParticipantProxyData** pdata) @@ -549,6 +554,7 @@ void PDPSimple::assignRemoteEndpoints(ParticipantProxyData* pdata) uint32_t auxendp = endp; auxendp &=DISC_BUILTIN_ENDPOINT_PARTICIPANT_ANNOUNCER; // TODO Review because the mutex is already take in PDPSimpleListener. + std::lock_guard<std::recursive_mutex> guard_pdpsimple(*mp_mutex); std::lock_guard<std::recursive_mutex> guard(*pdata->mp_mutex); if(auxendp!=0) { @@ -637,6 +643,7 @@ bool PDPSimple::removeRemoteParticipant(GUID_t& partGUID) break; } } + guardPDP.unlock(); if(pdata !=nullptr) { @@ -672,7 +679,7 @@ bool PDPSimple::removeRemoteParticipant(GUID_t& partGUID) } pdata->mp_mutex->unlock(); - guardPDP.unlock(); + //guardPDP.unlock(); guardW.unlock(); guardR.unlock(); diff --git a/src/cpp/rtps/builtin/discovery/participant/PDPSimpleListener.cpp b/src/cpp/rtps/builtin/discovery/participant/PDPSimpleListener.cpp index d82dbeb..b1f769d 100644 --- a/src/cpp/rtps/builtin/discovery/participant/PDPSimpleListener.cpp +++ b/src/cpp/rtps/builtin/discovery/participant/PDPSimpleListener.cpp @@ -45,10 +45,12 @@ namespace rtps { -void PDPSimpleListener::onNewCacheChangeAdded(RTPSReader* reader, const CacheChange_t* const change_in) +void PDPSimpleListener::onNewCacheChangeAdded(RTPSReader* /*reader*/, const CacheChange_t* const change_in) { + ParticipantProxyData m_ParticipantProxyData; CacheChange_t* change = (CacheChange_t*)(change_in); - std::lock_guard<std::recursive_mutex> rguard(*reader->getMutex()); + //std::lock_guard<std::recursive_mutex> rguard(*reader->getMutex()); + logInfo(RTPS_PDP,"SPDP Message received"); if(change->instanceHandle == c_InstanceHandle_Unknown) { @@ -81,6 +83,10 @@ void PDPSimpleListener::onNewCacheChangeAdded(RTPSReader* reader, const CacheCha //LOOK IF IS AN UPDATED INFORMATION ParticipantProxyData* pdata_ptr = nullptr; bool found = false; + RTPSParticipantDiscoveryInfo info; + + //lock mp_SPDP mutex. + { std::lock_guard<std::recursive_mutex> guard(*mp_SPDP->getMutex()); for (auto it = mp_SPDP->m_participantProxies.begin(); it != mp_SPDP->m_participantProxies.end();++it) @@ -92,17 +98,25 @@ void PDPSimpleListener::onNewCacheChangeAdded(RTPSReader* reader, const CacheCha break; } } - RTPSParticipantDiscoveryInfo info; info.m_guid = m_ParticipantProxyData.m_guid; info.m_RTPSParticipantName = m_ParticipantProxyData.m_participantName; info.m_propertyList = m_ParticipantProxyData.m_properties.properties; info.m_userData = m_ParticipantProxyData.m_userData; + if (found) + { + info.m_status = CHANGED_QOS_RTPSPARTICIPANT; + std::lock_guard<std::recursive_mutex> pguard(*pdata_ptr->mp_mutex); + pdata_ptr->updateData(m_ParticipantProxyData); + if(mp_SPDP->m_discovery.use_STATIC_EndpointDiscoveryProtocol) + mp_SPDP->mp_EDP->assignRemoteEndpoints(&m_ParticipantProxyData); + } + } // mp_SPDP lock guard end. + if(!found) { info.m_status = DISCOVERED_RTPSPARTICIPANT; //IF WE DIDNT FOUND IT WE MUST CREATE A NEW ONE ParticipantProxyData* pdata = new ParticipantProxyData(); - std::lock_guard<std::recursive_mutex> pguard(*pdata->mp_mutex); pdata->copy(m_ParticipantProxyData); pdata_ptr = pdata; pdata_ptr->isAlive = true; @@ -110,18 +124,14 @@ void PDPSimpleListener::onNewCacheChangeAdded(RTPSReader* reader, const CacheCha pdata_ptr, TimeConv::Time_t2MilliSecondsDouble(pdata_ptr->m_leaseDuration)); pdata_ptr->mp_leaseDurationTimer->restart_timer(); + { + std::lock_guard<std::recursive_mutex> guard(*mp_SPDP->getMutex()); this->mp_SPDP->m_participantProxies.push_back(pdata_ptr); mp_SPDP->assignRemoteEndpoints(pdata_ptr); + } mp_SPDP->announceParticipantState(false); } - else - { - info.m_status = CHANGED_QOS_RTPSPARTICIPANT; - std::lock_guard<std::recursive_mutex> pguard(*pdata_ptr->mp_mutex); - pdata_ptr->updateData(m_ParticipantProxyData); - if(mp_SPDP->m_discovery.use_STATIC_EndpointDiscoveryProtocol) - mp_SPDP->mp_EDP->assignRemoteEndpoints(&m_ParticipantProxyData); - } + if(this->mp_SPDP->getRTPSParticipant()->getListener()!=nullptr) this->mp_SPDP->getRTPSParticipant()->getListener()->onRTPSParticipantDiscovery( this->mp_SPDP->getRTPSParticipant()->getUserRTPSParticipant(), @@ -133,7 +143,11 @@ void PDPSimpleListener::onNewCacheChangeAdded(RTPSReader* reader, const CacheCha { GUID_t guid; iHandle2GUID(guid,change->instanceHandle); - this->mp_SPDP->removeRemoteParticipant(guid); + { + std::lock_guard<std::recursive_mutex> guard(*mp_SPDP->getMutex()); + this->mp_SPDP->removeRemoteParticipant(guid); + } + RTPSParticipantDiscoveryInfo info; info.m_status = REMOVED_RTPSPARTICIPANT; info.m_guid = guid; @@ -151,10 +165,14 @@ void PDPSimpleListener::onNewCacheChangeAdded(RTPSReader* reader, const CacheCha bool PDPSimpleListener::getKey(CacheChange_t* change) { + CDRMessage_t aux_msg; SerializedPayload_t* pl = &change->serializedPayload; CDRMessage::initCDRMsg(&aux_msg); - // TODO CHange because it create a buffer to remove after. - free(aux_msg.buffer); + + if (aux_msg.buffer) { + // TODO CHange because it create a buffer to remove after. + free(aux_msg.buffer); + } aux_msg.buffer = pl->data; aux_msg.length = pl->length; aux_msg.max_size = pl->max_size; diff --git a/src/cpp/rtps/builtin/discovery/participant/timedevent/RemoteParticipantLeaseDuration.cpp b/src/cpp/rtps/builtin/discovery/participant/timedevent/RemoteParticipantLeaseDuration.cpp index 2e81003..d936a3d 100644 --- a/src/cpp/rtps/builtin/discovery/participant/timedevent/RemoteParticipantLeaseDuration.cpp +++ b/src/cpp/rtps/builtin/discovery/participant/timedevent/RemoteParticipantLeaseDuration.cpp @@ -73,7 +73,11 @@ void RemoteParticipantLeaseDuration::event(EventCode code, const char* msg) mp_participantProxyData->mp_mutex->lock(); mp_participantProxyData->mp_leaseDurationTimer = nullptr; mp_participantProxyData->mp_mutex->unlock(); - mp_PDP->removeRemoteParticipant(mp_participantProxyData->m_guid); + + { + std::lock_guard<std::recursive_mutex> guard(*mp_PDP->getMutex()); + mp_PDP->removeRemoteParticipant(mp_participantProxyData->m_guid); + } if(mp_PDP->getRTPSParticipant()->getListener()!=nullptr) mp_PDP->getRTPSParticipant()->getListener()->onRTPSParticipantDiscovery( diff --git a/src/cpp/rtps/messages/CDRMessagePool.cpp b/src/cpp/rtps/messages/CDRMessagePool.cpp index 82984fc..8722693 100644 --- a/src/cpp/rtps/messages/CDRMessagePool.cpp +++ b/src/cpp/rtps/messages/CDRMessagePool.cpp @@ -57,12 +57,13 @@ void CDRMessagePool::allocateGroup(uint16_t payload) CDRMessagePool::~CDRMessagePool() { +#if 0 for(std::vector<CDRMessage_t*>::iterator it=m_all_objects.begin(); it!=m_all_objects.end();++it) { delete(*it); } - +#endif if(mutex_ != nullptr) delete mutex_; } diff --git a/src/cpp/rtps/participant/RTPSParticipantImpl.cpp b/src/cpp/rtps/participant/RTPSParticipantImpl.cpp index 3b20ed0..4e2f73a 100644 --- a/src/cpp/rtps/participant/RTPSParticipantImpl.cpp +++ b/src/cpp/rtps/participant/RTPSParticipantImpl.cpp @@ -124,6 +124,7 @@ RTPSParticipantImpl::RTPSParticipantImpl(const RTPSParticipantAttributes& PParam for (const auto& transportDescriptor : PParam.userTransports) m_network_Factory.RegisterTransport(transportDescriptor.get()); +{ std::lock_guard<std::recursive_mutex> guard(*mp_mutex); mp_userParticipant->mp_impl = this; Locator_t loc; @@ -327,6 +328,7 @@ RTPSParticipantImpl::RTPSParticipantImpl(const RTPSParticipantAttributes& PParam // Start security m_security_manager.init(); #endif +} //START BUILTIN PROTOCOLS mp_builtinProtocols = new BuiltinProtocols(); @@ -787,7 +789,7 @@ bool RTPSParticipantImpl::assignEndpoint2LocatorList(Endpoint* endp,LocatorList_ LocatorList_t finalList; for(auto lit = list.begin();lit != list.end();++lit){ //Iteration of all Locators within the Locator list passed down as argument - std::lock_guard<std::recursive_mutex> guard(*mp_mutex); + std::lock_guard<std::mutex> guard(m_receive_resources_mutex); //Check among ReceiverResources whether the locator is supported or not for (auto it = m_receiverResourcelist.begin(); it != m_receiverResourcelist.end(); ++it){ //Take mutex for the resource since we are going to interact with shared resources @@ -851,6 +853,7 @@ void RTPSParticipantImpl::createReceiverResources(LocatorList_t& Locator_list, b for(auto it_buffer = newItemsBuffer.begin(); it_buffer != newItemsBuffer.end(); ++it_buffer) { + std::lock_guard<std::mutex> guard(m_receive_resources_mutex); //Push the new items into the ReceiverResource buffer m_receiverResourcelist.push_back(ReceiverControlBlock(std::move(*it_buffer))); //Create and init the MessageReceiver @@ -868,9 +871,11 @@ void RTPSParticipantImpl::createReceiverResources(LocatorList_t& Locator_list, b bool RTPSParticipantImpl::deleteUserEndpoint(Endpoint* p_endpoint) { + m_receive_resources_mutex.lock(); for(auto it=m_receiverResourcelist.begin();it!=m_receiverResourcelist.end();++it){ (*it).mp_receiver->removeEndpoint(p_endpoint); } + m_receive_resources_mutex.unlock(); bool found = false; { if(p_endpoint->getAttributes()->endpointKind == WRITER) @@ -924,12 +929,13 @@ bool RTPSParticipantImpl::deleteUserEndpoint(Endpoint* p_endpoint) if(!found) return false; //REMOVE FOR BUILTINPROTOCOLS + //std::lock_guard<std::recursive_mutex> guardParticipant(*mp_mutex); if(p_endpoint->getAttributes()->endpointKind == WRITER) mp_builtinProtocols->removeLocalWriter((RTPSWriter*)p_endpoint); else mp_builtinProtocols->removeLocalReader((RTPSReader*)p_endpoint); //BUILTINPROTOCOLS - std::lock_guard<std::recursive_mutex> guardParticipant(*mp_mutex); + // std::lock_guard<std::recursive_mutex> guardParticipant(*mp_mutex); } // std::lock_guard<std::recursive_mutex> guardEndpoint(*p_endpoint->getMutex()); delete(p_endpoint); diff --git a/src/cpp/rtps/participant/RTPSParticipantImpl.h b/src/cpp/rtps/participant/RTPSParticipantImpl.h index 426bcdb..00cfaba 100644 --- a/src/cpp/rtps/participant/RTPSParticipantImpl.h +++ b/src/cpp/rtps/participant/RTPSParticipantImpl.h @@ -261,6 +261,7 @@ class RTPSParticipantImpl #endif //!ReceiverControlBlock list - encapsulates all associated resources on a Receiving element + std::mutex m_receive_resources_mutex; std::list<ReceiverControlBlock> m_receiverResourcelist; //!SenderResource List std::mutex m_send_resources_mutex; diff --git a/src/cpp/rtps/reader/FragmentedChangePitStop.cpp b/src/cpp/rtps/reader/FragmentedChangePitStop.cpp index b286720..dc4b139 100644 --- a/src/cpp/rtps/reader/FragmentedChangePitStop.cpp +++ b/src/cpp/rtps/reader/FragmentedChangePitStop.cpp @@ -18,7 +18,7 @@ using namespace eprosima::fastrtps::rtps; -CacheChange_t* FragmentedChangePitStop::process(CacheChange_t* incoming_change, uint32_t sampleSize, uint32_t fragmentStartingNum) +CacheChange_t* FragmentedChangePitStop::process(CacheChange_t* incoming_change, uint32_t sampleSize, uint32_t fragmentStartingNum, bool &has_hole, CacheChange_t * & r_change) { CacheChange_t* returnedValue = nullptr; @@ -88,13 +88,23 @@ CacheChange_t* FragmentedChangePitStop::process(CacheChange_t* incoming_change, } // If was updated, check if it is completed. + uint32_t hole_index = 0; if(was_updated) { auto fit = original_change_cit->getChange()->getDataFragments()->begin(); for(; fit != original_change_cit->getChange()->getDataFragments()->end(); ++fit) { - if(*fit == ChangeFragmentStatus_t::NOT_PRESENT) + ++hole_index; + if(*fit == ChangeFragmentStatus_t::NOT_PRESENT) { + if (hole_index < fragmentStartingNum) { + if (hole_index != _hole_last) { + _hole_last = hole_index; + r_change = original_change_cit->getChange(); + has_hole = true; + } + } break; + } } // If it is completed, return CacheChange_t and remove information. diff --git a/src/cpp/rtps/reader/FragmentedChangePitStop.h b/src/cpp/rtps/reader/FragmentedChangePitStop.h index 8c9f45c..745f756 100644 --- a/src/cpp/rtps/reader/FragmentedChangePitStop.h +++ b/src/cpp/rtps/reader/FragmentedChangePitStop.h @@ -105,7 +105,7 @@ namespace eprosima * @return If a CacheChange_t is completed with new incomming fragments, this will be returned. * In other case nullptr is returned. */ - CacheChange_t* process(CacheChange_t* incoming_change, uint32_t sampleSize, uint32_t fragmentStartingNum); + CacheChange_t* process(CacheChange_t* incoming_change, uint32_t sampleSize, uint32_t fragmentStartingNum, bool & has_hole,CacheChange_t* & r_change); /*! * @brief Search if there is a CacheChange_t, giving SequenceNumber_t and writer GUID_t, @@ -139,7 +139,7 @@ namespace eprosima private: std::unordered_multiset<ChangeInPit, ChangeInPit::ChangeInPitHash> changes_; - + uint32_t _hole_last = 0; RTPSReader* parent_; FragmentedChangePitStop(const FragmentedChangePitStop&) NON_COPYABLE_CXX11; diff --git a/src/cpp/rtps/reader/StatefulReader.cpp b/src/cpp/rtps/reader/StatefulReader.cpp index abf81b3..baca4c8 100644 --- a/src/cpp/rtps/reader/StatefulReader.cpp +++ b/src/cpp/rtps/reader/StatefulReader.cpp @@ -29,6 +29,8 @@ #include "FragmentedChangePitStop.h" #include <fastrtps/utils/TimeConversion.h> +#include <sys/time.h> + #include <mutex> #include <thread> @@ -70,7 +72,7 @@ bool StatefulReader::matched_writer_add(RemoteWriterAttributes& wdata) if((*it)->m_att.guid == wdata.guid) { logInfo(RTPS_READER,"Attempting to add existing writer"); - return false; + return true; } } WriterProxy* wp = new WriterProxy(wdata, this); @@ -296,11 +298,14 @@ bool StatefulReader::processDataFragMsg(CacheChange_t *incomingChange, uint32_t } } #endif - // Fragments manager has to process incomming fragments. // If CacheChange_t is completed, it will be returned; - CacheChange_t* change_completed = fragmentedChangePitStop_->process(change_to_add, sampleSize, fragmentStartingNum); - + bool has_hole = false; + CacheChange_t *orig_change; + CacheChange_t* change_completed = fragmentedChangePitStop_->process(change_to_add, sampleSize, fragmentStartingNum, has_hole, orig_change); + //if (has_hole) { + //sendFragAck(pWP, orig_change); + //} #if HAVE_SECURITY if(is_payload_protected()) releaseCache(change_to_add); @@ -707,3 +712,48 @@ bool StatefulReader::isInCleanState() const return cleanState; } + +void StatefulReader::sendFragAck(WriterProxy *mp_WP, CacheChange_t * cit) { + RTPSMessageGroup_t m_cdrmessages(mp_WP->mp_SFR->getRTPSParticipant()->getMaxMessageSize(), + mp_WP->mp_SFR->getRTPSParticipant()->getGuid().guidPrefix); + + std::lock_guard<std::recursive_mutex> guard(*mp_WP->mp_SFR->getMutex()); + RTPSMessageGroup group(mp_WP->mp_SFR->getRTPSParticipant(), mp_WP->mp_SFR, RTPSMessageGroup::READER, m_cdrmessages); + LocatorList_t locators(mp_WP->m_att.endpoint.unicastLocatorList); + + { + FragmentNumberSet_t frag_sns; + + // Search first fragment not present. + uint32_t frag_num = 0; + auto fit = cit->getDataFragments()->begin(); + for(; fit != cit->getDataFragments()->end(); ++fit) + { + ++frag_num; + if(*fit == ChangeFragmentStatus_t::NOT_PRESENT) + break; + } + + // Never should happend. + assert(frag_num != 0); + assert(fit != cit->getDataFragments()->end()); + + // Store FragmentNumberSet_t base. + frag_sns.base = frag_num; + + // Fill the FragmentNumberSet_t bitmap. + for(; fit != cit->getDataFragments()->end(); ++fit) + { + if(*fit == ChangeFragmentStatus_t::NOT_PRESENT) { + frag_sns.add(frag_num); + } else { + break; + } + ++frag_num; + } + + ++mp_WP->m_nackfragCount; + group.add_nackfrag(mp_WP->m_att.guid, cit->sequenceNumber, frag_sns, mp_WP->m_nackfragCount, locators); + } + +} diff --git a/src/cpp/rtps/reader/StatelessReader.cpp b/src/cpp/rtps/reader/StatelessReader.cpp index a1b919d..fc0ef06 100644 --- a/src/cpp/rtps/reader/StatelessReader.cpp +++ b/src/cpp/rtps/reader/StatelessReader.cpp @@ -209,7 +209,9 @@ bool StatelessReader::processDataMsg(CacheChange_t *change) if(getGuid().entityId == c_EntityId_SPDPReader) { + lock.unlock(); mp_RTPSParticipant->assertRemoteRTPSParticipantLiveliness(change->writerGUID.guidPrefix); + lock.lock(); } } } @@ -232,7 +234,9 @@ bool StatelessReader::processDataFragMsg(CacheChange_t *incomingChange, uint32_t // Fragments manager has to process incomming fragments. // If CacheChange_t is completed, it will be returned; - CacheChange_t* change_completed = fragmentedChangePitStop_->process(incomingChange, sampleSize, fragmentStartingNum); + bool has_hole = false; + CacheChange_t* tmp_cache; + CacheChange_t* change_completed = fragmentedChangePitStop_->process(incomingChange, sampleSize, fragmentStartingNum, has_hole, tmp_cache); // Try to remove previous CacheChange_t from PitStop. fragmentedChangePitStop_->try_to_remove_until(incomingChange->sequenceNumber, incomingChange->writerGUID); @@ -276,7 +280,9 @@ bool StatelessReader::processDataFragMsg(CacheChange_t *incomingChange, uint32_t // Assert liveliness because if it is a participant discovery info. if (getGuid().entityId == c_EntityId_SPDPReader) { + lock.unlock(); mp_RTPSParticipant->assertRemoteRTPSParticipantLiveliness(incomingChange->writerGUID.guidPrefix); + lock.lock(); } // Release CacheChange_t. diff --git a/src/cpp/rtps/reader/timedevent/HeartbeatResponseDelay.cpp b/src/cpp/rtps/reader/timedevent/HeartbeatResponseDelay.cpp index cf2ab61..8bb4a8d 100644 --- a/src/cpp/rtps/reader/timedevent/HeartbeatResponseDelay.cpp +++ b/src/cpp/rtps/reader/timedevent/HeartbeatResponseDelay.cpp @@ -133,9 +133,9 @@ void HeartbeatResponseDelay::event(EventCode code, const char* msg) // Fill the FragmentNumberSet_t bitmap. for(; fit != cit->getDataFragments()->end(); ++fit) { - if(*fit == ChangeFragmentStatus_t::NOT_PRESENT) + if(*fit == ChangeFragmentStatus_t::NOT_PRESENT) { frag_sns.add(frag_num); - + } ++frag_num; } diff --git a/src/cpp/rtps/writer/ReaderProxy.cpp b/src/cpp/rtps/writer/ReaderProxy.cpp index 7f3d67c..e312640 100644 --- a/src/cpp/rtps/writer/ReaderProxy.cpp +++ b/src/cpp/rtps/writer/ReaderProxy.cpp @@ -198,6 +198,13 @@ void ReaderProxy::set_change_to_status(const SequenceNumber_t& seq_num, ChangeFo auto it = m_changesForReader.find(ChangeForReader_t(seq_num)); bool mustWakeUpAsyncThread = false; + if ((m_att.endpoint.reliabilityKind != RELIABLE) + && (status == ACKNOWLEDGED)) { + if (it != m_changesForReader.end()) { + m_changesForReader.erase(m_changesForReader.begin(), it); + } + } + if(it != m_changesForReader.end()) { if(status == ACKNOWLEDGED && it == m_changesForReader.begin()) @@ -300,6 +307,7 @@ void ReaderProxy::setNotValid(CacheChange_t* change) // Element must be in the container. In other case, bug. assert(chit != m_changesForReader.end()); +#if 0 if(chit == m_changesForReader.begin()) { assert(chit->getStatus() != ACKNOWLEDGED); @@ -327,6 +335,11 @@ void ReaderProxy::setNotValid(CacheChange_t* change) m_changesForReader.insert(hint, newch); } +#endif + + m_changesForReader.erase(chit); + if (changesFromRLowMark_ < change->sequenceNumber) + changesFromRLowMark_ = change->sequenceNumber; } bool ReaderProxy::thereIsUnacknowledged() const diff --git a/src/cpp/rtps/writer/StatefulWriter.cpp b/src/cpp/rtps/writer/StatefulWriter.cpp index 8e54ca5..d05f9f3 100644 --- a/src/cpp/rtps/writer/StatefulWriter.cpp +++ b/src/cpp/rtps/writer/StatefulWriter.cpp @@ -54,7 +54,8 @@ StatefulWriter::StatefulWriter(RTPSParticipantImpl* pimpl,GUID_t& guid, mp_periodicHB(nullptr), m_times(att.times), all_acked_mutex_(nullptr), all_acked_(false), all_acked_cond_(nullptr), disableHeartbeatPiggyback_(att.disableHeartbeatPiggyback), - sendBufferSize_(pimpl->get_min_network_send_buffer_size()), + //sendBufferSize_(pimpl->get_min_network_send_buffer_size()), + sendBufferSize_(32 << 10), currentUsageSendBufferSize_(static_cast<int32_t>(pimpl->get_min_network_send_buffer_size())) { m_heartbeatCount = 0; @@ -145,7 +146,7 @@ void StatefulWriter::unsent_change_added_to_history(CacheChange_t* change) // Heartbeat piggyback. if(!disableHeartbeatPiggyback_) { - if(mp_history->isFull()) + if (0) //(mp_history->isFull()) { send_heartbeat_nts_(mAllRemoteReaders, mAllShrinkedLocatorList, group); } @@ -279,8 +280,9 @@ void StatefulWriter::send_any_unsent_changes() { activateHeartbeatPeriod = true; assert(remoteReader->mp_nackSupression != nullptr); - if(allFragmentsSent) + if(allFragmentsSent) { remoteReader->mp_nackSupression->restart_timer(); + } } } } @@ -319,7 +321,7 @@ void StatefulWriter::send_any_unsent_changes() // Heartbeat piggyback. if(!disableHeartbeatPiggyback_) { - if(mp_history->isFull()) + if(0) //(mp_history->isFull()) { send_heartbeat_nts_(mAllRemoteReaders, mAllShrinkedLocatorList, group); } @@ -386,7 +388,7 @@ bool StatefulWriter::matched_reader_add(RemoteReaderAttributes& rdata) if((*it)->m_att.guid == rdata.guid) { logInfo(RTPS_WRITER, "Attempting to add existing reader" << endl); - return false; + return true; } allRemoteReaders.push_back((*it)->m_att.guid); diff --git a/src/cpp/transport/UDPv4Transport.cpp b/src/cpp/transport/UDPv4Transport.cpp index c069716..d35b4a9 100644 --- a/src/cpp/transport/UDPv4Transport.cpp +++ b/src/cpp/transport/UDPv4Transport.cpp @@ -30,7 +30,7 @@ static const uint32_t maximumMessageSize = 65500; static const uint32_t minimumSocketBuffer = 65536; static const uint8_t defaultTTL = 1; -static void GetIP4s(vector<IPFinder::info_IP>& locNames, bool return_loopback = false) +static void GetIP4s(vector<IPFinder::info_IP>& locNames, bool return_loopback = true) { IPFinder::getIPs(&locNames, return_loopback); auto newEnd = remove_if(locNames.begin(), @@ -106,7 +106,6 @@ bool UDPv4Transport::init() socket_base::send_buffer_size option; socket.get_option(option); mConfiguration_.sendBufferSize = option.value(); - if(mConfiguration_.sendBufferSize < minimumSocketBuffer) { mConfiguration_.sendBufferSize = minimumSocketBuffer; @@ -210,11 +209,15 @@ bool UDPv4Transport::OpenInputChannel(const Locator_t& locator) for (const auto& infoIP : locNames) { auto ip = asio::ip::address_v4::from_string(infoIP.name); + try { #if defined(ASIO_HAS_MOVE) - socket.set_option(ip::multicast::join_group(ip::address_v4::from_string(locator.to_IP4_string()), ip)); + socket.set_option(ip::multicast::join_group(ip::address_v4::from_string(locator.to_IP4_string()), ip)); #else - socket->set_option(ip::multicast::join_group(ip::address_v4::from_string(locator.to_IP4_string()), ip)); + socket->set_option(ip::multicast::join_group(ip::address_v4::from_string(locator.to_IP4_string()), ip)); #endif + } catch (std::exception &e) { + logWarning(RTPS_MSG_OUT, "Ignore nic bind mutiple ips error."); + } } } @@ -413,6 +416,10 @@ asio::ip::udp::socket UDPv4Transport::OpenAndBindUnicastOutputSocket(const ip::a { ip::udp::socket socket(mService); socket.open(ip::udp::v4()); + if (mSendBufferSize < (1 << 20)) { + mSendBufferSize = 1 << 20; + } + if(mSendBufferSize != 0) socket.set_option(socket_base::send_buffer_size(mSendBufferSize)); socket.set_option(ip::multicast::hops(mConfiguration_.TTL)); @@ -448,6 +455,10 @@ asio::ip::udp::socket UDPv4Transport::OpenAndBindInputSocket(uint32_t port, bool { ip::udp::socket socket(mService); socket.open(ip::udp::v4()); + if (mReceiveBufferSize < 1 << 20) { + mReceiveBufferSize = 1 << 20; + } + if(mReceiveBufferSize != 0) socket.set_option(socket_base::receive_buffer_size(mReceiveBufferSize)); if(is_multicast) Submodule thirdparty/fastcdr contains modified content diff --git a/thirdparty/fastcdr/include/fastcdr/Cdr.h b/thirdparty/fastcdr/include/fastcdr/Cdr.h index 8eb52d5..d963ee3 100644 --- a/thirdparty/fastcdr/include/fastcdr/Cdr.h +++ b/thirdparty/fastcdr/include/fastcdr/Cdr.h @@ -726,6 +726,7 @@ namespace eprosima * @exception exception::NotEnoughMemoryException This exception is thrown when trying to serialize a position that exceeds the internal memory size. */ Cdr& serialize(const char *string_t); + Cdr& serialize(const char *string_t, size_t length); /*! * @brief This function serializes a string with a different endianness. @@ -735,6 +736,7 @@ namespace eprosima * @exception exception::NotEnoughMemoryException This exception is thrown when trying to serialize a position that exceeds the internal memory size. */ Cdr& serialize(const char *string_t, Endianness endianness); + Cdr& serialize(const char *string_t, size_t length, Endianness endianness); //TODO inline Cdr& serialize(char *string_t) {return serialize((const char*)string_t);} @@ -749,7 +751,7 @@ namespace eprosima * @exception exception::NotEnoughMemoryException This exception is thrown when trying to serialize a position that exceeds the internal memory size. */ inline - Cdr& serialize(const std::string &string_t) {return serialize(string_t.c_str());} + Cdr& serialize(const std::string &string_t) {return serialize(string_t.c_str(), string_t.size());} /*! * @brief This function serializes a std::string with a different endianness. @@ -759,7 +761,7 @@ namespace eprosima * @exception exception::NotEnoughMemoryException This exception is thrown when trying to serialize a position that exceeds the internal memory size. */ inline - Cdr& serialize(const std::string &string_t, Endianness endianness) {return serialize(string_t.c_str(), endianness);} + Cdr& serialize(const std::string &string_t, Endianness endianness) {return serialize(string_t.c_str(), string_t.size(), endianness);} #if HAVE_CXX0X /*! diff --git a/thirdparty/fastcdr/src/cpp/Cdr.cpp b/thirdparty/fastcdr/src/cpp/Cdr.cpp index b9c6e7b..e4d1774 100644 --- a/thirdparty/fastcdr/src/cpp/Cdr.cpp +++ b/thirdparty/fastcdr/src/cpp/Cdr.cpp @@ -570,6 +570,38 @@ Cdr& Cdr::serialize(const char *string_t) return *this; } +Cdr& Cdr::serialize(const char *string_t, size_t str_length) +{ + uint32_t length = 0; + + if(string_t != nullptr) + length = (uint32_t)str_length + 1; + + if(length > 0) + { + Cdr::state state(*this); + serialize(length); + + if(((m_lastPosition - m_currentPosition) >= length) || resize(length)) + { + // Save last datasize. + m_lastDataSize = sizeof(uint8_t); + + m_currentPosition.memcopy(string_t, length); + m_currentPosition += length; + } + else + { + setState(state); + throw NotEnoughMemoryException(NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT); + } + } + else + serialize(length); + + return *this; +} + Cdr& Cdr::serialize(const char *string_t, Endianness endianness) { bool auxSwap = m_swapBytes; @@ -589,6 +621,25 @@ Cdr& Cdr::serialize(const char *string_t, Endianness endianness) return *this; } +Cdr& Cdr::serialize(const char *string_t, size_t length, Endianness endianness) +{ + bool auxSwap = m_swapBytes; + m_swapBytes = (m_swapBytes && (m_endianness == endianness)) || (!m_swapBytes && (m_endianness != endianness)); + + try + { + serialize(string_t, length); + m_swapBytes = auxSwap; + } + catch(Exception &ex) + { + m_swapBytes = auxSwap; + ex.raise(); + } + + return *this; +} + Cdr& Cdr::serializeArray(const bool *bool_t, size_t numElements) { size_t totalSize = sizeof(*bool_t)*numElements;
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_llvm_clang.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh # Install clang via apt to reduce image size apt_get_update_and_install \ clang-10 \ clang-format-10 # clang-tidy-10 \ # clang-tools-10 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 100 sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 100 sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-10 100 # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/* # Install from source # Ref: # https://releases.llvm.org/download.html # https://github.com/llvm/llvm-project/releases ok "Done installing LLVM Clang-10."
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_grpc.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh ARCH=$(uname -m) THREAD_NUM=$(nproc) # Install gflags. VERSION="1.30.0" CHECKSUM="419dba362eaf8f1d36849ceee17c3e2ff8ff12ac666b42d3ff02a164ebe090e9" PKG_NAME="grpc-${VERSION}.tar.gz" DOWNLOAD_LINK="https://github.com/grpc/grpc/archive/refs/tags/v${VERSION}.tar.gz" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf "${PKG_NAME}" pushd grpc-${VERSION} mkdir build && cd build cmake ../.. -DgRPC_INSTALL=ON \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_BUILD_TYPE=Release \ -DgRPC_ABSL_PROVIDER=package \ -DgRPC_CARES_PROVIDER=package \ -DgRPC_PROTOBUF_PROVIDER=package \ -DgRPC_RE2_PROVIDER=package \ -DgRPC_SSL_PROVIDER=package \ -DgRPC_ZLIB_PROVIDER=package make -j${THREAD_NUM} make install popd ldconfig # cleanup rm -rf $PKG_NAME grpc-$VERSION
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_gperftools.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh apt_get_update_and_install \ libunwind8 \ libunwind-dev \ graphviz VERSION="2.8" PKG_NAME="gperftools-${VERSION}.tar.gz" CHECKSUM="b09193adedcc679df2387042324d0d54b93d35d062ea9bff0340f342a709e860" DOWNLOAD_LINK="https://github.com/gperftools/gperftools/archive/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_NAME} pushd "gperftools-gperftools-${VERSION}" >/dev/null ./autogen.sh || sleep 1 && ./autogen.sh ./configure --prefix=/usr # shared lib only options: --enable-static=no --with-pic=yes make -j$(nproc) make install popd >/dev/null ldconfig ok "Successfully installed gperftools-${VERSION}." # Clean up apt_get_remove \ libunwind-dev rm -rf ${PKG_NAME} "gperftools-gperftools-${VERSION}"
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_mkl.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2021 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh TARGET_ARCH="$(uname -m)" if [[ "${TARGET_ARCH}" != "x86_64" ]]; then exit 0 fi pip3_install mkl==2021.1.1 # Workaround for removing duplicate entries in mkl PYPI installation function mkl_relink { MKL_LIBDIR="/usr/local/lib" for so in ${MKL_LIBDIR}/libmkl*.so; do so1="${so}.1" if [[ "$(basename ${so})" == "libmkl_sycl.so" ]]; then rm -f ${so} ${so1} || true continue fi if [[ -f "${so}.1" ]]; then cs1=$(sha256sum ${so1} | awk '{print $1}') cs0=$(sha256sum ${so} | awk '{print $1}') if [[ "${cs1}" == "${cs0}" ]]; then so1_name="$(basename $so1)" warning "Duplicate so ${so} with ${so1_name} found, re-symlinking..." info "Now perform: rm -f ${so} && ln -s ${so1_name} ${so}" rm -f ${so} && ln -s ${so1_name} ${so} fi fi done } function tbb_relink() { TBB_LIBDIR="/usr/local/lib" for so in ${TBB_LIBDIR}/libtbb*.so*; do soname="$(basename ${so})" IFS='.' read -ra arr <<< "${soname}" IFS=' ' # restore IFS num=${#arr[@]} if [[ ${num} != 4 ]]; then # Keep only libtbb.so.12.1 rm -f ${so} || true fi done for so in ${TBB_LIBDIR}/libtbb*.so*; do soname="$(basename ${so})" IFS='.' read -ra arr <<< "${soname}" IFS=' ' # restore IFS core="${arr[0]}.so" ln -s ${soname} ${TBB_LIBDIR}/${core}.${arr[2]} ln -s ${core}.${arr[2]} ${TBB_LIBDIR}/${core} done } mkl_relink tbb_relink ldconfig ok "Successfully installed mkl from PYPI"
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_gflags_glog.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh ARCH=$(uname -m) THREAD_NUM=$(nproc) # Install gflags. VERSION="2.2.2" CHECKSUM="34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf" PKG_NAME="gflags-${VERSION}.tar.gz" DOWNLOAD_LINK="https://github.com/gflags/gflags/archive/v${VERSION}.tar.gz" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf "${PKG_NAME}" pushd gflags-${VERSION} mkdir build && cd build cmake .. -DBUILD_SHARED_LIBS=ON \ -DCMAKE_BUILD_TYPE=Release make -j${THREAD_NUM} make install popd ldconfig # cleanup rm -rf $PKG_NAME gflags-$VERSION # Install glog which also depends on gflags. VERSION="0.4.0" PKG_NAME="glog-${VERSION}.tar.gz" CHECKSUM="f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c" DOWNLOAD_LINK="https://github.com/google/glog/archive/v${VERSION}.tar.gz" # https://github.com/google/glog/archive/v0.4.0.tar.gz download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_NAME} pushd glog-${VERSION} mkdir build && cd build cmake .. \ -DBUILD_SHARED_LIBS=ON \ -DWITH_GFLAGS=OFF \ -DCMAKE_BUILD_TYPE=Release # if [ "$ARCH" == "aarch64" ]; then # ./configure --build=armv8-none-linux --enable-shared # fi make -j${THREAD_NUM} make install popd ldconfig # clean up. rm -fr ${PKG_NAME} glog-${VERSION}
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_ordinary_modules.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh ####################################################### COMPONENT="modules/common" info "Install support for [${COMPONENT}] ..." info "Install osqp ..." bash ${CURR_DIR}/install_osqp.sh apt_get_update_and_install \ libsqlite3-dev ###################################################### COMPONENT="modules/perception" info "Install support for [${COMPONENT}] ..." bash ${CURR_DIR}/install_paddle_deps.sh ###################################################### COMPONENT="modules/prediction" info "Install support for [${COMPONENT}] ..." bash ${CURR_DIR}/install_opencv.sh ####################################################### COMPONENT="modules/planning" info "Install support for [${COMPONENT}] ..." bash ${CURR_DIR}/install_adolc.sh bash ${CURR_DIR}/install_ipopt.sh ####################################################### COMPONENT="modules/map" info "Install support for [${COMPONENT}] ..." apt_get_update_and_install \ libtinyxml2-dev # CUDA & nlohmann/json ####################################################### COMPONENT="modules/localization" info "Install support for [${COMPONENT}] ..." ok "Good, no extra deps for localization. " ####################################################### COMPONENT="modules/tools" info "Install support for [${COMPONENT}] ..." bash ${CURR_DIR}/install_python_modules.sh # Modules that DON'T need pre-installed dependencies # modules/v2x # modules/storytelling # modules/routing ###################################################### COMPONENT="modules/teleop" info "Install support for [${COMPONENT}] ..." bash ${CURR_DIR}/install_openh264.sh ###################################################### COMPONENT="modules/audio" info "Install support for [${COMPONENT}] ..." bash ${CURR_DIR}/install_fftw3.sh # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_shellcheck.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" # shellcheck source=./installer_base.sh . ./installer_base.sh # Rather than # apt_get_update_and_install \ # shellcheck # for shellcheck 0.4.6 on Ubuntu 18.04, we prefer to # download latest shellcheck binaries. TARGET_ARCH="$(uname -m)" VERSION="0.7.1" # As always, x86_64 and aarch64 only PKG_NAME="shellcheck-v${VERSION}.linux.${TARGET_ARCH}.tar.xz" DOWNLOAD_LINK="https://github.com/koalaman/shellcheck/releases/download/v${VERSION}/${PKG_NAME}" CHECKSUM= if [[ "${TARGET_ARCH}" == "x86_64" ]]; then CHECKSUM="64f17152d96d7ec261ad3086ed42d18232fcb65148b44571b564d688269d36c8" elif [[ "${TARGET_ARCH}" == "aarch64" ]]; then CHECKSUM="b50cc31509b354ab5bbfc160bc0967567ed98cd9308fd43f38551b36cccc4446" else warning "${TARGET_ARCH} architecture is currently not supported." exit 1 fi download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xJf "${PKG_NAME}" pushd "shellcheck-v${VERSION}" >/dev/null mv shellcheck "${SYSROOT_DIR}/bin" chmod a+x "${SYSROOT_DIR}/bin/shellcheck" popd rm -rf "${PKG_NAME}" "shellcheck-v${VERSION}" ok "Done installing shellcheck ${VERSION}"
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_adv_plat.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e MY_MODE="${1:-download}" cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh ARCH="$(uname -m)" DEST_DIR="${PKGS_DIR}/adv_plat" [[ -d ${DEST_DIR} ]] && rm -rf ${DEST_DIR} mkdir -p ${DEST_DIR} if [[ "${MY_MODE}" == "download" ]]; then if [[ "${ARCH}" == "x86_64" ]]; then PKG_NAME="adv_plat-3.0.1-x86_64.tar.gz" CHECKSUM="3853ff381f8cb6e1681c73e7b4fbc004e950b83db890e3fa0bab9bf6685114ac" DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_NAME} # Note(storypku): workaround for the issue that adv_plat built on ubuntu 20.04 host # can't work properly for camera driver EXTRACTED_PKG="${PKG_NAME%%.tar.gz}" mv -f ${EXTRACTED_PKG}/* ${DEST_DIR}/ echo "${DEST_DIR}/lib" >> "${APOLLO_LD_FILE}" ldconfig # cleanup rm -rf ${EXTRACTED_PKG} ${PKG_NAME} exit 0 fi fi #info "Git clone https://github.com/ApolloAuto/apollo-contrib.git" #git clone https://github.com/ApolloAuto/apollo-contrib.git PKG_NAME="apollo-contrib-baidu-1.0.tar.gz" CHECKSUM="cd385dae6d23c6fd70c2c0dcd0ce306241f84a638f50988c6ca52952c304bbec" DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_NAME} BAIDU_DIR="apollo-contrib/baidu" SRC_DIR="${BAIDU_DIR}/src/lib" OUT_DIR="${BAIDU_DIR}/output" pushd ${SRC_DIR} pushd adv_trigger make -j$(nproc) make install make clean popd pushd bcan make -j$(nproc) make install make clean popd popd LINUX_HEADERS="../src/kernel/include/uapi/linux" pushd ${OUT_DIR} cp -r ${LINUX_HEADERS} include/ rm -rf lib/libadv_*.a create_so_symlink lib mkdir -p "${DEST_DIR}" mv include ${DEST_DIR} mv lib ${DEST_DIR} echo "${DEST_DIR}/lib" >> "${APOLLO_LD_FILE}" ldconfig popd rm -rf ${PKG_NAME} apollo-contrib
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_tkinter.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" # Related projects # https://github.com/CSCsw/ColPack.git # https://github.com/coin-or/ADOL-C apt-get -y update && \ apt-get -y install \ python3-tk
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_cyber_deps.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh TARGET_ARCH="$(uname -m)" apt-get -y update && \ apt-get -y install \ ncurses-dev \ libuuid1 \ uuid-dev info "Install protobuf ..." bash ${CURR_DIR}/install_protobuf.sh info "Install fast-rtps ..." bash ${CURR_DIR}/install_fast-rtps.sh # absl bash ${CURR_DIR}/install_abseil.sh # gflags and glog bash ${CURR_DIR}/install_gflags_glog.sh # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_qt5_qtbase.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e BUILD_TYPE="${1:-download}" CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh VERSION="5.12.9" MAJOR_VERSION="${VERSION%.*}" QT5_PREFIX="/usr/local/qt5" if [[ "${BUILD_TYPE}" == "download" ]]; then PKG_NAME="Qt-${VERSION}-linux-arm64.bin.tar.gz" CHECKSUM="9361d04678610fe5fddebbbf9bab38d75690d691f3d88f1f2d3eb96a07364945" DOWNLOAD_LINK="https://apollo-system.cdn.bcebos.com/archive/6.0/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf "${PKG_NAME}" -C /usr/local ln -sfnv "Qt-${VERSION}" "${QT5_PREFIX}" else # References: # 1) http://www.linuxfromscratch.org/blfs/view/svn/x/qt5.html # 2) https://src.fedoraproject.org/rpms/qt5-qtbase/tree/master # 3) https://launchpad.net/ubuntu/+source/qtbase-opensource-src/5.12.8+dfsg-0ubuntu1 apt_get_update_and_install \ libicu-dev \ libdbus-1-dev \ libfontconfig1-dev \ libfreetype6-dev \ libgl1-mesa-dev \ libharfbuzz-dev \ libjpeg-dev \ libpcre3-dev \ libpng-dev \ libsqlite3-dev \ libssl-dev \ libvulkan-dev \ libxcb1-dev \ libexpat1-dev \ zlib1g-dev \ libxcb-image0-dev \ libxcb-keysyms1-dev \ libxcb-render-util0-dev \ libxcb-shm0-dev \ libxcb-util1 \ libxcb-xinerama0-dev \ libxcb-xkb-dev \ libxkbcommon-dev \ libxkbcommon-x11-dev PKG_NAME="qtbase-everywhere-src-${VERSION}.tar.xz" CHECKSUM="331dafdd0f3e8623b51bd0da2266e7e7c53aa8e9dc28a8eb6f0b22609c5d337e" DOWNLOAD_LINK="https://download.qt.io/official_releases/qt/${MAJOR_VERSION}/${VERSION}/submodules/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xJf ${PKG_NAME} mkdir -p "/usr/local/Qt-${VERSION}" pushd qtbase-everywhere-src-${VERSION} >/dev/null find . -name "*.pr[io]" | xargs sed -i 's/python/&3/' pushd src/3rdparty [ -d UNUSED ] || mkdir UNUSED mv freetype libjpeg libpng zlib sqlite UNUSED/ || true popd ./configure \ -verbose \ -prefix $QT5_PREFIX \ -sysconfdir /etc/xdg \ -platform linux-g++ \ -release \ -optimized-qmake \ -shared \ -strip \ -confirm-license \ -opensource \ -fontconfig \ -dbus-linked \ -openssl-linked \ -system-harfbuzz \ -system-freetype \ -system-sqlite \ -system-libjpeg \ -system-libpng \ -system-zlib \ -nomake examples \ -no-pch \ -no-rpath \ -skip qtwebengine make -j$(nproc) make install ln -sfnv "Qt-${VERSION}" "${QT5_PREFIX}" # PostInstall find $QT5_PREFIX/ -name \*.prl \ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; find ${QT5_PREFIX}/lib -name "*.la" \ -exec rm -f {} \; popd >/dev/null fi echo "${QT5_PREFIX}/lib" > /etc/ld.so.conf.d/qt.conf ldconfig __mytext=""" export QT5_PATH=\"${QT5_PREFIX}\" export QT_QPA_PLATFORM_PLUGIN_PATH=\"\${QT5_PATH}/plugins\" add_to_path \"\${QT5_PATH}/bin\" """ echo "${__mytext}" | tee -a "${APOLLO_PROFILE}" if [[ "${BUILD_TYPE}" == "build" ]]; then ok "Successfully installed Qt5 qtbase-${VERSION} from src." rm -rf qtbase-everywhere-src-${VERSION} ${PKG_NAME} else ok "Successfully pre-built Qt5 qtbase-${VERSION}." fi # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_doxygen.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" # shellcheck source=./installer_base.sh . ./installer_base.sh apt_get_update_and_install \ flex \ bison \ graphviz # Build doxygen from source to reduce image size VERSION="1.9.1" PKG_NAME="doxygen-${VERSION}.src.tar.gz" CHECKSUM="67aeae1be4e1565519898f46f1f7092f1973cce8a767e93101ee0111717091d1" DOWNLOAD_LINK="http://doxygen.nl/files/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf "${PKG_NAME}" pushd "doxygen-${VERSION}" >/dev/null mkdir build && cd build cmake .. \ -DCMAKE_INSTALL_PREFIX="${SYSROOT_DIR}" \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=OFF make -j "$(nproc)" make install popd rm -rf "${PKG_NAME}" "doxygen-${VERSION}" # VERSION="$(echo ${VERSION} | tr '_' '.')" ok "Done installing doxygen-${VERSION}" # Kick the ladder apt_get_remove \ bison flex
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_visualizer_deps.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e BUILD_TYPE="${1:-download}" CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh # freeglut3-dev # libgl1-mesa-dev # libegl1-mesa-dev # libgles2-mesa-dev apt_get_update_and_install \ mesa-common-dev \ libglvnd-dev \ libxcb1-dev # See Ref: # https://hub.docker.com/r/nvidia/cudagl # https://gitlab.com/nvidia/container-images/opengl/blob/ubuntu18.04/glvnd/devel/Dockerfile # https://www.pugetsystems.com/labs/hpc/NVIDIA-Docker2-with-OpenGL-and-X-Display-Output-1527/ # DON'T INSTALL THESE!!! # libnvidia-gl-440 # trouble-maker for `nvidia-smi` bash ${CURR_DIR}/install_qt.sh "${BUILD_TYPE}" # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/installer_base.sh
#!/usr/bin/env bash BOLD='\033[1m' RED='\033[0;31m' GREEN='\033[32m' WHITE='\033[34m' YELLOW='\033[33m' NO_COLOR='\033[0m' function info() { (>&2 echo -e "[${WHITE}${BOLD}INFO${NO_COLOR}] $*") } function error() { (>&2 echo -e "[${RED}ERROR${NO_COLOR}] $*") } function warning() { (>&2 echo -e "${YELLOW}[WARNING] $*${NO_COLOR}") } function ok() { (>&2 echo -e "[${GREEN}${BOLD} OK ${NO_COLOR}] $*") } export RCFILES_DIR="/opt/apollo/rcfiles" export APOLLO_DIST="${APOLLO_DIST:-stable}" export PKGS_DIR="/opt/apollo/pkgs" export SYSROOT_DIR="/opt/apollo/sysroot" export APOLLO_PROFILE="/etc/profile.d/apollo.sh" export APOLLO_LD_FILE="/etc/ld.so.conf.d/apollo.conf" export DOWNLOAD_LOG="/opt/apollo/build.log" export LOCAL_HTTP_ADDR="http://172.17.0.1:8388" if [[ "$(uname -m)" == "x86_64" ]]; then export SUPPORTED_NVIDIA_SMS="5.2 6.0 6.1 7.0 7.5 8.0 8.6" else # AArch64 export SUPPORTED_NVIDIA_SMS="5.3 6.2 7.2" fi function py3_version() { local version # major.minor.rev (e.g. 3.6.9) expected version="$(python3 --version | awk '{print $2}')" echo "${version%.*}" } function pip3_install() { python3 -m pip install --timeout 30 --no-cache-dir $@ } function apt_get_update_and_install() { # --fix-missing apt-get -y update && \ apt-get -y install --no-install-recommends "$@" } function apt_get_remove() { apt-get -y purge --autoremove "$@" } # Ref: https://reproducible-builds.org/docs/source-date-epoch function source_date_epoch_setup() { DATE_FMT="+%Y-%m-%d" export SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}" export BUILD_DATE=$(date -u -d "@$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null \ || date -u -r "$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null \ || date -u "$DATE_FMT") } function apollo_environ_setup() { if [ -z "${SOURCE_DATE_EPOCH}" ]; then source_date_epoch_setup fi if [ ! -d "${PKGS_DIR}" ]; then mkdir -p "${PKGS_DIR}" fi if [ ! -d "${SYSROOT_DIR}" ]; then mkdir -p ${SYSROOT_DIR}/{bin,include,lib,share} fi if [ ! -f "${APOLLO_LD_FILE}" ]; then echo "${SYSROOT_DIR}/lib" | tee -a "${APOLLO_LD_FILE}" fi if [ ! -f "${APOLLO_PROFILE}" ]; then cp -f /opt/apollo/rcfiles/apollo.sh.sample "${APOLLO_PROFILE}" echo "add_to_path ${SYSROOT_DIR}/bin" >> "${APOLLO_PROFILE}" fi if [ ! -f "${DOWNLOAD_LOG}" ]; then echo "##==== Summary: Apollo Package Downloads ====##" > "${DOWNLOAD_LOG}" echo -e "Package\tSHA256\tDOWNLOADLINK" | tee -a "${DOWNLOAD_LOG}" fi } apollo_environ_setup # We only accept predownloaded git tarballs with format # "pkgname.git.53549ad.tgz" or "pkgname_version.git.53549ad.tgz" function package_schema { local __link=$1 local schema="http" if [[ "${__link##*.}" == "git" ]] ; then schema="git" echo $schema return fi IFS='.' # dot(.) is set as delimiter local __pkgname=$2 read -ra __arr <<< "$__pkgname" # Array of tokens separated by IFS if [[ ${#__arr[@]} -gt 3 ]] && [[ "${__arr[-3]}" == "git" ]] \ && [[ ${#__arr[-2]} -eq 7 ]] ; then schema="git" fi IFS=' ' # reset to default value after usage echo "$schema" } function create_so_symlink() { local mydir="$1" for mylib in $(find "${mydir}" -name "lib*.so.*" -type f); do mylib=$(basename "${mylib}") ver="${mylib##*.so.}" if [ -z "$ver" ]; then continue fi libX="${mylib%%.so*}" IFS='.' read -ra arr <<< "${ver}" IFS=" " # restore IFS ln -s "${mylib}" "${mydir}/${libX}.so.${arr[0]}" ln -s "${mylib}" "${mydir}/${libX}.so" done } function _local_http_cached() { if /usr/bin/curl -sfI "${LOCAL_HTTP_ADDR}/$1"; then return fi false } function _checksum_check_pass() { local pkg="$1" local expected_cs="$2" # sha256sum was provided by coreutils local actual_cs=$(/usr/bin/sha256sum "${pkg}" | awk '{print $1}') if [[ "${actual_cs}" == "${expected_cs}" ]]; then true else warning "$(basename ${pkg}): checksum mismatch, ${expected_cs}" \ "exected, got: ${actual_cs}" false fi } function download_if_not_cached { local pkg_name="$1" local expected_cs="$2" local url="$3" echo -e "${pkg_name}\t${expected_cs}\t${url}" >> "${DOWNLOAD_LOG}" if _local_http_cached "${pkg_name}" ; then local local_addr="${LOCAL_HTTP_ADDR}/${pkg_name}" info "Local http cache hit ${pkg_name}..." wget "${local_addr}" -O "${pkg_name}" if _checksum_check_pass "${pkg_name}" "${expected_cs}"; then ok "Successfully downloaded ${pkg_name} from ${LOCAL_HTTP_ADDR}," \ "will use it." return else warning "Found ${pkg_name} in local http cache, but checksum mismatch." rm -f "${pkg_name}" fi fi # end http cache check local my_schema my_schema=$(package_schema "$url" "$pkg_name") if [[ "$my_schema" == "http" ]]; then info "Start to download $pkg_name from ${url} ..." wget "$url" -O "$pkg_name" ok "Successfully downloaded $pkg_name" elif [[ "$my_schema" == "git" ]]; then info "Clone into git repo $url..." git clone "${url}" --branch master --recurse-submodules --single-branch ok "Successfully cloned git repo: $url" else error "Unknown schema for package \"$pkg_name\", url=\"$url\"" fi } USE_AMD_GPU=0 USE_NVIDIA_GPU=0 function determine_gpu_use_host() { if [[ "${TARGET_ARCH}" == "aarch64" ]]; then if lsmod | grep -q "^nvgpu"; then USE_NVIDIA_GPU=1 fi elif [[ "${TARGET_ARCH}" == "x86_64" ]]; then if [[ ! -x "$(command -v nvidia-smi)" ]]; then warning "No nvidia-smi found." elif [[ -z "$(nvidia-smi)" ]]; then warning "No NVIDIA GPU device found." else USE_NVIDIA_GPU=1 fi if [[ ! -x "$(command -v rocm-smi)" ]]; then warning "No rocm-smi found." elif [[ -z "$(rocm-smi)" ]]; then warning "No AMD GPU device found." else USE_AMD_GPU=1 fi else error "Unsupported CPU architecture: ${HOST_ARCH}" exit 1 fi }
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_gpu_support.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh apt_get_update_and_install \ libopenblas-dev \ libatlas-base-dev \ liblapack-dev # Note(infra): build magma before mkl info "Install Magma ..." bash ${CURR_DIR}/install_magma.sh info "Install libtorch ..." bash ${CURR_DIR}/install_libtorch.sh # openmpi @cuda # pcl @cuda # opencv @cuda # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_dreamview_deps.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e GEOLOC="${1:-us}" CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh apt_get_update_and_install \ libtinyxml2-dev \ libpng-dev \ nasm # NodeJS info "Installing nodejs ..." bash ${CURR_DIR}/install_node.sh "${GEOLOC}" info "Installing yarn ..." bash ${CURR_DIR}/install_yarn.sh # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/py3_requirements.txt
## Ref: ## 1) https://www.python.org/dev/peps/pep-0508/#environment-markers # System utils supervisor psutil # Google infras absl-py # Note(infra): Use protobuf installed from source # protobuf # Note(infra): to be retired by absl-py python-gflags glog grpcio-tools; platform_machine == 'x86_64' # Web flask flask-cors requests simplejson # Python tools pyproj shapely matplotlib # Driver # pyusb # Learning # opencv-python ## Note(infra): install numpy before h5py numpy scipy # Data format h5py pyyaml utm #Github for CI pygithub # Data excel xlsxwriter
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_cmake.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2020 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e cd "$(dirname "${BASH_SOURCE[0]}")" . ./installer_base.sh VERSION="3.19.6" TARGET_ARCH="$(uname -m)" function symlink_if_not_exist() { local dest="/usr/local/bin/cmake" if [[ ! -e "${dest}" ]]; then info "Created symlink ${dest} for convenience." ln -s ${SYSROOT_DIR}/bin/cmake /usr/local/bin/cmake fi } CMAKE_SH= CHECKSUM= if [[ "${TARGET_ARCH}" == "x86_64" ]]; then CMAKE_SH="cmake-${VERSION}-Linux-x86_64.sh" CHECKSUM="d94155cef56ff88977306653a33e50123bb49885cd085edd471d70dfdfc4f859" elif [[ "${TARGET_ARCH}" == "aarch64" ]]; then CMAKE_SH="cmake-${VERSION}-Linux-aarch64.sh" CHECKSUM="f383c2ef96e5de47c0a55957e9af0bdfcf99d3988c17103767c9ef1b3cd8c0a9" fi DOWNLOAD_LINK="https://github.com/Kitware/CMake/releases/download/v${VERSION}/${CMAKE_SH}" download_if_not_cached "${CMAKE_SH}" "${CHECKSUM}" "${DOWNLOAD_LINK}" chmod a+x ${CMAKE_SH} ./${CMAKE_SH} --skip-license --prefix="${SYSROOT_DIR}" symlink_if_not_exist rm -fr ${CMAKE_SH}
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_qt.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2019 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e BUILD_TYPE="${1:-download}" CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh TARGET_ARCH="$(uname -m)" apt_get_update_and_install \ libx11-xcb1 \ libfreetype6 \ libdbus-1-3 \ libfontconfig1 \ libxkbcommon0 \ libxkbcommon-x11-0 # Note(storypku) # 1) libicu6X: required by uic # 2) libxkbcommonX required by `ldd /usr/local/qt5/plugins/platforms/libqxcb.so` if [ "${TARGET_ARCH}" = "aarch64" ]; then bash ${CURR_DIR}/install_qt5_qtbase.sh "${BUILD_TYPE}" exit 0 fi QT_VERSION_A=5.12 QT_VERSION_B=5.12.9 QT_VERSION_Z=$(echo "$QT_VERSION_B" | tr -d '.') QT_INSTALLER=qt-opensource-linux-x64-${QT_VERSION_B}.run CHECKSUM="63ef2b991d5fea2045b4e7058f86e36868cafae0738f36f8b0a88dc8de64ab2e" DOWLOAD_LINK=https://download.qt.io/archive/qt/${QT_VERSION_A}/${QT_VERSION_B}/${QT_INSTALLER} pip3_install cuteci download_if_not_cached $QT_INSTALLER $CHECKSUM $DOWLOAD_LINK chmod +x $QT_INSTALLER MY_DEST_DIR="/usr/local/Qt${QT_VERSION_B}" cuteci \ --installer "$PWD/$QT_INSTALLER" \ install \ --destdir="$MY_DEST_DIR" \ --packages "qt.qt5.${QT_VERSION_Z}.gcc_64" \ --keep-tools QT5_PATH="/usr/local/qt5" # Hide qt5 version from end users ln -s ${MY_DEST_DIR}/${QT_VERSION_B}/gcc_64 "${QT5_PATH}" echo "${QT5_PATH}/lib" > /etc/ld.so.conf.d/qt.conf ldconfig __mytext=""" export QT5_PATH=\"${QT5_PATH}\" export QT_QPA_PLATFORM_PLUGIN_PATH=\"\${QT5_PATH}/plugins\" add_to_path \"\${QT5_PATH}/bin\" """ echo "${__mytext}" | tee -a "${APOLLO_PROFILE}" # clean up rm -f ${QT_INSTALLER} # Keep License files rm -rf ${MY_DEST_DIR}/{Docs,Examples,Tools,dist} || true rm -rf ${MY_DEST_DIR}/MaintenanceTool* || true rm -rf ${MY_DEST_DIR}/{InstallationLog.txt,installer-changelog} || true rm -rf ${MY_DEST_DIR}/{components,network}.xml || true pip3 uninstall -y cuteci
0
apollo_public_repos/apollo/docker/build
apollo_public_repos/apollo/docker/build/installers/install_pcl.sh
#!/usr/bin/env bash ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### # Fail on first error. set -e WORKHORSE="$1" if [ -z "${WORKHORSE}" ]; then WORKHORSE="cpu" fi CURR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" . ${CURR_DIR}/installer_base.sh # Install system-provided pcl # apt-get -y update && \ # apt-get -y install \ # libpcl-dev # exit 0 if ldconfig -p | grep -q libpcl_common ; then info "Found existing PCL installation. Skipp re-installation." exit 0 fi GPU_OPTIONS="-DCUDA_ARCH_BIN=\"${SUPPORTED_NVIDIA_SMS}\"" if [ "${WORKHORSE}" = "cpu" ]; then GPU_OPTIONS="-DWITH_CUDA=OFF" fi info "GPU Options for PCL:\"${GPU_OPTIONS}\"" TARGET_ARCH="$(uname -m)" ARCH_OPTIONS="" if [ "${TARGET_ARCH}" = "x86_64" ]; then ARCH_OPTIONS="-DPCL_ENABLE_SSE=ON" else ARCH_OPTIONS="-DPCL_ENABLE_SSE=OFF" fi # libpcap-dev # libopenmpi-dev # libboost-all-dev apt_get_update_and_install \ libeigen3-dev \ libflann-dev \ libglew-dev \ libglfw3-dev \ freeglut3-dev \ libusb-1.0-0-dev \ libdouble-conversion-dev \ libopenni-dev \ libjpeg-dev \ libpng-dev \ libtiff-dev \ liblz4-dev \ libfreetype6-dev \ libpcap-dev \ libqhull-dev # NOTE(storypku) # libglfw3-dev depends on libglfw3, # and libglew-dev have a dependency over libglew2.0 THREAD_NUM=$(nproc) # VERSION="1.11.0" # CHECKSUM="4255c3d3572e9774b5a1dccc235711b7a723197b79430ef539c2044e9ce65954" # 1.11.0 VERSION="1.10.1" CHECKSUM="61ec734ec7c786c628491844b46f9624958c360012c173bbc993c5ff88b4900e" # 1.10.1 PKG_NAME="pcl-${VERSION}.tar.gz" DOWNLOAD_LINK="https://github.com/PointCloudLibrary/pcl/archive/${PKG_NAME}" download_if_not_cached "${PKG_NAME}" "${CHECKSUM}" "${DOWNLOAD_LINK}" tar xzf ${PKG_NAME} # Ref: https://src.fedoraproject.org/rpms/pcl.git # -DPCL_PKGCONFIG_SUFFIX:STRING="" \ # -DCMAKE_SKIP_RPATH=ON \ pushd pcl-pcl-${VERSION}/ patch -p1 < ${CURR_DIR}/pcl-sse-fix-${VERSION}.patch mkdir build && cd build cmake .. \ "${GPU_OPTIONS}" \ "${ARCH_OPTIONS}" \ -DPCL_ENABLE_SSE=ON \ -DWITH_DOCS=OFF \ -DWITH_TUTORIALS=OFF \ -DBUILD_global_tests=OFF \ -DOPENNI_INCLUDE_DIR:PATH=/usr/include/ni \ -DBoost_NO_SYSTEM_PATHS=TRUE \ -DBOOST_ROOT:PATHNAME="${SYSROOT_DIR}" \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_INSTALL_PREFIX="${SYSROOT_DIR}" \ -DCMAKE_BUILD_TYPE=Release make -j${THREAD_NUM} make install popd ldconfig ok "Successfully installed PCL ${VERSION}" # Clean up rm -fr ${PKG_NAME} pcl-pcl-${VERSION} if [[ -n "${CLEAN_DEPS}" ]]; then # Remove build-deps for PCL # Note(storypku): # Please keep libflann-dev as it was required by local_config_pcl apt_get_remove \ libeigen3-dev \ libglew-dev \ libglfw3-dev \ freeglut3-dev \ libusb-1.0-0-dev \ libdouble-conversion-dev \ libopenni-dev \ libjpeg-dev \ libpng-dev \ libtiff-dev \ liblz4-dev \ libfreetype6-dev \ libpcap-dev \ libqhull-dev # Add runtime-deps for pcl apt_get_update_and_install \ libusb-1.0-0 \ libopenni0 \ libfreetype6 \ libtiff5 \ libdouble-conversion1 \ libpcap0.8 \ libqhull7 fi # Clean up cache to reduce layer size. apt-get clean && \ rm -rf /var/lib/apt/lists/*
0