def __init__(self, args=[]): args.append( ArgparseArgument('--reset-rdeps', action='store_true', default=False, help=_('reset the status of reverse ' 'dependencies too'))) args.append( ArgparseArgument('--print-only', action='store_true', default=False, help=_('print all source URLs to stdout'))) args.append( ArgparseArgument( '--full-reset', action='store_true', default=False, help=_('reset to extract step if rebuild is needed'))) args.append( ArgparseArgument('--jobs', '-j', action='store', nargs='?', type=int, const=NUMBER_OF_JOBS_IF_USED, default=NUMBER_OF_JOBS_IF_UNUSED, help=_('number of async jobs'))) Command.__init__(self, args)
def __init__(self): args = [ ArgparseArgument('--build-tools-only', action='store_true', default=False, help=_('only bootstrap the build tools')), ArgparseArgument('--offline', action='store_true', default=False, help=_('Use only the source cache, no network'))] Command.__init__(self, args)
def __init__(self, args=[]): args.append(ArgparseArgument('--reset-rdeps', action='store_true', default=False, help=_('reset the status of reverse ' 'dependencies too'))) args.append(ArgparseArgument('--full-reset', action='store_true', default=False, help=_('reset to extract step if rebuild is needed'))) Command.__init__(self, args)
def __init__(self): self.supported_licenses = {} l = License for name in l.__dict__: attr = getattr(l, name) if not isinstance(attr, LicenseDescription): continue self.supported_licenses[attr.acronym] = name Command.__init__(self, [ArgparseArgument('name', nargs=1, help=_('name of the recipe')), ArgparseArgument('version', nargs=1, help=_('version of the recipe')), ArgparseArgument('-l', '--licenses', default='', help=_('comma separated list of the recipe ' 'licenses. Supported licenses: %s') % ', '.join(list(self.supported_licenses.keys()))), ArgparseArgument('-c', '--commit', default='', help=_('commit to use ' '(default to "sdk-$version")')), ArgparseArgument('-o', '--origin', default='', help=_('the origin repository of the recipe')), ArgparseArgument('-d', '--deps', default='', help=_('comma separated list of the recipe ' 'dependencies')), ArgparseArgument('-f', '--force', action='store_true', default=False, help=_('Replace recipe if existing'))])
def __init__(self, force=None, no_deps=None): args = [ ArgparseArgument('recipe', nargs='*', help=_('name of the recipe to build')), ArgparseArgument('--missing-files', action='store_true', default=False, help=_( 'prints a list of files installed that are ' 'listed in the recipe')) ] if force is None: args.append( ArgparseArgument('--force', action='store_true', default=False, help=_( 'force the build of the recipe ingoring ' 'its cached state'))) if no_deps is None: args.append( ArgparseArgument('--no-deps', action='store_true', default=False, help=_('do not build dependencies'))) self.force = force self.no_deps = no_deps Command.__init__(self, args)
def __init__(self, force=None, no_deps=None, deps_only=False): args = [ ArgparseArgument('recipe', nargs='*', help=_('name of the recipe to build')), ArgparseArgument('--missing-files', action='store_true', default=False, help=_('prints a list of files installed that are ' 'listed in the recipe')), ArgparseArgument('--dry-run', action='store_true', default=False, help=_('only print commands instead of running them ')), ArgparseArgument('--offline', action='store_true', default=False, help=_('Use only the source cache, no network')), ArgparseArgument('--jobs', '-j', action='store', type=int, default=0, help=_('How many recipes to build concurrently. ' '0 = number of CPUs.')), ArgparseArgument('--build-tools', '-b', action='store_true', default=False, help=_('Runs the build command for the build tools of this config.')), ] if force is None: args.append( ArgparseArgument('--force', action='store_true', default=False, help=_('force the build of the recipe ingoring ' 'its cached state'))) if no_deps is None: args.append( ArgparseArgument('--no-deps', action='store_true', default=False, help=_('do not build dependencies'))) self.force = force self.no_deps = no_deps self.deps_only = deps_only Command.__init__(self, args)
def __init__(self, force=None, no_deps=None): args = [ ArgparseArgument('recipe', nargs='*', help=_('name of the recipe to build')), ArgparseArgument('--missing-files', action='store_true', default=False, help=_('prints a list of files installed that are ' 'listed in the recipe')), ArgparseArgument('--dry-run', action='store_true', default=False, help=_('only print commands instead of running them ')), ArgparseArgument('--use-binaries', action='store_true', default=False, help=_('use binaries from the repo before building')), ArgparseArgument('--upload-binaries', action='store_true', default=False, help=_('after a recipe is built upload the corresponding binary package')), ArgparseArgument('--build-missing', action='store_true', default=False, help=_('in case a binary package is missing try to build it'))] if force is None: args.append( ArgparseArgument('--force', action='store_true', default=False, help=_('force the build of the recipe ingoring ' 'its cached state'))) if no_deps is None: args.append( ArgparseArgument('--no-deps', action='store_true', default=False, help=_('do not build dependencies'))) self.force = force self.no_deps = no_deps Command.__init__(self, args)
def __init__(self): Command.__init__(self, [ArgparseArgument('package', nargs=1, help=_('name of the package to create')), ArgparseArgument('-o', '--output-dir', default='.', help=_('Output directory for the tarball file')), ArgparseArgument('-t', '--tarball', action='store_true', default=False, help=_('Creates a tarball instead of a native package')), ArgparseArgument('-n', '--no-split', action='store_true', default=False, help=_('(only meaningfull when --tarball is set) Create one single ' 'tarball with devel and runtime files')), ArgparseArgument('-f', '--force', action='store_true', default=False, help=_('Delete any existing package file')), ArgparseArgument('-d', '--no-devel', action='store_false', default=True, help=_('Do not create the development version ' 'of this package')), ArgparseArgument('-s', '--skip-deps-build', action='store_true', default=False, help=_('Do not build the recipes needed to ' 'create this package (conflicts with --only-build-deps)')), ArgparseArgument('-b', '--only-build-deps', action='store_true', default=False, help=_('Only build the recipes needed to ' 'create this package (conflicts with --skip-deps-build)')), ArgparseArgument('-k', '--keep-temp', action='store_true', default=False, help=_('Keep temporary files for debug')), ])
def __init__(self): args = [ ArgparseArgument('--build-tools-only', action='store_true', default=False, help=argparse.SUPPRESS), ArgparseArgument( '--toolchains', action=StoreBool, default=True, nargs='?', choices=('yes', 'no'), help='Setup any toolchains needed by the target platform'), ArgparseArgument( '--build-tools', action=StoreBool, default=True, nargs='?', choices=('yes', 'no'), help='Compile the build tools needed while building'), ArgparseArgument('--jobs', '-j', action='store', nargs='?', type=int, const=NUMBER_OF_JOBS_IF_USED, default=NUMBER_OF_JOBS_IF_UNUSED, help=_('number of async jobs')) ] Command.__init__(self, args)
def __init__(self): self.recipe_status = RecipeStatus('filepath') self.recipe_attributes = list( set(dir(self.recipe_status)) - set(dir(RecipeStatus))) arguments = [ ArgparseArgument('recipe', nargs='*', help=_('Recipe to work with')), ArgparseArgument('--bootstrap', action='store_true', default=False, help=_('Use bootstrap\'s cache file')), ArgparseArgument('--touch', action='store_true', default=False, help=_('Touch recipe modifying its mtime')), ArgparseArgument('--reset', action='store_true', default=False, help=_('Clean entirely the cache for the recipe')) ] for attr in self.recipe_attributes: attr_nargs = '*' if isinstance(getattr(self.recipe_status, attr), list) else None attr_type = type(getattr(self.recipe_status, attr)) arg_type = str if attr_type == bool or attr_type == list else attr_type arguments.append( ArgparseArgument('--' + attr, nargs=attr_nargs, type=arg_type, help=_('Modify ' + attr))) Command.__init__(self, arguments)
def __init__(self): args = [ ArgparseArgument('--build-tools-only', action='store_true', default=False, help=_('only fetch the build tools')), ArgparseArgument('--jobs', '-j', action='store', nargs='?', type=int, const=NUMBER_OF_JOBS_IF_USED, default=NUMBER_OF_JOBS_IF_UNUSED, help=_('number of async jobs'))] Command.__init__(self, args)
def __init__(self, force=None, no_deps=None): args = [ ArgparseArgument('recipe', nargs='*', help=_('name of the recipe to build')), ArgparseArgument('--missing-files', action='store_true', default=False, help=_('prints a list of files installed that are ' 'listed in the recipe')), ArgparseArgument('--dry-run', action='store_true', default=False, help=_('only print commands instead of running them '))] if force is None: args.append( ArgparseArgument('--force', action='store_true', default=False, help=_('force the build of the recipe ingoring ' 'its cached state'))) if no_deps is None: args.append( ArgparseArgument('--no-deps', action='store_true', default=False, help=_('do not build dependencies'))) self.force = force self.no_deps = no_deps Command.__init__(self, args)
def __init__(self, force=None, no_deps=None): args = [ ArgparseArgument('name', nargs='*', help=_('name of the package to clear')) ] Command.__init__(self, args)
def __init__(self): args = [ ArgparseArgument('--build-tools-only', action='store_true', default=False, help=_('only bootstrap the build tools')), ArgparseArgument('--system-only', action='store_true', default=False, help=('only boostrap the system')), ArgparseArgument('--offline', action='store_true', default=False, help=_('Use only the source cache, no network')), ArgparseArgument( '-y', '--assume-yes', action='store_true', default=False, help=( 'Automatically say yes to prompts and run non-interactively' )), ArgparseArgument('--jobs', '-j', action='store', type=int, default=0, help=_('How many recipes to build concurrently. ' '0 = number of CPUs.')) ] Command.__init__(self, args)
def __init__(self, args=[]): args.append( ArgparseArgument('--commit', action='store', type=str, default='HEAD', help=_('the commit to pick artifact from'))) args.append( ArgparseArgument('--namespace', action='store', type=str, default='gstreamer', help=_('GitLab namespace to search from'))) args.append( ArgparseArgument('--branch', action='store', type=str, default='master', help=_('Git branch to search from'))) args.append( ArgparseArgument('--job-id', action='store', type=str, default='master', help=_('Artifact job id, this will skip' ' commit matching'))) args.append( ArgparseArgument( '--skip-fetch', action='store_true', default=False, help=_( 'Skip fetching cached build, the ' 'commit/url log will be updated if --job-id is present'))) Command.__init__(self, args)
def __init__(self): Command.__init__(self, [ArgparseArgument('recipe', nargs=1, help=_('name of the recipe to run checks on')), ArgparseArgument('--recursive', action='store_true', default=False, help=_('Recursively run checks on dependencies')), ])
def __init__(self): Command.__init__(self, [ArgparseArgument('package', nargs='*', help=_('name of the package to create')), ArgparseArgument('-o', '--output-dir', default='.', help=_('Output directory for the tarball file')), ArgparseArgument('-t', '--type', type=str, default='native', choices=['native', ArchiveType.TARBALL , ArchiveType.ZIP], help=_('Choose a package type, native or archive')), ArgparseArgument('-f', '--force', action='store_true', default=False, help=_('Delete any existing package file')), ArgparseArgument('-d', '--no-devel', action='store_true', default=False, help=_('Do not create the development version ' 'of this package')), ArgparseArgument('-s', '--skip-deps-build', action='store_true', default=False, help=_('Do not build the recipes needed to ' 'create this package (conflicts with --only-build-deps)')), ArgparseArgument('-b', '--only-build-deps', action='store_true', default=False, help=_('Only build the recipes needed to ' 'create this package (conflicts with --skip-deps-build)')), ArgparseArgument('-k', '--keep-temp', action='store_true', default=False, help=_('Keep temporary files for debug')), ArgparseArgument('-u', '--use-binaries', action='store_true', default=False, help=_('use binaries from the repo before building')), ArgparseArgument('-p', '--upload-binaries', action='store_true', default=False, help=_('after a recipe is built upload the corresponding binary package')), ArgparseArgument('-m', '--build-missing', action='store_true', default=False, help=_('in case a binary package is missing try to build it')), ])
def __init__(self, force=None, no_deps=None): args = [ ArgparseArgument('name', nargs='*', help=_('name of the elements to be installed')), ArgparseArgument('--repo', type=str, help=_('respsitory of the package.')), ArgparseArgument('--deps-only', action='store_true', default=False, help=_('install dependent packages only.')), ArgparseArgument('--no-deps', action='store_true', default=False, help=_('not install dependent packages only.')), ArgparseArgument('--no-devel', action='store_true', default=False, help=_('not install devel package.')), ArgparseArgument( '--cache-dir', type=str, default='.', help=_('directory where dowanlod packaged to store')), ArgparseArgument('--prefix', type=str, default=None, help=_('destination dir to install.')) ] Command.__init__(self, args)
def __init__(self): args = [ ArgparseArgument('--build-tools-only', action='store_true', default=False, help=_('only bootstrap the build tools')), ArgparseArgument( '--use-binaries', action='store_true', default=False, help=_('use binaries from the repo before building')), ArgparseArgument( '--upload-binaries', action='store_true', default=False, help= _('after a recipe is built upload the corresponding binary package' )), ArgparseArgument( '--build-missing', action='store_true', default=False, help=_('in case a binary package is missing try to build it')), ArgparseArgument('--assume-yes', action='store_true', default=False, help=_('In case of a question, assume yes')), ArgparseArgument('--non-interactive', action='store_true', default=False, help=_('Run in a non-interactive way')), ] Command.__init__(self, args)
def __init__(self): Command.__init__(self, [ArgparseArgument('-o', '--output_dir', default='.', help=_('output directory where .vsprops files will be saved')), ArgparseArgument('-p', '--prefix', default=DEFAULT_PREFIX_MACRO, help=_('name of the prefix environment variable ' '(eg:CERBERO_SDK_ROOT_X86)')), ])
def __init__(self): Command.__init__(self, [ ArgparseArgument( '-o', '--output_dir', default=None, help=_('output directory where .lib files will be saved')), ])
def __init__(self): args = [ ArgparseArgument('--build-tools-only', action='store_true', default=False, help=_('only bootstrap the build tools')) ] Command.__init__(self, args)
def __init__(self): Command.__init__(self, [ArgparseArgument('recipe', nargs=1, help=_('name of the recipe')), ArgparseArgument('--all', action='store_true', default=False, help=_('list all dependencies, including the ' 'build ones')), ])
def __init__(self): Command.__init__(self, [ArgparseArgument('package', nargs=1, help=_('name of the package')), ArgparseArgument('-l', '--list-files', action='store_true', default=False, help=_('List all files installed by this package')), ])
def __init__(self): args = [ ArgparseArgument('--use-system-libs', action='store_true', default=False, help=_('add system paths to PKG_CONFIG_PATH')), ] Command.__init__(self, args)
def __init__(self, args=[]): args.append( ArgparseArgument('--reset-rdeps', action='store_true', default=False, help=_('reset the status of reverse ' 'dependencies too'))) Command.__init__(self, args)
def __init__(self): Command.__init__(self, [ ArgparseArgument('recipe', nargs=1, help=_('name of the recipe')), ArgparseArgument('--all', action='store_true', default=False, help=_('list all dependencies, including the ' 'build ones')), ])
def __init__(self): Command.__init__(self, [ ArgparseArgument( '--force', action='store_true', default=False, help=_('force the deleting of everything without user ' 'input')) ])
def __init__(self, force=None, no_deps=None): args = [ ArgparseArgument('--output-dir', type=str, default='.', help=_('directory of package stored')) ] Command.__init__(self, args)
def __init__(self): Command.__init__(self, [ ArgparseArgument( '-e', '--exclude', nargs='*', default=[], help=_('Filter pattern to exclude files from the search')), ])
def __init__(self): Command.__init__(self, [ArgparseArgument('-o', '--output_dir', default='.', help=_('output directory where .xcconfig files will be saved')), ArgparseArgument('-f', '--filename', default=None, help=_('filename of the .xcconfig file')), ArgparseArgument('libraries', nargs='*', help=_('List of libraries to include')), ])
def __init__(self): args = [ ArgparseArgument('--dry-run', action='store_true', default=False, help=_('only print commands instead of running them ')), ArgparseArgument('-f', '--force', action='store_true', default=False, help=_('Force the creation of the binary package')), ] Command.__init__(self, args)
def __init__(self): Command.__init__(self, [ArgparseArgument('cmd', nargs='+', help=_('command to run')), ArgparseArgument('-v', '--verbose', action='store_true', default=False, help=_('verbose mode')) ])
def __init__(self): Command.__init__(self, [ ArgparseArgument('--force', action='store_true', default=False, help=_('force the deletion of everything without user ' 'input')), ArgparseArgument('--build-tools', action='store_true', default=False, help=_('wipe the build tools too'))])
def __init__(self): Command.__init__( self, [ ArgparseArgument("name", nargs=1, default="sdk-shell", help=_("name of the scrips")), ArgparseArgument("-o", "--output-dir", default=".", help=_("output directory")), ArgparseArgument("-p", "--prefix", help=_("prefix of the SDK")), ArgparseArgument("--cmd", default=self.DEFAULT_CMD, help=_("command to run in the script")), ], )
def __init__(self): Command.__init__(self, [ArgparseArgument('name', nargs=1, default='sdk-shell', help=_('name of the scrips')), ArgparseArgument('-o', '--output-dir', default='.', help=_('output directory')), ArgparseArgument('-p', '--prefix', help=_('prefix of the SDK')), ArgparseArgument('--cmd', default=self.DEFAULT_CMD, help=_('command to run in the script')), ])
def __init__(self): args = [ ArgparseArgument('--build-tools-only', action='store_true', default=False, help=argparse.SUPPRESS), ArgparseArgument('--system-only', action='store_true', default=False, help=argparse.SUPPRESS), ArgparseArgument( '--system', action=StoreBool, default=True, nargs='?', choices=('yes', 'no'), help= 'Setup the system for building, such as by installing system packages' ), ArgparseArgument( '--toolchains', action=StoreBool, default=True, nargs='?', choices=('yes', 'no'), help='Setup any toolchains needed by the target platform'), ArgparseArgument( '--build-tools', action=StoreBool, default=True, nargs='?', choices=('yes', 'no'), help='Compile the build tools needed while building'), ArgparseArgument('--offline', action='store_true', default=False, help=_('Use only the source cache, no network')), ArgparseArgument( '-y', '--assume-yes', action='store_true', default=False, help=( 'Automatically say yes to prompts and run non-interactively' )), ArgparseArgument('--jobs', '-j', action='store', type=int, default=0, help=_('How many recipes to build concurrently. ' '0 = number of CPUs.')) ] Command.__init__(self, args)
def __init__(self): Command.__init__(self, [ ArgparseArgument('package', nargs=1, help=_('name of the package')), ArgparseArgument( '-l', '--list-files', action='store_true', default=False, help=_('List all files installed by this package')), ])
def __init__(self): args = [ ArgparseArgument('--build-tools-only', action='store_true', default=False, help=_('only bootstrap the build tools')), ArgparseArgument('--system-only', action='store_true', default=False, help=('only boostrap the system')), ArgparseArgument('--offline', action='store_true', default=False, help=_('Use only the source cache, no network')), ArgparseArgument('-y', '--assume-yes', action='store_true', default=False, help=('Automatically say yes to prompts and run non-interactively'))] Command.__init__(self, args)
def __init__(self): args = [ ArgparseArgument('recipe', help=_('name of the recipe to tag or "all" to ' 'tag all recipes')), ArgparseArgument('tagname', help=_('name of the tag to use')), ArgparseArgument('tagdescription', help=_('description of the tag')), ArgparseArgument('-f', '--force', action='store_true', default=False, help=_('Replace tag if existing'))] Command.__init__(self, args)
def __init__(self, args=[]): args = [ ArgparseArgument('bundlepackages', nargs='+', help=_('packages to bundle')), ArgparseArgument('--add-recipe', action='append', default=[], help=_('additional recipes to bundle')), ArgparseArgument('--no-bootstrap', action='store_true', default=False, help=_('Don\'t include bootstrep sources')), ] Command.__init__(self, args)
def __init__(self): Command.__init__( self, [ ArgparseArgument("package", nargs=1, help=_("name of the package")), ArgparseArgument( "-l", "--list-files", action="store_true", default=False, help=_("List all files installed by this package"), ), ], )
def __init__(self): args = [ ArgparseArgument('--build-tools-only', action='store_true', default=False, help=_('only bootstrap the build tools')), ArgparseArgument('--use-binaries', action='store_true', default=False, help=_('use binaries from the repo before building')), ArgparseArgument('--upload-binaries', action='store_true', default=False, help=_('after a recipe is built upload the corresponding binary package')), ArgparseArgument('--build-missing', action='store_true', default=False, help=_('in case a binary package is missing try to build it')), ArgparseArgument('--assume-yes', action='store_true', default=False, help=_('In case of a question, assume yes')), ArgparseArgument('--non-interactive', action='store_true', default=False, help=_('Run in a non-interactive way')), ] Command.__init__(self, args)
def __init__(self): Command.__init__(self, [ArgparseArgument('cmd', nargs='*', help=_('command to run')), ])
def __init__(self): Command.__init__(self, [ ArgparseArgument('-e', '--exclude', nargs='*', default=[], help=_('Filter pattern to exclude files from the search')), ])
def __init__(self): Command.__init__(self, [ArgparseArgument('package', nargs=1, help=_('name of the package to run checks on')), ])
def __init__(self): Command.__init__(self, [ArgparseArgument("recipe", nargs=1, help=_("name of the recipe to clean"))])
def __init__(self): Command.__init__(self, [])
def __init__(self): Command.__init__(self, [ArgparseArgument('recipe', nargs=1, help=_('name of the recipe to clean')), ])
def __init__(self, args=[]): args.append(ArgparseArgument('--reset-rdeps', action='store_true', default=False, help=_('reset the status of reverse ' 'dependencies too'))) Command.__init__(self, args)
def __init__(self): args = [ ArgparseArgument('--build-tools-only', action='store_true', default=False, help=_('only bootstrap the build tools'))] Command.__init__(self, args)
def __init__(self): self.supported_licenses = {} l = License for name in l.__dict__: attr = getattr(l, name) if not isinstance(attr, LicenseDescription): continue self.supported_licenses[attr.acronym] = name self.supported_platforms = { 'linux': 'Platform.LINUX', 'windows': 'Platform.WINDOWS', 'darwin': 'Platform.DARWIN'} Command.__init__(self, [ArgparseArgument('name', nargs=1, help=_('name of the package')), ArgparseArgument('version', nargs=1, help=_('version of the package')), ArgparseArgument('-s', '--short-desc', default='', help=_('a short description of the package')), ArgparseArgument('-c', '--codename', default='', help=_('a codename for the package')), ArgparseArgument('-v', '--vendor', default='', help=_('the package vendor')), ArgparseArgument('-u', '--url', default='', help=_('the package url')), ArgparseArgument('-l', '--license', default='', help=_('license of the package. ' 'Supported licenses: %s') % ', '.join(list(self.supported_licenses.keys()))), ArgparseArgument('-d', '--deps', default='', help=_('comma separated list of the package ' 'dependencies')), ArgparseArgument('-i', '--includes', default='', help=_('comma separated list of packages to ' 'include in this package. All files ' 'from the packages passed as param ' 'will be added to this package.')), ArgparseArgument('--files', default='', help=_('comma separated list of recipe files to ' 'add to the runtime package ' '(e.g.: recipe1:category1:category2,' 'recipe2)')), ArgparseArgument('--files-devel', default='', help=_('comma separated list of recipe files to ' 'add to the devel package ' '(e.g.: recipe1:category1:category2,' 'recipe2)')), ArgparseArgument('--platform-files', default='', help=_('comma separated list of platform:recipe ' 'files to add to the runtime package ' '(e.g.: linux:recipe1:category1:category2,' 'windows:recipe2) ' 'Supported platforms: %s') % ', '.join( list(self.supported_platforms.keys()))), ArgparseArgument('--platform-files-devel', default='', help=_('comma separated list of platform:recipe ' 'files to add to the devel package ' '(e.g.: linux:recipe1:category1:category2,' 'windows:recipe2) ' 'Supported platforms: %s') % ', '.join( list(self.supported_platforms.keys()))), ArgparseArgument('-f', '--force', action='store_true', default=False, help=_('Replace package if existing'))])