mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
116 lines
3.0 KiB
Makefile
116 lines
3.0 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 = ../..
|
|
topsrcdir = @top_srcdir@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
MODULE = necko
|
|
LIBRARY_NAME = necko
|
|
EXPORT_LIBRARY = 1
|
|
IS_COMPONENT = 1
|
|
MODULE_NAME = necko
|
|
GRE_MODULE = 1
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
CPPSRCS = nsNetModule.cpp
|
|
EXPORTS = nsNetCID.h
|
|
|
|
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)
|
|
|
|
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
|
|
|
|
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 \
|
|
$(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
|