mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
|
# vim:set ts=8 sw=8 sts=8 noet:
|
||
|
# 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/.
|
||
|
|
||
|
DEPTH = @DEPTH@
|
||
|
topsrcdir = @top_srcdir@
|
||
|
srcdir = @srcdir@
|
||
|
VPATH = @srcdir@
|
||
|
|
||
|
include $(DEPTH)/config/autoconf.mk
|
||
|
|
||
|
LIBRARY_NAME = xpcom
|
||
|
|
||
|
# The XPCOM glue uses realpath() on libxpcom.so to resolve any symlinks. We
|
||
|
# want it to find dist/bin and not xpcom/stub so we copy instead of symlinking.
|
||
|
NSDISTMODE = copy
|
||
|
|
||
|
# Do not set EXPORT_LIBRARY as we do not want xpcom in the static libs list
|
||
|
#EXPORT_LIBRARY = 1
|
||
|
MOZILLA_INTERNAL_API = 1
|
||
|
|
||
|
|
||
|
LOCAL_INCLUDES = -I$(srcdir)/../build
|
||
|
|
||
|
CPPSRCS = nsXPComStub.cpp
|
||
|
|
||
|
# If we have an import library, then copy that to the SDK. Otherwise,
|
||
|
# copy the shared library.
|
||
|
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
|
||
|
SDK_LIBRARY = $(IMPORT_LIBRARY)
|
||
|
else
|
||
|
SDK_LIBRARY = $(SHARED_LIBRARY)
|
||
|
endif
|
||
|
|
||
|
|
||
|
FORCE_SHARED_LIB = 1
|
||
|
|
||
|
EXTRA_DSO_LDOPTS = $(LIBS_DIR)
|
||
|
|
||
|
ifeq (bundle,$(MOZ_FS_LAYOUT))
|
||
|
EXTRA_DSO_LDOPTS += $(DIST)/bin/XUL
|
||
|
else
|
||
|
EXTRA_DSO_LIBS = xul
|
||
|
endif
|
||
|
|
||
|
EXTRA_DSO_LDOPTS += \
|
||
|
$(EXTRA_DSO_LIBS) \
|
||
|
$(NSPR_LIBS) \
|
||
|
$(MOZALLOC_LIB) \
|
||
|
$(NULL)
|
||
|
|
||
|
include $(topsrcdir)/config/rules.mk
|
||
|
|
||
|
libs:: $(FINAL_TARGET)/dependentlibs.list
|
||
|
|
||
|
$(FINAL_TARGET)/dependentlibs.list: dependentlibs.py $(SHARED_LIBRARY) $(wildcard $(if $(wildcard $(FINAL_TARGET)/dependentlibs.list),$(addprefix $(FINAL_TARGET)/,$(shell cat $(FINAL_TARGET)/dependentlibs.list))))
|
||
|
$(PYTHON) $< $(SHARED_LIBRARY) -L $(FINAL_TARGET) $(if $(TOOLCHAIN_PREFIX),$(addprefix -p ,$(TOOLCHAIN_PREFIX))) > $@
|