Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.options.mk
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | |||||
# | # | ||||
# ${opt}_MESON_TRUE Will add to MESON_ARGS: | # ${opt}_MESON_TRUE Will add to MESON_ARGS: | ||||
# Option enabled -D${content}=true | # Option enabled -D${content}=true | ||||
# Option disabled -D${content}=false | # Option disabled -D${content}=false | ||||
# ${opt}_MESON_FALSE Will add to MESON_ARGS: | # ${opt}_MESON_FALSE Will add to MESON_ARGS: | ||||
# Option enabled -D${content}=false | # Option enabled -D${content}=false | ||||
# Option disabled -D${content}=true | # 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 | # ${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 399 Lines • ▼ Show 20 Lines | |||||
CMAKE_ARGS+= ${${opt}_CMAKE_BOOL_OFF:C/.*/-D&:BOOL=false/} | CMAKE_ARGS+= ${${opt}_CMAKE_BOOL_OFF:C/.*/-D&:BOOL=false/} | ||||
. endif | . endif | ||||
. if defined(${opt}_MESON_TRUE) | . if defined(${opt}_MESON_TRUE) | ||||
MESON_ARGS+= ${${opt}_MESON_TRUE:C/.*/-D&=true/} | MESON_ARGS+= ${${opt}_MESON_TRUE:C/.*/-D&=true/} | ||||
. endif | . endif | ||||
. if defined(${opt}_MESON_FALSE) | . if defined(${opt}_MESON_FALSE) | ||||
MESON_ARGS+= ${${opt}_MESON_FALSE:C/.*/-D&=false/} | MESON_ARGS+= ${${opt}_MESON_FALSE:C/.*/-D&=false/} | ||||
. endif | . 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 | . 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 All 39 Lines | |||||
. if defined(${opt}_CMAKE_BOOL_OFF) | . if defined(${opt}_CMAKE_BOOL_OFF) | ||||
CMAKE_ARGS+= ${${opt}_CMAKE_BOOL_OFF:C/.*/-D&:BOOL=true/} | CMAKE_ARGS+= ${${opt}_CMAKE_BOOL_OFF:C/.*/-D&:BOOL=true/} | ||||
. endif | . endif | ||||
. if defined(${opt}_MESON_TRUE) | . if defined(${opt}_MESON_TRUE) | ||||
MESON_ARGS+= ${${opt}_MESON_TRUE:C/.*/-D&=false/} | MESON_ARGS+= ${${opt}_MESON_TRUE:C/.*/-D&=false/} | ||||
. endif | . endif | ||||
. 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 | |||||
. 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 | . 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 39 Lines |