Ver Fonte

directfb: added directfb tests installation option

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Lionel Landwerlin há 15 anos atrás
pai
commit
58633266d5
2 ficheiros alterados com 11 adições e 1 exclusões
  1. 3 0
      package/directfb/Config.in
  2. 8 1
      package/directfb/directfb.mk

+ 3 - 0
package/directfb/Config.in

@@ -98,4 +98,7 @@ config BR2_PACKAGE_DIRECTB_DITHER_RGB16
 	  Enable dithering when loading images to RGB16 surfaces.
 	  Enable dithering when loading images to RGB16 surfaces.
 	  This increases the data section by 64 KBytes.
 	  This increases the data section by 64 KBytes.
 
 
+config BR2_PACKAGE_DIRECTB_TESTS
+	bool "build directfb tests"
+
 endif # BR2_PACKAGE_DIRECTFB
 endif # BR2_PACKAGE_DIRECTFB

+ 8 - 1
package/directfb/directfb.mk

@@ -121,6 +121,12 @@ else
 DIRECTFB_DITHER_RGB16:=--with-dither-rgb16=none
 DIRECTFB_DITHER_RGB16:=--with-dither-rgb16=none
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_DIRECTB_TESTS),y)
+DIRECTFB_TESTS:=--with-tests
+else
+DIRECTFB_TESTS:=
+endif
+
 DIRECTFB_CONF_OPT = \
 DIRECTFB_CONF_OPT = \
 	--localstatedir=/var \
 	--localstatedir=/var \
 	--with-gfxdrivers=$(DIRECTFB_GFX) \
 	--with-gfxdrivers=$(DIRECTFB_GFX) \
@@ -146,7 +152,8 @@ DIRECTFB_CONF_OPT = \
 	--disable-sdl \
 	--disable-sdl \
 	--disable-vnc \
 	--disable-vnc \
 	--disable-video4linux \
 	--disable-video4linux \
-	--disable-video4linux2
+	--disable-video4linux2 \
+	$(DIRECTFB_TESTS)
 
 
 DIRECTFB_DEPENDENCIES = $(DIRECTFB_DEP) freetype $(DIRECTFB_FUSION)
 DIRECTFB_DEPENDENCIES = $(DIRECTFB_DEP) freetype $(DIRECTFB_FUSION)