Skip to content

Commit

Permalink
make it easier to add custom build args
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 18, 2025
1 parent 047c6e0 commit 7bf6d97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packaging/MSWindows/BUILD.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def add(name: str, help: str, default=True):
add("openssl", help="bundle the openssl tools")
add("paexec", help="bundle `paexec`")
add("desktop-logon", help="build `desktop-logon` tool")
ap.add_argument("--build-args", default="", help="extra build arguments")

args, unknown_args = ap.parse_known_args(argv)
if args.light:
Expand Down Expand Up @@ -143,6 +144,8 @@ def get_build_args(args) -> list[str]:
xpra_args.append(f"--without-{option}")
if not args.cuda:
xpra_args.append("--without-nvidia")
if args.build_args:
xpra_args += shlex.split(args.build_args)
# we can't do 'docs' this way :(
# for arg in ("docs", ):
# value = getattr(args, arg)
Expand Down

0 comments on commit 7bf6d97

Please sign in to comment.