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.
michael@0 | 1 | # |
michael@0 | 2 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | |
michael@0 | 6 | PARSER_SRCS = \ |
michael@0 | 7 | header.py \ |
michael@0 | 8 | typelib.py \ |
michael@0 | 9 | xpidl.py \ |
michael@0 | 10 | $(NULL) |
michael@0 | 11 | |
michael@0 | 12 | SDK_BINARY = \ |
michael@0 | 13 | $(PARSER_SRCS) \ |
michael@0 | 14 | $(IDL_PARSER_CACHE_DIR)/xpidllex.py \ |
michael@0 | 15 | $(IDL_PARSER_CACHE_DIR)/xpidlyacc.py \ |
michael@0 | 16 | $(NULL) |
michael@0 | 17 | |
michael@0 | 18 | SDK_BINARY_TARGET = xpidl-parser |
michael@0 | 19 | |
michael@0 | 20 | PLY_FILES = \ |
michael@0 | 21 | $(topsrcdir)/other-licenses/ply/ply/__init__.py \ |
michael@0 | 22 | $(topsrcdir)/other-licenses/ply/ply/lex.py \ |
michael@0 | 23 | $(topsrcdir)/other-licenses/ply/ply/yacc.py \ |
michael@0 | 24 | $(NULL) |
michael@0 | 25 | |
michael@0 | 26 | PLY_DEST = $(SDK_BIN_DIR)/ply |
michael@0 | 27 | INSTALL_TARGETS += PLY |
michael@0 | 28 | PLY_TARGET = xpidl-parser |
michael@0 | 29 | |
michael@0 | 30 | include $(topsrcdir)/config/rules.mk |
michael@0 | 31 | |
michael@0 | 32 | # Generate the PLY lexer and parser. |
michael@0 | 33 | $(IDL_PARSER_CACHE_DIR)/xpidllex.py: $(PARSER_SRCS) $(PLY_FILES) |
michael@0 | 34 | $(PYTHON_PATH) \ |
michael@0 | 35 | $(PLY_INCLUDE) \ |
michael@0 | 36 | $(srcdir)/header.py --cachedir=$(IDL_PARSER_CACHE_DIR) --regen |
michael@0 | 37 | |
michael@0 | 38 | # generating xpidllex.py generates xpidlyacc.py too |
michael@0 | 39 | $(IDL_PARSER_CACHE_DIR)/xpidlyacc.py: $(IDL_PARSER_CACHE_DIR)/xpidllex.py |
michael@0 | 40 | |
michael@0 | 41 | check:: |
michael@0 | 42 | $(PYTHON_PATH) \ |
michael@0 | 43 | $(PLY_INCLUDE) \ |
michael@0 | 44 | -I. \ |
michael@0 | 45 | $(srcdir)/runtests.py |
michael@0 | 46 | |
michael@0 | 47 | garbage_files := \ |
michael@0 | 48 | xpidllex.py \ |
michael@0 | 49 | xpidllex.pyc \ |
michael@0 | 50 | xpidlyacc.py \ |
michael@0 | 51 | xpidlyacc.pyc \ |
michael@0 | 52 | xpidl_debug \ |
michael@0 | 53 | $(NULL) |
michael@0 | 54 | |
michael@0 | 55 | GARBAGE += $(addprefix $(IDL_PARSER_CACHE_DIR)/,$(garbage_files)) |