| OLD | NEW |
| 1 ## | 1 ## |
| 2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 ## | 3 ## |
| 4 ## Use of this source code is governed by a BSD-style license | 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 | 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 | 6 ## tree. An additional intellectual property rights grant can be found |
| 7 ## in the file PATENTS. All contributing project authors may | 7 ## in the file PATENTS. All contributing project authors may |
| 8 ## be found in the AUTHORS file in the root of the source tree. | 8 ## be found in the AUTHORS file in the root of the source tree. |
| 9 ## | 9 ## |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 include $(SRC_PATH_BARE)/vpx_scale/vpx_scale.mk | 28 include $(SRC_PATH_BARE)/vpx_scale/vpx_scale.mk |
| 29 CODEC_SRCS-yes += $(addprefix vpx_scale/,$(call enabled,SCALE_SRCS)) | 29 CODEC_SRCS-yes += $(addprefix vpx_scale/,$(call enabled,SCALE_SRCS)) |
| 30 | 30 |
| 31 | 31 |
| 32 ifeq ($(CONFIG_VP8_ENCODER),yes) | 32 ifeq ($(CONFIG_VP8_ENCODER),yes) |
| 33 VP8_PREFIX=vp8/ | 33 VP8_PREFIX=vp8/ |
| 34 include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8cx.mk | 34 include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8cx.mk |
| 35 CODEC_SRCS-yes += $(addprefix $(VP8_PREFIX),$(call enabled,VP8_CX_SRCS)) | 35 CODEC_SRCS-yes += $(addprefix $(VP8_PREFIX),$(call enabled,VP8_CX_SRCS)) |
| 36 CODEC_EXPORTS-yes += $(addprefix $(VP8_PREFIX),$(VP8_CX_EXPORTS)) | 36 CODEC_EXPORTS-yes += $(addprefix $(VP8_PREFIX),$(VP8_CX_EXPORTS)) |
| 37 CODEC_SRCS-yes += $(VP8_PREFIX)vp8cx.mk vpx/vp8.h vpx/vp8cx.h vpx/vp8e.h | 37 CODEC_SRCS-yes += $(VP8_PREFIX)vp8cx.mk vpx/vp8.h vpx/vp8cx.h vpx/vp8e.h |
| 38 CODEC_SRCS-$(ARCH_ARM) += $(VP8_PREFIX)vp8cx_arm.mk |
| 38 INSTALL-LIBS-yes += include/vpx/vp8.h include/vpx/vp8e.h include/vpx/vp8cx.h | 39 INSTALL-LIBS-yes += include/vpx/vp8.h include/vpx/vp8e.h include/vpx/vp8cx.h |
| 39 INSTALL_MAPS += include/vpx/% $(SRC_PATH_BARE)/$(VP8_PREFIX)/% | 40 INSTALL_MAPS += include/vpx/% $(SRC_PATH_BARE)/$(VP8_PREFIX)/% |
| 40 CODEC_DOC_SRCS += vpx/vp8.h vpx/vp8cx.h | 41 CODEC_DOC_SRCS += vpx/vp8.h vpx/vp8cx.h |
| 41 CODEC_DOC_SECTIONS += vp8 vp8_encoder | 42 CODEC_DOC_SECTIONS += vp8 vp8_encoder |
| 42 endif | 43 endif |
| 43 | 44 |
| 44 ifeq ($(CONFIG_VP8_DECODER),yes) | 45 ifeq ($(CONFIG_VP8_DECODER),yes) |
| 45 VP8_PREFIX=vp8/ | 46 VP8_PREFIX=vp8/ |
| 46 include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8dx.mk | 47 include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8dx.mk |
| 47 CODEC_SRCS-yes += $(addprefix $(VP8_PREFIX),$(call enabled,VP8_DX_SRCS)) | 48 CODEC_SRCS-yes += $(addprefix $(VP8_PREFIX),$(call enabled,VP8_DX_SRCS)) |
| 48 CODEC_EXPORTS-yes += $(addprefix $(VP8_PREFIX),$(VP8_DX_EXPORTS)) | 49 CODEC_EXPORTS-yes += $(addprefix $(VP8_PREFIX),$(VP8_DX_EXPORTS)) |
| 49 CODEC_SRCS-yes += $(VP8_PREFIX)vp8dx.mk vpx/vp8.h vpx/vp8dx.h | 50 CODEC_SRCS-yes += $(VP8_PREFIX)vp8dx.mk vpx/vp8.h vpx/vp8dx.h |
| 51 CODEC_SRCS-$(ARCH_ARM) += $(VP8_PREFIX)vp8dx_arm.mk |
| 50 INSTALL-LIBS-yes += include/vpx/vp8.h include/vpx/vp8dx.h | 52 INSTALL-LIBS-yes += include/vpx/vp8.h include/vpx/vp8dx.h |
| 51 INSTALL_MAPS += include/vpx/% $(SRC_PATH_BARE)/$(VP8_PREFIX)/% | 53 INSTALL_MAPS += include/vpx/% $(SRC_PATH_BARE)/$(VP8_PREFIX)/% |
| 52 CODEC_DOC_SRCS += vpx/vp8.h vpx/vp8dx.h | 54 CODEC_DOC_SRCS += vpx/vp8.h vpx/vp8dx.h |
| 53 CODEC_DOC_SECTIONS += vp8 vp8_decoder | 55 CODEC_DOC_SECTIONS += vp8 vp8_decoder |
| 54 endif | 56 endif |
| 55 | 57 |
| 56 | 58 |
| 57 ifeq ($(CONFIG_ENCODERS),yes) | 59 ifeq ($(CONFIG_ENCODERS),yes) |
| 58 CODEC_DOC_SECTIONS += encoder | 60 CODEC_DOC_SECTIONS += encoder |
| 59 endif | 61 endif |
| (...skipping 22 matching lines...) Expand all Loading... |
| 82 | 84 |
| 83 # If this is a universal (fat) binary, then all the subarchitectures have | 85 # If this is a universal (fat) binary, then all the subarchitectures have |
| 84 # already been built and our job is to stitch them together. The | 86 # already been built and our job is to stitch them together. The |
| 85 # BUILD_LIBVPX variable indicates whether we should be building | 87 # BUILD_LIBVPX variable indicates whether we should be building |
| 86 # (compiling, linking) the library. The LIPO_LIBVPX variable indicates | 88 # (compiling, linking) the library. The LIPO_LIBVPX variable indicates |
| 87 # that we're stitching. | 89 # that we're stitching. |
| 88 $(eval $(if $(filter universal%,$(TOOLCHAIN)),LIPO_LIBVPX,BUILD_LIBVPX):=yes) | 90 $(eval $(if $(filter universal%,$(TOOLCHAIN)),LIPO_LIBVPX,BUILD_LIBVPX):=yes) |
| 89 | 91 |
| 90 CODEC_SRCS-$(BUILD_LIBVPX) += build/make/version.sh | 92 CODEC_SRCS-$(BUILD_LIBVPX) += build/make/version.sh |
| 91 CODEC_SRCS-$(BUILD_LIBVPX) += vpx/vpx_integer.h | 93 CODEC_SRCS-$(BUILD_LIBVPX) += vpx/vpx_integer.h |
| 94 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/asm_offsets.h |
| 92 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/vpx_timer.h | 95 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/vpx_timer.h |
| 93 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/mem.h | 96 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/mem.h |
| 94 CODEC_SRCS-$(BUILD_LIBVPX) += $(BUILD_PFX)vpx_config.c | 97 CODEC_SRCS-$(BUILD_LIBVPX) += $(BUILD_PFX)vpx_config.c |
| 95 INSTALL-SRCS-no += $(BUILD_PFX)vpx_config.c | 98 INSTALL-SRCS-no += $(BUILD_PFX)vpx_config.c |
| 96 ifeq ($(ARCH_X86)$(ARCH_X86_64),yes) | 99 ifeq ($(ARCH_X86)$(ARCH_X86_64),yes) |
| 97 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/emms.asm | 100 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/emms.asm |
| 98 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86.h | 101 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86.h |
| 99 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86_abi_support.asm | 102 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86_abi_support.asm |
| 100 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86_cpuid.c | 103 CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86_cpuid.c |
| 101 endif | 104 endif |
| 102 CODEC_SRCS-$(ARCH_ARM) += vpx_ports/arm_cpudetect.c | 105 CODEC_SRCS-$(ARCH_ARM) += vpx_ports/arm_cpudetect.c |
| 103 CODEC_SRCS-$(ARCH_ARM) += $(BUILD_PFX)vpx_config.asm | 106 CODEC_SRCS-$(ARCH_ARM) += vpx_ports/arm.h |
| 104 CODEC_EXPORTS-$(BUILD_LIBVPX) += vpx/exports_com | 107 CODEC_EXPORTS-$(BUILD_LIBVPX) += vpx/exports_com |
| 105 CODEC_EXPORTS-$(CONFIG_ENCODERS) += vpx/exports_enc | 108 CODEC_EXPORTS-$(CONFIG_ENCODERS) += vpx/exports_enc |
| 106 CODEC_EXPORTS-$(CONFIG_DECODERS) += vpx/exports_dec | 109 CODEC_EXPORTS-$(CONFIG_DECODERS) += vpx/exports_dec |
| 107 | 110 |
| 108 INSTALL-LIBS-yes += include/vpx/vpx_codec.h | 111 INSTALL-LIBS-yes += include/vpx/vpx_codec.h |
| 109 INSTALL-LIBS-yes += include/vpx/vpx_image.h | 112 INSTALL-LIBS-yes += include/vpx/vpx_image.h |
| 110 INSTALL-LIBS-yes += include/vpx/vpx_integer.h | 113 INSTALL-LIBS-yes += include/vpx/vpx_integer.h |
| 111 INSTALL-LIBS-yes += include/vpx/vpx_codec_impl_top.h | 114 INSTALL-LIBS-yes += include/vpx/vpx_codec_impl_top.h |
| 112 INSTALL-LIBS-yes += include/vpx/vpx_codec_impl_bottom.h | 115 INSTALL-LIBS-yes += include/vpx/vpx_codec_impl_bottom.h |
| 113 INSTALL-LIBS-$(CONFIG_DECODERS) += include/vpx/vpx_decoder.h | 116 INSTALL-LIBS-$(CONFIG_DECODERS) += include/vpx/vpx_decoder.h |
| 114 INSTALL-LIBS-$(CONFIG_DECODERS) += include/vpx/vpx_decoder_compat.h | 117 INSTALL-LIBS-$(CONFIG_DECODERS) += include/vpx/vpx_decoder_compat.h |
| 115 INSTALL-LIBS-$(CONFIG_ENCODERS) += include/vpx/vpx_encoder.h | 118 INSTALL-LIBS-$(CONFIG_ENCODERS) += include/vpx/vpx_encoder.h |
| 116 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) | 119 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) |
| 117 ifeq ($(CONFIG_MSVS),yes) | 120 ifeq ($(CONFIG_MSVS),yes) |
| 118 INSTALL-LIBS-yes += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(
p)/$(CODEC_LIB).lib) | 121 INSTALL-LIBS-yes += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(
p)/$(CODEC_LIB).lib) |
| 119 INSTALL-LIBS-$(CONFIG_DEBUG_LIBS) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(
p)/$(CODEC_LIB)d.lib) | 122 INSTALL-LIBS-$(CONFIG_DEBUG_LIBS) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(
p)/$(CODEC_LIB)d.lib) |
| 120 INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/v
px.dll) | 123 INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/v
px.dll) |
| 121 INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/v
px.exp) | 124 INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/v
px.exp) |
| 122 endif | 125 endif |
| 123 else | 126 else |
| 124 INSTALL-LIBS-yes += $(LIBSUBDIR)/libvpx.a | 127 INSTALL-LIBS-$(CONFIG_STATIC) += $(LIBSUBDIR)/libvpx.a |
| 125 INSTALL-LIBS-$(CONFIG_DEBUG_LIBS) += $(LIBSUBDIR)/libvpx_g.a | 128 INSTALL-LIBS-$(CONFIG_DEBUG_LIBS) += $(LIBSUBDIR)/libvpx_g.a |
| 126 endif | 129 endif |
| 127 | 130 |
| 128 CODEC_SRCS=$(call enabled,CODEC_SRCS) | 131 CODEC_SRCS=$(call enabled,CODEC_SRCS) |
| 129 INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(CODEC_SRCS) | 132 INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(CODEC_SRCS) |
| 130 INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(call enabled,CODEC_EXPORTS) | 133 INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(call enabled,CODEC_EXPORTS) |
| 131 | 134 |
| 135 |
| 136 # Generate a list of all enabled sources, in particular for exporting to gyp |
| 137 # based build systems. |
| 138 libvpx_srcs.txt: |
| 139 @echo " [CREATE] $@" |
| 140 @echo $(CODEC_SRCS) | xargs -n1 echo | sort -u > $@ |
| 141 |
| 142 |
| 132 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) | 143 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) |
| 133 ifeq ($(CONFIG_MSVS),yes) | 144 ifeq ($(CONFIG_MSVS),yes) |
| 134 | 145 |
| 135 obj_int_extract.vcproj: $(SRC_PATH_BARE)/build/make/obj_int_extract.c | 146 obj_int_extract.vcproj: $(SRC_PATH_BARE)/build/make/obj_int_extract.c |
| 136 @cp $(SRC_PATH_BARE)/build/x86-msvs/obj_int_extract.bat . | 147 @cp $(SRC_PATH_BARE)/build/x86-msvs/obj_int_extract.bat . |
| 137 @echo " [CREATE] $@" | 148 @echo " [CREATE] $@" |
| 138 $(SRC_PATH_BARE)/build/make/gen_msvs_proj.sh \ | 149 $(SRC_PATH_BARE)/build/make/gen_msvs_proj.sh \ |
| 139 --exe \ | 150 --exe \ |
| 140 --target=$(TOOLCHAIN) \ | 151 --target=$(TOOLCHAIN) \ |
| 141 --name=obj_int_extract \ | 152 --name=obj_int_extract \ |
| (...skipping 28 matching lines...) Expand all Loading... |
| 170 --src-path-bare="$(SRC_PATH_BARE)" \ | 181 --src-path-bare="$(SRC_PATH_BARE)" \ |
| 171 | 182 |
| 172 PROJECTS-$(BUILD_LIBVPX) += vpx.vcproj | 183 PROJECTS-$(BUILD_LIBVPX) += vpx.vcproj |
| 173 | 184 |
| 174 vpx.vcproj: vpx_config.asm | 185 vpx.vcproj: vpx_config.asm |
| 175 | 186 |
| 176 endif | 187 endif |
| 177 else | 188 else |
| 178 LIBVPX_OBJS=$(call objs,$(CODEC_SRCS)) | 189 LIBVPX_OBJS=$(call objs,$(CODEC_SRCS)) |
| 179 OBJS-$(BUILD_LIBVPX) += $(LIBVPX_OBJS) | 190 OBJS-$(BUILD_LIBVPX) += $(LIBVPX_OBJS) |
| 180 LIBS-$(BUILD_LIBVPX) += $(BUILD_PFX)libvpx.a $(BUILD_PFX)libvpx_g.a | 191 LIBS-$(if $(BUILD_LIBVPX),$(CONFIG_STATIC)) += $(BUILD_PFX)libvpx.a $(BUILD_PFX)
libvpx_g.a |
| 181 $(BUILD_PFX)libvpx_g.a: $(LIBVPX_OBJS) | 192 $(BUILD_PFX)libvpx_g.a: $(LIBVPX_OBJS) |
| 182 | 193 |
| 183 BUILD_LIBVPX_SO := $(if $(BUILD_LIBVPX),$(CONFIG_SHARED)) | 194 BUILD_LIBVPX_SO := $(if $(BUILD_LIBVPX),$(CONFIG_SHARED)) |
| 184 LIBVPX_SO := libvpx.so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION
_PATCH) | 195 LIBVPX_SO := libvpx.so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION
_PATCH) |
| 185 LIBS-$(BUILD_LIBVPX_SO) += $(BUILD_PFX)$(LIBVPX_SO) | 196 LIBS-$(BUILD_LIBVPX_SO) += $(BUILD_PFX)$(LIBVPX_SO)\ |
| 197 $(notdir $(LIBVPX_SO_SYMLINKS)) |
| 186 $(BUILD_PFX)$(LIBVPX_SO): $(LIBVPX_OBJS) libvpx.ver | 198 $(BUILD_PFX)$(LIBVPX_SO): $(LIBVPX_OBJS) libvpx.ver |
| 187 $(BUILD_PFX)$(LIBVPX_SO): extralibs += -lm -pthread | 199 $(BUILD_PFX)$(LIBVPX_SO): extralibs += -lm |
| 188 $(BUILD_PFX)$(LIBVPX_SO): SONAME = libvpx.so.$(VERSION_MAJOR) | 200 $(BUILD_PFX)$(LIBVPX_SO): SONAME = libvpx.so.$(VERSION_MAJOR) |
| 189 $(BUILD_PFX)$(LIBVPX_SO): SO_VERSION_SCRIPT = libvpx.ver | 201 $(BUILD_PFX)$(LIBVPX_SO): SO_VERSION_SCRIPT = libvpx.ver |
| 190 LIBVPX_SO_SYMLINKS := $(addprefix $(LIBSUBDIR)/, \ | 202 LIBVPX_SO_SYMLINKS := $(addprefix $(LIBSUBDIR)/, \ |
| 191 libvpx.so libvpx.so.$(VERSION_MAJOR) \ | 203 libvpx.so libvpx.so.$(VERSION_MAJOR) \ |
| 192 libvpx.so.$(VERSION_MAJOR).$(VERSION_MINOR)) | 204 libvpx.so.$(VERSION_MAJOR).$(VERSION_MINOR)) |
| 193 | 205 |
| 194 libvpx.ver: $(call enabled,CODEC_EXPORTS) | 206 libvpx.ver: $(call enabled,CODEC_EXPORTS) |
| 195 @echo " [CREATE] $@" | 207 @echo " [CREATE] $@" |
| 196 $(qexec)echo "{ global:" > $@ | 208 $(qexec)echo "{ global:" > $@ |
| 197 $(qexec)for f in $?; do awk '{print $$2";"}' < $$f >>$@; done | 209 $(qexec)for f in $?; do awk '{print $$2";"}' < $$f >>$@; done |
| 198 $(qexec)echo "local: *; };" >> $@ | 210 $(qexec)echo "local: *; };" >> $@ |
| 199 CLEAN-OBJS += libvpx.ver | 211 CLEAN-OBJS += libvpx.ver |
| 200 | 212 |
| 201 $(addprefix $(DIST_DIR)/,$(LIBVPX_SO_SYMLINKS)): | 213 define libvpx_symlink_template |
| 202 » @echo " [LN] $@" | 214 $(1): $(2) |
| 203 » $(qexec)ln -sf $(LIBVPX_SO) $@ | 215 » @echo " [LN] $$@" |
| 216 » $(qexec)ln -sf $(LIBVPX_SO) $$@ |
| 217 endef |
| 218 |
| 219 $(eval $(call libvpx_symlink_template,\ |
| 220 $(addprefix $(BUILD_PFX),$(notdir $(LIBVPX_SO_SYMLINKS))),\ |
| 221 $(BUILD_PFX)$(LIBVPX_SO))) |
| 222 $(eval $(call libvpx_symlink_template,\ |
| 223 $(addprefix $(DIST_DIR)/,$(LIBVPX_SO_SYMLINKS)),\ |
| 224 $(DIST_DIR)/$(LIBSUBDIR)/$(LIBVPX_SO))) |
| 204 | 225 |
| 205 INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBVPX_SO_SYMLINKS) | 226 INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBVPX_SO_SYMLINKS) |
| 206 INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBSUBDIR)/$(LIBVPX_SO) | 227 INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBSUBDIR)/$(LIBVPX_SO) |
| 207 | 228 |
| 208 LIBS-$(BUILD_LIBVPX) += vpx.pc | 229 LIBS-$(BUILD_LIBVPX) += vpx.pc |
| 209 vpx.pc: config.mk libs.mk | 230 vpx.pc: config.mk libs.mk |
| 210 @echo " [CREATE] $@" | 231 @echo " [CREATE] $@" |
| 211 $(qexec)echo '# pkg-config file from libvpx $(VERSION_STRING)' > $@ | 232 $(qexec)echo '# pkg-config file from libvpx $(VERSION_STRING)' > $@ |
| 212 $(qexec)echo 'prefix=$(PREFIX)' >> $@ | 233 $(qexec)echo 'prefix=$(PREFIX)' >> $@ |
| 213 $(qexec)echo 'exec_prefix=$${prefix}' >> $@ | 234 $(qexec)echo 'exec_prefix=$${prefix}' >> $@ |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 271 |
| 251 # | 272 # |
| 252 # Add assembler dependencies for configuration and offsets | 273 # Add assembler dependencies for configuration and offsets |
| 253 # | 274 # |
| 254 $(filter %.s.o,$(OBJS-yes)): $(BUILD_PFX)vpx_config.asm | 275 $(filter %.s.o,$(OBJS-yes)): $(BUILD_PFX)vpx_config.asm |
| 255 $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)vpx_config.asm | 276 $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)vpx_config.asm |
| 256 | 277 |
| 257 # | 278 # |
| 258 # Calculate platform- and compiler-specific offsets for hand coded assembly | 279 # Calculate platform- and compiler-specific offsets for hand coded assembly |
| 259 # | 280 # |
| 260 ifeq ($(CONFIG_EXTERNAL_BUILD),) # Visual Studio uses obj_int_extract.bat | 281 |
| 261 ifeq ($(ARCH_ARM), yes) | 282 ifeq ($(filter icc gcc,$(TGT_CC)), $(TGT_CC)) |
| 283 $(BUILD_PFX)asm_com_offsets.asm: $(BUILD_PFX)$(VP8_PREFIX)common/asm_com_off
sets.c.S |
| 284 » grep EQU $< | tr -d '$$\#' $(ADS2GAS) > $@ |
| 285 $(BUILD_PFX)$(VP8_PREFIX)common/asm_com_offsets.c.S: $(VP8_PREFIX)common/asm
_com_offsets.c |
| 286 CLEAN-OBJS += $(BUILD_PFX)asm_com_offsets.asm $(BUILD_PFX)$(VP8_PREFIX)commo
n/asm_com_offsets.c.S |
| 287 |
| 288 $(BUILD_PFX)asm_enc_offsets.asm: $(BUILD_PFX)$(VP8_PREFIX)encoder/asm_enc_of
fsets.c.S |
| 289 » grep EQU $< | tr -d '$$\#' $(ADS2GAS) > $@ |
| 290 $(BUILD_PFX)$(VP8_PREFIX)encoder/asm_enc_offsets.c.S: $(VP8_PREFIX)encoder/a
sm_enc_offsets.c |
| 291 CLEAN-OBJS += $(BUILD_PFX)asm_enc_offsets.asm $(BUILD_PFX)$(VP8_PREFIX)encod
er/asm_enc_offsets.c.S |
| 292 |
| 293 $(BUILD_PFX)asm_dec_offsets.asm: $(BUILD_PFX)$(VP8_PREFIX)decoder/asm_dec_of
fsets.c.S |
| 294 » grep EQU $< | tr -d '$$\#' $(ADS2GAS) > $@ |
| 295 $(BUILD_PFX)$(VP8_PREFIX)decoder/asm_dec_offsets.c.S: $(VP8_PREFIX)decoder/a
sm_dec_offsets.c |
| 296 CLEAN-OBJS += $(BUILD_PFX)asm_dec_offsets.asm $(BUILD_PFX)$(VP8_PREFIX)decod
er/asm_dec_offsets.c.S |
| 297 else |
| 298 ifeq ($(filter rvct,$(TGT_CC)), $(TGT_CC)) |
| 262 asm_com_offsets.asm: obj_int_extract | 299 asm_com_offsets.asm: obj_int_extract |
| 263 asm_com_offsets.asm: $(VP8_PREFIX)common/asm_com_offsets.c.o | 300 asm_com_offsets.asm: $(VP8_PREFIX)common/asm_com_offsets.c.o |
| 264 ./obj_int_extract rvds $< $(ADS2GAS) > $@ | 301 ./obj_int_extract rvds $< $(ADS2GAS) > $@ |
| 265 OBJS-yes += $(VP8_PREFIX)common/asm_com_offsets.c.o | 302 OBJS-yes += $(VP8_PREFIX)common/asm_com_offsets.c.o |
| 266 CLEAN-OBJS += asm_com_offsets.asm | 303 CLEAN-OBJS += asm_com_offsets.asm |
| 267 $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_com_offsets.asm | 304 $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_com_offsets.asm |
| 268 endif | |
| 269 | 305 |
| 270 ifeq ($(ARCH_ARM)$(ARCH_X86)$(ARCH_X86_64), yes) | 306 asm_enc_offsets.asm: obj_int_extract |
| 271 ifeq ($(CONFIG_VP8_ENCODER), yes) | 307 asm_enc_offsets.asm: $(VP8_PREFIX)encoder/asm_enc_offsets.c.o |
| 272 asm_enc_offsets.asm: obj_int_extract | |
| 273 asm_enc_offsets.asm: $(VP8_PREFIX)encoder/asm_enc_offsets.c.o | |
| 274 ./obj_int_extract rvds $< $(ADS2GAS) > $@ | 308 ./obj_int_extract rvds $< $(ADS2GAS) > $@ |
| 275 OBJS-yes += $(VP8_PREFIX)encoder/asm_enc_offsets.c.o | 309 OBJS-yes += $(VP8_PREFIX)encoder/asm_enc_offsets.c.o |
| 276 CLEAN-OBJS += asm_enc_offsets.asm | 310 CLEAN-OBJS += asm_enc_offsets.asm |
| 277 $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_enc_offsets.asm | 311 $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_enc_offsets.asm |
| 278 endif | |
| 279 endif | |
| 280 | 312 |
| 281 ifeq ($(ARCH_ARM), yes) | 313 asm_dec_offsets.asm: obj_int_extract |
| 282 ifeq ($(CONFIG_VP8_DECODER), yes) | 314 asm_dec_offsets.asm: $(VP8_PREFIX)decoder/asm_dec_offsets.c.o |
| 283 asm_dec_offsets.asm: obj_int_extract | |
| 284 asm_dec_offsets.asm: $(VP8_PREFIX)decoder/asm_dec_offsets.c.o | |
| 285 ./obj_int_extract rvds $< $(ADS2GAS) > $@ | 315 ./obj_int_extract rvds $< $(ADS2GAS) > $@ |
| 286 OBJS-yes += $(VP8_PREFIX)decoder/asm_dec_offsets.c.o | 316 OBJS-yes += $(VP8_PREFIX)decoder/asm_dec_offsets.c.o |
| 287 CLEAN-OBJS += asm_dec_offsets.asm | 317 CLEAN-OBJS += asm_dec_offsets.asm |
| 288 $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_dec_offsets.asm | 318 $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_dec_offsets.asm |
| 289 endif | |
| 290 endif | 319 endif |
| 291 endif | 320 endif |
| 292 | 321 |
| 293 $(shell $(SRC_PATH_BARE)/build/make/version.sh "$(SRC_PATH_BARE)" $(BUILD_PFX)vp
x_version.h) | 322 $(shell $(SRC_PATH_BARE)/build/make/version.sh "$(SRC_PATH_BARE)" $(BUILD_PFX)vp
x_version.h) |
| 294 CLEAN-OBJS += $(BUILD_PFX)vpx_version.h | 323 CLEAN-OBJS += $(BUILD_PFX)vpx_version.h |
| 295 | 324 |
| 296 CODEC_DOC_SRCS += vpx/vpx_codec.h \ | 325 CODEC_DOC_SRCS += vpx/vpx_codec.h \ |
| 297 vpx/vpx_decoder.h \ | 326 vpx/vpx_decoder.h \ |
| 298 vpx/vpx_encoder.h \ | 327 vpx/vpx_encoder.h \ |
| 299 vpx/vpx_image.h | 328 vpx/vpx_image.h |
| 300 | 329 |
| 301 CLEAN-OBJS += libs.doxy | 330 CLEAN-OBJS += libs.doxy |
| 302 DOCS-yes += libs.doxy | 331 DOCS-yes += libs.doxy |
| 303 libs.doxy: $(CODEC_DOC_SRCS) | 332 libs.doxy: $(CODEC_DOC_SRCS) |
| 304 @echo " [CREATE] $@" | 333 @echo " [CREATE] $@" |
| 305 @rm -f $@ | 334 @rm -f $@ |
| 306 @echo "INPUT += $^" >> $@ | 335 @echo "INPUT += $^" >> $@ |
| 307 @echo "PREDEFINED = VPX_CODEC_DISABLE_COMPAT" >> $@ | 336 @echo "PREDEFINED = VPX_CODEC_DISABLE_COMPAT" >> $@ |
| 308 @echo "INCLUDE_PATH += ." >> $@; | 337 @echo "INCLUDE_PATH += ." >> $@; |
| 309 @echo "ENABLED_SECTIONS += $(sort $(CODEC_DOC_SECTIONS))" >> $@ | 338 @echo "ENABLED_SECTIONS += $(sort $(CODEC_DOC_SECTIONS))" >> $@ |
| OLD | NEW |