From a5ffcdd8d4bb7c31bcad6faeff016643f10fd87a Mon Sep 17 00:00:00 2001 From: Johann Date: Thu, 15 Nov 2012 16:28:20 -0800 Subject: [PATCH] Sequester vpx_ports file list Move BUILD_LIBVPX evaluation before the include. Change-Id: I8860414c42a8161765a17bf433ff2607c0d027ca --- libs.mk | 28 ++++++++++------------------ vpx_ports/vpx_ports.mk | 26 ++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 18 deletions(-) create mode 100644 vpx_ports/vpx_ports.mk diff --git a/libs.mk b/libs.mk index 373c1cd44..c519d2bce 100644 --- a/libs.mk +++ b/libs.mk @@ -20,6 +20,13 @@ endif CODEC_SRCS-yes += CHANGELOG CODEC_SRCS-yes += libs.mk +# If this is a universal (fat) binary, then all the subarchitectures have +# already been built and our job is to stitch them together. The +# BUILD_LIBVPX variable indicates whether we should be building +# (compiling, linking) the library. The LIPO_LIBVPX variable indicates +# that we're stitching. +$(eval $(if $(filter universal%,$(TOOLCHAIN)),LIPO_LIBVPX,BUILD_LIBVPX):=yes) + include $(SRC_PATH_BARE)/vpx/vpx_codec.mk CODEC_SRCS-yes += $(addprefix vpx/,$(call enabled,API_SRCS)) @@ -29,6 +36,9 @@ CODEC_SRCS-yes += $(addprefix vpx_mem/,$(call enabled,MEM_SRCS)) include $(SRC_PATH_BARE)/vpx_scale/vpx_scale.mk CODEC_SRCS-yes += $(addprefix vpx_scale/,$(call enabled,SCALE_SRCS)) +include $(SRC_PATH_BARE)/vpx_ports/vpx_ports.mk +CODEC_SRCS-yes += $(addprefix vpx_ports/,$(call enabled,PORTS_SRCS)) + ifeq ($(CONFIG_VP8_ENCODER),yes) VP8_PREFIX=vp8/ @@ -83,29 +93,11 @@ INSTALL_MAPS += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/% $(p)/Release/%) INSTALL_MAPS += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/% $(p)/Debug/%) endif -# If this is a universal (fat) binary, then all the subarchitectures have -# already been built and our job is to stitch them together. The -# BUILD_LIBVPX variable indicates whether we should be building -# (compiling, linking) the library. The LIPO_LIBVPX variable indicates -# that we're stitching. -$(eval $(if $(filter universal%,$(TOOLCHAIN)),LIPO_LIBVPX,BUILD_LIBVPX):=yes) - 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) += vpx_ports/asm_offsets.h -CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/vpx_timer.h -CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/mem.h CODEC_SRCS-$(BUILD_LIBVPX) += $(BUILD_PFX)vpx_config.c INSTALL-SRCS-no += $(BUILD_PFX)vpx_config.c -ifeq ($(ARCH_X86)$(ARCH_X86_64),yes) -CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/emms.asm -CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86.h -CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86_abi_support.asm -CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86_cpuid.c -endif -CODEC_SRCS-$(ARCH_ARM) += vpx_ports/arm_cpudetect.c -CODEC_SRCS-$(ARCH_ARM) += vpx_ports/arm.h CODEC_EXPORTS-$(BUILD_LIBVPX) += vpx/exports_com CODEC_EXPORTS-$(CONFIG_ENCODERS) += vpx/exports_enc CODEC_EXPORTS-$(CONFIG_DECODERS) += vpx/exports_dec diff --git a/vpx_ports/vpx_ports.mk b/vpx_ports/vpx_ports.mk new file mode 100644 index 000000000..e6cb52fb4 --- /dev/null +++ b/vpx_ports/vpx_ports.mk @@ -0,0 +1,26 @@ +## +## Copyright (c) 2012 The WebM project authors. All Rights Reserved. +## +## Use of this source code is governed by a BSD-style license +## that can be found in the LICENSE file in the root of the source +## tree. An additional intellectual property rights grant can be found +## in the file PATENTS. All contributing project authors may +## be found in the AUTHORS file in the root of the source tree. +## + + +PORTS_SRCS-yes += vpx_ports.mk + +PORTS_SRCS-$(BUILD_LIBVPX) += asm_offsets.h +PORTS_SRCS-$(BUILD_LIBVPX) += mem.h +PORTS_SRCS-$(BUILD_LIBVPX) += vpx_timer.h + +ifeq ($(ARCH_X86)$(ARCH_X86_64),yes) +PORTS_SRCS-$(BUILD_LIBVPX) += emms.asm +PORTS_SRCS-$(BUILD_LIBVPX) += x86.h +PORTS_SRCS-$(BUILD_LIBVPX) += x86_abi_support.asm +PORTS_SRCS-$(BUILD_LIBVPX) += x86_cpuid.c +endif + +PORTS_SRCS-$(ARCH_ARM) += arm_cpudetect.c +PORTS_SRCS-$(ARCH_ARM) += arm.h -- 2.40.0