2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2008-04-18 06:41:49 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2012-04-10 10:45:15 -07:00
|
|
|
dist_dest = $(DIST)/$(APP_NAME).app
|
2010-09-10 19:52:48 -07:00
|
|
|
|
2008-04-18 06:41:49 -07:00
|
|
|
PREF_JS_EXPORTS = $(srcdir)/mobile.js
|
2011-11-28 22:38:35 -08:00
|
|
|
DIST_FILES = recommended-addons.json
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2010-01-29 08:15:37 -08:00
|
|
|
ifndef LIBXUL_SDK
|
2011-08-24 03:55:13 -07:00
|
|
|
ifneq (Android,$(OS_TARGET))
|
2010-01-29 08:15:37 -08:00
|
|
|
PROGRAM=$(MOZ_APP_NAME)$(BIN_SUFFIX)
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/xre
|
2010-11-15 07:38:21 -08:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/base
|
2011-08-03 11:22:07 -07:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/build
|
2011-11-22 12:48:22 -08:00
|
|
|
LOCAL_INCLUDES += -I$(DEPTH)/build
|
2010-01-29 08:15:37 -08:00
|
|
|
|
2011-08-03 11:22:07 -07:00
|
|
|
DEFINES += -DXPCOM_GLUE
|
|
|
|
STL_FLAGS=
|
2010-06-10 20:50:51 -07:00
|
|
|
|
2011-05-23 09:54:47 -07:00
|
|
|
LIBS += \
|
2011-08-03 11:22:07 -07:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
|
|
|
$(XPCOM_STANDALONE_GLUE_LDOPTS) \
|
2011-05-23 09:54:47 -07:00
|
|
|
$(NULL)
|
2010-01-29 08:15:37 -08:00
|
|
|
|
2011-08-24 03:55:13 -07:00
|
|
|
endif
|
2010-01-29 08:15:37 -08:00
|
|
|
endif #LIBXUL_SDK
|
|
|
|
|
2011-08-03 11:29:15 -07:00
|
|
|
# Make sure the standalone glue doesn't try to get libxpcom.so from mobile/app.
|
2011-08-03 11:22:07 -07:00
|
|
|
NSDISTMODE = copy
|
|
|
|
|
2008-04-18 06:41:49 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2009-01-23 13:29:27 -08:00
|
|
|
APP_ICON = mobile
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2011-11-22 12:48:22 -08:00
|
|
|
DEFINES += \
|
|
|
|
-DAPP_NAME=$(MOZ_APP_NAME) \
|
|
|
|
-DAPP_VERSION=$(MOZ_APP_VERSION) \
|
|
|
|
-DMOZ_UPDATER=$(MOZ_UPDATER) \
|
2013-01-09 23:38:50 -08:00
|
|
|
-DMOZ_APP_UA_NAME=$(MOZ_APP_UA_NAME) \
|
2011-11-22 12:48:22 -08:00
|
|
|
$(NULL)
|
2009-01-29 07:40:41 -08:00
|
|
|
|
2012-07-10 13:59:31 -07:00
|
|
|
ifdef MOZ_PKG_SPECIAL
|
|
|
|
DEFINES += -DMOZ_PKG_SPECIAL=$(MOZ_PKG_SPECIAL)
|
|
|
|
endif
|
|
|
|
|
2008-04-18 06:41:49 -07:00
|
|
|
APP_BINARY = $(MOZ_APP_NAME)$(BIN_SUFFIX)
|
|
|
|
|
|
|
|
libs::
|
2010-01-29 08:15:37 -08:00
|
|
|
ifdef LIBXUL_SDK
|
2008-04-18 06:41:49 -07:00
|
|
|
cp $(LIBXUL_DIST)/bin/xulrunner-stub$(BIN_SUFFIX) $(DIST)/bin/$(APP_BINARY)
|
2010-01-29 08:15:37 -08:00
|
|
|
endif
|
2012-04-10 10:45:15 -07:00
|
|
|
ifndef SKIP_COPY_XULRUNNER #{
|
2010-01-29 08:15:37 -08:00
|
|
|
ifdef LIBXUL_SDK
|
2008-04-18 06:41:49 -07:00
|
|
|
$(NSINSTALL) -D $(DIST)/bin/xulrunner
|
|
|
|
(cd $(LIBXUL_SDK)/bin && tar $(TAR_CREATE_FLAGS) - .) | (cd $(DIST)/bin/xulrunner && tar -xf -)
|
2010-01-29 08:15:37 -08:00
|
|
|
endif
|
2012-04-10 10:45:15 -07:00
|
|
|
endif #} SKIP_COPY_XULRUNNER
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2009-01-23 13:29:27 -08:00
|
|
|
$(NSINSTALL) -D $(DIST)/bin/chrome/icons/default
|