|
1 # This Source Code Form is subject to the terms of the Mozilla Public |
|
2 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
4 |
|
5 dist_dest = $(DIST)/$(APP_NAME).app |
|
6 |
|
7 PREF_JS_EXPORTS = $(srcdir)/mobile.js |
|
8 |
|
9 ifndef LIBXUL_SDK |
|
10 ifneq (Android,$(OS_TARGET)) |
|
11 LIBS += \ |
|
12 $(XPCOM_STANDALONE_GLUE_LDOPTS) \ |
|
13 $(NULL) |
|
14 |
|
15 endif |
|
16 endif #LIBXUL_SDK |
|
17 |
|
18 # Make sure the standalone glue doesn't try to get libxpcom.so from mobile/app. |
|
19 NSDISTMODE = copy |
|
20 |
|
21 include $(topsrcdir)/config/rules.mk |
|
22 |
|
23 APP_BINARY = $(MOZ_APP_NAME)$(BIN_SUFFIX) |
|
24 |
|
25 libs:: |
|
26 ifdef LIBXUL_SDK |
|
27 cp $(LIBXUL_DIST)/bin/xulrunner-stub$(BIN_SUFFIX) $(DIST)/bin/$(APP_BINARY) |
|
28 endif |
|
29 ifndef SKIP_COPY_XULRUNNER #{ |
|
30 ifdef LIBXUL_SDK |
|
31 $(NSINSTALL) -D $(DIST)/bin/xulrunner |
|
32 (cd $(LIBXUL_SDK)/bin && tar $(TAR_CREATE_FLAGS) - .) | (cd $(DIST)/bin/xulrunner && tar -xf -) |
|
33 endif |
|
34 endif #} SKIP_COPY_XULRUNNER |
|
35 |
|
36 $(NSINSTALL) -D $(DIST)/bin/chrome/icons/default |