2011-12-14 21:40:20 -08:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2011-12-14 21:40:20 -08:00
|
|
|
|
|
|
|
EXPORT_LIBRARY = $(DIST)/lib
|
|
|
|
ifeq (WINNT,$(OS_TARGET))
|
|
|
|
FORCE_SHARED_LIB = 1
|
|
|
|
endif
|
|
|
|
|
2012-05-08 00:46:46 -07:00
|
|
|
SHARED_LIBRARY_LIBS = \
|
|
|
|
$(MOZ_OTS_LIBS) \
|
|
|
|
$(QCMS_LIBS) \
|
2013-02-22 08:52:20 -08:00
|
|
|
$(MOZ_GRAPHITE_LIBS) \
|
2012-05-08 00:46:46 -07:00
|
|
|
$(MOZ_HARFBUZZ_LIBS) \
|
|
|
|
$(NULL)
|
2011-12-14 21:40:20 -08:00
|
|
|
|
2012-05-25 23:44:00 -07:00
|
|
|
ifdef MOZ_TREE_CAIRO
|
|
|
|
SHARED_LIBRARY_LIBS += $(MOZ_CAIRO_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_TREE_PIXMAN
|
|
|
|
SHARED_LIBRARY_LIBS += $(MOZ_PIXMAN_LIBS)
|
|
|
|
endif
|
|
|
|
|
2011-12-14 21:40:20 -08:00
|
|
|
ifdef MOZ_VORBIS
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libvorbis/lib/$(LIB_PREFIX)vorbis.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/media/libogg/src/$(LIB_PREFIX)ogg.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_TREMOR
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libtremor/lib/$(LIB_PREFIX)tremor.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/media/libogg/src/$(LIB_PREFIX)ogg.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_OGG
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libtheora/lib/$(LIB_PREFIX)theora.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-04-30 16:20:22 -07:00
|
|
|
ifdef MOZ_OPUS
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libopus/$(LIB_PREFIX)opus.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2011-12-14 21:40:20 -08:00
|
|
|
ifdef MOZ_WEBM
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libnestegg/src/$(LIB_PREFIX)nestegg.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
2012-06-20 04:27:43 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_VP8
|
2011-12-14 21:40:20 -08:00
|
|
|
ifndef MOZ_NATIVE_LIBVPX
|
2012-06-20 04:27:43 -07:00
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libvpx/$(LIB_PREFIX)vpx.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
2011-12-14 21:40:20 -08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-05-14 16:01:04 -07:00
|
|
|
ifdef MOZ_SPEEX_RESAMPLER
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libspeex_resampler/src/$(LIB_PREFIX)speex_resampler.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-11-30 05:17:54 -08:00
|
|
|
ifdef MOZ_SOUNDTOUCH
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libsoundtouch/src/$(LIB_PREFIX)soundtouch.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-01-12 17:38:39 -08:00
|
|
|
ifdef MOZ_CUBEB
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libcubeb/src/$(LIB_PREFIX)cubeb.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-05-02 08:02:15 -07:00
|
|
|
ifndef MOZ_NATIVE_PNG
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libpng/$(LIB_PREFIX)mozpng.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-05-02 06:28:52 -07:00
|
|
|
ifndef MOZ_NATIVE_JPEG
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libjpeg/$(LIB_PREFIX)mozjpeg.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2011-12-14 21:40:23 -08:00
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/gfx/angle/$(LIB_PREFIX)angle.$(LIB_SUFFIX) \
|
2012-05-02 11:10:53 -07:00
|
|
|
$(DEPTH)/parser/expat/lib/$(LIB_PREFIX)mozexpat_s.$(LIB_SUFFIX) \
|
2011-12-14 21:40:23 -08:00
|
|
|
$(NULL)
|
|
|
|
|
2012-05-03 12:21:52 -07:00
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/gfx/2d/$(LIB_PREFIX)gfx2d.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
2012-06-20 04:27:43 -07:00
|
|
|
|
2012-10-04 09:09:35 -07:00
|
|
|
ifdef MOZ_ENABLE_SKIA
|
|
|
|
SHARED_LIBRARY_LIBS += $(MOZ_SKIA_LIBS)
|
|
|
|
endif
|
|
|
|
|
2012-06-20 04:27:43 -07:00
|
|
|
ifdef MOZ_WEBRTC
|
2012-10-04 09:09:35 -07:00
|
|
|
ifndef MOZ_WEBRTC_IN_LIBXUL
|
|
|
|
DEFINES += -DMOZ_WEBRTC_GKMEDIA=1
|
2012-06-20 04:27:43 -07:00
|
|
|
include $(topsrcdir)/media/webrtc/shared_libs.mk
|
2012-10-04 09:09:35 -07:00
|
|
|
SHARED_LIBRARY_LIBS += $(WEBRTC_LIBS)
|
2012-06-20 04:27:43 -07:00
|
|
|
endif
|
2012-05-02 22:15:20 -07:00
|
|
|
endif
|
2012-05-03 12:21:52 -07:00
|
|
|
|
2012-01-20 00:50:34 -08:00
|
|
|
ifeq (WINNT,$(OS_TARGET))
|
2011-12-14 21:40:23 -08:00
|
|
|
EXTRA_DSO_LDOPTS = $(MOZALLOC_LIB) $(NSPR_LIBS)
|
2012-06-13 21:27:53 -07:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,usp10 ole32)
|
2011-12-14 21:40:23 -08:00
|
|
|
|
2012-06-20 04:27:43 -07:00
|
|
|
ifdef MOZ_WEBRTC
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
-LIBPATH:"$(MOZ_DIRECTX_SDK_PATH)/lib/$(MOZ_DIRECTX_SDK_CPU_SUFFIX)" \
|
|
|
|
$(NULL)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,secur32 crypt32 iphlpapi strmiids dmoguids wmcodecdspuuid amstrmid msdmo wininet)
|
2012-08-06 20:08:04 -07:00
|
|
|
ifdef _MSC_VER
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,delayimp)
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
-DELAYLOAD:msdmo.dll \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2012-06-20 04:27:43 -07:00
|
|
|
endif
|
2011-12-16 02:21:56 -08:00
|
|
|
DEFFILE = symbols.def
|
2012-01-20 00:50:34 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2011-12-16 02:21:56 -08:00
|
|
|
|
2012-01-20 00:50:34 -08:00
|
|
|
ifeq (WINNT,$(OS_TARGET))
|
2013-02-28 17:13:30 -08:00
|
|
|
symbols.def: symbols.def.in $(GLOBAL_DEPS)
|
2011-12-16 02:21:56 -08:00
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(ACDEFINES) $< > $@
|
2012-03-31 00:24:39 -07:00
|
|
|
|
2012-05-02 13:32:16 -07:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME, msimg32)
|
|
|
|
|
2012-03-31 00:24:39 -07:00
|
|
|
ifdef MOZ_CUBEB
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME, winmm)
|
|
|
|
endif
|
|
|
|
|
2011-12-14 21:40:20 -08:00
|
|
|
endif
|