On 2012-02-09 10:36 PM, [email protected] wrote: > On Thu, Feb 9, 2012 at 1:11 PM, [email protected] <[email protected]> wrote: >> On Thu, Feb 9, 2012 at 1:07 PM, Felix Fietkau <[email protected]> wrote: >>> On 2012-02-09 6:46 PM, [email protected] wrote: >>>> The Cairo package selects two features: >>>> >>>> FEATURE_drawing-backend_DirectFB:directfb \ >>>> FEATURE_drawing-backend_libX11:libX11 >>>> >>>> How do I extend this so that the menuconfig UI will also give me a >>>> menu option of NONE? It is not obvious to me how to create a FEATURE >>>> choice that does nothing. >>>> >>>> Both of these are optional for Cairo but there isn't anyway to turn >>>> them both off. They come up as a radio button with just two choices. >>>> For development I turned the features off locally by removing the two >>>> lines from the Makefile. >>>> >>>> Cario is able to draw to /dev/fb without having directfb around. >>> If you need it for dependencies, you could add a hidden config symbol >>> (without prompt) that defaults to y and depends on >>> (!FEATURE_drawing-backend_DirectFB && !FEATURE_drawing-backend_libX11). > > You can't achieve (!FEATURE_drawing-backend_DirectFB && > !FEATURE_drawing-backend_libX11) because the existence of the radio > button cause one of the two to always be picked.
libs/directfb/Makefile does this: define Feature/DirectFB TARGET_NAME:=drawing-backend TARGET_TITLE:=Drawing Backend NAME:=DirectFB endef $(eval $(call Feature,DirectFB)) You could add a feature like that for cairo in the cairo Makefile. - Felix _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
