Bug 1253431 part 2 - Use SDK_FILES instead of INSTALL_TARGETS; r?gps draft
authorMike Shal <mshal@mozilla.com>
Thu, 21 Jan 2016 16:31:02 -0500
changeset 337039 83288ebe1dc76735e1e5f9a97205e671ab7f64ff
parent 337038 3d69913dedecc888fe1f1c51bdf435aa8163baec
child 337040 dea4ba778eab84a2b7cc601662d2f847986274d8
push id12257
push userbmo:mshal@mozilla.com
push dateFri, 04 Mar 2016 21:05:24 +0000
reviewersgps
bugs1253431
milestone47.0a1
Bug 1253431 part 2 - Use SDK_FILES instead of INSTALL_TARGETS; r?gps MozReview-Commit-ID: K2Va7og0xw9
xpcom/idl-parser/xpidl/Makefile.in
xpcom/idl-parser/xpidl/moz.build
xpcom/typelib/xpt/tools/Makefile.in
xpcom/typelib/xpt/tools/moz.build
--- a/xpcom/idl-parser/xpidl/Makefile.in
+++ b/xpcom/idl-parser/xpidl/Makefile.in
@@ -18,20 +18,16 @@ SDK_BINARY = \
 SDK_BINARY_TARGET = xpidl-parser
 
 PLY_FILES = \
   $(topsrcdir)/other-licenses/ply/ply/__init__.py \
   $(topsrcdir)/other-licenses/ply/ply/lex.py \
   $(topsrcdir)/other-licenses/ply/ply/yacc.py \
   $(NULL)
 
-PLY_DEST = $(SDK_BIN_DIR)/ply
-INSTALL_TARGETS += PLY
-PLY_TARGET = xpidl-parser
-
 include $(topsrcdir)/config/rules.mk
 
 # Generate the PLY lexer and parser.
 $(IDL_PARSER_CACHE_DIR)/xpidllex.py: $(PARSER_SRCS) $(PLY_FILES)
 	$(PYTHON_PATH) \
 	  $(PLY_INCLUDE) \
 	  $(srcdir)/header.py --cachedir=$(IDL_PARSER_CACHE_DIR) --regen
 
--- a/xpcom/idl-parser/xpidl/moz.build
+++ b/xpcom/idl-parser/xpidl/moz.build
@@ -2,8 +2,14 @@
 # vim: set filetype=python:
 # 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/.
 
 PYTHON_UNIT_TESTS += [
     'runtests.py',
 ]
+
+SDK_FILES.bin.ply += [
+    '/other-licenses/ply/ply/__init__.py',
+    '/other-licenses/ply/ply/lex.py',
+    '/other-licenses/ply/ply/yacc.py',
+]
deleted file mode 100644
--- a/xpcom/typelib/xpt/tools/Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
-#
-# 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/.
-
-XPT_TOOL_FILES := xpt.py
-# SDK_BIN_DIR is declared in config.mk, so this needs to be a deferred
-# assignment.
-XPT_TOOL_DEST = $(SDK_BIN_DIR)
-XPT_TOOL_TARGET := export
-INSTALL_TARGETS += XPT_TOOL
--- a/xpcom/typelib/xpt/tools/moz.build
+++ b/xpcom/typelib/xpt/tools/moz.build
@@ -2,8 +2,12 @@
 # vim: set filetype=python:
 # 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/.
 
 PYTHON_UNIT_TESTS += [
     'runtests.py',
 ]
+
+SDK_FILES.bin += [
+    'xpt.py',
+]