1
# This Source Code Form is subject to the terms of the Mozilla Public
2
# License, v. 2.0. If a copy of the MPL was not distributed with this
3
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
topsrcdir = @top_srcdir@
10
include $(DEPTH)/config/autoconf.mk
12
GARBAGE_DIRS += _ipdlheaders
13
GARBAGE += ipdl_lextab.py ipdl_yacctab.py $(wildcard *.pyc $(srcdir)/ipdl/*.pyc $(srcdir)/ipdl/cxx/*.pyc)
16
LIBRARY_NAME = mozipdlgen_s
21
##-----------------------------------------------------------------------------
22
## When you add IPDL files to a source directory, list the directory here.
25
uriloader/exthandler \
40
netwerk/protocol/ftp \
41
netwerk/protocol/http \
42
netwerk/protocol/wyciwyg \
43
netwerk/protocol/websocket \
48
ifdef MOZ_IPDL_TESTS #{
49
IPDLDIRS += ipc/ipdl/test/cxx
51
##-----------------------------------------------------------------------------
57
vpath %.ipdl $(topsrcdir)
58
vpath %.ipdlh $(topsrcdir)
61
include $(topsrcdir)/$(IPDLDIR)/ipdl.mk
62
ALL_IPDLSRCS += $$(IPDLSRCS:%=$(IPDLDIR)/%)
63
PROTOCOLS += $$(IPDLSRCS)
69
$(foreach IPDLDIR,$(IPDLDIRS),$(eval $(ADD_IPDLDIR)))
73
$(PROTOCOLS:%.ipdl=%Parent.cpp) \
74
$(PROTOCOLS:%.ipdl=%Child.cpp) \
75
$(PROTOCOLS:%.ipdl=%.cpp) \
76
$(PROTOCOLS:%.ipdlh=%.cpp) \
81
LOCAL_INCLUDES += -I$(DEPTH)/ipc/ipdl/_ipdlheaders
84
include $(topsrcdir)/config/config.mk
85
include $(topsrcdir)/ipc/chromium/chromium-config.mk
86
include $(topsrcdir)/config/rules.mk
89
# NB: the IPDL compiler manages .ipdl-->.h/.cpp dependencies itself,
90
# which is why we don't have explicit .h/.cpp targets here
91
export:: $(ALL_IPDLSRCS)
92
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
95
--outheaders-dir=_ipdlheaders \
97
$(IPDLDIRS:%=-I$(topsrcdir)/%) \
100
# We #include some things in the dom/plugins/ directory that rely on
102
CXXFLAGS += $(TK_CFLAGS)