| @@ -121,7 +121,7 @@ INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/v · 120 unmodified lines |
| 121 | INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/vpx.exp) | 121 | INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/vpx.exp) |
| 122 | endif | 122 | endif |
| 123 | else | 123 | else |
| 124 | INSTALL-LIBS-yes += $(LIBSUBDIR)/libvpx.a | 124 | INSTALL-LIBS-$(CONFIG_STATIC) += $(LIBSUBDIR)/libvpx.a |
| 125 | INSTALL-LIBS-$(CONFIG_DEBUG_LIBS) += $(LIBSUBDIR)/libvpx_g.a | 125 | INSTALL-LIBS-$(CONFIG_DEBUG_LIBS) += $(LIBSUBDIR)/libvpx_g.a |
| 126 | endif | 126 | endif |
| 127 | | 127 | |
| @@ -177,12 +177,13 @@ endif · 49 unmodified lines |
| 177 | else | 177 | else |
| 178 | LIBVPX_OBJS=$(call objs,$(CODEC_SRCS)) | 178 | LIBVPX_OBJS=$(call objs,$(CODEC_SRCS)) |
| 179 | OBJS-$(BUILD_LIBVPX) += $(LIBVPX_OBJS) | 179 | OBJS-$(BUILD_LIBVPX) += $(LIBVPX_OBJS) |
| 180 | LIBS-$(BUILD_LIBVPX) += $(BUILD_PFX)libvpx.a $(BUILD_PFX)libvpx_g.a | 180 | LIBS-$(CONFIG_STATIC) += $(BUILD_PFX)libvpx.a $(BUILD_PFX)libvpx_g.a |
| 181 | $(BUILD_PFX)libvpx_g.a: $(LIBVPX_OBJS) | 181 | $(BUILD_PFX)libvpx_g.a: $(LIBVPX_OBJS) |
| 182 | | 182 | |
| 183 | BUILD_LIBVPX_SO := $(if $(BUILD_LIBVPX),$(CONFIG_SHARED)) | 183 | BUILD_LIBVPX_SO := $(if $(BUILD_LIBVPX),$(CONFIG_SHARED)) |
| 184 | LIBVPX_SO := libvpx.so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH) | 184 | LIBVPX_SO := libvpx.so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH) |
| 185 | LIBS-$(BUILD_LIBVPX_SO) += $(BUILD_PFX)$(LIBVPX_SO) | 185 | LIBS-$(BUILD_LIBVPX_SO) += $(BUILD_PFX)$(LIBVPX_SO)\ |
| | 186 | $(notdir $(LIBVPX_SO_SYMLINKS)) |
| 186 | $(BUILD_PFX)$(LIBVPX_SO): $(LIBVPX_OBJS) libvpx.ver | 187 | $(BUILD_PFX)$(LIBVPX_SO): $(LIBVPX_OBJS) libvpx.ver |
| 187 | $(BUILD_PFX)$(LIBVPX_SO): extralibs += -lm | 188 | $(BUILD_PFX)$(LIBVPX_SO): extralibs += -lm |
| 188 | $(BUILD_PFX)$(LIBVPX_SO): SONAME = libvpx.so.$(VERSION_MAJOR) | 189 | $(BUILD_PFX)$(LIBVPX_SO): SONAME = libvpx.so.$(VERSION_MAJOR) |
| @@ -198,9 +199,18 @@ libvpx.ver: $(call enabled,CODEC_EXPORTS) · 9 unmodified lines |
| 198 | $(qexec)echo "local: *; };" >> $@ | 199 | $(qexec)echo "local: *; };" >> $@ |
| 199 | CLEAN-OBJS += libvpx.ver | 200 | CLEAN-OBJS += libvpx.ver |
| 200 | | 201 | |
| 201 | $(addprefix $(DIST_DIR)/,$(LIBVPX_SO_SYMLINKS)): $(DIST_DIR)/$(LIBSUBDIR)/$(LIBVPX_SO) | 202 | define libvpx_symlink_template |
| 202 | @echo " [LN] $@" | 203 | $(1): $(2) |
| 203 | $(qexec)ln -sf $(LIBVPX_SO) $@ | 204 | @echo " [LN] $$@" |
| | 205 | $(qexec)ln -sf $(LIBVPX_SO) $$@ |
| | 206 | endef |
| | 207 | |
| | 208 | $(eval $(call libvpx_symlink_template,\ |
| | 209 | $(addprefix $(BUILD_PFX),$(notdir $(LIBVPX_SO_SYMLINKS))),\ |
| | 210 | $(BUILD_PFX)$(LIBVPX_SO))) |
| | 211 | $(eval $(call libvpx_symlink_template,\ |
| | 212 | $(addprefix $(DIST_DIR)/,$(LIBVPX_SO_SYMLINKS)),\ |
| | 213 | $(DIST_DIR)/$(LIBSUBDIR)/$(LIBVPX_SO))) |
| 204 | | 214 | |
| 205 | INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBVPX_SO_SYMLINKS) | 215 | INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBVPX_SO_SYMLINKS) |
| 206 | INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBSUBDIR)/$(LIBVPX_SO) | 216 | INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBSUBDIR)/$(LIBVPX_SO) |