Skip to content

Commit

Permalink
python: Add --chrome argument to "build" subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwuelker committed Aug 12, 2024
1 parent a3406ec commit 8f3420e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion python/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ def run_stormlicht(args, unknown_args):
def build_stormlicht(args, unknown_args):
build_gtk_blueprints()

arguments = ["build"]
if args.chrome == "glazier":
arguments += ["--no-default-features", "--features=chrome-glazier"]

cmd = (
util.Command.create("cargo")
.with_arguments(["build"])
.with_arguments(arguments)
.with_forwarded_arguments(unknown_args)
)

Expand Down Expand Up @@ -178,6 +182,12 @@ def run():
action="store_true",
help="Build in release mode",
)
parser_build.add_argument(
"--chrome",
choices=["glazier", "gtk"],
default="gtk",
help="Which browser chrome to use",
)
parser_build.set_defaults(handler=build_stormlicht)

# Testing
Expand Down

0 comments on commit 8f3420e

Please sign in to comment.