2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:23 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# 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/.
|
|
|
|
|
|
|
|
DIRS += ['locales']
|
2013-10-10 03:19:00 +04:00
|
|
|
|
|
|
|
include('android-services.mozbuild')
|
|
|
|
|
2013-10-25 02:38:22 +04:00
|
|
|
thirdparty_source_dir = TOPSRCDIR + '/mobile/android/thirdparty/'
|
|
|
|
|
2014-03-05 20:57:09 +04:00
|
|
|
resjar = add_java_jar('gecko-R')
|
|
|
|
resjar.sources = []
|
|
|
|
resjar.generated_sources += [
|
|
|
|
'org/mozilla/gecko/R.java',
|
|
|
|
]
|
|
|
|
resjar.javac_flags += ['-Xlint:all']
|
|
|
|
|
2013-10-25 02:38:22 +04:00
|
|
|
mgjar = add_java_jar('gecko-mozglue')
|
|
|
|
mgjar.sources += [
|
|
|
|
'mozglue/ByteBufferInputStream.java',
|
|
|
|
'mozglue/DirectBufferAllocator.java',
|
2013-11-12 22:40:59 +04:00
|
|
|
'mozglue/generatorannotations/GeneratorOptions.java',
|
|
|
|
'mozglue/generatorannotations/OptionalGeneratedParameter.java',
|
|
|
|
'mozglue/generatorannotations/WrapElementForJNI.java',
|
|
|
|
'mozglue/generatorannotations/WrapEntireClassForJNI.java',
|
2013-11-22 02:44:00 +04:00
|
|
|
'mozglue/JNITarget.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'mozglue/NativeReference.java',
|
|
|
|
'mozglue/NativeZip.java',
|
2013-11-19 09:09:00 +04:00
|
|
|
'mozglue/RobocopTarget.java',
|
2013-11-19 05:27:00 +04:00
|
|
|
'mozglue/WebRTCJNITarget.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
]
|
|
|
|
mgjar.generated_sources += [
|
2013-11-14 07:32:55 +04:00
|
|
|
'org/mozilla/gecko/mozglue/GeckoLoader.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
]
|
2013-11-14 07:32:55 +04:00
|
|
|
mgjar.javac_flags += ['-Xlint:all']
|
2013-10-25 02:38:22 +04:00
|
|
|
|
|
|
|
wsjar = add_java_jar('websockets')
|
|
|
|
wsjar.sources += [ thirdparty_source_dir + f for f in [
|
|
|
|
'com/codebutler/android_websockets/HybiParser.java',
|
|
|
|
'com/codebutler/android_websockets/WebSocketClient.java',
|
|
|
|
] ]
|
2013-11-14 07:32:55 +04:00
|
|
|
wsjar.javac_flags += ['-Xlint:all,-serial']
|
2013-10-25 02:38:22 +04:00
|
|
|
|
|
|
|
gujar = add_java_jar('gecko-util')
|
|
|
|
gujar.sources += [
|
|
|
|
'util/ActivityResultHandler.java',
|
|
|
|
'util/ActivityResultHandlerMap.java',
|
|
|
|
'util/Clipboard.java',
|
|
|
|
'util/FloatUtils.java',
|
|
|
|
'util/GamepadUtils.java',
|
|
|
|
'util/GeckoBackgroundThread.java',
|
|
|
|
'util/GeckoEventListener.java',
|
|
|
|
'util/GeckoJarReader.java',
|
|
|
|
'util/HardwareUtils.java',
|
|
|
|
'util/INIParser.java',
|
|
|
|
'util/INISection.java',
|
|
|
|
'util/JSONUtils.java',
|
2014-02-07 23:49:32 +04:00
|
|
|
'util/MenuUtils.java',
|
2013-11-23 05:12:20 +04:00
|
|
|
'util/NonEvictingLruCache.java',
|
2014-01-08 03:46:44 +04:00
|
|
|
'util/ProxySelector.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'util/StringUtils.java',
|
|
|
|
'util/ThreadUtils.java',
|
|
|
|
'util/UiAsyncTask.java',
|
|
|
|
]
|
2013-11-14 07:32:55 +04:00
|
|
|
gujar.extra_jars = [
|
2013-10-25 02:38:22 +04:00
|
|
|
'gecko-mozglue.jar'
|
|
|
|
]
|
2013-11-14 07:32:55 +04:00
|
|
|
gujar.javac_flags += ['-Xlint:all,-deprecation']
|
2013-10-25 02:38:22 +04:00
|
|
|
|
|
|
|
stjar = add_java_jar('sync-thirdparty')
|
|
|
|
stjar.sources += [ thirdparty_source_dir + f for f in sync_thirdparty_java_files ]
|
2013-11-14 07:32:55 +04:00
|
|
|
stjar.javac_flags = ['-Xlint:none']
|
2013-10-25 02:38:22 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBRTC']:
|
2013-11-08 05:07:47 +04:00
|
|
|
video_root = TOPSRCDIR + '/media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/'
|
|
|
|
audio_root = TOPSRCDIR + '/media/webrtc/trunk/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/'
|
2013-10-25 02:38:22 +04:00
|
|
|
wrjar = add_java_jar('webrtc')
|
|
|
|
wrjar.sources += [
|
|
|
|
video_root + 'CaptureCapabilityAndroid.java',
|
|
|
|
video_root + 'VideoCaptureAndroid.java',
|
|
|
|
video_root + 'VideoCaptureDeviceInfoAndroid.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
]
|
|
|
|
wrjar.sources += [
|
2013-11-14 05:11:58 +04:00
|
|
|
audio_root + 'AudioManagerAndroid.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
audio_root + 'WebRTCAudioDevice.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
]
|
|
|
|
wrjar.extra_jars = [
|
2014-03-05 20:57:09 +04:00
|
|
|
'gecko-R.jar',
|
2013-10-25 02:38:22 +04:00
|
|
|
'gecko-browser.jar',
|
|
|
|
'gecko-util.jar',
|
|
|
|
'gecko-mozglue.jar',
|
|
|
|
]
|
2013-11-14 07:32:55 +04:00
|
|
|
wrjar.javac_flags += ['-Xlint:all,-deprecation,-cast']
|
2013-10-25 02:38:22 +04:00
|
|
|
|
|
|
|
gbjar = add_java_jar('gecko-browser')
|
|
|
|
gbjar.sources += [
|
2013-11-22 11:33:28 +04:00
|
|
|
'AboutPages.java',
|
2013-11-19 23:57:35 +04:00
|
|
|
'ActionModeCompat.java',
|
|
|
|
'ActionModeCompatView.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'ActivityHandlerHelper.java',
|
|
|
|
'AlertNotification.java',
|
2013-12-04 20:35:58 +04:00
|
|
|
'animation/AnimationUtils.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'animation/AnimatorProxy.java',
|
|
|
|
'animation/HeightChangeAnimation.java',
|
|
|
|
'animation/PropertyAnimator.java',
|
|
|
|
'animation/Rotate3DAnimation.java',
|
|
|
|
'animation/ViewHelper.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'ANRReporter.java',
|
|
|
|
'AppNotificationClient.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'BaseGeckoInterface.java',
|
|
|
|
'BrowserApp.java',
|
|
|
|
'ContactService.java',
|
|
|
|
'ContextGetter.java',
|
|
|
|
'CustomEditText.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'DataReportingNotification.java',
|
|
|
|
'db/BrowserContract.java',
|
2014-01-20 19:38:18 +04:00
|
|
|
'db/BrowserDatabaseHelper.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'db/BrowserDB.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'db/BrowserProvider.java',
|
2013-11-14 05:11:58 +04:00
|
|
|
'db/DBUtils.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'db/FormHistoryProvider.java',
|
2014-01-28 01:49:34 +04:00
|
|
|
'db/HomeProvider.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'db/LocalBrowserDB.java',
|
|
|
|
'db/PasswordsProvider.java',
|
2013-12-09 21:05:59 +04:00
|
|
|
'db/PerProfileDatabases.java',
|
2014-03-04 03:34:57 +04:00
|
|
|
'db/ReadingListProvider.java',
|
2014-01-18 05:02:55 +04:00
|
|
|
'db/SQLiteBridgeContentProvider.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'db/TabsProvider.java',
|
2014-01-20 19:38:18 +04:00
|
|
|
'db/TransactionalProvider.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'Distribution.java',
|
|
|
|
'DoorHangerPopup.java',
|
|
|
|
'EditBookmarkDialog.java',
|
2014-02-11 21:16:00 +04:00
|
|
|
'EventDispatcher.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'favicons/cache/FaviconCache.java',
|
|
|
|
'favicons/cache/FaviconCacheElement.java',
|
|
|
|
'favicons/cache/FaviconsForURL.java',
|
2014-01-18 07:24:28 +04:00
|
|
|
'favicons/decoders/FaviconDecoder.java',
|
|
|
|
'favicons/decoders/ICODecoder.java',
|
|
|
|
'favicons/decoders/IconDirectoryEntry.java',
|
|
|
|
'favicons/decoders/LoadFaviconResult.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'favicons/Favicons.java',
|
|
|
|
'favicons/LoadFaviconTask.java',
|
|
|
|
'favicons/OnFaviconLoadedListener.java',
|
2014-02-15 00:02:05 +04:00
|
|
|
'FilePicker.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'FilePickerResultHandler.java',
|
|
|
|
'FindInPageBar.java',
|
|
|
|
'FormAssistPopup.java',
|
|
|
|
'GeckoAccessibility.java',
|
2013-11-14 05:11:58 +04:00
|
|
|
'GeckoActivity.java',
|
|
|
|
'GeckoActivityStatus.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'GeckoApp.java',
|
|
|
|
'GeckoApplication.java',
|
|
|
|
'GeckoAppShell.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'GeckoBatteryManager.java',
|
|
|
|
'GeckoConnectivityReceiver.java',
|
|
|
|
'GeckoEditable.java',
|
|
|
|
'GeckoEvent.java',
|
|
|
|
'GeckoHalDefines.java',
|
|
|
|
'GeckoInputConnection.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'GeckoJavaSampler.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'GeckoMessageReceiver.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'GeckoNetworkManager.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'GeckoProfile.java',
|
2014-03-04 03:27:42 +04:00
|
|
|
'GeckoProfileDirectories.java',
|
2014-02-20 21:50:18 +04:00
|
|
|
'GeckoScreenOrientation.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'GeckoSmsManager.java',
|
|
|
|
'GeckoThread.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'GeckoUpdateReceiver.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'GeckoView.java',
|
2013-11-07 02:58:29 +04:00
|
|
|
'GeckoViewChrome.java',
|
2013-11-07 02:59:07 +04:00
|
|
|
'GeckoViewContent.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'gfx/Axis.java',
|
|
|
|
'gfx/BitmapUtils.java',
|
|
|
|
'gfx/BufferedCairoImage.java',
|
|
|
|
'gfx/CairoGLInfo.java',
|
|
|
|
'gfx/CairoImage.java',
|
|
|
|
'gfx/CairoUtils.java',
|
|
|
|
'gfx/DisplayPortCalculator.java',
|
|
|
|
'gfx/DisplayPortMetrics.java',
|
|
|
|
'gfx/DrawTimingQueue.java',
|
|
|
|
'gfx/FloatSize.java',
|
|
|
|
'gfx/GeckoLayerClient.java',
|
|
|
|
'gfx/GLController.java',
|
|
|
|
'gfx/ImmutableViewportMetrics.java',
|
|
|
|
'gfx/InputConnectionHandler.java',
|
|
|
|
'gfx/IntSize.java',
|
|
|
|
'gfx/JavaPanZoomController.java',
|
|
|
|
'gfx/Layer.java',
|
|
|
|
'gfx/LayerMarginsAnimator.java',
|
|
|
|
'gfx/LayerRenderer.java',
|
|
|
|
'gfx/LayerView.java',
|
|
|
|
'gfx/NativePanZoomController.java',
|
|
|
|
'gfx/NinePatchTileLayer.java',
|
|
|
|
'gfx/Overscroll.java',
|
2013-10-23 20:12:28 +04:00
|
|
|
'gfx/OverscrollEdgeEffect.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'gfx/PanningPerfAPI.java',
|
|
|
|
'gfx/PanZoomController.java',
|
|
|
|
'gfx/PanZoomTarget.java',
|
|
|
|
'gfx/PluginLayer.java',
|
|
|
|
'gfx/PointUtils.java',
|
|
|
|
'gfx/ProgressiveUpdateData.java',
|
|
|
|
'gfx/RectUtils.java',
|
|
|
|
'gfx/RenderTask.java',
|
|
|
|
'gfx/ScrollbarLayer.java',
|
|
|
|
'gfx/SimpleScaleGestureDetector.java',
|
|
|
|
'gfx/SingleTileLayer.java',
|
|
|
|
'gfx/SubdocumentScrollHelper.java',
|
|
|
|
'gfx/TextLayer.java',
|
|
|
|
'gfx/TextureGenerator.java',
|
|
|
|
'gfx/TextureReaper.java',
|
|
|
|
'gfx/TileLayer.java',
|
|
|
|
'gfx/TouchEventHandler.java',
|
|
|
|
'gfx/ViewTransform.java',
|
|
|
|
'gfx/VirtualLayer.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'GlobalHistory.java',
|
|
|
|
'health/BrowserHealthRecorder.java',
|
|
|
|
'health/BrowserHealthReporter.java',
|
2014-02-05 07:41:29 +04:00
|
|
|
'health/HealthRecorder.java',
|
|
|
|
'health/SessionInformation.java',
|
|
|
|
'health/StubbedHealthRecorder.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'home/BookmarkFolderView.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'home/BookmarksListAdapter.java',
|
|
|
|
'home/BookmarksListView.java',
|
2014-01-11 05:18:07 +04:00
|
|
|
'home/BookmarksPanel.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'home/BrowserSearch.java',
|
2014-01-15 23:49:26 +04:00
|
|
|
'home/DynamicPanel.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'home/FadedTextView.java',
|
2014-01-28 01:29:55 +04:00
|
|
|
'home/FramePanelLayout.java',
|
2014-01-11 05:18:07 +04:00
|
|
|
'home/HistoryPanel.java',
|
2013-12-12 16:02:50 +04:00
|
|
|
'home/HomeAdapter.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'home/HomeBanner.java',
|
2013-12-12 16:04:31 +04:00
|
|
|
'home/HomeConfig.java',
|
2014-02-05 18:14:53 +04:00
|
|
|
'home/HomeConfigInvalidator.java',
|
2013-12-12 16:04:31 +04:00
|
|
|
'home/HomeConfigLoader.java',
|
2014-01-10 15:16:28 +04:00
|
|
|
'home/HomeConfigPrefsBackend.java',
|
2014-01-31 20:30:47 +04:00
|
|
|
'home/HomeContextMenuInfo.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'home/HomeFragment.java',
|
|
|
|
'home/HomeListView.java',
|
|
|
|
'home/HomePager.java',
|
|
|
|
'home/HomePagerTabStrip.java',
|
2014-03-04 22:31:38 +04:00
|
|
|
'home/HomePanelPicker.java',
|
2014-01-11 05:18:07 +04:00
|
|
|
'home/LastTabsPanel.java',
|
|
|
|
'home/MostRecentPanel.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'home/MultiTypeCursorAdapter.java',
|
2014-01-30 04:37:58 +04:00
|
|
|
'home/PanelGridView.java',
|
2014-02-19 21:37:00 +04:00
|
|
|
'home/PanelItemView.java',
|
2014-01-28 01:29:55 +04:00
|
|
|
'home/PanelLayout.java',
|
|
|
|
'home/PanelListView.java',
|
2014-01-11 00:57:20 +04:00
|
|
|
'home/PanelManager.java',
|
2014-02-19 21:37:00 +04:00
|
|
|
'home/PanelViewAdapter.java',
|
2014-02-25 14:41:57 +04:00
|
|
|
'home/PanelViewUrlHandler.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'home/PinSiteDialog.java',
|
2014-01-11 05:18:07 +04:00
|
|
|
'home/ReadingListPanel.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'home/SearchEngine.java',
|
|
|
|
'home/SearchEngineRow.java',
|
|
|
|
'home/SearchLoader.java',
|
|
|
|
'home/SimpleCursorLoader.java',
|
|
|
|
'home/SuggestClient.java',
|
|
|
|
'home/TabMenuStrip.java',
|
|
|
|
'home/TopSitesGridItemView.java',
|
|
|
|
'home/TopSitesGridView.java',
|
2014-01-11 05:18:07 +04:00
|
|
|
'home/TopSitesPanel.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'home/TopSitesThumbnailView.java',
|
|
|
|
'home/TwoLinePageRow.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'InputMethods.java',
|
|
|
|
'JavaAddonManager.java',
|
|
|
|
'LightweightTheme.java',
|
|
|
|
'LightweightThemeDrawable.java',
|
2013-12-04 03:05:43 +04:00
|
|
|
'LocaleManager.java',
|
2014-01-21 02:26:30 +04:00
|
|
|
'MediaCastingBar.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'MemoryMonitor.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'menu/GeckoMenu.java',
|
|
|
|
'menu/GeckoMenuInflater.java',
|
|
|
|
'menu/GeckoMenuItem.java',
|
|
|
|
'menu/GeckoSubMenu.java',
|
|
|
|
'menu/MenuItemActionBar.java',
|
|
|
|
'menu/MenuItemActionView.java',
|
|
|
|
'menu/MenuItemDefault.java',
|
|
|
|
'menu/MenuPanel.java',
|
|
|
|
'menu/MenuPopup.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'MotionEventInterceptor.java',
|
|
|
|
'NotificationClient.java',
|
|
|
|
'NotificationHandler.java',
|
|
|
|
'NotificationHelper.java',
|
|
|
|
'NotificationService.java',
|
|
|
|
'NSSBridge.java',
|
|
|
|
'OrderedBroadcastHelper.java',
|
2013-11-11 22:41:16 +04:00
|
|
|
'preferences/AlignRightLinkPreference.java',
|
|
|
|
'preferences/AndroidImport.java',
|
|
|
|
'preferences/AndroidImportPreference.java',
|
2014-01-22 22:10:51 +04:00
|
|
|
'preferences/CustomListCategory.java',
|
|
|
|
'preferences/CustomListPreference.java',
|
2013-11-11 22:41:16 +04:00
|
|
|
'preferences/FontSizePreference.java',
|
2013-11-14 05:11:58 +04:00
|
|
|
'preferences/GeckoPreferenceFragment.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'preferences/GeckoPreferences.java',
|
2013-11-11 22:41:16 +04:00
|
|
|
'preferences/LinkPreference.java',
|
2014-02-21 01:11:25 +04:00
|
|
|
'preferences/ModifiableHintPreference.java',
|
2013-11-11 22:41:16 +04:00
|
|
|
'preferences/MultiChoicePreference.java',
|
2013-12-17 08:37:16 +04:00
|
|
|
'preferences/PanelsPreference.java',
|
|
|
|
'preferences/PanelsPreferenceCategory.java',
|
2013-11-11 22:41:16 +04:00
|
|
|
'preferences/PrivateDataPreference.java',
|
2013-11-14 05:11:58 +04:00
|
|
|
'preferences/SearchEnginePreference.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'preferences/SearchPreferenceCategory.java',
|
2013-11-11 22:41:16 +04:00
|
|
|
'preferences/SyncPreference.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'PrefsHelper.java',
|
|
|
|
'PrivateTab.java',
|
2013-12-12 03:51:01 +04:00
|
|
|
'prompts/ColorPickerInput.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'prompts/IconGridInput.java',
|
2014-02-07 04:21:00 +04:00
|
|
|
'prompts/IntentChooserPrompt.java',
|
|
|
|
'prompts/IntentHandler.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'prompts/Prompt.java',
|
|
|
|
'prompts/PromptInput.java',
|
2014-02-07 04:16:00 +04:00
|
|
|
'prompts/PromptListAdapter.java',
|
2014-02-07 04:13:00 +04:00
|
|
|
'prompts/PromptListItem.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'prompts/PromptService.java',
|
2014-02-07 04:24:00 +04:00
|
|
|
'prompts/TabInput.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'ReaderModeUtils.java',
|
|
|
|
'ReferrerReceiver.java',
|
|
|
|
'RemoteTabs.java',
|
|
|
|
'Restarter.java',
|
|
|
|
'ScrollAnimator.java',
|
|
|
|
'ServiceNotificationClient.java',
|
|
|
|
'SessionParser.java',
|
|
|
|
'SharedPreferencesHelper.java',
|
2013-12-12 04:28:15 +04:00
|
|
|
'SiteIdentity.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'SmsManager.java',
|
|
|
|
'sqlite/ByteBufferInputStream.java',
|
|
|
|
'sqlite/MatrixBlobCursor.java',
|
|
|
|
'sqlite/SQLiteBridge.java',
|
|
|
|
'sqlite/SQLiteBridgeException.java',
|
|
|
|
'SurfaceBits.java',
|
|
|
|
'Tab.java',
|
|
|
|
'Tabs.java',
|
|
|
|
'TabsAccessor.java',
|
|
|
|
'TabsPanel.java',
|
|
|
|
'TabsTray.java',
|
|
|
|
'Telemetry.java',
|
|
|
|
'TextSelection.java',
|
|
|
|
'TextSelectionHandle.java',
|
|
|
|
'ThumbnailHelper.java',
|
2013-11-19 19:46:48 +04:00
|
|
|
'toolbar/AutocompleteHandler.java',
|
|
|
|
'toolbar/BackButton.java',
|
|
|
|
'toolbar/BrowserToolbar.java',
|
|
|
|
'toolbar/CanvasDelegate.java',
|
|
|
|
'toolbar/ForwardButton.java',
|
|
|
|
'toolbar/PageActionLayout.java',
|
|
|
|
'toolbar/ShapedButton.java',
|
2013-12-12 04:28:14 +04:00
|
|
|
'toolbar/SiteIdentityPopup.java',
|
2013-11-19 19:46:48 +04:00
|
|
|
'toolbar/TabCounter.java',
|
2014-01-09 18:55:28 +04:00
|
|
|
'toolbar/ToolbarDisplayLayout.java',
|
2013-11-22 19:34:29 +04:00
|
|
|
'toolbar/ToolbarEditLayout.java',
|
2013-11-22 17:47:42 +04:00
|
|
|
'toolbar/ToolbarEditText.java',
|
2014-01-18 08:03:59 +04:00
|
|
|
'toolbar/ToolbarProgressView.java',
|
2014-01-09 18:55:30 +04:00
|
|
|
'toolbar/ToolbarTitlePrefs.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'TouchEventInterceptor.java',
|
2013-11-14 05:11:58 +04:00
|
|
|
'updater/UpdateService.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'updater/UpdateServiceHelper.java',
|
|
|
|
'VideoPlayer.java',
|
2014-01-25 09:57:13 +04:00
|
|
|
'webapp/Allocator.java',
|
2014-01-09 22:18:55 +04:00
|
|
|
'webapp/ApkResources.java',
|
2014-01-25 09:57:13 +04:00
|
|
|
'webapp/Dispatcher.java',
|
|
|
|
'webapp/EventListener.java',
|
2014-01-09 22:18:55 +04:00
|
|
|
'webapp/InstallHelper.java',
|
|
|
|
'webapp/InstallListener.java',
|
|
|
|
'webapp/UninstallListener.java',
|
2014-02-12 11:41:05 +04:00
|
|
|
'webapp/WebappImpl.java',
|
|
|
|
'WebappAllocator.java',
|
|
|
|
'WebappImpl.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'widget/ActivityChooserModel.java',
|
2013-11-11 22:41:12 +04:00
|
|
|
'widget/AllCapsTextView.java',
|
|
|
|
'widget/AnimatedHeightLayout.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'widget/ArrowPopup.java',
|
2013-12-12 03:51:01 +04:00
|
|
|
'widget/BasicColorPicker.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'widget/ButtonToast.java',
|
2013-11-11 22:41:12 +04:00
|
|
|
'widget/CheckableLinearLayout.java',
|
|
|
|
'widget/ClickableWhenDisabledEditText.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'widget/DateTimePicker.java',
|
|
|
|
'widget/Divider.java',
|
2013-12-12 04:28:13 +04:00
|
|
|
'widget/DoorHanger.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'widget/FaviconView.java',
|
2013-11-11 22:41:12 +04:00
|
|
|
'widget/FlowLayout.java',
|
2013-11-14 05:11:58 +04:00
|
|
|
'widget/GeckoActionProvider.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'widget/GeckoPopupMenu.java',
|
2014-01-28 21:15:36 +04:00
|
|
|
'widget/GeckoViewFlipper.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'widget/IconTabWidget.java',
|
2014-01-31 20:57:56 +04:00
|
|
|
'widget/SquaredImageView.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
'widget/TabRow.java',
|
|
|
|
'widget/ThumbnailView.java',
|
|
|
|
'widget/TwoWayView.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'ZoomConstraints.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
]
|
|
|
|
gbjar.sources += [ thirdparty_source_dir + f for f in [
|
|
|
|
'com/googlecode/eyesfree/braille/selfbraille/ISelfBrailleService.java',
|
|
|
|
'com/googlecode/eyesfree/braille/selfbraille/SelfBrailleClient.java',
|
|
|
|
'com/googlecode/eyesfree/braille/selfbraille/WriteData.java',
|
|
|
|
] ]
|
2013-11-14 07:32:55 +04:00
|
|
|
android_package_dir = CONFIG['ANDROID_PACKAGE_NAME'].replace('.', '/')
|
|
|
|
# All generated sources are handled specially in Makefile.in. And
|
|
|
|
# R.java is handled even more specially than the others!
|
|
|
|
gbjar.generated_sources += [ android_package_dir + f for f in [
|
|
|
|
'/App.java',
|
2014-02-12 11:41:05 +04:00
|
|
|
'/Webapp.java',
|
2013-11-14 07:32:55 +04:00
|
|
|
'/WebApps.java',
|
|
|
|
] ]
|
2013-10-25 02:38:22 +04:00
|
|
|
gbjar.generated_sources += [
|
2013-11-14 07:32:55 +04:00
|
|
|
'org/mozilla/gecko/AppConstants.java',
|
|
|
|
'org/mozilla/gecko/SysInfo.java',
|
|
|
|
'org/mozilla/gecko/widget/GeckoEditText.java',
|
|
|
|
'org/mozilla/gecko/widget/GeckoImageButton.java',
|
|
|
|
'org/mozilla/gecko/widget/GeckoImageView.java',
|
|
|
|
'org/mozilla/gecko/widget/GeckoLinearLayout.java',
|
|
|
|
'org/mozilla/gecko/widget/GeckoRelativeLayout.java',
|
|
|
|
'org/mozilla/gecko/widget/GeckoTextSwitcher.java',
|
|
|
|
'org/mozilla/gecko/widget/GeckoTextView.java',
|
2013-10-25 02:38:22 +04:00
|
|
|
]
|
|
|
|
if CONFIG['MOZ_CRASHREPORTER']:
|
2013-12-12 09:20:07 +04:00
|
|
|
gbjar.sources += [ 'CrashReporter.java' ]
|
|
|
|
ANDROID_RES_DIRS += [ SRCDIR + '/crashreporter/res' ]
|
|
|
|
|
2013-10-25 02:38:22 +04:00
|
|
|
gbjar.sources += sync_java_files
|
|
|
|
gbjar.generated_sources += sync_generated_java_files
|
2013-11-14 07:32:55 +04:00
|
|
|
gbjar.extra_jars = [
|
2014-03-05 20:57:09 +04:00
|
|
|
'gecko-R.jar',
|
2013-10-25 02:38:22 +04:00
|
|
|
'gecko-mozglue.jar',
|
|
|
|
'gecko-util.jar',
|
2014-02-07 01:06:38 +04:00
|
|
|
'squareup-picasso.jar',
|
2013-10-25 02:38:22 +04:00
|
|
|
'sync-thirdparty.jar',
|
|
|
|
'websockets.jar',
|
|
|
|
]
|
2013-11-14 07:32:55 +04:00
|
|
|
gbjar.javac_flags += ['-Xlint:all,-deprecation,-fallthrough']
|
2013-10-25 02:38:22 +04:00
|
|
|
|
2014-02-07 01:06:38 +04:00
|
|
|
spjar = add_java_jar('squareup-picasso')
|
|
|
|
spjar.sources += [ thirdparty_source_dir + f for f in [
|
|
|
|
'com/squareup/picasso/Action.java',
|
|
|
|
'com/squareup/picasso/AssetBitmapHunter.java',
|
|
|
|
'com/squareup/picasso/BitmapHunter.java',
|
|
|
|
'com/squareup/picasso/Cache.java',
|
|
|
|
'com/squareup/picasso/Callback.java',
|
|
|
|
'com/squareup/picasso/ContactsPhotoBitmapHunter.java',
|
|
|
|
'com/squareup/picasso/ContentStreamBitmapHunter.java',
|
|
|
|
'com/squareup/picasso/DeferredRequestCreator.java',
|
|
|
|
'com/squareup/picasso/Dispatcher.java',
|
|
|
|
'com/squareup/picasso/Downloader.java',
|
|
|
|
'com/squareup/picasso/FetchAction.java',
|
|
|
|
'com/squareup/picasso/FileBitmapHunter.java',
|
|
|
|
'com/squareup/picasso/GetAction.java',
|
|
|
|
'com/squareup/picasso/ImageViewAction.java',
|
|
|
|
'com/squareup/picasso/LruCache.java',
|
|
|
|
'com/squareup/picasso/MarkableInputStream.java',
|
|
|
|
'com/squareup/picasso/MediaStoreBitmapHunter.java',
|
|
|
|
'com/squareup/picasso/NetworkBitmapHunter.java',
|
|
|
|
'com/squareup/picasso/Picasso.java',
|
|
|
|
'com/squareup/picasso/PicassoDrawable.java',
|
|
|
|
'com/squareup/picasso/PicassoExecutorService.java',
|
|
|
|
'com/squareup/picasso/Request.java',
|
|
|
|
'com/squareup/picasso/RequestCreator.java',
|
|
|
|
'com/squareup/picasso/ResourceBitmapHunter.java',
|
|
|
|
'com/squareup/picasso/Stats.java',
|
|
|
|
'com/squareup/picasso/StatsSnapshot.java',
|
|
|
|
'com/squareup/picasso/Target.java',
|
|
|
|
'com/squareup/picasso/TargetAction.java',
|
|
|
|
'com/squareup/picasso/Transformation.java',
|
|
|
|
'com/squareup/picasso/UrlConnectionDownloader.java',
|
|
|
|
'com/squareup/picasso/Utils.java',
|
|
|
|
] ]
|
|
|
|
#spjar.javac_flags += ['-Xlint:all']
|
|
|
|
|
2013-12-12 09:20:07 +04:00
|
|
|
ANDROID_RES_DIRS += [
|
|
|
|
SRCDIR + '/resources',
|
|
|
|
TOPSRCDIR + '/' + CONFIG['MOZ_BRANDING_DIRECTORY'] + '/res',
|
|
|
|
OBJDIR + '/res',
|
2013-10-10 03:19:00 +04:00
|
|
|
]
|
2013-11-20 18:16:00 +04:00
|
|
|
|
2013-12-12 09:20:07 +04:00
|
|
|
ANDROID_GENERATED_RESFILES += [
|
|
|
|
'res/values/strings.xml',
|
2013-11-20 18:16:00 +04:00
|
|
|
]
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
for var in ('MOZ_ANDROID_ANR_REPORTER', 'MOZ_LINKER_EXTRACT'):
|
|
|
|
if CONFIG[var]:
|
|
|
|
DEFINES[var] = 1
|
|
|
|
|
|
|
|
for var in ('MOZ_UPDATER', 'MOZ_PKG_SPECIAL'):
|
|
|
|
if CONFIG[var]:
|
|
|
|
DEFINES[var] = CONFIG[var]
|
|
|
|
|
|
|
|
for var in ('ANDROID_PACKAGE_NAME', 'ANDROID_CPU_ARCH', 'CPU_ARCH',
|
|
|
|
'GRE_MILESTONE', 'MOZILLA_OFFICIAL', 'MOZ_APP_BASENAME',
|
|
|
|
'MOZ_APP_DISPLAYNAME', 'MOZ_APP_ID', 'MOZ_APP_NAME',
|
|
|
|
'MOZ_APP_VENDOR', 'MOZ_APP_VERSION', 'MOZ_CHILD_PROCESS_NAME',
|
|
|
|
'MOZ_CRASHREPORTER', 'MOZ_UPDATE_CHANNEL', 'OMNIJAR_NAME',
|
|
|
|
'OS_TARGET', 'TARGET_XPCOM_ABI'):
|
|
|
|
DEFINES[var] = CONFIG[var]
|
|
|
|
|
|
|
|
# Mangle our package name to avoid Bug 750548.
|
|
|
|
DEFINES['MANGLED_ANDROID_PACKAGE_NAME'] = CONFIG['ANDROID_PACKAGE_NAME'].replace('fennec', 'f3nn3c')
|
|
|
|
DEFINES['MOZ_APP_ABI'] = CONFIG['TARGET_XPCOM_ABI']
|
|
|
|
|
|
|
|
if '-march=armv7' in CONFIG['OS_CFLAGS']:
|
|
|
|
DEFINES['MOZ_MIN_CPU_VERSION'] = 7
|
|
|
|
else:
|
|
|
|
DEFINES['MOZ_MIN_CPU_VERSION'] = 5
|
2014-02-14 10:19:50 +04:00
|
|
|
|
2014-02-25 06:14:05 +04:00
|
|
|
generated = add_android_eclipse_library_project('FennecResourcesGenerated')
|
|
|
|
generated.package_name = 'org.mozilla.fennec.resources.generated'
|
2014-02-14 10:19:50 +04:00
|
|
|
generated.res = OBJDIR + '/res'
|
|
|
|
|
2014-02-25 06:14:05 +04:00
|
|
|
branding = add_android_eclipse_library_project('FennecResourcesBranding')
|
|
|
|
branding.package_name = 'org.mozilla.fennec.resources.branding'
|
2014-02-14 10:19:50 +04:00
|
|
|
branding.res = TOPSRCDIR + '/' + CONFIG['MOZ_BRANDING_DIRECTORY'] + '/res'
|
|
|
|
|
|
|
|
main = add_android_eclipse_project('Fennec', OBJDIR + '/AndroidManifest.xml')
|
|
|
|
main.package_name = 'org.mozilla.gecko'
|
|
|
|
|
2014-02-26 03:59:31 +04:00
|
|
|
# These values were extracted from an existing Eclipse project. Use
|
|
|
|
# Project > Resource > Resource Filters and inspect the resulting
|
|
|
|
# .project file to modify this list.
|
|
|
|
main.filtered_resources += [
|
|
|
|
'1.0-projectRelativePath-matches-false-false-*org/mozilla/gecko/resources/**',
|
|
|
|
'1.0-projectRelativePath-matches-false-false-*org/mozilla/gecko/tests/**',
|
|
|
|
]
|
|
|
|
|
2014-02-14 10:19:50 +04:00
|
|
|
main.recursive_make_targets += ['.aapt.deps'] # Captures dependencies on Android manifest and all resources.
|
|
|
|
main.recursive_make_targets += [OBJDIR + '/generated/' + f for f in mgjar.generated_sources]
|
|
|
|
main.recursive_make_targets += [OBJDIR + '/generated/' + f for f in gbjar.generated_sources]
|
|
|
|
|
|
|
|
main.included_projects += ['../' + generated.name, '../' + branding.name]
|
2014-02-18 12:08:41 +04:00
|
|
|
main.referenced_projects += [generated.name, branding.name]
|
2014-02-14 10:19:50 +04:00
|
|
|
main.extra_jars += [CONFIG['ANDROID_COMPAT_LIB']]
|
|
|
|
main.assets = TOPOBJDIR + '/dist/fennec/assets'
|
|
|
|
main.libs = TOPOBJDIR + '/dist/fennec/lib'
|
2014-02-25 06:14:04 +04:00
|
|
|
main.res = None
|
2014-02-14 10:19:50 +04:00
|
|
|
|
|
|
|
cpe = main.add_classpathentry('src', SRCDIR,
|
|
|
|
dstdir='src/org/mozilla/gecko',
|
2014-02-18 12:08:41 +04:00
|
|
|
exclude_patterns=['org/mozilla/gecko/tests/**',
|
|
|
|
'org/mozilla/gecko/resources/**'])
|
2014-02-14 10:19:50 +04:00
|
|
|
if not CONFIG['MOZ_CRASHREPORTER']:
|
|
|
|
cpe.exclude_patterns += ['org/mozilla/gecko/CrashReporter.java']
|
|
|
|
main.add_classpathentry('generated', OBJDIR + '/generated',
|
|
|
|
dstdir='generated')
|
|
|
|
main.add_classpathentry('thirdparty', TOPSRCDIR + '/mobile/android/thirdparty',
|
|
|
|
dstdir='thirdparty',
|
|
|
|
ignore_warnings=True)
|
2014-02-25 06:14:04 +04:00
|
|
|
|
|
|
|
resources = add_android_eclipse_library_project('FennecResources')
|
|
|
|
resources.package_name = 'org.mozilla.fennec.resources'
|
|
|
|
resources.res = SRCDIR + '/resources'
|
|
|
|
resources.included_projects += ['../' + generated.name, '../' + branding.name]
|
|
|
|
resources.referenced_projects += [generated.name, branding.name]
|
|
|
|
|
|
|
|
main.included_projects += ['../' + resources.name]
|
|
|
|
main.referenced_projects += [resources.name]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_CRASHREPORTER']:
|
2014-02-25 06:14:05 +04:00
|
|
|
crashreporter = add_android_eclipse_library_project('FennecResourcesCrashReporter')
|
|
|
|
crashreporter.package_name = 'org.mozilla.fennec.resources.crashreporter'
|
2014-02-25 06:14:04 +04:00
|
|
|
crashreporter.res = SRCDIR + '/crashreporter/res'
|
|
|
|
crashreporter.included_projects += ['../' + resources.name]
|
|
|
|
crashreporter.referenced_projects += [resources.name]
|
|
|
|
|
|
|
|
main.included_projects += ['../' + crashreporter.name]
|
|
|
|
main.referenced_projects += [crashreporter.name]
|