mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
91af4c88d7
--HG-- rename : config/Preprocessor.py => python/mozbuild/mozbuild/preprocessor.py rename : config/tests/unit-Expression.py => python/mozbuild/mozbuild/test/test_expression.py rename : config/tests/unit-LineEndings.py => python/mozbuild/mozbuild/test/test_line_endings.py rename : config/tests/unit-Preprocessor.py => python/mozbuild/mozbuild/test/test_preprocessor.py
128 lines
2.8 KiB
Makefile
128 lines
2.8 KiB
Makefile
#
|
|
# 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/.
|
|
|
|
EXPORT_LIBRARY = $(DIST)/lib
|
|
ifeq (WINNT,$(OS_TARGET))
|
|
FORCE_SHARED_LIB = 1
|
|
endif
|
|
|
|
SHARED_LIBRARY_LIBS = \
|
|
$(MOZ_OTS_LIBS) \
|
|
$(QCMS_LIBS) \
|
|
$(MOZ_GRAPHITE_LIBS) \
|
|
$(MOZ_HARFBUZZ_LIBS) \
|
|
$(NULL)
|
|
|
|
ifdef MOZ_TREE_CAIRO
|
|
SHARED_LIBRARY_LIBS += $(MOZ_CAIRO_LIBS)
|
|
endif
|
|
|
|
ifdef MOZ_TREE_PIXMAN
|
|
SHARED_LIBRARY_LIBS += $(MOZ_PIXMAN_LIBS)
|
|
endif
|
|
|
|
ifdef MOZ_VORBIS
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/media/libvorbis/$(LIB_PREFIX)vorbis.$(LIB_SUFFIX) \
|
|
$(DEPTH)/media/libogg/$(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/$(LIB_PREFIX)ogg.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifdef MOZ_OGG
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/media/libtheora/lib/$(LIB_PREFIX)theora.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifdef MOZ_OPUS
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/media/libopus/$(LIB_PREFIX)opus.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifdef MOZ_WEBM
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/media/libnestegg/src/$(LIB_PREFIX)nestegg.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifdef MOZ_VP8
|
|
ifndef MOZ_NATIVE_LIBVPX
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/media/libvpx/$(LIB_PREFIX)vpx.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
endif
|
|
|
|
ifdef MOZ_SPEEX_RESAMPLER
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/media/libspeex_resampler/src/$(LIB_PREFIX)speex_resampler.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifdef MOZ_SOUNDTOUCH
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/media/libsoundtouch/src/$(LIB_PREFIX)soundtouch.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifdef MOZ_CUBEB
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/media/libcubeb/src/$(LIB_PREFIX)cubeb.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifndef MOZ_NATIVE_PNG
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/media/libpng/$(LIB_PREFIX)mozpng.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifndef MOZ_NATIVE_JPEG
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/media/libjpeg/$(LIB_PREFIX)mozjpeg.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/gfx/angle/$(LIB_PREFIX)angle.$(LIB_SUFFIX) \
|
|
$(DEPTH)/parser/expat/lib/$(LIB_PREFIX)mozexpat_s.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DEPTH)/gfx/2d/$(LIB_PREFIX)gfx2d.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
|
|
ifdef MOZ_ENABLE_SKIA
|
|
SHARED_LIBRARY_LIBS += $(MOZ_SKIA_LIBS)
|
|
endif
|
|
|
|
ifeq (WINNT,$(OS_TARGET))
|
|
EXTRA_DSO_LDOPTS = $(MOZALLOC_LIB) $(NSPR_LIBS)
|
|
OS_LIBS += $(call EXPAND_LIBNAME,usp10 ole32)
|
|
DEFFILE = symbols.def
|
|
endif
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
ifeq (WINNT,$(OS_TARGET))
|
|
symbols.def: symbols.def.in $(GLOBAL_DEPS)
|
|
$(call py_action,preprocessor,$(ACDEFINES) $< -o $@)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME, msimg32)
|
|
|
|
ifdef MOZ_CUBEB
|
|
OS_LIBS += $(call EXPAND_LIBNAME, winmm)
|
|
endif
|
|
|
|
endif
|