Skip to content

Commit

Permalink
allow explicit paths for output
Browse files Browse the repository at this point in the history
  • Loading branch information
relleums committed Jan 30, 2024
1 parent 7473249 commit e81bccf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tools/almagamate.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,18 @@ def make_header_txt(h_source, h_includes_from_std):
type=str,
help="Output directory for header and source.",
)
parser.add_argument(
"--header_path",
metavar="PATH",
type=str,
help="Path of header.",
)
parser.add_argument(
"--source_path",
metavar="PATH",
type=str,
help="Path of source.",
)
parser.add_argument(
"libs",
metavar="PATHS",
Expand Down Expand Up @@ -317,6 +329,11 @@ def make_header_txt(h_source, h_includes_from_std):
source_path = os.path.join(outdir, libnames + ".c")
test_path = os.path.join(outdir, libnames + ".test.c")

if args.header_path:
header_path = args.header_path

if args.source_path:
source_path = args.source_path

header_txt, list_headers = make_header_txt(
h_source=sources["h"], h_includes_from_std=includes_from_std["h"]
Expand Down

0 comments on commit e81bccf

Please sign in to comment.