Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.options.mk
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | |||||
# | # | ||||
# ${opt}_MESON_YES Will add to MESON_ARGS: | # ${opt}_MESON_YES Will add to MESON_ARGS: | ||||
# Option enabled -D${content}=yes | # Option enabled -D${content}=yes | ||||
# Option disabled -D${content}=no | # Option disabled -D${content}=no | ||||
# ${opt}_MESON_NO Will add to MESON_ARGS: | # ${opt}_MESON_NO Will add to MESON_ARGS: | ||||
# Option enabled -D${content}=no | # Option enabled -D${content}=no | ||||
# Option disabled -D${content}=yes | # Option disabled -D${content}=yes | ||||
# | # | ||||
# ${opt}_MESON_ENABLED Will add to MESON_ARGS: | |||||
# Option enabled -D${content}=enabled | |||||
# Option disabled -D${content}=disabled | |||||
# ${opt}_MESON_DISABLED Will add to MESON_ARGS: | |||||
# Option enabled -D${content}=disabled | |||||
# Option disabled -D${content}=enabled | |||||
# | |||||
# ${opt}_IMPLIES When opt is enabled, options named in IMPLIES will | # ${opt}_IMPLIES When opt is enabled, options named in IMPLIES will | ||||
# get enabled too. | # get enabled too. | ||||
# ${opt}_PREVENTS When opt is enabled, if any options in PREVENTS are | # ${opt}_PREVENTS When opt is enabled, if any options in PREVENTS are | ||||
# also enabled, it will produce an error. | # also enabled, it will produce an error. | ||||
# ${opt}_PREVENTS_MSG Provides a message explaining why the options | # ${opt}_PREVENTS_MSG Provides a message explaining why the options | ||||
# cannot be selected together. | # cannot be selected together. | ||||
# | # | ||||
# ${opt}_USE= FOO=bar When option is enabled, it will enable | # ${opt}_USE= FOO=bar When option is enabled, it will enable | ||||
▲ Show 20 Lines • Show All 356 Lines • ▼ Show 20 Lines | |||||
MESON_ARGS+= ${${opt}_MESON_FALSE:C/.*/-D&=false/} | MESON_ARGS+= ${${opt}_MESON_FALSE:C/.*/-D&=false/} | ||||
. endif | . endif | ||||
. if defined(${opt}_MESON_YES) | . if defined(${opt}_MESON_YES) | ||||
MESON_ARGS+= ${${opt}_MESON_YES:C/.*/-D&=yes/} | MESON_ARGS+= ${${opt}_MESON_YES:C/.*/-D&=yes/} | ||||
. endif | . endif | ||||
. if defined(${opt}_MESON_NO) | . if defined(${opt}_MESON_NO) | ||||
MESON_ARGS+= ${${opt}_MESON_NO:C/.*/-D&=no/} | MESON_ARGS+= ${${opt}_MESON_NO:C/.*/-D&=no/} | ||||
. endif | . endif | ||||
. if defined(${opt}_MESON_ENABLED) | |||||
MESON_ARGS+= ${${opt}_MESON_ENABLED:C/.*/-D&=enabled/} | |||||
. endif | |||||
. if defined(${opt}_MESON_DISABLED) | |||||
MESON_ARGS+= ${${opt}_MESON_DISABLED:C/.*/-D&=disabled/} | |||||
. endif | |||||
. for configure in CONFIGURE CMAKE MESON QMAKE | . for configure in CONFIGURE CMAKE MESON QMAKE | ||||
. if defined(${opt}_${configure}_ON) | . if defined(${opt}_${configure}_ON) | ||||
${configure}_ARGS+= ${${opt}_${configure}_ON} | ${configure}_ARGS+= ${${opt}_${configure}_ON} | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
. for flags in ${_OPTIONS_FLAGS} | . for flags in ${_OPTIONS_FLAGS} | ||||
. if defined(${opt}_${flags}) | . if defined(${opt}_${flags}) | ||||
${flags}+= ${${opt}_${flags}} | ${flags}+= ${${opt}_${flags}} | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
. if defined(${opt}_MESON_FALSE) | . if defined(${opt}_MESON_FALSE) | ||||
MESON_ARGS+= ${${opt}_MESON_FALSE:C/.*/-D&=true/} | MESON_ARGS+= ${${opt}_MESON_FALSE:C/.*/-D&=true/} | ||||
. endif | . endif | ||||
. if defined(${opt}_MESON_YES) | . if defined(${opt}_MESON_YES) | ||||
MESON_ARGS+= ${${opt}_MESON_YES:C/.*/-D&=no/} | MESON_ARGS+= ${${opt}_MESON_YES:C/.*/-D&=no/} | ||||
. endif | . endif | ||||
. if defined(${opt}_MESON_NO) | . if defined(${opt}_MESON_NO) | ||||
MESON_ARGS+= ${${opt}_MESON_NO:C/.*/-D&=yes/} | MESON_ARGS+= ${${opt}_MESON_NO:C/.*/-D&=yes/} | ||||
. endif | |||||
. if defined(${opt}_MESON_ENABLED) | |||||
MESON_ARGS+= ${${opt}_MESON_ENABLED:C/.*/-D&=disabled/} | |||||
. endif | |||||
. if defined(${opt}_MESON_DISABLED) | |||||
MESON_ARGS+= ${${opt}_MESON_DISABLED:C/.*/-D&=enabled/} | |||||
. endif | . endif | ||||
. for configure in CONFIGURE CMAKE MESON QMAKE | . for configure in CONFIGURE CMAKE MESON QMAKE | ||||
. if defined(${opt}_${configure}_OFF) | . if defined(${opt}_${configure}_OFF) | ||||
${configure}_ARGS+= ${${opt}_${configure}_OFF} | ${configure}_ARGS+= ${${opt}_${configure}_OFF} | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
. for flags in ${_OPTIONS_FLAGS} | . for flags in ${_OPTIONS_FLAGS} | ||||
. if defined(${opt}_${flags}_OFF) | . if defined(${opt}_${flags}_OFF) | ||||
Show All 34 Lines |