Generate all projects if ommited

This commit is contained in:
Mikhail Lobotskiy
2024-10-24 18:05:56 +04:00
parent 5aae57aad8
commit 8550bdeed6
2 changed files with 6 additions and 4 deletions

View File

@ -25,7 +25,7 @@ For running C++ and C# code samples use python script `configure/configure.py` w
+ Makefile
To use `configure.py` you need to specify following options:
1. Which project files to generate: `--vs`, `--qt` or `--make`. Several options are available at the same time, but some of them are not supported on all platforms.
1. Which project files to generate: `--vs`, `--qt` or `--make`. Several options are available at the same time, but some of them are not supported on all platforms. In case you provide none of these options, all available projects will be generated.
2. Test samples with `--test TEST`. Some available options:
- `--test all` generate projects for both C++ and C#.
- `--test cpp` generate projects only for C++ samples

View File

@ -269,9 +269,11 @@ if __name__ == '__main__':
exit(1)
if not (args.vs or args.qt or args.make):
parser.print_usage()
log('error', 'at least one of --vs, --qt or --make must be provided')
exit(1)
if os_name == 'windows':
args.vs = True
args.qt = True
if os_name != 'windows':
args.make = True
# filter tests
tests_selected = getSelectedTests(args.tests)