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-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
|
|
|
|
|
2010-01-29 08:15:37 -08:00
|
|
|
ifndef LIBXUL_SDK
|
2011-08-24 03:55:13 -07:00
|
|
|
ifneq (Android,$(OS_TARGET))
|
2011-05-23 09:54:47 -07:00
|
|
|
LIBS += \
|
2011-08-03 11:22:07 -07:00
|
|
|
$(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
|
|
|
|
|
|
|
|
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
|