mobile/android/app/Makefile.in
author Mike Hommey <mh+mozilla@glandium.org>
Sat, 04 Aug 2012 20:26:44 +0200
changeset 101804 162130598df094e19b044610902abecd403278d3
parent 101758 1fc17369c9a6c85dfd5724b9b6ecc073f0b3cc6c
child 118688 ff82d1a3955ef1ca4b78060c8e7ea0cff77758a2
permissions -rw-r--r--
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted

# 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/.

DEPTH     = @DEPTH@
topsrcdir = @top_srcdir@
srcdir    = @srcdir@
VPATH     = @srcdir@

include $(DEPTH)/config/autoconf.mk

DIRS      = profile/extensions
dist_dest = $(DIST)/$(APP_NAME).app

PREF_JS_EXPORTS = $(srcdir)/mobile.js
DIST_FILES = recommended-addons.json

ifndef LIBXUL_SDK
ifneq (Android,$(OS_TARGET))
PROGRAM=$(MOZ_APP_NAME)$(BIN_SUFFIX)

LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/xre
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/base
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/build
LOCAL_INCLUDES += -I$(DEPTH)/build

DEFINES += -DXPCOM_GLUE
STL_FLAGS=

LIBS += \
  $(EXTRA_DSO_LIBS) \
  $(XPCOM_STANDALONE_GLUE_LDOPTS) \
  $(NULL)

endif
endif #LIBXUL_SDK

# Make sure the standalone glue doesn't try to get libxpcom.so from mobile/app.
NSDISTMODE = copy

include $(topsrcdir)/config/rules.mk

APP_ICON = mobile

DEFINES += \
  -DAPP_NAME=$(MOZ_APP_NAME) \
  -DAPP_VERSION=$(MOZ_APP_VERSION) \
  -DMOZ_UPDATER=$(MOZ_UPDATER) \
  $(NULL)

ifdef MOZ_PKG_SPECIAL
DEFINES += -DMOZ_PKG_SPECIAL=$(MOZ_PKG_SPECIAL)
endif

APP_BINARY = $(MOZ_APP_NAME)$(BIN_SUFFIX)

libs::
ifdef LIBXUL_SDK
	cp $(LIBXUL_DIST)/bin/xulrunner-stub$(BIN_SUFFIX) $(DIST)/bin/$(APP_BINARY)
endif
ifndef SKIP_COPY_XULRUNNER #{
ifdef LIBXUL_SDK
	$(NSINSTALL) -D $(DIST)/bin/xulrunner
	(cd $(LIBXUL_SDK)/bin && tar $(TAR_CREATE_FLAGS) - .) | (cd $(DIST)/bin/xulrunner && tar -xf -)
endif
endif #} SKIP_COPY_XULRUNNER

	$(NSINSTALL) -D $(DIST)/bin/chrome/icons/default