Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 #
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 PARSER_SRCS = \
7 header.py \
8 typelib.py \
9 xpidl.py \
10 $(NULL)
12 SDK_BINARY = \
13 $(PARSER_SRCS) \
14 $(IDL_PARSER_CACHE_DIR)/xpidllex.py \
15 $(IDL_PARSER_CACHE_DIR)/xpidlyacc.py \
16 $(NULL)
18 SDK_BINARY_TARGET = xpidl-parser
20 PLY_FILES = \
21 $(topsrcdir)/other-licenses/ply/ply/__init__.py \
22 $(topsrcdir)/other-licenses/ply/ply/lex.py \
23 $(topsrcdir)/other-licenses/ply/ply/yacc.py \
24 $(NULL)
26 PLY_DEST = $(SDK_BIN_DIR)/ply
27 INSTALL_TARGETS += PLY
28 PLY_TARGET = xpidl-parser
30 include $(topsrcdir)/config/rules.mk
32 # Generate the PLY lexer and parser.
33 $(IDL_PARSER_CACHE_DIR)/xpidllex.py: $(PARSER_SRCS) $(PLY_FILES)
34 $(PYTHON_PATH) \
35 $(PLY_INCLUDE) \
36 $(srcdir)/header.py --cachedir=$(IDL_PARSER_CACHE_DIR) --regen
38 # generating xpidllex.py generates xpidlyacc.py too
39 $(IDL_PARSER_CACHE_DIR)/xpidlyacc.py: $(IDL_PARSER_CACHE_DIR)/xpidllex.py
41 check::
42 $(PYTHON_PATH) \
43 $(PLY_INCLUDE) \
44 -I. \
45 $(srcdir)/runtests.py
47 garbage_files := \
48 xpidllex.py \
49 xpidllex.pyc \
50 xpidlyacc.py \
51 xpidlyacc.pyc \
52 xpidl_debug \
53 $(NULL)
55 GARBAGE += $(addprefix $(IDL_PARSER_CACHE_DIR)/,$(garbage_files))