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