2012-05-21 11:12:37 +00:00
|
|
|
# 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/.
|
2009-06-29 18:31:58 +00:00
|
|
|
|
2009-06-30 16:02:37 +00:00
|
|
|
OS_CXXFLAGS := $(filter-out -fshort-wchar,$(OS_CXXFLAGS))
|
|
|
|
|
2009-06-29 18:31:58 +00:00
|
|
|
ACDEFINES =
|
|
|
|
|
2010-04-20 07:06:55 +00:00
|
|
|
ifndef MOZ_NATIVE_LIBEVENT # {
|
2009-06-29 18:31:58 +00:00
|
|
|
vpath %.c \
|
|
|
|
$(srcdir)/src/third_party/libevent \
|
|
|
|
$(NULL)
|
2010-04-20 07:06:55 +00:00
|
|
|
else # } else {
|
|
|
|
# message_pump_libevent.cc includes third_party/libevent/event.h,
|
|
|
|
# which we put in $(DIST), see export rule below
|
|
|
|
LOCAL_INCLUDES += -I$(DIST)
|
|
|
|
endif # }
|
2009-06-29 18:31:58 +00:00
|
|
|
|
|
|
|
vpath %.cc \
|
|
|
|
$(srcdir)/src/base \
|
|
|
|
$(srcdir)/src/chrome/common \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
vpath %.mm \
|
|
|
|
$(srcdir)/src/base \
|
|
|
|
$(srcdir)/src/chrome/common \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# libevent
|
|
|
|
|
2010-04-20 07:06:55 +00:00
|
|
|
ifndef MOZ_NATIVE_LIBEVENT # {
|
|
|
|
|
2013-07-04 12:28:43 +00:00
|
|
|
ifneq ($(OS_ARCH),WINNT) # (if OS_POSIX) {
|
2009-06-29 18:31:58 +00:00
|
|
|
|
2009-06-30 16:02:37 +00:00
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/src/third_party/libevent
|
2013-03-29 14:34:53 +00:00
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/src/third_party/libevent/include
|
2009-06-29 18:31:58 +00:00
|
|
|
|
2013-07-04 12:28:43 +00:00
|
|
|
ifeq ($(OS_ARCH),Darwin) # (OS_MACOSX) {
|
2009-06-30 16:02:37 +00:00
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/src/third_party/libevent/mac
|
2009-06-29 18:31:58 +00:00
|
|
|
|
2013-07-04 12:28:43 +00:00
|
|
|
else # } else {
|
|
|
|
|
|
|
|
ifneq (,$(filter-out DragonFly FreeBSD NetBSD OpenBSD,$(OS_ARCH))) # (OS_LINUX) {
|
2013-03-29 14:34:53 +00:00
|
|
|
ifeq ($(OS_TARGET),Android) # {
|
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/src/third_party/libevent/android
|
|
|
|
else # } else {
|
2009-06-30 16:02:37 +00:00
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/src/third_party/libevent/linux
|
2013-03-29 14:34:53 +00:00
|
|
|
endif # }
|
2009-06-29 18:31:58 +00:00
|
|
|
|
2013-07-04 12:28:43 +00:00
|
|
|
else # } else (OS_BSD) {
|
|
|
|
|
2013-04-23 08:58:11 +00:00
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/src/third_party/libevent/bsd
|
2013-07-04 12:28:43 +00:00
|
|
|
|
|
|
|
endif # }
|
|
|
|
|
2013-04-23 08:58:11 +00:00
|
|
|
endif # }
|
|
|
|
|
2009-06-29 18:31:58 +00:00
|
|
|
endif # }
|
|
|
|
|
2010-04-20 07:06:55 +00:00
|
|
|
endif # }
|
|
|
|
|
2010-05-13 15:52:59 +00:00
|
|
|
OS_CXXFLAGS += $(TK_CFLAGS)
|
|
|
|
|
2009-06-29 18:31:58 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2010-04-20 07:06:55 +00:00
|
|
|
|
|
|
|
ifdef MOZ_NATIVE_LIBEVENT # {
|
2012-05-03 10:22:33 +00:00
|
|
|
|
2013-03-11 03:03:28 +00:00
|
|
|
export-preqs = \
|
|
|
|
$(call mkdir_deps,$(DIST)/third_party/libevent) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
export:: $(export-preqs)
|
2013-12-02 21:34:21 +00:00
|
|
|
echo '#include <event.h>' > $(DIST)/third_party/libevent/event.h
|
2012-05-03 10:22:33 +00:00
|
|
|
|
2010-04-20 07:06:55 +00:00
|
|
|
endif # }
|