From: Johann Date: Fri, 16 Nov 2012 00:41:03 +0000 (-0800) Subject: Each make file is responsible for its own directory X-Git-Tag: v1.2.0~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c7801e34d6dbc2b3e12238d16ea93d2de8352b6;p=platform%2Fupstream%2Flibvpx.git Each make file is responsible for its own directory Change-Id: Ia8a59ce79045af209e49c68810bae44616422db5 --- diff --git a/libs.mk b/libs.mk index c519d2b..ef49828 100644 --- a/libs.mk +++ b/libs.mk @@ -45,8 +45,6 @@ ifeq ($(CONFIG_VP8_ENCODER),yes) include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8cx.mk CODEC_SRCS-yes += $(addprefix $(VP8_PREFIX),$(call enabled,VP8_CX_SRCS)) CODEC_EXPORTS-yes += $(addprefix $(VP8_PREFIX),$(VP8_CX_EXPORTS)) - CODEC_SRCS-yes += $(VP8_PREFIX)vp8cx.mk vpx/vp8.h vpx/vp8cx.h - CODEC_SRCS-$(ARCH_ARM) += $(VP8_PREFIX)vp8cx_arm.mk INSTALL-LIBS-yes += include/vpx/vp8.h include/vpx/vp8cx.h INSTALL_MAPS += include/vpx/% $(SRC_PATH_BARE)/$(VP8_PREFIX)/% CODEC_DOC_SRCS += vpx/vp8.h vpx/vp8cx.h @@ -58,7 +56,6 @@ ifeq ($(CONFIG_VP8_DECODER),yes) include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8dx.mk CODEC_SRCS-yes += $(addprefix $(VP8_PREFIX),$(call enabled,VP8_DX_SRCS)) CODEC_EXPORTS-yes += $(addprefix $(VP8_PREFIX),$(VP8_DX_EXPORTS)) - CODEC_SRCS-yes += $(VP8_PREFIX)vp8dx.mk vpx/vp8.h vpx/vp8dx.h INSTALL-LIBS-yes += include/vpx/vp8.h include/vpx/vp8dx.h INSTALL_MAPS += include/vpx/% $(SRC_PATH_BARE)/$(VP8_PREFIX)/% CODEC_DOC_SRCS += vpx/vp8.h vpx/vp8dx.h @@ -95,7 +92,6 @@ endif CODEC_SRCS-$(BUILD_LIBVPX) += build/make/version.sh CODEC_SRCS-$(BUILD_LIBVPX) += build/make/rtcd.sh -CODEC_SRCS-$(BUILD_LIBVPX) += vpx/vpx_integer.h CODEC_SRCS-$(BUILD_LIBVPX) += $(BUILD_PFX)vpx_config.c INSTALL-SRCS-no += $(BUILD_PFX)vpx_config.c CODEC_EXPORTS-$(BUILD_LIBVPX) += vpx/exports_com diff --git a/vp8/vp8cx.mk b/vp8/vp8cx.mk index 5976297..0ae2f10 100644 --- a/vp8/vp8cx.mk +++ b/vp8/vp8cx.mk @@ -22,16 +22,9 @@ ifeq ($(ARCH_ARM),yes) include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8cx_arm.mk endif -VP8_CX_SRCS-yes += vp8_cx_iface.c +VP8_CX_SRCS-yes += vp8cx.mk -# encoder -#INCLUDES += algo/vpx_common/vpx_mem/include -#INCLUDES += common -#INCLUDES += common -#INCLUDES += common -#INCLUDES += algo/vpx_ref/cpu_id/include -#INCLUDES += common -#INCLUDES += encoder +VP8_CX_SRCS-yes += vp8_cx_iface.c VP8_CX_SRCS-yes += encoder/asm_enc_offsets.c VP8_CX_SRCS-yes += encoder/defaultcoefcounts.h diff --git a/vp8/vp8cx_arm.mk b/vp8/vp8cx_arm.mk index b16615d..b030ee5 100644 --- a/vp8/vp8cx_arm.mk +++ b/vp8/vp8cx_arm.mk @@ -9,7 +9,7 @@ ## -#VP8_CX_SRCS list is modified according to different platforms. +VP8_CX_SRCS-$(ARCH_ARM) += vp8cx_arm.mk #File list for arm # encoder diff --git a/vp8/vp8dx.mk b/vp8/vp8dx.mk index 2cfd280..dd39190 100644 --- a/vp8/vp8dx.mk +++ b/vp8/vp8dx.mk @@ -18,6 +18,8 @@ VP8_DX_SRCS-no += $(VP8_COMMON_SRCS-no) VP8_DX_SRCS_REMOVE-yes += $(VP8_COMMON_SRCS_REMOVE-yes) VP8_DX_SRCS_REMOVE-no += $(VP8_COMMON_SRCS_REMOVE-no) +VP8_DX_SRCS-yes += vp8dx.mk + VP8_DX_SRCS-yes += vp8_dx_iface.c # common diff --git a/vpx/vpx_codec.mk b/vpx/vpx_codec.mk index 427fd0f..baf463d 100644 --- a/vpx/vpx_codec.mk +++ b/vpx/vpx_codec.mk @@ -11,6 +11,12 @@ API_EXPORTS += exports +API_SRCS-$(CONFIG_VP8_ENCODER) += vp8.h +API_SRCS-$(CONFIG_VP8_ENCODER) += vp8cx.h + +API_SRCS-$(CONFIG_VP8_DECODER) += vp8.h +API_SRCS-$(CONFIG_VP8_DECODER) += vp8dx.h + API_SRCS-yes += src/vpx_decoder.c API_SRCS-yes += vpx_decoder.h API_SRCS-yes += src/vpx_encoder.c @@ -23,3 +29,4 @@ API_SRCS-yes += vpx_codec.mk API_SRCS-yes += vpx_codec_impl_bottom.h API_SRCS-yes += vpx_codec_impl_top.h API_SRCS-yes += vpx_image.h +API_SRCS-$(BUILD_LIBVPX) += vpx_integer.h