Meson is picky about the arguments of build options.
For example a option of the "boolean" type only accepts true/false this option is covered by ${opt}_MESON_TRUE/_FALSE. Add option helpers ${opt}_MESON_YES/_NO for the "combo" type which accepts yes and no. Approved by: portmgr@ (mat@) Differential Revision: https://reviews.freebsd.org/D11078
This commit is contained in:
parent
bfba0dbbf5
commit
5ae433edd6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=443024
1 changed files with 19 additions and 0 deletions
|
@ -124,6 +124,13 @@
|
|||
# Option enabled -D${content}=false
|
||||
# Option disabled -D${content}=true
|
||||
#
|
||||
# ${opt}_MESON_YES Will add to MESON_ARGS:
|
||||
# Option enabled -D${content}=yes
|
||||
# Option disabled -D${content}=no
|
||||
# ${opt}_MESON_NO Will add to MESON_ARGS:
|
||||
# Option enabled -D${content}=no
|
||||
# Option disabled -D${content}=yes
|
||||
#
|
||||
# ${opt}_IMPLIES When opt is enabled, options named in IMPLIES will
|
||||
# get enabled too.
|
||||
# ${opt}_PREVENTS When opt is enabled, if any options in PREVENTS are
|
||||
|
@ -539,6 +546,12 @@ MESON_ARGS+= ${${opt}_MESON_TRUE:C/.*/-D&=true/}
|
|||
. if defined(${opt}_MESON_FALSE)
|
||||
MESON_ARGS+= ${${opt}_MESON_FALSE:C/.*/-D&=false/}
|
||||
. endif
|
||||
. if defined(${opt}_MESON_YES)
|
||||
MESON_ARGS+= ${${opt}_MESON_YES:C/.*/-D&=yes/}
|
||||
. endif
|
||||
. if defined(${opt}_MESON_NO)
|
||||
MESON_ARGS+= ${${opt}_MESON_NO:C/.*/-D&=no/}
|
||||
. endif
|
||||
. for configure in CONFIGURE CMAKE MESON QMAKE
|
||||
. if defined(${opt}_${configure}_ON)
|
||||
${configure}_ARGS+= ${${opt}_${configure}_ON}
|
||||
|
@ -595,6 +608,12 @@ MESON_ARGS+= ${${opt}_MESON_TRUE:C/.*/-D&=false/}
|
|||
. if defined(${opt}_MESON_FALSE)
|
||||
MESON_ARGS+= ${${opt}_MESON_FALSE:C/.*/-D&=true/}
|
||||
. endif
|
||||
. if defined(${opt}_MESON_YES)
|
||||
MESON_ARGS+= ${${opt}_MESON_YES:C/.*/-D&=no/}
|
||||
. endif
|
||||
. if defined(${opt}_MESON_NO)
|
||||
MESON_ARGS+= ${${opt}_MESON_NO:C/.*/-D&=yes/}
|
||||
. endif
|
||||
. for configure in CONFIGURE CMAKE MESON QMAKE
|
||||
. if defined(${opt}_${configure}_OFF)
|
||||
${configure}_ARGS+= ${${opt}_${configure}_OFF}
|
||||
|
|
Loading…
Reference in a new issue