Skip to content

Commit b1e88db

Browse files
committed
cmake_deps: setting for targeted presets
1 parent ea8d11a commit b1e88db

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

cmake/make_deps.py

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,30 @@ def main():
170170
# Get optional command-line parameters
171171
# Nota: --local option is used by LuxCoreDeps CI
172172
parser = argparse.ArgumentParser()
173-
parser.add_argument("-l", "--local", type=Path)
174-
parser.add_argument("-o", "--output", type=Path)
175-
parser.add_argument("-v", "--verbose", action="store_true")
173+
parser.add_argument(
174+
"-l",
175+
"--local",
176+
type=Path,
177+
help="Use local dependency set (debug)",
178+
)
179+
parser.add_argument(
180+
"-o",
181+
"--output",
182+
type=Path,
183+
help="Output directory",
184+
)
185+
parser.add_argument(
186+
"-v",
187+
"--verbose",
188+
action="store_true",
189+
help="Print additional information",
190+
)
191+
parser.add_argument(
192+
"-e",
193+
"--extended",
194+
action="store_true",
195+
help="Extended presets (including RelWithDebInfo & MinSizeRel)",
196+
)
176197
args = parser.parse_args()
177198
if args.verbose:
178199
logger.setLevel(logging.DEBUG)
@@ -252,7 +273,10 @@ def main():
252273
"--settings=build_type=Release",
253274
"--conf:all=tools.cmake.cmaketoolchain:generator=Ninja Multi-Config",
254275
]
255-
for build_type in ("Debug", "Release", "RelWithDebInfo", "MinSizeRel"):
276+
build_types = ["Debug", "Release"]
277+
if args.extended:
278+
build_types += ["RelWithDebInfo", "MinSizeRel"]
279+
for build_type in build_types:
256280
logger.info(f"Generating '{build_type}'")
257281
end_block = [f"--settings=&:build_type={build_type}", "."]
258282
run_conan(main_block + end_block)

0 commit comments

Comments
 (0)