2012-05-21 15:12:37 +04: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 20:14:56 +04:00
|
|
|
|
2009-11-24 18:34:38 +03:00
|
|
|
GARBAGE_DIRS += _ipdlheaders
|
2018-05-03 22:54:21 +03:00
|
|
|
GARBAGE += ipdl_lextab.py ipdl_yacctab.py $(wildcard *.pyc $(srcdir)/ipdl/*.pyc $(srcdir)/ipdl/cxx/*.pyc) ipdl.track
|
2009-11-24 18:34:38 +03:00
|
|
|
|
2016-01-15 10:11:12 +03:00
|
|
|
ifdef COMPILE_ENVIRONMENT
|
|
|
|
|
2013-07-01 17:56:28 +04:00
|
|
|
# This file is generated by the moz.build backend.
|
|
|
|
include ipdlsrcs.mk
|
2009-12-03 11:16:09 +03:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2018-05-03 22:54:21 +03:00
|
|
|
ipdl_py_deps := \
|
|
|
|
$(wildcard $(srcdir)/*.py) \
|
|
|
|
$(wildcard $(srcdir)/ipdl/*.py) \
|
|
|
|
$(wildcard $(srcdir)/ipdl/cxx/*.py) \
|
|
|
|
$(wildcard $(topsrcdir)/other-licenses/ply/ply/*.py) \
|
|
|
|
$(NULL)
|
2009-12-03 11:16:09 +03:00
|
|
|
|
|
|
|
# NB: the IPDL compiler manages .ipdl-->.h/.cpp dependencies itself,
|
|
|
|
# which is why we don't have explicit .h/.cpp targets here
|
2018-05-03 22:54:21 +03:00
|
|
|
ipdl.track: $(ALL_IPDLSRCS) $(srcdir)/sync-messages.ini $(srcdir)/message-metadata.ini $(ipdl_py_deps)
|
2012-04-10 04:41:22 +04:00
|
|
|
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
2012-04-06 22:06:52 +04:00
|
|
|
$(PLY_INCLUDE) \
|
|
|
|
$(srcdir)/ipdl.py \
|
2017-02-14 12:32:31 +03:00
|
|
|
--sync-msg-list=$(srcdir)/sync-messages.ini \
|
2017-06-21 12:55:13 +03:00
|
|
|
--msg-metadata=$(srcdir)/message-metadata.ini \
|
2012-04-06 22:06:52 +04:00
|
|
|
--outheaders-dir=_ipdlheaders \
|
|
|
|
--outcpp-dir=. \
|
2013-07-01 17:56:28 +04:00
|
|
|
$(IPDLDIRS:%=-I%) \
|
2018-05-03 22:54:21 +03:00
|
|
|
$(ALL_IPDLSRCS)
|
|
|
|
touch $@
|
2016-11-22 10:55:58 +03:00
|
|
|
|
2018-05-03 22:54:21 +03:00
|
|
|
export:: ipdl.track
|
2016-01-15 10:11:12 +03:00
|
|
|
endif
|
|
|
|
|