added way to supply definesto cmake

This commit is contained in:
Robin Müller 2021-03-29 14:31:55 +02:00 committed by Robin Mueller
parent 27617106bb
commit 79ef32fa1a

View File

@ -26,6 +26,9 @@ def main():
"Information)", default="debug") "Information)", default="debug")
parser.add_argument("-l", "--builddir", type=str, help="Specify build directory.") parser.add_argument("-l", "--builddir", type=str, help="Specify build directory.")
parser.add_argument("-g", "--generator", type=str, help="CMake Generator") parser.add_argument("-g", "--generator", type=str, help="CMake Generator")
parser.add_argument("-d", "--defines",
help="Additional custom defines passed to CMake (supply without -D prefix!)",
nargs="*", type=str)
parser.add_argument("-t", "--target-bsp", type=str, help="Target BSP, combination of architecture and machine") parser.add_argument("-t", "--target-bsp", type=str, help="Target BSP, combination of architecture and machine")
args = parser.parse_args() args = parser.parse_args()