build/binary-location.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build/binary-location.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.7 +
     1.8 +# finds the location of the browser and puts it in the variable $(browser_path)
     1.9 +
    1.10 +ifneq (,$(filter WINNT,$(OS_ARCH)))
    1.11 +program = $(MOZ_APP_NAME)$(BIN_SUFFIX)
    1.12 +else
    1.13 +program = $(MOZ_APP_NAME)-bin$(BIN_SUFFIX)
    1.14 +endif
    1.15 +
    1.16 +TARGET_DIST = $(TARGET_DEPTH)/dist
    1.17 +
    1.18 +ifeq ($(MOZ_BUILD_APP),camino)
    1.19 +browser_path = $(TARGET_DIST)/Camino.app/Contents/MacOS/Camino
    1.20 +else
    1.21 +ifeq ($(OS_ARCH),Darwin)
    1.22 +browser_path = $(TARGET_DIST)/$(MOZ_MACBUNDLE_NAME)/Contents/MacOS/$(program)
    1.23 +else
    1.24 +browser_path = $(TARGET_DIST)/bin/$(program)
    1.25 +endif
    1.26 +endif

mercurial