mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
95 lines
2.1 KiB
Makefile
95 lines
2.1 KiB
Makefile
DEPTH=../../..
|
|
topsrcdir=@top_srcdir@
|
|
srcdir=@srcdir@
|
|
VPATH=@srcdir@
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
MODULE = browsercomps
|
|
LIBRARY_NAME = browsercomps
|
|
SHORT_LIBNAME = brwsrcmp
|
|
IS_COMPONENT = 1
|
|
MODULE_NAME = nsBrowserCompsModule
|
|
FORCE_SHARED_LIB = 1
|
|
|
|
# Because we are an application component, link against the CRT statically
|
|
# (on Windows)
|
|
USE_STATIC_LIBS = 1
|
|
|
|
REQUIRES = \
|
|
docshell \
|
|
xpcom \
|
|
string \
|
|
pref \
|
|
rdf \
|
|
uriloader \
|
|
webbrowserpersist \
|
|
intl \
|
|
necko \
|
|
nkcache \
|
|
txmgr \
|
|
chardet \
|
|
migration \
|
|
shellservice \
|
|
xulapp \
|
|
places \
|
|
browserplaces \
|
|
microsummaries \
|
|
$(NULL)
|
|
|
|
EXPORTS = nsBrowserCompsCID.h
|
|
|
|
CPPSRCS = nsModule.cpp \
|
|
$(NULL)
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
DEFINES += -DPSTOREC_DLL=\"$(subst \,\\,$(WINDIR))\\system32\\pstorec.dll\"
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32)
|
|
endif
|
|
|
|
LOCAL_INCLUDES = \
|
|
-I$(srcdir)/../migration/src \
|
|
-I$(srcdir)/../shell/src \
|
|
-I$(srcdir)/../feeds/src \
|
|
-I$(srcdir)/../places/src \
|
|
$(NULL)
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
OS_LIBS += $(call EXPAND_LIBNAME,version)
|
|
endif
|
|
|
|
SHARED_LIBRARY_LIBS = \
|
|
../migration/src/$(LIB_PREFIX)migration_s.$(LIB_SUFFIX) \
|
|
../feeds/src/$(LIB_PREFIX)browser_feeds_s.$(LIB_SUFFIX) \
|
|
../places/src/$(LIB_PREFIX)browserplaces_s.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
|
|
ifneq (,$(filter windows mac cocoa gtk2, $(MOZ_WIDGET_TOOLKIT)))
|
|
SHARED_LIBRARY_LIBS += ../shell/src/$(LIB_PREFIX)shellservice_s.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifdef MOZ_SAFE_BROWSING
|
|
REQUIRES += safebrowsing
|
|
LOCAL_INCLUDES += -I$(srcdir)/../safebrowsing/src
|
|
SHARED_LIBRARY_LIBS += ../safebrowsing/src/$(LIB_PREFIX)safebrowsing_s.$(LIB_SUFFIX)
|
|
endif
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
$(call EXPAND_LIBNAME_PATH,unicharutil_external_s,$(LIBXUL_DIST)/lib) \
|
|
$(LIBXUL_DIST)/lib/$(LIB_PREFIX)mozreg_s.$(LIB_SUFFIX) \
|
|
$(LIBXUL_DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
|
|
$(MOZ_COMPONENT_LIBS) \
|
|
$(NULL)
|
|
|
|
# Mac: Need to link with CoreFoundation for Mac Migrators (PList reading code)
|
|
# GTK2: Need to link with glib for GNOME shell service
|
|
ifneq (,$(filter mac cocoa gtk2,$(MOZ_WIDGET_TOOLKIT)))
|
|
EXTRA_DSO_LDOPTS += \
|
|
$(TK_LIBS) \
|
|
$(NULL)
|
|
endif
|
|
|
|
include $(topsrcdir)/config/rules.mk
|