mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
132 lines
3.3 KiB
Makefile
132 lines
3.3 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/.
|
|
|
|
DEPTH = @DEPTH@
|
|
topsrcdir = @top_srcdir@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
LIBRARY_NAME = necko
|
|
EXPORT_LIBRARY = 1
|
|
IS_COMPONENT = 1
|
|
MODULE_NAME = necko
|
|
LIBXUL_LIBRARY = 1
|
|
FAIL_ON_WARNINGS := 1
|
|
|
|
CPPSRCS = nsNetModule.cpp
|
|
SHARED_LIBRARY_LIBS = \
|
|
../base/src/$(LIB_PREFIX)neckobase_s.$(LIB_SUFFIX) \
|
|
../dns/$(LIB_PREFIX)neckodns_s.$(LIB_SUFFIX) \
|
|
../socket/$(LIB_PREFIX)neckosocket_s.$(LIB_SUFFIX) \
|
|
../streamconv/src/$(LIB_PREFIX)nkconv_s.$(LIB_SUFFIX) \
|
|
../streamconv/converters/$(LIB_PREFIX)nkcnvts_s.$(LIB_SUFFIX) \
|
|
../mime/$(LIB_PREFIX)nkmime_s.$(LIB_SUFFIX) \
|
|
../cache/$(LIB_PREFIX)nkcache_s.$(LIB_SUFFIX) \
|
|
../protocol/about/$(LIB_PREFIX)nkabout_s.$(LIB_SUFFIX) \
|
|
$(foreach d,$(filter-out about,$(NECKO_PROTOCOLS)), \
|
|
../protocol/$(d)/$(LIB_PREFIX)nk$(d)_s.$(LIB_SUFFIX)) \
|
|
../ipc/$(LIB_PREFIX)neckoipc_s.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
|
|
ifdef MOZ_SRTP
|
|
SHARED_LIBRARY_LIBS += \
|
|
../srtp/src/$(LIB_PREFIX)nksrtp_s.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifdef MOZ_SCTP
|
|
SHARED_LIBRARY_LIBS += \
|
|
../sctp/src/$(LIB_PREFIX)nksctp_s.$(LIB_SUFFIX) \
|
|
../sctp/datachannel/$(LIB_PREFIX)nkdatachan_s.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
SHARED_LIBRARY_LIBS += \
|
|
../system/win32/$(LIB_PREFIX)neckosystem_s.$(LIB_SUFFIX)
|
|
endif
|
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
SHARED_LIBRARY_LIBS += \
|
|
../system/mac/$(LIB_PREFIX)neckosystem_s.$(LIB_SUFFIX)
|
|
endif
|
|
|
|
ifdef MOZ_ENABLE_LIBCONIC
|
|
SHARED_LIBRARY_LIBS += \
|
|
../system/maemo/$(LIB_PREFIX)neckosystem_s.$(LIB_SUFFIX)
|
|
endif
|
|
|
|
ifdef MOZ_ENABLE_QTNETWORK
|
|
SHARED_LIBRARY_LIBS += \
|
|
../system/qt/$(LIB_PREFIX)neckosystem_s.$(LIB_SUFFIX)
|
|
endif
|
|
|
|
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
|
|
SHARED_LIBRARY_LIBS += \
|
|
../system/android/$(LIB_PREFIX)neckosystem_s.$(LIB_SUFFIX)
|
|
endif
|
|
|
|
ifdef MOZ_DASH
|
|
SHARED_LIBRARY_LIBS += \
|
|
../dash/mpd/$(LIB_PREFIX)nkdashmpd_s.$(LIB_SUFFIX)
|
|
endif
|
|
|
|
LOCAL_INCLUDES = \
|
|
-I$(srcdir)/../base/src \
|
|
-I$(srcdir)/../dns \
|
|
-I$(srcdir)/../socket \
|
|
-I$(srcdir)/../streamconv/src \
|
|
-I$(srcdir)/../streamconv/converters \
|
|
-I$(srcdir)/../mime \
|
|
-I$(srcdir)/../cache \
|
|
-I$(srcdir)/../protocol/about \
|
|
-I../dns \
|
|
$(foreach d,$(filter-out about,$(NECKO_PROTOCOLS)), \
|
|
-I$(srcdir)/../protocol/$(d)) \
|
|
$(NULL)
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
LOCAL_INCLUDES += -I$(srcdir)/../system/win32
|
|
endif
|
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
LOCAL_INCLUDES += -I$(srcdir)/../system/mac
|
|
endif
|
|
|
|
ifdef MOZ_ENABLE_LIBCONIC
|
|
LOCAL_INCLUDES += -I$(srcdir)/../system/maemo
|
|
endif
|
|
|
|
ifdef MOZ_ENABLE_QTNETWORK
|
|
LOCAL_INCLUDES += -I$(srcdir)/../system/qt
|
|
endif
|
|
|
|
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
|
|
LOCAL_INCLUDES += -I$(srcdir)/../system/android
|
|
endif
|
|
|
|
ifdef NECKO_COOKIES
|
|
SHARED_LIBRARY_LIBS += \
|
|
../cookie/$(LIB_PREFIX)neckocookie_s.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
LOCAL_INCLUDES += -I$(srcdir)/../cookie
|
|
endif
|
|
|
|
ifdef NECKO_WIFI
|
|
SHARED_LIBRARY_LIBS += \
|
|
../wifi/$(LIB_PREFIX)neckowifi_s.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
LOCAL_INCLUDES += -I$(srcdir)/../wifi
|
|
|
|
endif
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
DEFINES += -DIMPL_NS_NET
|