Bug 503886 Allow non-mozilla central applications to use automation-build.mk. r=bsmedberg
authorMark Banner <bugzilla@standard8.plus.com>
Fri, 17 Jul 2009 09:25:41 +0100
changeset 30380 465f87d82960d7e0ce6d7bbb74d64a7ed036bdc7
parent 30379 3555a6324b1aeb5302344d5923a55f88bfb5f1c6
child 30381 c1840493c8329682b2e0af89fe88da3a7e46de74
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs503886
milestone1.9.2a1pre
Bug 503886 Allow non-mozilla central applications to use automation-build.mk. r=bsmedberg
build/automation-build.mk
--- a/build/automation-build.mk
+++ b/build/automation-build.mk
@@ -19,17 +19,17 @@ endif
 else
 browser_path = \"$(TARGET_DIST)/bin/$(PROGRAM)\"
 endif
 endif
 
 _PROFILE_DIR = $(TARGET_DEPTH)/_profile/pgo
 _SYMBOLS_PATH = $(TARGET_DIST)/crashreporter-symbols
 
-ABSOLUTE_TOPSRCDIR = $(call core_abspath,$(topsrcdir))
+ABSOLUTE_TOPSRCDIR = $(call core_abspath,$(MOZILLA_DIR))
 _CERTS_SRC_DIR = $(ABSOLUTE_TOPSRCDIR)/build/pgo/certs
 
 AUTOMATION_PPARGS = 	\
 			-DBROWSER_PATH=$(browser_path) \
 			-DXPC_BIN_PATH=\"$(LIBXUL_DIST)/bin\" \
 			-DBIN_SUFFIX=\"$(BIN_SUFFIX)\" \
 			-DPROFILE_DIR=\"$(_PROFILE_DIR)\" \
 			-DCERTS_SRC_DIR=\"$(_CERTS_SRC_DIR)\" \
@@ -60,15 +60,15 @@ endif
 
 ifeq ($(MOZ_DEBUG), 1)
 AUTOMATION_PPARGS += -DIS_DEBUG_BUILD=1
 else
 AUTOMATION_PPARGS += -DIS_DEBUG_BUILD=0
 endif
 
 $(CURDIR)/automationutils.py:
-	$(INSTALL) $(topsrcdir)/build/automationutils.py .
+	$(INSTALL) $(MOZILLA_DIR)/build/automationutils.py .
 
-automation.py: $(topsrcdir)/build/automation.py.in $(topsrcdir)/build/automation-build.mk $(CURDIR)/automationutils.py
-	$(PYTHON) $(topsrcdir)/config/Preprocessor.py \
+automation.py: $(MOZILLA_DIR)/build/automation.py.in $(MOZILLA_DIR)/build/automation-build.mk $(CURDIR)/automationutils.py
+	$(PYTHON) $(MOZILLA_DIR)/config/Preprocessor.py \
 	$(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $< > $@
 
 GARBAGE += automation.py $(CURDIR)/automationutils.py