Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.options.mk
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | |||||
# Option enabled -D${content}:BOOL=false | # Option enabled -D${content}:BOOL=false | ||||
# Option disabled -D${content}:BOOL=true | # Option disabled -D${content}:BOOL=true | ||||
# | # | ||||
# ${opt}_QMAKE_ON When option is enabled, it will add its content to | # ${opt}_QMAKE_ON When option is enabled, it will add its content to | ||||
# the QMAKE_ARGS. | # the QMAKE_ARGS. | ||||
# ${opt}_QMAKE_OFF When option is disabled, it will add its content to | # ${opt}_QMAKE_OFF When option is disabled, it will add its content to | ||||
# the QMAKE_ARGS. | # the QMAKE_ARGS. | ||||
# | # | ||||
# ${opt}_MESON_ON When option is enabled, it will add its | |||||
# content to MESON_ARGS. | |||||
# ${opt}_MESON_OFF When option is disabled, it will add its | |||||
# content to MESON_ARGS. | |||||
# | |||||
# ${opt}_MESON_TRUE Will add to MESON_ARGS: | |||||
# Option enabled --${content} true | |||||
# Option disabled --${content} false | |||||
# ${opt}_MESON_FALSE Will add to MESON_ARGS: | |||||
# Option enabled --${content} false | |||||
# Option disabled --${content} true | |||||
# | |||||
# ${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 393 Lines • ▼ Show 20 Lines | |||||
CONFIGURE_ARGS+= ${${opt}_CONFIGURE_WITH:S/^/--with-/} | CONFIGURE_ARGS+= ${${opt}_CONFIGURE_WITH:S/^/--with-/} | ||||
. endif | . endif | ||||
. if defined(${opt}_CMAKE_BOOL) | . if defined(${opt}_CMAKE_BOOL) | ||||
CMAKE_ARGS+= ${${opt}_CMAKE_BOOL:C/.*/-D&:BOOL=true/} | CMAKE_ARGS+= ${${opt}_CMAKE_BOOL:C/.*/-D&:BOOL=true/} | ||||
. endif | . endif | ||||
. if defined(${opt}_CMAKE_BOOL_OFF) | . if defined(${opt}_CMAKE_BOOL_OFF) | ||||
CMAKE_ARGS+= ${${opt}_CMAKE_BOOL_OFF:C/.*/-D&:BOOL=false/} | CMAKE_ARGS+= ${${opt}_CMAKE_BOOL_OFF:C/.*/-D&:BOOL=false/} | ||||
. endif | . endif | ||||
. for configure in CONFIGURE CMAKE QMAKE | . if defined(${opt}_MESON_TRUE) | ||||
MESON_ARGS+= ${${opt}_MESON_TRUE:C/.*/-D&=true/} | |||||
. endif | |||||
. if defined(${opt}_MESON_TRUE_OFF) | |||||
MESON_ARGS+= ${${opt}_MESON_TRUE_OFF:C/.*/-D&=false/} | |||||
. endif | |||||
. 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}} | ||||
. endif | . endif | ||||
Show All 33 Lines | |||||
CONFIGURE_ARGS+= ${${opt}_CONFIGURE_WITH:S/^/--without-/:C/=.*//} | CONFIGURE_ARGS+= ${${opt}_CONFIGURE_WITH:S/^/--without-/:C/=.*//} | ||||
. endif | . endif | ||||
. if defined(${opt}_CMAKE_BOOL) | . if defined(${opt}_CMAKE_BOOL) | ||||
CMAKE_ARGS+= ${${opt}_CMAKE_BOOL:C/.*/-D&:BOOL=false/} | CMAKE_ARGS+= ${${opt}_CMAKE_BOOL:C/.*/-D&:BOOL=false/} | ||||
. endif | . endif | ||||
. 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 | ||||
. for configure in CONFIGURE CMAKE QMAKE | . if defined(${opt}_MESON_FALSE) | ||||
MESON_ARGS+= ${${opt}_MESON_FALSE:C/.*/-D&=false/} | |||||
. endif | |||||
. if defined(${opt}_MESON_FALSE_OFF) | |||||
MESON_ARGS+= ${${opt}_MESON_FALSE_OFF:C/.*/-D&=true/} | |||||
. endif | |||||
. 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) | ||||
${flags}+= ${${opt}_${flags}_OFF} | ${flags}+= ${${opt}_${flags}_OFF} | ||||
. endif | . endif | ||||
Show All 37 Lines |