2010-06-02 14:55:28 -07:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
|
|
|
# The Original Code is the Mozilla browser.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Mozilla Foundation
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2009-2010
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Vladimir Vukicevic <vladimir@pobox.com>
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
2010-06-25 13:12:03 -07:00
|
|
|
include $(topsrcdir)/ipc/app/defs.mk
|
2010-06-02 14:55:28 -07:00
|
|
|
|
2010-12-22 13:14:50 -08:00
|
|
|
DIRS = locales
|
|
|
|
|
2010-06-02 14:55:28 -07:00
|
|
|
JAVAFILES = \
|
2011-10-27 08:27:41 -07:00
|
|
|
AlertNotification.java \
|
|
|
|
AwesomeBar.java \
|
|
|
|
AwesomeBarTabs.java \
|
2011-10-18 10:54:41 -07:00
|
|
|
BrowserToolbar.java \
|
2011-10-27 08:27:41 -07:00
|
|
|
ConfirmPreference.java \
|
|
|
|
DoorHanger.java \
|
|
|
|
DoorHangerPopup.java \
|
2011-11-07 05:55:25 -08:00
|
|
|
Favicons.java \
|
2010-06-02 14:55:28 -07:00
|
|
|
GeckoApp.java \
|
|
|
|
GeckoAppShell.java \
|
2011-01-20 03:06:13 -08:00
|
|
|
GeckoConnectivityReceiver.java \
|
2010-06-02 14:55:28 -07:00
|
|
|
GeckoEvent.java \
|
2011-10-24 12:20:27 -07:00
|
|
|
GeckoEventListener.java \
|
2011-10-27 08:27:41 -07:00
|
|
|
GeckoInputConnection.java \
|
2011-10-14 12:48:02 -07:00
|
|
|
GeckoPreferences.java \
|
2011-10-27 08:27:41 -07:00
|
|
|
GlobalHistory.java \
|
2011-10-24 10:05:18 -07:00
|
|
|
PromptService.java \
|
2011-10-05 11:44:19 -07:00
|
|
|
SurfaceInfo.java \
|
2011-10-27 08:27:41 -07:00
|
|
|
Tab.java \
|
|
|
|
Tabs.java \
|
2011-11-02 11:36:44 -07:00
|
|
|
TabsTray.java \
|
2011-11-02 08:35:11 -07:00
|
|
|
GeckoBatteryManager.java \
|
2011-11-09 17:39:29 -08:00
|
|
|
gfx/BufferedCairoImage.java \
|
|
|
|
gfx/CairoImage.java \
|
|
|
|
gfx/CairoUtils.java \
|
|
|
|
gfx/FloatPoint.java \
|
|
|
|
gfx/FloatRect.java \
|
|
|
|
gfx/GeckoSoftwareLayerClient.java \
|
|
|
|
gfx/InputConnectionHandler.java \
|
|
|
|
gfx/IntPoint.java \
|
|
|
|
gfx/IntRect.java \
|
|
|
|
gfx/IntSize.java \
|
|
|
|
gfx/Layer.java \
|
|
|
|
gfx/LayerClient.java \
|
|
|
|
gfx/LayerController.java \
|
|
|
|
gfx/LayerRenderer.java \
|
|
|
|
gfx/LayerView.java \
|
|
|
|
gfx/NinePatchTileLayer.java \
|
|
|
|
gfx/PlaceholderLayerClient.java \
|
|
|
|
gfx/SingleTileLayer.java \
|
|
|
|
gfx/TextureReaper.java \
|
|
|
|
gfx/TextLayer.java \
|
|
|
|
gfx/TileLayer.java \
|
|
|
|
ui/PanZoomController.java \
|
|
|
|
ui/ViewportController.java \
|
2010-06-02 14:55:28 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2010-06-14 19:17:37 -07:00
|
|
|
PROCESSEDJAVAFILES = \
|
|
|
|
App.java \
|
2011-07-01 11:26:00 -07:00
|
|
|
LauncherShortcuts.java \
|
2011-10-27 08:27:41 -07:00
|
|
|
NotificationHandler.java \
|
|
|
|
Restarter.java \
|
2010-06-14 19:17:37 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2010-09-27 18:08:55 -07:00
|
|
|
|
|
|
|
ifneq (,$(findstring -march=armv7,$(OS_CFLAGS)))
|
|
|
|
MIN_CPU_VERSION=7
|
|
|
|
else
|
|
|
|
MIN_CPU_VERSION=5
|
|
|
|
endif
|
|
|
|
|
2011-01-06 09:16:50 -08:00
|
|
|
ifeq (,$(ANDROID_VERSION_CODE))
|
|
|
|
ANDROID_VERSION_CODE=$(shell $(PYTHON) $(topsrcdir)/toolkit/xre/make-platformini.py --print-buildid | cut -c1-10)
|
|
|
|
endif
|
|
|
|
|
2010-06-02 14:55:28 -07:00
|
|
|
DEFINES += \
|
2010-12-21 12:02:14 -08:00
|
|
|
-DANDROID_PACKAGE_NAME=$(ANDROID_PACKAGE_NAME) \
|
2011-05-10 20:50:43 -07:00
|
|
|
-DMOZ_APP_DISPLAYNAME="$(MOZ_APP_DISPLAYNAME)" \
|
2010-06-25 13:12:03 -07:00
|
|
|
-DMOZ_APP_NAME=$(MOZ_APP_NAME) \
|
2010-08-30 08:52:28 -07:00
|
|
|
-DMOZ_APP_VERSION=$(MOZ_APP_VERSION) \
|
2010-09-27 18:08:55 -07:00
|
|
|
-DMOZ_CHILD_PROCESS_NAME=$(MOZ_CHILD_PROCESS_NAME) \
|
|
|
|
-DMOZ_MIN_CPU_VERSION=$(MIN_CPU_VERSION) \
|
2010-10-15 20:18:07 -07:00
|
|
|
-DMOZ_CRASHREPORTER=$(MOZ_CRASHREPORTER) \
|
2011-01-06 09:16:50 -08:00
|
|
|
-DANDROID_VERSION_CODE=$(ANDROID_VERSION_CODE) \
|
2011-05-20 16:29:40 -07:00
|
|
|
-DMOZILLA_OFFICIAL=$(MOZILLA_OFFICIAL) \
|
2010-09-27 18:08:55 -07:00
|
|
|
$(NULL)
|
2010-06-02 14:55:28 -07:00
|
|
|
|
|
|
|
GARBAGE += \
|
|
|
|
AndroidManifest.xml \
|
|
|
|
classes.dex \
|
2010-06-14 19:17:37 -07:00
|
|
|
$(PROCESSEDJAVAFILES) \
|
2010-06-02 14:55:28 -07:00
|
|
|
gecko.ap_ \
|
2010-09-28 11:59:22 -07:00
|
|
|
res/values/strings.xml \
|
|
|
|
R.java \
|
2010-06-02 14:55:28 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2010-10-15 20:18:07 -07:00
|
|
|
GARBAGE_DIRS += classes res
|
2010-06-02 14:55:28 -07:00
|
|
|
|
|
|
|
# Bug 567884 - Need a way to find appropriate icons during packaging
|
|
|
|
ifeq ($(MOZ_APP_NAME),fennec)
|
|
|
|
ICON_PATH = $(topsrcdir)/$(MOZ_BRANDING_DIRECTORY)/content/fennec_48x48.png
|
2010-06-14 19:17:37 -07:00
|
|
|
ICON_PATH_HDPI = $(topsrcdir)/$(MOZ_BRANDING_DIRECTORY)/content/fennec_72x72.png
|
2011-08-09 14:16:26 -07:00
|
|
|
|
|
|
|
# we released these builds to the public with shared IDs and need to keep them
|
|
|
|
ifeq (org.mozilla.firefox,$(ANDROID_PACKAGE_NAME))
|
|
|
|
DEFINES += -DMOZ_ANDROID_SHARED_ID="org.mozilla.firefox.sharedID"
|
|
|
|
else ifeq (org.mozilla.firefox_beta,$(ANDROID_PACKAGE_NAME))
|
2011-07-21 14:12:51 -07:00
|
|
|
DEFINES += -DMOZ_ANDROID_SHARED_ID="org.mozilla.firefox.sharedID"
|
2011-08-09 14:16:26 -07:00
|
|
|
else ifeq (org.mozilla.fennec_aurora,$(ANDROID_PACKAGE_NAME))
|
|
|
|
DEFINES += -DMOZ_ANDROID_SHARED_ID="org.mozilla.fennec.sharedID"
|
|
|
|
else ifeq (org.mozilla.fennec,$(ANDROID_PACKAGE_NAME))
|
|
|
|
DEFINES += -DMOZ_ANDROID_SHARED_ID="org.mozilla.fennec.sharedID"
|
2011-07-21 14:12:51 -07:00
|
|
|
endif
|
2011-08-09 14:16:26 -07:00
|
|
|
|
2010-06-02 14:55:28 -07:00
|
|
|
else
|
|
|
|
ICON_PATH = $(topsrcdir)/$(MOZ_BRANDING_DIRECTORY)/content/icon48.png
|
2010-06-14 19:17:37 -07:00
|
|
|
ICON_PATH_HDPI = $(topsrcdir)/$(MOZ_BRANDING_DIRECTORY)/content/icon64.png
|
2011-07-21 14:12:51 -07:00
|
|
|
DEFINES += -DMOZ_ANDROID_SHARED_ID="$(ANDROID_PACKAGE_NAME).sharedID"
|
2010-06-02 14:55:28 -07:00
|
|
|
endif
|
|
|
|
|
2010-10-01 14:21:21 -07:00
|
|
|
RES_LAYOUT = \
|
2011-10-25 08:46:32 -07:00
|
|
|
res/layout/awesomebar_header_row.xml \
|
2011-10-10 17:40:17 -07:00
|
|
|
res/layout/awesomebar_row.xml \
|
2011-10-27 08:27:41 -07:00
|
|
|
res/layout/awesomebar_search.xml \
|
2011-10-31 09:42:56 -07:00
|
|
|
res/layout/awesomebar_tab_indicator.xml \
|
2011-10-25 08:46:32 -07:00
|
|
|
res/layout/awesomebar_tabs.xml \
|
2011-10-18 10:54:41 -07:00
|
|
|
res/layout/browser_toolbar.xml \
|
2011-10-25 05:00:37 -07:00
|
|
|
res/layout/doorhangerpopup.xml \
|
2011-11-07 10:27:02 -08:00
|
|
|
res/layout/doorhanger.xml \
|
2011-10-27 08:27:41 -07:00
|
|
|
res/layout/gecko_app.xml \
|
|
|
|
res/layout/gecko_menu.xml \
|
|
|
|
res/layout/launch_app_list.xml \
|
|
|
|
res/layout/launch_app_listitem.xml \
|
|
|
|
res/layout/notification_icon_text.xml \
|
|
|
|
res/layout/notification_progress.xml \
|
|
|
|
res/layout/notification_progress_text.xml \
|
|
|
|
res/layout/tabs_row.xml \
|
|
|
|
res/layout/tabs_tray.xml \
|
2011-10-28 11:49:19 -07:00
|
|
|
res/layout/list_item_header.xml \
|
|
|
|
res/layout/select_dialog_list.xml \
|
2010-06-14 19:17:37 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2011-10-13 17:00:26 -07:00
|
|
|
RES_VALUES = \
|
2011-10-27 08:27:41 -07:00
|
|
|
res/values/arrays.xml \
|
2011-10-14 23:22:25 -07:00
|
|
|
res/values/colors.xml \
|
|
|
|
res/values/styles.xml \
|
|
|
|
res/values/themes.xml \
|
|
|
|
$(NULL)
|
2010-12-27 07:33:37 -08:00
|
|
|
|
2011-10-14 12:48:02 -07:00
|
|
|
RES_XML = res/xml/preferences.xml
|
|
|
|
|
2011-11-03 11:34:58 -07:00
|
|
|
RES_ANIM = \
|
|
|
|
res/anim/grow_fade_in.xml \
|
|
|
|
res/anim/shrink_fade_out.xml \
|
|
|
|
$(NULL)
|
|
|
|
|
2011-11-08 11:33:55 -08:00
|
|
|
RES_DRAWABLE_MDPI_V8 = \
|
|
|
|
res/drawable-mdpi-v8/ic_menu_bookmark_add.png \
|
|
|
|
res/drawable-mdpi-v8/ic_menu_bookmark_remove.png \
|
|
|
|
res/drawable-mdpi-v8/ic_menu_find_in_page.png \
|
|
|
|
res/drawable-mdpi-v8/ic_menu_reload.png \
|
|
|
|
res/drawable-mdpi-v8/ic_menu_save_as_pdf.png \
|
|
|
|
res/drawable-mdpi-v8/ic_menu_share.png \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
RES_DRAWABLE_HDPI_V8 = \
|
|
|
|
res/drawable-hdpi-v8/ic_menu_bookmark_add.png \
|
|
|
|
res/drawable-hdpi-v8/ic_menu_bookmark_remove.png \
|
|
|
|
res/drawable-hdpi-v8/ic_menu_find_in_page.png \
|
|
|
|
res/drawable-hdpi-v8/ic_menu_reload.png \
|
|
|
|
res/drawable-hdpi-v8/ic_menu_save_as_pdf.png \
|
|
|
|
res/drawable-hdpi-v8/ic_menu_share.png \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
RES_DRAWABLE_MDPI_V9 = \
|
|
|
|
res/drawable-mdpi-v9/ic_menu_bookmark_add.png \
|
|
|
|
res/drawable-mdpi-v9/ic_menu_bookmark_remove.png \
|
|
|
|
res/drawable-mdpi-v9/ic_menu_find_in_page.png \
|
|
|
|
res/drawable-mdpi-v9/ic_menu_reload.png \
|
|
|
|
res/drawable-mdpi-v9/ic_menu_save_as_pdf.png \
|
|
|
|
res/drawable-mdpi-v9/ic_menu_share.png \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
RES_DRAWABLE_HDPI_V9 = \
|
|
|
|
res/drawable-hdpi-v9/ic_menu_bookmark_add.png \
|
|
|
|
res/drawable-hdpi-v9/ic_menu_bookmark_remove.png \
|
|
|
|
res/drawable-hdpi-v9/ic_menu_find_in_page.png \
|
|
|
|
res/drawable-hdpi-v9/ic_menu_reload.png \
|
|
|
|
res/drawable-hdpi-v9/ic_menu_save_as_pdf.png \
|
|
|
|
res/drawable-hdpi-v9/ic_menu_share.png \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
RES_DRAWABLE_MDPI_V11 = \
|
|
|
|
res/drawable-mdpi-v11/ic_menu_bookmark_add.png \
|
|
|
|
res/drawable-mdpi-v11/ic_menu_bookmark_remove.png \
|
|
|
|
res/drawable-mdpi-v11/ic_menu_find_in_page.png \
|
|
|
|
res/drawable-mdpi-v11/ic_menu_reload.png \
|
|
|
|
res/drawable-mdpi-v11/ic_menu_save_as_pdf.png \
|
|
|
|
res/drawable-mdpi-v11/ic_menu_share.png \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
RES_DRAWABLE_HDPI_V11 = \
|
|
|
|
res/drawable-hdpi-v11/ic_menu_bookmark_add.png \
|
|
|
|
res/drawable-hdpi-v11/ic_menu_bookmark_remove.png \
|
|
|
|
res/drawable-hdpi-v11/ic_menu_find_in_page.png \
|
|
|
|
res/drawable-hdpi-v11/ic_menu_reload.png \
|
|
|
|
res/drawable-hdpi-v11/ic_menu_save_as_pdf.png \
|
|
|
|
res/drawable-hdpi-v11/ic_menu_share.png \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
RES_DRAWABLE_XHDPI_V11 = \
|
|
|
|
res/drawable-xhdpi-v11/ic_menu_bookmark_add.png \
|
|
|
|
res/drawable-xhdpi-v11/ic_menu_bookmark_remove.png \
|
|
|
|
res/drawable-xhdpi-v11/ic_menu_find_in_page.png \
|
|
|
|
res/drawable-xhdpi-v11/ic_menu_reload.png \
|
|
|
|
res/drawable-xhdpi-v11/ic_menu_save_as_pdf.png \
|
|
|
|
res/drawable-xhdpi-v11/ic_menu_share.png \
|
|
|
|
$(NULL)
|
|
|
|
|
2010-12-28 20:16:50 -08:00
|
|
|
AB_rCD = $(shell echo $(AB_CD) | sed -e s/-/-r/)
|
|
|
|
|
2010-06-21 14:26:55 -07:00
|
|
|
JAVA_CLASSPATH = $(ANDROID_SDK)/android.jar
|
|
|
|
|
2010-12-27 07:19:02 -08:00
|
|
|
DEFAULT_BRANDPATH = $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/en-US/brand.dtd
|
2010-12-22 13:14:50 -08:00
|
|
|
DEFAULT_STRINGSPATH = locales/en-US/android_strings.dtd
|
|
|
|
LOCALIZED_BRANDPATH = $(DEPTH)/dist/bin/chrome/$(AB_CD)/locale/branding/brand.dtd
|
|
|
|
LOCALIZED_STRINGSPATH = $(DEPTH)/dist/bin/chrome/android-res/res/values-$(AB_CD)/android_strings.dtd
|
2010-09-28 11:59:22 -07:00
|
|
|
|
2010-10-15 20:18:07 -07:00
|
|
|
ifdef MOZ_CRASHREPORTER
|
|
|
|
PROCESSEDJAVAFILES += CrashReporter.java
|
|
|
|
MOZ_ANDROID_DRAWABLES += embedding/android/resources/drawable/crash_reporter.png
|
|
|
|
RES_LAYOUT += res/layout/crash_reporter.xml
|
|
|
|
endif
|
|
|
|
|
2011-11-08 11:33:55 -08:00
|
|
|
MOZ_ANDROID_DRAWABLES += embedding/android/resources/drawable/address_bar_bg.xml \
|
2011-10-31 09:42:56 -07:00
|
|
|
embedding/android/resources/drawable/awesomebar_tab_focus.9.png \
|
|
|
|
embedding/android/resources/drawable/awesomebar_tab_focus_selected.9.png \
|
|
|
|
embedding/android/resources/drawable/awesomebar_tab_indicator.xml \
|
|
|
|
embedding/android/resources/drawable/awesomebar_tab_press.9.png \
|
|
|
|
embedding/android/resources/drawable/awesomebar_tab_press_selected.9.png \
|
|
|
|
embedding/android/resources/drawable/awesomebar_tab_selected.9.png \
|
|
|
|
embedding/android/resources/drawable/awesomebar_tab_separator.9.png \
|
|
|
|
embedding/android/resources/drawable/awesomebar_tab_unselected.9.png \
|
2011-10-27 08:27:41 -07:00
|
|
|
embedding/android/resources/drawable/desktop_notification.png \
|
|
|
|
embedding/android/resources/drawable/favicon.png \
|
2011-11-02 15:52:20 -07:00
|
|
|
embedding/android/resources/drawable/progress_spinner.xml \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_1.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_2.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_3.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_4.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_5.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_6.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_7.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_8.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_9.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_10.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_11.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_12.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_13.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_14.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_15.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_16.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_17.png \
|
|
|
|
embedding/android/resources/drawable/progress_spinner_18.png \
|
2011-10-27 08:27:41 -07:00
|
|
|
embedding/android/resources/drawable/start.png \
|
2011-11-02 11:36:44 -07:00
|
|
|
embedding/android/resources/drawable/tab_new.png \
|
|
|
|
embedding/android/resources/drawable/tab_close.png \
|
2011-10-27 16:53:09 -07:00
|
|
|
embedding/android/resources/drawable/tabs_button.xml \
|
|
|
|
embedding/android/resources/drawable/tabs_normal.png \
|
|
|
|
embedding/android/resources/drawable/tabs_pressed.png \
|
|
|
|
embedding/android/resources/drawable/tabs_off.png \
|
|
|
|
embedding/android/resources/drawable/tabs_plus.png \
|
|
|
|
embedding/android/resources/drawable/tabs_menu.png \
|
2011-11-02 11:36:44 -07:00
|
|
|
embedding/android/resources/drawable/tabs_tray_bg.9.png \
|
2011-11-09 17:39:29 -08:00
|
|
|
embedding/android/resources/drawable/checkerboard.png \
|
|
|
|
embedding/android/resources/drawable/shadow.png \
|
2011-10-11 20:32:23 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2010-11-22 18:24:05 -08:00
|
|
|
|
2010-11-16 15:50:21 -08:00
|
|
|
MOZ_ANDROID_DRAWABLES += $(shell if test -e $(topsrcdir)/$(MOZ_BRANDING_DIRECTORY)/android-resources.mn; then cat $(topsrcdir)/$(MOZ_BRANDING_DIRECTORY)/android-resources.mn | tr '\n' ' '; fi)
|
2010-10-15 20:18:07 -07:00
|
|
|
|
2010-06-02 14:55:28 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2010-12-22 13:14:50 -08:00
|
|
|
ifneq ($(AB_CD),en-US)
|
2010-12-28 20:16:50 -08:00
|
|
|
LOCALIZED_STRINGS_XML = res/values-$(AB_rCD)/strings.xml
|
2010-12-22 13:14:50 -08:00
|
|
|
endif
|
|
|
|
|
2010-06-21 14:26:55 -07:00
|
|
|
# Override the Java settings with some specific android settings
|
|
|
|
include $(topsrcdir)/config/android-common.mk
|
2010-06-02 14:55:28 -07:00
|
|
|
|
|
|
|
# Note that we're going to set up a dependency directly between embed_android.dex and the java files
|
|
|
|
# Instead of on the .class files, since more than one .class file might be produced per .java file
|
2010-06-14 19:17:37 -07:00
|
|
|
classes.dex: $(JAVAFILES) $(PROCESSEDJAVAFILES) R.java
|
2010-06-02 14:55:28 -07:00
|
|
|
$(NSINSTALL) -D classes
|
2011-10-10 17:40:17 -07:00
|
|
|
$(JAVAC) $(JAVAC_FLAGS) -Xlint:unchecked -Xlint:deprecation -d classes $(addprefix $(srcdir)/,$(JAVAFILES)) $(PROCESSEDJAVAFILES) R.java
|
2010-06-02 14:55:28 -07:00
|
|
|
$(DX) --dex --output=$@ classes
|
|
|
|
|
2010-10-26 08:08:04 -07:00
|
|
|
AndroidManifest.xml $(PROCESSEDJAVAFILES): % : %.in
|
2010-06-02 14:55:28 -07:00
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py \
|
|
|
|
$(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $< > $@
|
|
|
|
|
|
|
|
res/drawable/icon.png: $(MOZ_APP_ICON)
|
|
|
|
$(NSINSTALL) -D res/drawable
|
|
|
|
cp $(ICON_PATH) $@
|
|
|
|
|
|
|
|
res/drawable-hdpi/icon.png: $(MOZ_APP_ICON)
|
|
|
|
$(NSINSTALL) -D res/drawable-hdpi
|
2010-06-14 19:17:37 -07:00
|
|
|
cp $(ICON_PATH_HDPI) $@
|
|
|
|
|
2010-10-01 14:21:21 -07:00
|
|
|
RES_DRAWABLE = $(addprefix res/drawable/,$(notdir $(MOZ_ANDROID_DRAWABLES)))
|
|
|
|
|
|
|
|
$(RES_DRAWABLE): $(addprefix $(topsrcdir)/,$(MOZ_ANDROID_DRAWABLES))
|
2010-06-14 19:17:37 -07:00
|
|
|
$(NSINSTALL) -D res/drawable
|
2010-10-01 14:21:21 -07:00
|
|
|
$(NSINSTALL) $^ res/drawable/
|
2010-06-14 19:17:37 -07:00
|
|
|
|
2010-10-01 14:21:21 -07:00
|
|
|
$(RES_LAYOUT): $(subst res/,$(srcdir)/resources/,$(RES_LAYOUT))
|
|
|
|
$(NSINSTALL) -D res/layout
|
2011-10-13 17:00:26 -07:00
|
|
|
$(NSINSTALL) $^ res/layout
|
2010-06-14 19:17:37 -07:00
|
|
|
|
2010-12-27 07:33:37 -08:00
|
|
|
$(RES_VALUES): $(subst res/,$(srcdir)/resources/,$(RES_VALUES))
|
|
|
|
$(NSINSTALL) -D res/values
|
2011-10-13 17:00:26 -07:00
|
|
|
$(NSINSTALL) $^ res/values
|
2010-12-27 07:33:37 -08:00
|
|
|
|
2011-10-14 12:48:02 -07:00
|
|
|
$(RES_XML): $(subst res/,$(srcdir)/resources/,$(RES_XML))
|
|
|
|
$(NSINSTALL) -D res/xml
|
|
|
|
$(NSINSTALL) $(srcdir)/resources/xml/* res/xml/
|
|
|
|
|
2011-11-08 11:33:55 -08:00
|
|
|
$(RES_ANIM): $(subst res/,$(srcdir)/resources/,$(RES_ANIM))
|
2011-11-03 11:34:58 -07:00
|
|
|
$(NSINSTALL) -D res/anim
|
|
|
|
$(NSINSTALL) $(srcdir)/resources/anim/* res/anim/
|
|
|
|
|
2011-11-08 11:33:55 -08:00
|
|
|
$(RES_DRAWABLE_MDPI_V8): $(subst res/,$(srcdir)/resources/,$(RES_DRAWABLE_MDPI_V8))
|
|
|
|
$(NSINSTALL) -D res/drawable-mdpi-v8
|
|
|
|
$(NSINSTALL) $(srcdir)/resources/drawable-mdpi-v8/* res/drawable-mdpi-v8/
|
|
|
|
|
|
|
|
$(RES_DRAWABLE_HDPI_V8): $(subst res/,$(srcdir)/resources/,$(RES_DRAWABLE_HDPI_V8))
|
|
|
|
$(NSINSTALL) -D res/drawable-hdpi-v8
|
|
|
|
$(NSINSTALL) $(srcdir)/resources/drawable-hdpi-v8/* res/drawable-hdpi-v8/
|
|
|
|
|
|
|
|
$(RES_DRAWABLE_MDPI_V9): $(subst res/,$(srcdir)/resources/,$(RES_DRAWABLE_MDPI_V9))
|
|
|
|
$(NSINSTALL) -D res/drawable-mdpi-v9
|
|
|
|
$(NSINSTALL) $(srcdir)/resources/drawable-mdpi-v9/* res/drawable-mdpi-v9/
|
|
|
|
|
|
|
|
$(RES_DRAWABLE_HDPI_V9): $(subst res/,$(srcdir)/resources/,$(RES_DRAWABLE_HDPI_V9))
|
|
|
|
$(NSINSTALL) -D res/drawable-hdpi-v9
|
|
|
|
$(NSINSTALL) $(srcdir)/resources/drawable-hdpi-v9/* res/drawable-hdpi-v9/
|
|
|
|
|
|
|
|
$(RES_DRAWABLE_MDPI_V11): $(subst res/,$(srcdir)/resources/,$(RES_DRAWABLE_MDPI_V11))
|
|
|
|
$(NSINSTALL) -D res/drawable-mdpi-v11
|
|
|
|
$(NSINSTALL) $(srcdir)/resources/drawable-mdpi-v11/* res/drawable-mdpi-v11/
|
|
|
|
|
|
|
|
$(RES_DRAWABLE_HDPI_V11): $(subst res/,$(srcdir)/resources/,$(RES_DRAWABLE_HDPI_V11))
|
|
|
|
$(NSINSTALL) -D res/drawable-hdpi-v11
|
|
|
|
$(NSINSTALL) $(srcdir)/resources/drawable-hdpi-v11/* res/drawable-hdpi-v11/
|
|
|
|
|
|
|
|
$(RES_DRAWABLE_XHDPI_V11): $(subst res/,$(srcdir)/resources/,$(RES_DRAWABLE_XHDPI_V11))
|
|
|
|
$(NSINSTALL) -D res/drawable-xhdpi-v11
|
|
|
|
$(NSINSTALL) $(srcdir)/resources/drawable-xhdpi-v11/* res/drawable-xhdpi-v11/
|
|
|
|
|
|
|
|
R.java: $(MOZ_APP_ICON) $(RES_LAYOUT) $(RES_DRAWABLE) $(RES_VALUES) $(RES_XML) $(RES_ANIM) $(RES_DRAWABLE_MDPI_V8) $(RES_DRAWABLE_HDPI_V8) $(RES_DRAWABLE_MDPI_V9) $(RES_DRAWABLE_HDPI_V9) $(RES_DRAWABLE_MDPI_V11) $(RES_DRAWABLE_HDPI_V11) $(RES_DRAWABLE_XHDPI_V11) res/drawable/icon.png res/drawable-hdpi/icon.png res/values/strings.xml AndroidManifest.xml
|
2010-06-14 19:17:37 -07:00
|
|
|
$(AAPT) package -f -M AndroidManifest.xml -I $(ANDROID_SDK)/android.jar -S res -J . --custom-package org.mozilla.gecko
|
2010-06-02 14:55:28 -07:00
|
|
|
|
2011-11-08 11:33:55 -08:00
|
|
|
gecko.ap_: AndroidManifest.xml res/drawable/icon.png res/drawable-hdpi/icon.png $(RES_LAYOUT) $(RES_DRAWABLE) $(RES_VALUES) $(RES_XML) $(RES_ANIM) $(RES_DRAWABLE_MDPI_V8) $(RES_DRAWABLE_HDPI_V8) $(RES_DRAWABLE_MDPI_V9) $(RES_DRAWABLE_HDPI_V9) $(RES_DRAWABLE_MDPI_V11) $(RES_DRAWABLE_HDPI_V11) $(RES_DRAWABLE_XHDPI_V11) res/values/strings.xml FORCE
|
2010-06-02 14:55:28 -07:00
|
|
|
$(AAPT) package -f -M AndroidManifest.xml -I $(ANDROID_SDK)/android.jar -S res -F $@
|
|
|
|
|
2011-10-26 07:32:23 -07:00
|
|
|
res/values/strings.xml: $(DEFAULT_BRANDPATH) $(DEFAULT_STRINGSPATH) $(srcdir)/strings.xml.in
|
2010-09-28 11:59:22 -07:00
|
|
|
mkdir -p res/values
|
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) \
|
|
|
|
-DBRANDPATH="$(DEFAULT_BRANDPATH)" \
|
|
|
|
-DSTRINGSPATH="$(DEFAULT_STRINGSPATH)" \
|
|
|
|
$(srcdir)/strings.xml.in \
|
|
|
|
> $@
|
2010-10-12 12:30:41 -07:00
|
|
|
|
2011-10-26 07:32:23 -07:00
|
|
|
res/values-$(AB_rCD)/strings.xml: $(LOCALIZED_BRANDPATH) $(LOCALIZED_STRINGSPATH) $(srcdir)/strings.xml.in
|
2010-12-28 20:16:50 -08:00
|
|
|
mkdir -p res/values-$(AB_rCD)
|
2010-12-22 13:14:50 -08:00
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) \
|
|
|
|
-DBRANDPATH="$(call core_abspath,$(LOCALIZED_BRANDPATH))" \
|
|
|
|
-DSTRINGSPATH="$(call core_abspath,$(LOCALIZED_STRINGSPATH))" \
|
|
|
|
$(srcdir)/strings.xml.in \
|
|
|
|
> $@
|
|
|
|
|
|
|
|
chrome:: $(LOCALIZED_STRINGS_XML)
|
|
|
|
|
|
|
|
libs:: classes.dex
|
2010-10-12 12:30:41 -07:00
|
|
|
$(INSTALL) classes.dex $(FINAL_TARGET)
|