2009-07-13 09:14:56 -07:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
|
|
|
# The Original Code is Mozilla Firefox.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# The Mozilla Foundation <http://www.mozilla.org/>.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2009
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
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
|
|
|
MODULE = ipdlgen
|
|
|
|
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 \
|
2011-04-12 16:26:11 -07:00
|
|
|
dom/plugins/ipc \
|
2009-10-06 11:02:26 -07:00
|
|
|
dom/ipc \
|
2011-11-20 14:40:53 -08:00
|
|
|
dom/sms/src/ipc \
|
2010-11-18 17:15:23 -08:00
|
|
|
dom/src/storage \
|
2010-07-21 14:17:33 -07:00
|
|
|
gfx/layers/ipc \
|
2011-10-05 15:15:45 -07:00
|
|
|
hal/sandbox \
|
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
|
|
|
##-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
ifdef MOZ_IPDL_TESTS
|
|
|
|
DIRS += test
|
|
|
|
endif
|
2009-07-13 09:14:56 -07:00
|
|
|
|
|
|
|
vpath %.ipdl $(topsrcdir)
|
|
|
|
|
|
|
|
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) \
|
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)
|
2009-12-03 00:16:09 -08:00
|
|
|
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
|
|
|
-I$(topsrcdir)/other-licenses/ply \
|
|
|
|
$(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)
|