History

Sequester vpx_ports file list

Move BUILD_LIBVPX evaluation before the include.

Johann committed 14 years ago

Commit a5ffcdd1 parent cd7f6842 files · +36 −18Browse files

Unified · Split

2 files
  1. libs.mk +10 −18
  2. vpx_ports/vpx_ports.mk +26 −0
libs.mk+10−18
@@ -20,6 +20,13 @@ endif · 19 unmodified lines
20CODEC_SRCS-yes += CHANGELOG20CODEC_SRCS-yes += CHANGELOG
21CODEC_SRCS-yes += libs.mk21CODEC_SRCS-yes += libs.mk
22 22
23# If this is a universal (fat) binary, then all the subarchitectures have
24# already been built and our job is to stitch them together. The
25# BUILD_LIBVPX variable indicates whether we should be building
26# (compiling, linking) the library. The LIPO_LIBVPX variable indicates
27# that we're stitching.
28$(eval $(if $(filter universal%,$(TOOLCHAIN)),LIPO_LIBVPX,BUILD_LIBVPX):=yes)
29
23include $(SRC_PATH_BARE)/vpx/vpx_codec.mk30include $(SRC_PATH_BARE)/vpx/vpx_codec.mk
24CODEC_SRCS-yes += $(addprefix vpx/,$(call enabled,API_SRCS))31CODEC_SRCS-yes += $(addprefix vpx/,$(call enabled,API_SRCS))
25 32
@@ -29,6 +36,9 @@ CODEC_SRCS-yes += $(addprefix vpx_mem/,$(call enabled,MEM_SRCS)) · 3 unmodified lines
29include $(SRC_PATH_BARE)/vpx_scale/vpx_scale.mk36include $(SRC_PATH_BARE)/vpx_scale/vpx_scale.mk
30CODEC_SRCS-yes += $(addprefix vpx_scale/,$(call enabled,SCALE_SRCS))37CODEC_SRCS-yes += $(addprefix vpx_scale/,$(call enabled,SCALE_SRCS))
31 38
39include $(SRC_PATH_BARE)/vpx_ports/vpx_ports.mk
40CODEC_SRCS-yes += $(addprefix vpx_ports/,$(call enabled,PORTS_SRCS))
41
32 42
33ifeq ($(CONFIG_VP8_ENCODER),yes)43ifeq ($(CONFIG_VP8_ENCODER),yes)
34 VP8_PREFIX=vp8/44 VP8_PREFIX=vp8/
@@ -83,29 +93,11 @@ INSTALL_MAPS += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/% $(p)/Release/%) · 48 unmodified lines
83INSTALL_MAPS += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/% $(p)/Debug/%)93INSTALL_MAPS += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/% $(p)/Debug/%)
84endif94endif
85 95
86# If this is a universal (fat) binary, then all the subarchitectures have
87# already been built and our job is to stitch them together. The
88# BUILD_LIBVPX variable indicates whether we should be building
89# (compiling, linking) the library. The LIPO_LIBVPX variable indicates
90# that we're stitching.
91$(eval $(if $(filter universal%,$(TOOLCHAIN)),LIPO_LIBVPX,BUILD_LIBVPX):=yes)
92
93CODEC_SRCS-$(BUILD_LIBVPX) += build/make/version.sh96CODEC_SRCS-$(BUILD_LIBVPX) += build/make/version.sh
94CODEC_SRCS-$(BUILD_LIBVPX) += build/make/rtcd.sh97CODEC_SRCS-$(BUILD_LIBVPX) += build/make/rtcd.sh
95CODEC_SRCS-$(BUILD_LIBVPX) += vpx/vpx_integer.h98CODEC_SRCS-$(BUILD_LIBVPX) += vpx/vpx_integer.h
96CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/asm_offsets.h
97CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/vpx_timer.h
98CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/mem.h
99CODEC_SRCS-$(BUILD_LIBVPX) += $(BUILD_PFX)vpx_config.c99CODEC_SRCS-$(BUILD_LIBVPX) += $(BUILD_PFX)vpx_config.c
100INSTALL-SRCS-no += $(BUILD_PFX)vpx_config.c100INSTALL-SRCS-no += $(BUILD_PFX)vpx_config.c
101ifeq ($(ARCH_X86)$(ARCH_X86_64),yes)
102CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/emms.asm
103CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86.h
104CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86_abi_support.asm
105CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86_cpuid.c
106endif
107CODEC_SRCS-$(ARCH_ARM) += vpx_ports/arm_cpudetect.c
108CODEC_SRCS-$(ARCH_ARM) += vpx_ports/arm.h
109CODEC_EXPORTS-$(BUILD_LIBVPX) += vpx/exports_com101CODEC_EXPORTS-$(BUILD_LIBVPX) += vpx/exports_com
110CODEC_EXPORTS-$(CONFIG_ENCODERS) += vpx/exports_enc102CODEC_EXPORTS-$(CONFIG_ENCODERS) += vpx/exports_enc
111CODEC_EXPORTS-$(CONFIG_DECODERS) += vpx/exports_dec103CODEC_EXPORTS-$(CONFIG_DECODERS) += vpx/exports_dec
vpx_ports/vpx_ports.mk+26−0
@@ -0,0 +1,26 @@
1##
2## Copyright (c) 2012 The WebM project authors. All Rights Reserved.
3##
4## Use of this source code is governed by a BSD-style license
5## that can be found in the LICENSE file in the root of the source
6## tree. An additional intellectual property rights grant can be found
7## in the file PATENTS. All contributing project authors may
8## be found in the AUTHORS file in the root of the source tree.
9##
10
11
12PORTS_SRCS-yes += vpx_ports.mk
13
14PORTS_SRCS-$(BUILD_LIBVPX) += asm_offsets.h
15PORTS_SRCS-$(BUILD_LIBVPX) += mem.h
16PORTS_SRCS-$(BUILD_LIBVPX) += vpx_timer.h
17
18ifeq ($(ARCH_X86)$(ARCH_X86_64),yes)
19PORTS_SRCS-$(BUILD_LIBVPX) += emms.asm
20PORTS_SRCS-$(BUILD_LIBVPX) += x86.h
21PORTS_SRCS-$(BUILD_LIBVPX) += x86_abi_support.asm
22PORTS_SRCS-$(BUILD_LIBVPX) += x86_cpuid.c
23endif
24
25PORTS_SRCS-$(ARCH_ARM) += arm_cpudetect.c
26PORTS_SRCS-$(ARCH_ARM) += arm.h

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t