2012-05-21 04:12:37 -07: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-07-13 09:14:56 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2009-07-13 09:14:56 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
2009-11-24 07:34:38 -08:00
|
|
|
|
|
|
|
GARBAGE_DIRS += _ipdlheaders
|
2010-04-29 00:21:14 -07:00
|
|
|
GARBAGE += ipdl_lextab.py ipdl_yacctab.py $(wildcard *.pyc $(srcdir)/ipdl/*.pyc $(srcdir)/ipdl/cxx/*.pyc)
|
2009-11-24 07:34:38 -08:00
|
|
|
|
2009-12-03 00:16:09 -08:00
|
|
|
LIBRARY_NAME = mozipdlgen_s
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
2009-07-13 09:14:56 -07:00
|
|
|
|
2009-12-03 00:16:09 -08:00
|
|
|
##-----------------------------------------------------------------------------
|
|
|
|
## When you add IPDL files to a source directory, list the directory here.
|
|
|
|
##
|
2009-10-06 11:02:26 -07:00
|
|
|
IPDLDIRS = \
|
2010-08-17 20:19:24 -07:00
|
|
|
uriloader/exthandler \
|
2012-06-19 16:14:39 -07:00
|
|
|
dom/devicestorage \
|
2012-06-01 10:21:12 -07:00
|
|
|
dom/indexedDB/ipc \
|
2012-07-17 20:41:54 -07:00
|
|
|
dom/bluetooth/ipc \
|
2011-04-12 16:26:11 -07:00
|
|
|
dom/plugins/ipc \
|
2012-07-17 20:41:54 -07:00
|
|
|
dom/ipc \
|
2013-03-01 00:38:47 -08:00
|
|
|
dom/mobilemessage/src/ipc \
|
2010-11-18 17:15:23 -08:00
|
|
|
dom/src/storage \
|
2012-09-24 11:53:49 -07:00
|
|
|
dom/network/src \
|
2010-07-21 14:17:33 -07:00
|
|
|
gfx/layers/ipc \
|
2011-10-05 15:15:45 -07:00
|
|
|
hal/sandbox \
|
2012-08-15 21:02:32 -07:00
|
|
|
ipc/glue \
|
2009-10-06 11:02:26 -07:00
|
|
|
ipc/testshell \
|
2010-05-11 10:44:42 -07:00
|
|
|
js/ipc \
|
2010-08-20 16:24:41 -07:00
|
|
|
layout/ipc \
|
2010-07-21 14:17:33 -07:00
|
|
|
netwerk/ipc \
|
2010-10-21 12:05:08 -07:00
|
|
|
netwerk/protocol/ftp \
|
2010-07-21 14:17:33 -07:00
|
|
|
netwerk/protocol/http \
|
2010-10-11 04:35:10 -07:00
|
|
|
netwerk/protocol/wyciwyg \
|
2011-05-04 06:36:23 -07:00
|
|
|
netwerk/protocol/websocket \
|
2010-07-21 14:17:33 -07:00
|
|
|
netwerk/cookie \
|
2010-10-20 10:12:32 -07:00
|
|
|
uriloader/prefetch \
|
2009-07-13 09:14:56 -07:00
|
|
|
$(NULL)
|
2011-03-02 10:29:31 -08:00
|
|
|
|
|
|
|
ifdef MOZ_IPDL_TESTS #{
|
|
|
|
IPDLDIRS += ipc/ipdl/test/cxx
|
|
|
|
endif #}
|
2009-12-03 00:16:09 -08:00
|
|
|
##-----------------------------------------------------------------------------
|
|
|
|
|
2009-07-13 09:14:56 -07:00
|
|
|
vpath %.ipdl $(topsrcdir)
|
2012-06-10 16:44:50 -07:00
|
|
|
vpath %.ipdlh $(topsrcdir)
|
2009-07-13 09:14:56 -07:00
|
|
|
|
|
|
|
define ADD_IPDLDIR
|
|
|
|
include $(topsrcdir)/$(IPDLDIR)/ipdl.mk
|
|
|
|
ALL_IPDLSRCS += $$(IPDLSRCS:%=$(IPDLDIR)/%)
|
2009-12-03 00:16:09 -08:00
|
|
|
PROTOCOLS += $$(IPDLSRCS)
|
2009-07-13 09:14:56 -07:00
|
|
|
endef
|
|
|
|
|
|
|
|
ALL_IPDLSRCS :=
|
2009-12-03 00:16:09 -08:00
|
|
|
PROTOCOLS :=
|
2009-07-13 09:14:56 -07:00
|
|
|
|
|
|
|
$(foreach IPDLDIR,$(IPDLDIRS),$(eval $(ADD_IPDLDIR)))
|
|
|
|
|
2009-12-03 00:16:09 -08:00
|
|
|
|
|
|
|
CPPSRCS = \
|
|
|
|
$(PROTOCOLS:%.ipdl=%Parent.cpp) \
|
|
|
|
$(PROTOCOLS:%.ipdl=%Child.cpp) \
|
2011-06-03 11:33:55 -07:00
|
|
|
$(PROTOCOLS:%.ipdl=%.cpp) \
|
2012-06-10 16:44:50 -07:00
|
|
|
$(PROTOCOLS:%.ipdlh=%.cpp) \
|
2009-12-03 00:16:09 -08:00
|
|
|
$(NULL)
|
|
|
|
|
2010-04-29 00:21:14 -07:00
|
|
|
GARBAGE += $(CPPSRCS)
|
|
|
|
|
2009-12-03 00:16:09 -08:00
|
|
|
LOCAL_INCLUDES += -I$(DEPTH)/ipc/ipdl/_ipdlheaders
|
|
|
|
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
|
|
|
|
# NB: the IPDL compiler manages .ipdl-->.h/.cpp dependencies itself,
|
|
|
|
# which is why we don't have explicit .h/.cpp targets here
|
2011-12-18 11:08:21 -08:00
|
|
|
export:: $(ALL_IPDLSRCS)
|
2012-04-09 17:41:22 -07:00
|
|
|
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
2012-04-06 11:06:52 -07:00
|
|
|
$(PLY_INCLUDE) \
|
|
|
|
$(srcdir)/ipdl.py \
|
|
|
|
--outheaders-dir=_ipdlheaders \
|
|
|
|
--outcpp-dir=. \
|
|
|
|
$(IPDLDIRS:%=-I$(topsrcdir)/%) \
|
2009-07-13 09:14:56 -07:00
|
|
|
$^
|
2010-01-27 21:22:41 -08:00
|
|
|
|
|
|
|
# We #include some things in the dom/plugins/ directory that rely on
|
|
|
|
# toolkit libraries.
|
|
|
|
CXXFLAGS += $(TK_CFLAGS)
|