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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 $$(BUILD_PFX)$(1).h: $$(SRC_PATH_BARE)/$(2) | 50 $$(BUILD_PFX)$(1).h: $$(SRC_PATH_BARE)/$(2) |
51 @echo " [CREATE] $$@" | 51 @echo " [CREATE] $$@" |
52 $$(qexec)$$(SRC_PATH_BARE)/build/make/rtcd.sh --arch=$$(TGT_ISA) \ | 52 $$(qexec)$$(SRC_PATH_BARE)/build/make/rtcd.sh --arch=$$(TGT_ISA) \ |
53 --sym=$(1) \ | 53 --sym=$(1) \ |
54 --config=$$(CONFIG_DIR)$$(target)$$(if $$(FAT_ARCHS),,-$$(TOOLCHAIN)).
mk \ | 54 --config=$$(CONFIG_DIR)$$(target)$$(if $$(FAT_ARCHS),,-$$(TOOLCHAIN)).
mk \ |
55 $$(RTCD_OPTIONS) $$^ > $$@ | 55 $$(RTCD_OPTIONS) $$^ > $$@ |
56 CLEAN-OBJS += $$(BUILD_PFX)$(1).h | 56 CLEAN-OBJS += $$(BUILD_PFX)$(1).h |
57 RTCD += $$(BUILD_PFX)$(1).h | 57 RTCD += $$(BUILD_PFX)$(1).h |
58 endef | 58 endef |
59 | 59 |
60 # x86inc.asm is not compatible with pic 32bit builds. Restrict | |
61 # files which use it to 64bit builds or 32bit without pic | |
62 USE_X86INC = no | |
63 ifeq ($(CONFIG_USE_X86INC),yes) | |
64 USE_X86INC = yes | |
65 endif | |
66 | |
67 CODEC_SRCS-yes += CHANGELOG | 60 CODEC_SRCS-yes += CHANGELOG |
68 CODEC_SRCS-yes += libs.mk | 61 CODEC_SRCS-yes += libs.mk |
69 | 62 |
70 # If this is a universal (fat) binary, then all the subarchitectures have | 63 # If this is a universal (fat) binary, then all the subarchitectures have |
71 # already been built and our job is to stitch them together. The | 64 # already been built and our job is to stitch them together. The |
72 # BUILD_LIBVPX variable indicates whether we should be building | 65 # BUILD_LIBVPX variable indicates whether we should be building |
73 # (compiling, linking) the library. The LIPO_LIBVPX variable indicates | 66 # (compiling, linking) the library. The LIPO_LIBVPX variable indicates |
74 # that we're stitching. | 67 # that we're stitching. |
75 $(eval $(if $(filter universal%,$(TOOLCHAIN)),LIPO_LIBVPX,BUILD_LIBVPX):=yes) | 68 $(eval $(if $(filter universal%,$(TOOLCHAIN)),LIPO_LIBVPX,BUILD_LIBVPX):=yes) |
76 | 69 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 CODEC_SRCS-$(BUILD_LIBVPX) += $(BUILD_PFX)vpx_config.c | 168 CODEC_SRCS-$(BUILD_LIBVPX) += $(BUILD_PFX)vpx_config.c |
176 INSTALL-SRCS-no += $(BUILD_PFX)vpx_config.c | 169 INSTALL-SRCS-no += $(BUILD_PFX)vpx_config.c |
177 ifeq ($(ARCH_X86)$(ARCH_X86_64),yes) | 170 ifeq ($(ARCH_X86)$(ARCH_X86_64),yes) |
178 CODEC_SRCS-$(BUILD_LIBVPX) += third_party/x86inc/x86inc.asm | 171 CODEC_SRCS-$(BUILD_LIBVPX) += third_party/x86inc/x86inc.asm |
179 endif | 172 endif |
180 CODEC_EXPORTS-$(BUILD_LIBVPX) += vpx/exports_com | 173 CODEC_EXPORTS-$(BUILD_LIBVPX) += vpx/exports_com |
181 CODEC_EXPORTS-$(CONFIG_ENCODERS) += vpx/exports_enc | 174 CODEC_EXPORTS-$(CONFIG_ENCODERS) += vpx/exports_enc |
182 CODEC_EXPORTS-$(CONFIG_DECODERS) += vpx/exports_dec | 175 CODEC_EXPORTS-$(CONFIG_DECODERS) += vpx/exports_dec |
183 | 176 |
184 INSTALL-LIBS-yes += include/vpx/vpx_codec.h | 177 INSTALL-LIBS-yes += include/vpx/vpx_codec.h |
| 178 INSTALL-LIBS-yes += include/vpx/vpx_frame_buffer.h |
185 INSTALL-LIBS-yes += include/vpx/vpx_image.h | 179 INSTALL-LIBS-yes += include/vpx/vpx_image.h |
186 INSTALL-LIBS-yes += include/vpx/vpx_integer.h | 180 INSTALL-LIBS-yes += include/vpx/vpx_integer.h |
187 INSTALL-LIBS-$(CONFIG_DECODERS) += include/vpx/vpx_decoder.h | 181 INSTALL-LIBS-$(CONFIG_DECODERS) += include/vpx/vpx_decoder.h |
188 INSTALL-LIBS-$(CONFIG_ENCODERS) += include/vpx/vpx_encoder.h | 182 INSTALL-LIBS-$(CONFIG_ENCODERS) += include/vpx/vpx_encoder.h |
189 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) | 183 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) |
190 ifeq ($(CONFIG_MSVS),yes) | 184 ifeq ($(CONFIG_MSVS),yes) |
191 INSTALL-LIBS-yes += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(
p)/$(CODEC_LIB).lib) | 185 INSTALL-LIBS-yes += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(
p)/$(CODEC_LIB).lib) |
192 INSTALL-LIBS-$(CONFIG_DEBUG_LIBS) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(
p)/$(CODEC_LIB)d.lib) | 186 INSTALL-LIBS-$(CONFIG_DEBUG_LIBS) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(
p)/$(CODEC_LIB)d.lib) |
193 INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/v
px.dll) | 187 INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/v
px.dll) |
194 INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/v
px.exp) | 188 INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/v
px.exp) |
(...skipping 12 matching lines...) Expand all Loading... |
207 # based build systems. | 201 # based build systems. |
208 libvpx_srcs.txt: | 202 libvpx_srcs.txt: |
209 @echo " [CREATE] $@" | 203 @echo " [CREATE] $@" |
210 @echo $(CODEC_SRCS) | xargs -n1 echo | sort -u > $@ | 204 @echo $(CODEC_SRCS) | xargs -n1 echo | sort -u > $@ |
211 CLEAN-OBJS += libvpx_srcs.txt | 205 CLEAN-OBJS += libvpx_srcs.txt |
212 | 206 |
213 | 207 |
214 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) | 208 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) |
215 ifeq ($(CONFIG_MSVS),yes) | 209 ifeq ($(CONFIG_MSVS),yes) |
216 | 210 |
| 211 obj_int_extract.bat: $(SRC_PATH_BARE)/build/$(MSVS_ARCH_DIR)/obj_int_extract.bat |
| 212 @cp $^ $@ |
| 213 |
| 214 obj_int_extract.$(VCPROJ_SFX): obj_int_extract.bat |
217 obj_int_extract.$(VCPROJ_SFX): $(SRC_PATH_BARE)/build/make/obj_int_extract.c | 215 obj_int_extract.$(VCPROJ_SFX): $(SRC_PATH_BARE)/build/make/obj_int_extract.c |
218 @cp $(SRC_PATH_BARE)/build/$(MSVS_ARCH_DIR)/obj_int_extract.bat . | |
219 @echo " [CREATE] $@" | 216 @echo " [CREATE] $@" |
220 $(qexec)$(GEN_VCPROJ) \ | 217 $(qexec)$(GEN_VCPROJ) \ |
221 --exe \ | 218 --exe \ |
222 --target=$(TOOLCHAIN) \ | 219 --target=$(TOOLCHAIN) \ |
223 --name=obj_int_extract \ | 220 --name=obj_int_extract \ |
224 --ver=$(CONFIG_VS_VERSION) \ | 221 --ver=$(CONFIG_VS_VERSION) \ |
225 --proj-guid=E1360C65-D375-4335-8057-7ED99CC3F9B2 \ | 222 --proj-guid=E1360C65-D375-4335-8057-7ED99CC3F9B2 \ |
226 $(if $(CONFIG_STATIC_MSVCRT),--static-crt) \ | 223 $(if $(CONFIG_STATIC_MSVCRT),--static-crt) \ |
227 --out=$@ $^ \ | 224 --out=$@ $^ \ |
228 -I. \ | 225 -I. \ |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 @echo "INPUT += $^" >> $@ | 514 @echo "INPUT += $^" >> $@ |
518 @echo "PREDEFINED = VPX_CODEC_DISABLE_COMPAT" >> $@ | 515 @echo "PREDEFINED = VPX_CODEC_DISABLE_COMPAT" >> $@ |
519 @echo "INCLUDE_PATH += ." >> $@; | 516 @echo "INCLUDE_PATH += ." >> $@; |
520 @echo "ENABLED_SECTIONS += $(sort $(CODEC_DOC_SECTIONS))" >> $@ | 517 @echo "ENABLED_SECTIONS += $(sort $(CODEC_DOC_SECTIONS))" >> $@ |
521 | 518 |
522 ## Generate rtcd.h for all objects | 519 ## Generate rtcd.h for all objects |
523 $(OBJS-yes:.o=.d): $(RTCD) | 520 $(OBJS-yes:.o=.d): $(RTCD) |
524 | 521 |
525 ## Update the global src list | 522 ## Update the global src list |
526 SRCS += $(CODEC_SRCS) $(LIBVPX_TEST_SRCS) $(GTEST_SRCS) | 523 SRCS += $(CODEC_SRCS) $(LIBVPX_TEST_SRCS) $(GTEST_SRCS) |
OLD | NEW |