diff options
author | James Zern <jzern@google.com> | 2014-03-04 19:46:29 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2014-03-04 19:52:57 -0800 |
commit | b92f7bc960881ba340e949ce808f8275ad277343 (patch) | |
tree | e592c90bcc4ea16e46779a4eecca03159770ed9b /libs.mk | |
parent | 7281c0b9086c10f1397aff9eb4b4d70e1c283369 (diff) | |
download | libvpx-b92f7bc960881ba340e949ce808f8275ad277343.tar libvpx-b92f7bc960881ba340e949ce808f8275ad277343.tar.gz libvpx-b92f7bc960881ba340e949ce808f8275ad277343.tar.bz2 libvpx-b92f7bc960881ba340e949ce808f8275ad277343.zip |
msvs: filter out include-only asm files
avoid building x86inc.asm, x86_abi_support.asm and vpx_config.asm as
they provide no symbols themselves
fixes:
warning LNK4221: This object file does not define any previously
undefined public symbols, so it will not be used by any link operation
that consumes this library
Change-Id: Iecfe03aa76efbfc07c2af5b91ba5405634e45f1d
Diffstat (limited to 'libs.mk')
-rw-r--r-- | libs.mk | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -236,6 +236,13 @@ vpx.def: $(call enabled,CODEC_EXPORTS) --out=$@ $^ CLEAN-OBJS += vpx.def +# Assembly files that are included, but don't define symbols themselves. +# Filtered out to avoid Visual Studio build warnings. +ASM_INCLUDES := \ + third_party/x86inc/x86inc.asm \ + vpx_config.asm \ + vpx_ports/x86_abi_support.asm \ + vpx.$(VCPROJ_SFX): $(CODEC_SRCS) vpx.def obj_int_extract.$(VCPROJ_SFX) @echo " [CREATE] $@" $(qexec)$(GEN_VCPROJ) \ @@ -246,7 +253,8 @@ vpx.$(VCPROJ_SFX): $(CODEC_SRCS) vpx.def obj_int_extract.$(VCPROJ_SFX) --proj-guid=DCE19DAF-69AC-46DB-B14A-39F0FAA5DB74 \ --module-def=vpx.def \ --ver=$(CONFIG_VS_VERSION) \ - --out=$@ $(CFLAGS) $^ \ + --out=$@ $(CFLAGS) \ + $(filter-out $(addprefix %, $(ASM_INCLUDES)), $^) \ --src-path-bare="$(SRC_PATH_BARE)" \ PROJECTS-$(BUILD_LIBVPX) += vpx.$(VCPROJ_SFX) |