Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d1176404f |
1 changed files with 5 additions and 9 deletions
|
|
@ -2,11 +2,11 @@
|
|||
# numbers of args and/or types? Packaging guidelines don’t *require* us to do
|
||||
# this, and there is probably no benefit in this case, but it is nice to
|
||||
# demonstrate how it can be done if needed.
|
||||
%bcond regenerate 0
|
||||
%dnl %global max_types 16
|
||||
%dnl %global max_types 5
|
||||
%bcond_with regenerate
|
||||
# %%global max_types 16
|
||||
# %%global max_types 5
|
||||
|
||||
%bcond tests 1
|
||||
%bcond_without tests
|
||||
|
||||
Name: variant-lite
|
||||
Version: 2.0.0
|
||||
|
|
@ -70,18 +70,14 @@ ln -s /usr/include/lest test/lest
|
|||
%endif
|
||||
|
||||
|
||||
%conf
|
||||
%cmake %{?!with_tests:-DVARIANT_LITE_OPT_BUILD_TESTS:BOOL=OFF}
|
||||
|
||||
|
||||
%build
|
||||
%cmake %{?!with_tests:-DVARIANT_LITE_OPT_BUILD_TESTS:BOOL=OFF}
|
||||
%if %{with regenerate}
|
||||
%{python3} script/generate_header.py \
|
||||
%{?max_types:--max-types %{max_types}} \
|
||||
%{?max_args:--max-args %{max_args}} \
|
||||
--verbose
|
||||
%endif
|
||||
|
||||
%cmake_build
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue