build: did not build codec plugin when a brillcodec is not built
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 11 May 2015 08:25:23 +0000 (17:25 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 12 May 2015 03:48:33 +0000 (12:48 +0900)
Change-Id: I449cd738529000ac64ed2fd4ead9252c145cae65

tizen/src/hw/pci/Makefile.objs

index e618731..ac48ef9 100644 (file)
@@ -3,8 +3,10 @@ obj-$(CONFIG_LIBAV) += maru_brillcodec.o
 ifdef CONFIG_LINUX
 LIBS += -ldl
 endif
+ifdef CONFIG_LIBAV
 obj-$(CONFIG_DXVA2) += maru_dxva2_plugin.o
 obj-$(CONFIG_VAAPI) += maru_brillcodec_vaapi.o
+endif
 
 obj-y += maru_brightness.o
 
@@ -29,9 +31,11 @@ maru_brillcodec_device.o-cflags := $(LIBAV_CFLAGS)
 maru_brillcodec_device.o-libs := $(LIBAV_LIBS)
 maru_brillcodec.o-cflags := $(LIBAV_CFLAGS)
 maru_brillcodec.o-libs := $(LIBAV_LIBS)
+ifdef CONFIG_LIBAV
 ifdef CONFIG_DXVA2
 maru_dxva2_plugin.o-cflags := $(LIBAV_CFLAGS)
 endif
 ifdef CONFIG_VAAPI
 maru_brillcodec_vaapi.o-cflags := $(LIBAV_CFLAGS) $(LIBVA_CFLAGS)
 endif
+endif