Exemplo n.º 1
0
    "./build",
    "The path to the build directory.")

config_lib.DEFINE_string(
    name="ClientBuilder.output_basename",
    default="%(Client.name)_%(Client.version_string)_%(Client.arch)",
    help="The base name of the output package.")

# Windows client specific options.
config_lib.DEFINE_bool(
    "ClientBuilder.console", default=False,
    help="Should the application be built as a console program. "
    "This aids debugging in windows.")

config_lib.DEFINE_option(type_info.PathTypeInfo(
    name="ClientBuilder.nanny_source_dir", must_exist=True,
    default="%(ClientBuilder.source)/grr/client/nanny/",
    help="Path to the windows nanny VS solution file."))

config_lib.DEFINE_choice(
    name="ClientBuilder.build_type",
    default="Release",
    choices=["Release", "Debug"],
    help="Type of build (Debug, Release)")

config_lib.DEFINE_string(name="ClientBuilder.template_extension",
                         default=".zip",
                         help="The extension to appear on templates.")

config_lib.DEFINE_string(
    name="PyInstaller.template_basename",
    default=("grr-client_%(Client.version_string)_%(Client.arch)"),
Exemplo n.º 2
0
config_lib.DEFINE_string(name="ClientBuilder.output_basename",
                         default=("%(Client.prefix)%(Client.name)_"
                                  "%(Client.version_string)_%(Client.arch)"),
                         help="The base name of the output package.")

# Windows client specific options.
config_lib.DEFINE_bool(
    "ClientBuilder.console",
    default=False,
    help="Should the application be built as a console program. "
    "This aids debugging in windows.")

config_lib.DEFINE_option(
    type_info.PathTypeInfo(name="ClientBuilder.nanny_source_dir",
                           must_exist=True,
                           default="%(grr.client|module_path)/nanny/",
                           help="Path to the windows nanny VS solution file."))

config_lib.DEFINE_option(
    type_info.PathTypeInfo(
        name="ClientBuilder.nanny_prebuilt_binaries",
        must_exist=False,
        default="%(ClientBuilder.executables_dir)/%(Client.platform)/",
        help="Path to the pre-build GRRNanny executables (This will be used "
        "if there are no VS compilers available)."))

config_lib.DEFINE_choice(name="ClientBuilder.build_type",
                         default="Release",
                         choices=["Release", "Debug"],
                         help="Type of build (Debug, Release)")