2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:23 -08: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']
|
2014-03-21 15:59:57 -07:00
|
|
|
SPHINX_TREES['fennec'] = 'docs'
|
2013-10-09 16:19:00 -07:00
|
|
|
|
|
|
|
include('android-services.mozbuild')
|
|
|
|
|
2013-10-24 15:38:22 -07:00
|
|
|
thirdparty_source_dir = TOPSRCDIR + '/mobile/android/thirdparty/'
|
|
|
|
|
2014-03-05 08:57:09 -08:00
|
|
|
resjar = add_java_jar('gecko-R')
|
|
|
|
resjar.sources = []
|
|
|
|
resjar.generated_sources += [
|
|
|
|
'org/mozilla/gecko/R.java',
|
|
|
|
]
|
2014-06-11 11:00:17 -07:00
|
|
|
|
2014-07-09 11:59:36 -07:00
|
|
|
if CONFIG['MOZ_NATIVE_DEVICES']:
|
2014-06-11 11:00:17 -07:00
|
|
|
resjar.generated_sources += ['com/google/android/gms/R.java']
|
|
|
|
resjar.generated_sources += ['android/support/v7/appcompat/R.java']
|
|
|
|
resjar.generated_sources += ['android/support/v7/mediarouter/R.java']
|
|
|
|
|
2014-03-05 08:57:09 -08:00
|
|
|
resjar.javac_flags += ['-Xlint:all']
|
|
|
|
|
2013-10-24 15:38:22 -07:00
|
|
|
mgjar = add_java_jar('gecko-mozglue')
|
|
|
|
mgjar.sources += [
|
|
|
|
'mozglue/ByteBufferInputStream.java',
|
|
|
|
'mozglue/DirectBufferAllocator.java',
|
2013-11-12 10:40:59 -08:00
|
|
|
'mozglue/generatorannotations/GeneratorOptions.java',
|
|
|
|
'mozglue/generatorannotations/OptionalGeneratedParameter.java',
|
|
|
|
'mozglue/generatorannotations/WrapElementForJNI.java',
|
|
|
|
'mozglue/generatorannotations/WrapEntireClassForJNI.java',
|
2013-11-21 14:44:00 -08:00
|
|
|
'mozglue/JNITarget.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'mozglue/NativeReference.java',
|
|
|
|
'mozglue/NativeZip.java',
|
2013-11-18 21:09:00 -08:00
|
|
|
'mozglue/RobocopTarget.java',
|
2013-11-18 17:27:00 -08:00
|
|
|
'mozglue/WebRTCJNITarget.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
]
|
|
|
|
mgjar.generated_sources += [
|
2014-08-04 11:46:17 -07:00
|
|
|
'org/mozilla/gecko/AppConstants.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'org/mozilla/gecko/mozglue/GeckoLoader.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
]
|
2013-11-13 19:32:55 -08:00
|
|
|
mgjar.javac_flags += ['-Xlint:all']
|
2013-10-24 15:38:22 -07: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-13 19:32:55 -08:00
|
|
|
wsjar.javac_flags += ['-Xlint:all,-serial']
|
2013-10-24 15:38:22 -07:00
|
|
|
|
|
|
|
gujar = add_java_jar('gecko-util')
|
|
|
|
gujar.sources += [
|
|
|
|
'util/ActivityResultHandler.java',
|
|
|
|
'util/ActivityResultHandlerMap.java',
|
|
|
|
'util/Clipboard.java',
|
2014-04-08 13:30:17 -07:00
|
|
|
'util/EventCallback.java',
|
2014-03-06 12:23:54 -08:00
|
|
|
'util/FileUtils.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'util/FloatUtils.java',
|
|
|
|
'util/GamepadUtils.java',
|
|
|
|
'util/GeckoBackgroundThread.java',
|
|
|
|
'util/GeckoEventListener.java',
|
|
|
|
'util/GeckoJarReader.java',
|
2014-08-11 19:37:39 -07:00
|
|
|
'util/GeckoRequest.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'util/HardwareUtils.java',
|
|
|
|
'util/INIParser.java',
|
|
|
|
'util/INISection.java',
|
|
|
|
'util/JSONUtils.java',
|
2014-02-07 11:49:32 -08:00
|
|
|
'util/MenuUtils.java',
|
2014-04-04 09:33:50 -07:00
|
|
|
'util/NativeEventListener.java',
|
2014-04-01 12:16:52 -07:00
|
|
|
'util/NativeJSContainer.java',
|
|
|
|
'util/NativeJSObject.java',
|
2013-11-22 17:12:20 -08:00
|
|
|
'util/NonEvictingLruCache.java',
|
2014-06-19 00:04:00 -07:00
|
|
|
'util/PrefUtils.java',
|
2014-01-07 15:46:44 -08:00
|
|
|
'util/ProxySelector.java',
|
2014-04-15 08:12:03 -07:00
|
|
|
'util/RawResource.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'util/StringUtils.java',
|
|
|
|
'util/ThreadUtils.java',
|
|
|
|
'util/UiAsyncTask.java',
|
2014-04-25 07:29:00 -07:00
|
|
|
'util/WebActivityMapper.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
]
|
2013-11-13 19:32:55 -08:00
|
|
|
gujar.extra_jars = [
|
2013-10-24 15:38:22 -07:00
|
|
|
'gecko-mozglue.jar'
|
|
|
|
]
|
2013-11-13 19:32:55 -08:00
|
|
|
gujar.javac_flags += ['-Xlint:all,-deprecation']
|
2013-10-24 15:38:22 -07:00
|
|
|
|
|
|
|
stjar = add_java_jar('sync-thirdparty')
|
|
|
|
stjar.sources += [ thirdparty_source_dir + f for f in sync_thirdparty_java_files ]
|
2013-11-13 19:32:55 -08:00
|
|
|
stjar.javac_flags = ['-Xlint:none']
|
2013-10-24 15:38:22 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBRTC']:
|
2013-11-07 17:07:47 -08:00
|
|
|
video_root = TOPSRCDIR + '/media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/'
|
2014-05-29 14:05:14 -07:00
|
|
|
video_render_root = TOPSRCDIR + '/media/webrtc/trunk/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/'
|
2013-11-07 17:07:47 -08:00
|
|
|
audio_root = TOPSRCDIR + '/media/webrtc/trunk/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/'
|
2013-10-24 15:38:22 -07:00
|
|
|
wrjar = add_java_jar('webrtc')
|
|
|
|
wrjar.sources += [
|
|
|
|
video_root + 'CaptureCapabilityAndroid.java',
|
|
|
|
video_root + 'VideoCaptureAndroid.java',
|
|
|
|
video_root + 'VideoCaptureDeviceInfoAndroid.java',
|
2014-05-29 14:05:14 -07:00
|
|
|
video_render_root + 'ViEAndroidGLES20.java',
|
|
|
|
video_render_root + 'ViERenderer.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
]
|
|
|
|
wrjar.sources += [
|
2013-11-13 17:11:58 -08:00
|
|
|
audio_root + 'AudioManagerAndroid.java',
|
2014-05-29 14:05:14 -07:00
|
|
|
audio_root + 'WebRtcAudioRecord.java',
|
|
|
|
audio_root + 'WebRtcAudioTrack.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
]
|
|
|
|
wrjar.extra_jars = [
|
2014-03-05 08:57:09 -08:00
|
|
|
'gecko-R.jar',
|
2013-10-24 15:38:22 -07:00
|
|
|
'gecko-browser.jar',
|
|
|
|
'gecko-util.jar',
|
|
|
|
'gecko-mozglue.jar',
|
|
|
|
]
|
2013-11-13 19:32:55 -08:00
|
|
|
wrjar.javac_flags += ['-Xlint:all,-deprecation,-cast']
|
2013-10-24 15:38:22 -07:00
|
|
|
|
|
|
|
gbjar = add_java_jar('gecko-browser')
|
|
|
|
gbjar.sources += [
|
2013-11-21 23:33:28 -08:00
|
|
|
'AboutPages.java',
|
2013-11-19 11:57:35 -08:00
|
|
|
'ActionModeCompat.java',
|
|
|
|
'ActionModeCompatView.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'ActivityHandlerHelper.java',
|
|
|
|
'AlertNotification.java',
|
2014-04-22 07:53:48 -07:00
|
|
|
'AndroidGamepadManager.java',
|
2013-12-04 08:35:58 -08:00
|
|
|
'animation/AnimationUtils.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'animation/AnimatorProxy.java',
|
|
|
|
'animation/HeightChangeAnimation.java',
|
|
|
|
'animation/PropertyAnimator.java',
|
|
|
|
'animation/Rotate3DAnimation.java',
|
|
|
|
'animation/ViewHelper.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'ANRReporter.java',
|
|
|
|
'AppNotificationClient.java',
|
2014-04-25 11:45:52 -07:00
|
|
|
'Assert.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'BaseGeckoInterface.java',
|
|
|
|
'BrowserApp.java',
|
2014-04-15 15:07:14 -07:00
|
|
|
'BrowserLocaleManager.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'ContactService.java',
|
|
|
|
'ContextGetter.java',
|
|
|
|
'CustomEditText.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'DataReportingNotification.java',
|
2014-03-21 16:00:38 -07:00
|
|
|
'db/AbstractPerProfileDatabaseProvider.java',
|
|
|
|
'db/AbstractTransactionalProvider.java',
|
2014-06-10 06:22:47 -07:00
|
|
|
'db/BaseTable.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'db/BrowserContract.java',
|
2014-01-20 07:38:18 -08:00
|
|
|
'db/BrowserDatabaseHelper.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'db/BrowserDB.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'db/BrowserProvider.java',
|
2013-11-13 17:11:58 -08:00
|
|
|
'db/DBUtils.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'db/FormHistoryProvider.java',
|
2014-01-27 13:49:34 -08:00
|
|
|
'db/HomeProvider.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'db/LocalBrowserDB.java',
|
|
|
|
'db/PasswordsProvider.java',
|
2014-03-21 16:00:38 -07:00
|
|
|
'db/PerProfileDatabaseProvider.java',
|
2013-12-09 09:05:59 -08:00
|
|
|
'db/PerProfileDatabases.java',
|
2014-03-03 15:34:57 -08:00
|
|
|
'db/ReadingListProvider.java',
|
2014-07-01 08:58:24 -07:00
|
|
|
'db/SearchHistoryProvider.java',
|
2014-03-21 16:00:38 -07:00
|
|
|
'db/SharedBrowserDatabaseProvider.java',
|
2014-01-17 17:02:55 -08:00
|
|
|
'db/SQLiteBridgeContentProvider.java',
|
2014-05-09 01:39:14 -07:00
|
|
|
'db/SuggestedSites.java',
|
2014-06-10 06:22:47 -07:00
|
|
|
'db/Table.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'db/TabsProvider.java',
|
2014-04-15 08:31:55 -07:00
|
|
|
'db/TopSitesCursorWrapper.java',
|
2014-06-10 06:22:47 -07:00
|
|
|
'db/URLMetadata.java',
|
|
|
|
'db/URLMetadataTable.java',
|
2014-05-22 17:34:04 -07:00
|
|
|
'distribution/Distribution.java',
|
2014-07-03 19:45:24 -07:00
|
|
|
'distribution/ReferrerDescriptor.java',
|
|
|
|
'distribution/ReferrerReceiver.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'DoorHangerPopup.java',
|
2014-03-13 12:29:39 -07:00
|
|
|
'DynamicToolbar.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'EditBookmarkDialog.java',
|
2014-02-11 09:16:00 -08:00
|
|
|
'EventDispatcher.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'favicons/cache/FaviconCache.java',
|
|
|
|
'favicons/cache/FaviconCacheElement.java',
|
|
|
|
'favicons/cache/FaviconsForURL.java',
|
2014-01-17 19:24:28 -08:00
|
|
|
'favicons/decoders/FaviconDecoder.java',
|
|
|
|
'favicons/decoders/ICODecoder.java',
|
|
|
|
'favicons/decoders/IconDirectoryEntry.java',
|
|
|
|
'favicons/decoders/LoadFaviconResult.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'favicons/Favicons.java',
|
|
|
|
'favicons/LoadFaviconTask.java',
|
|
|
|
'favicons/OnFaviconLoadedListener.java',
|
2014-02-14 12:02:05 -08:00
|
|
|
'FilePicker.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'FilePickerResultHandler.java',
|
|
|
|
'FindInPageBar.java',
|
|
|
|
'FormAssistPopup.java',
|
|
|
|
'GeckoAccessibility.java',
|
2013-11-13 17:11:58 -08:00
|
|
|
'GeckoActivity.java',
|
|
|
|
'GeckoActivityStatus.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'GeckoApp.java',
|
|
|
|
'GeckoApplication.java',
|
|
|
|
'GeckoAppShell.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'GeckoBatteryManager.java',
|
|
|
|
'GeckoConnectivityReceiver.java',
|
|
|
|
'GeckoEditable.java',
|
|
|
|
'GeckoEvent.java',
|
|
|
|
'GeckoHalDefines.java',
|
|
|
|
'GeckoInputConnection.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'GeckoJavaSampler.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'GeckoMessageReceiver.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'GeckoNetworkManager.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'GeckoProfile.java',
|
2014-03-03 15:27:42 -08:00
|
|
|
'GeckoProfileDirectories.java',
|
2014-03-18 19:20:07 -07:00
|
|
|
'GeckoProfilesProvider.java',
|
2014-02-20 09:50:18 -08:00
|
|
|
'GeckoScreenOrientation.java',
|
2014-04-01 07:02:14 -07:00
|
|
|
'GeckoSharedPrefs.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'GeckoSmsManager.java',
|
|
|
|
'GeckoThread.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'GeckoUpdateReceiver.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'GeckoView.java',
|
2013-11-06 14:58:29 -08:00
|
|
|
'GeckoViewChrome.java',
|
2013-11-06 14:59:07 -08:00
|
|
|
'GeckoViewContent.java',
|
2013-10-24 15:38:22 -07: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',
|
2014-05-07 12:22:14 -07:00
|
|
|
'gfx/FullScreenState.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'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 09:12:28 -07:00
|
|
|
'gfx/OverscrollEdgeEffect.java',
|
2013-10-24 15:38:22 -07: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-13 19:32:55 -08:00
|
|
|
'GlobalHistory.java',
|
|
|
|
'health/BrowserHealthRecorder.java',
|
|
|
|
'health/BrowserHealthReporter.java',
|
2014-02-04 19:41:29 -08:00
|
|
|
'health/HealthRecorder.java',
|
|
|
|
'health/SessionInformation.java',
|
|
|
|
'health/StubbedHealthRecorder.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'home/BookmarkFolderView.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'home/BookmarksListAdapter.java',
|
|
|
|
'home/BookmarksListView.java',
|
2014-01-10 17:18:07 -08:00
|
|
|
'home/BookmarksPanel.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'home/BrowserSearch.java',
|
2014-01-15 11:49:26 -08:00
|
|
|
'home/DynamicPanel.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'home/FadedTextView.java',
|
2014-01-27 13:29:55 -08:00
|
|
|
'home/FramePanelLayout.java',
|
2014-06-22 13:26:48 -07:00
|
|
|
'home/HistoryPanel.java',
|
2013-12-12 04:02:50 -08:00
|
|
|
'home/HomeAdapter.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'home/HomeBanner.java',
|
2013-12-12 04:04:31 -08:00
|
|
|
'home/HomeConfig.java',
|
|
|
|
'home/HomeConfigLoader.java',
|
2014-01-10 03:16:28 -08:00
|
|
|
'home/HomeConfigPrefsBackend.java',
|
2014-01-31 08:30:47 -08:00
|
|
|
'home/HomeContextMenuInfo.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'home/HomeFragment.java',
|
|
|
|
'home/HomeListView.java',
|
|
|
|
'home/HomePager.java',
|
|
|
|
'home/HomePagerTabStrip.java',
|
2014-03-04 10:31:38 -08:00
|
|
|
'home/HomePanelPicker.java',
|
2014-04-23 07:22:34 -07:00
|
|
|
'home/HomePanelsManager.java',
|
2014-07-15 12:56:48 -07:00
|
|
|
'home/ImageLoader.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'home/MultiTypeCursorAdapter.java',
|
2014-03-27 09:25:04 -07:00
|
|
|
'home/PanelAuthCache.java',
|
2014-03-27 09:25:04 -07:00
|
|
|
'home/PanelAuthLayout.java',
|
2014-03-04 15:15:44 -08:00
|
|
|
'home/PanelBackItemView.java',
|
2014-01-29 16:37:58 -08:00
|
|
|
'home/PanelGridView.java',
|
2014-04-23 07:22:33 -07:00
|
|
|
'home/PanelInfoManager.java',
|
2014-02-19 09:37:00 -08:00
|
|
|
'home/PanelItemView.java',
|
2014-01-27 13:29:55 -08:00
|
|
|
'home/PanelLayout.java',
|
|
|
|
'home/PanelListView.java',
|
2014-04-15 06:50:00 -07:00
|
|
|
'home/PanelRefreshLayout.java',
|
2014-02-19 09:37:00 -08:00
|
|
|
'home/PanelViewAdapter.java',
|
2014-02-24 15:23:29 -08:00
|
|
|
'home/PanelViewItemHandler.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'home/PinSiteDialog.java',
|
2014-01-10 17:18:07 -08:00
|
|
|
'home/ReadingListPanel.java',
|
2014-04-04 00:57:37 -07:00
|
|
|
'home/ReadingListRow.java',
|
2014-06-22 13:26:49 -07:00
|
|
|
'home/RecentTabsPanel.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'home/SearchEngine.java',
|
|
|
|
'home/SearchEngineRow.java',
|
|
|
|
'home/SearchLoader.java',
|
|
|
|
'home/SimpleCursorLoader.java',
|
|
|
|
'home/SuggestClient.java',
|
|
|
|
'home/TabMenuStrip.java',
|
2014-04-23 14:37:31 -07:00
|
|
|
'home/TabMenuStripLayout.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'home/TopSitesGridItemView.java',
|
|
|
|
'home/TopSitesGridView.java',
|
2014-01-10 17:18:07 -08:00
|
|
|
'home/TopSitesPanel.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'home/TopSitesThumbnailView.java',
|
|
|
|
'home/TwoLinePageRow.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'InputMethods.java',
|
2014-04-25 07:28:00 -07:00
|
|
|
'IntentHelper.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'JavaAddonManager.java',
|
|
|
|
'LightweightTheme.java',
|
|
|
|
'LightweightThemeDrawable.java',
|
2013-12-03 15:05:43 -08:00
|
|
|
'LocaleManager.java',
|
2014-01-20 14:26:30 -08:00
|
|
|
'MediaCastingBar.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'MemoryMonitor.java',
|
2013-10-24 15:38:22 -07: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-13 19:32:55 -08:00
|
|
|
'MotionEventInterceptor.java',
|
|
|
|
'NotificationClient.java',
|
|
|
|
'NotificationHandler.java',
|
|
|
|
'NotificationHelper.java',
|
|
|
|
'NotificationService.java',
|
|
|
|
'NSSBridge.java',
|
|
|
|
'OrderedBroadcastHelper.java',
|
2013-11-11 10:41:16 -08:00
|
|
|
'preferences/AlignRightLinkPreference.java',
|
|
|
|
'preferences/AndroidImport.java',
|
|
|
|
'preferences/AndroidImportPreference.java',
|
2014-06-19 00:04:00 -07:00
|
|
|
'preferences/ClearOnShutdownPref.java',
|
2014-01-22 10:10:51 -08:00
|
|
|
'preferences/CustomListCategory.java',
|
|
|
|
'preferences/CustomListPreference.java',
|
2013-11-11 10:41:16 -08:00
|
|
|
'preferences/FontSizePreference.java',
|
2013-11-13 17:11:58 -08:00
|
|
|
'preferences/GeckoPreferenceFragment.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'preferences/GeckoPreferences.java',
|
2013-11-11 10:41:16 -08:00
|
|
|
'preferences/LinkPreference.java',
|
2014-06-19 00:04:00 -07:00
|
|
|
'preferences/ListCheckboxPreference.java',
|
2014-05-13 20:50:27 -07:00
|
|
|
'preferences/LocaleListPreference.java',
|
2014-02-20 13:11:25 -08:00
|
|
|
'preferences/ModifiableHintPreference.java',
|
2013-11-11 10:41:16 -08:00
|
|
|
'preferences/MultiChoicePreference.java',
|
2014-06-19 00:04:00 -07:00
|
|
|
'preferences/MultiPrefMultiChoicePreference.java',
|
2013-12-16 20:37:16 -08:00
|
|
|
'preferences/PanelsPreference.java',
|
|
|
|
'preferences/PanelsPreferenceCategory.java',
|
2013-11-11 10:41:16 -08:00
|
|
|
'preferences/PrivateDataPreference.java',
|
2013-11-13 17:11:58 -08:00
|
|
|
'preferences/SearchEnginePreference.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'preferences/SearchPreferenceCategory.java',
|
2013-11-11 10:41:16 -08:00
|
|
|
'preferences/SyncPreference.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'PrefsHelper.java',
|
|
|
|
'PrivateTab.java',
|
2013-12-11 15:51:01 -08:00
|
|
|
'prompts/ColorPickerInput.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'prompts/IconGridInput.java',
|
2014-02-06 16:21:00 -08:00
|
|
|
'prompts/IntentChooserPrompt.java',
|
|
|
|
'prompts/IntentHandler.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'prompts/Prompt.java',
|
|
|
|
'prompts/PromptInput.java',
|
2014-02-06 16:16:00 -08:00
|
|
|
'prompts/PromptListAdapter.java',
|
2014-02-06 16:13:00 -08:00
|
|
|
'prompts/PromptListItem.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'prompts/PromptService.java',
|
2014-02-06 16:24:00 -08:00
|
|
|
'prompts/TabInput.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'ReaderModeUtils.java',
|
|
|
|
'Restarter.java',
|
|
|
|
'ScrollAnimator.java',
|
|
|
|
'ServiceNotificationClient.java',
|
|
|
|
'SessionParser.java',
|
|
|
|
'SharedPreferencesHelper.java',
|
2013-12-11 16:28:15 -08:00
|
|
|
'SiteIdentity.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'SmsManager.java',
|
|
|
|
'sqlite/ByteBufferInputStream.java',
|
|
|
|
'sqlite/MatrixBlobCursor.java',
|
|
|
|
'sqlite/SQLiteBridge.java',
|
|
|
|
'sqlite/SQLiteBridgeException.java',
|
|
|
|
'SurfaceBits.java',
|
|
|
|
'Tab.java',
|
|
|
|
'Tabs.java',
|
2014-08-06 07:59:41 -07:00
|
|
|
'tabs/PrivateTabsPanel.java',
|
|
|
|
'tabs/RemoteTabsContainerPanel.java',
|
|
|
|
'tabs/RemoteTabsList.java',
|
|
|
|
'tabs/RemoteTabsPanel.java',
|
|
|
|
'tabs/RemoteTabsSetupPanel.java',
|
|
|
|
'tabs/RemoteTabsVerificationPanel.java',
|
|
|
|
'tabs/TabsPanel.java',
|
|
|
|
'tabs/TabsTray.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'TabsAccessor.java',
|
|
|
|
'Telemetry.java',
|
2014-03-28 15:36:55 -07:00
|
|
|
'TelemetryContract.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'TextSelection.java',
|
|
|
|
'TextSelectionHandle.java',
|
|
|
|
'ThumbnailHelper.java',
|
2013-11-19 07:46:48 -08:00
|
|
|
'toolbar/AutocompleteHandler.java',
|
|
|
|
'toolbar/BackButton.java',
|
|
|
|
'toolbar/BrowserToolbar.java',
|
|
|
|
'toolbar/CanvasDelegate.java',
|
|
|
|
'toolbar/ForwardButton.java',
|
|
|
|
'toolbar/PageActionLayout.java',
|
|
|
|
'toolbar/ShapedButton.java',
|
2013-12-11 16:28:14 -08:00
|
|
|
'toolbar/SiteIdentityPopup.java',
|
2013-11-19 07:46:48 -08:00
|
|
|
'toolbar/TabCounter.java',
|
2014-01-09 06:55:28 -08:00
|
|
|
'toolbar/ToolbarDisplayLayout.java',
|
2013-11-22 07:34:29 -08:00
|
|
|
'toolbar/ToolbarEditLayout.java',
|
2013-11-22 05:47:42 -08:00
|
|
|
'toolbar/ToolbarEditText.java',
|
2014-08-14 11:40:49 -07:00
|
|
|
'toolbar/ToolbarPrefs.java',
|
2014-01-17 20:03:59 -08:00
|
|
|
'toolbar/ToolbarProgressView.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'TouchEventInterceptor.java',
|
2013-11-13 17:11:58 -08:00
|
|
|
'updater/UpdateService.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'updater/UpdateServiceHelper.java',
|
2014-06-24 18:20:13 -07:00
|
|
|
'Webapp.java',
|
2014-01-24 21:57:13 -08:00
|
|
|
'webapp/Allocator.java',
|
2014-01-09 10:18:55 -08:00
|
|
|
'webapp/ApkResources.java',
|
2014-01-24 21:57:13 -08:00
|
|
|
'webapp/Dispatcher.java',
|
|
|
|
'webapp/EventListener.java',
|
2014-01-09 10:18:55 -08:00
|
|
|
'webapp/InstallHelper.java',
|
|
|
|
'webapp/InstallListener.java',
|
2014-03-25 11:12:58 -07:00
|
|
|
'webapp/TaskKiller.java',
|
2014-01-09 10:18:55 -08:00
|
|
|
'webapp/UninstallListener.java',
|
2014-02-11 23:41:05 -08:00
|
|
|
'webapp/WebappImpl.java',
|
2014-06-24 18:20:14 -07:00
|
|
|
'webapp/Webapps.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'widget/ActivityChooserModel.java',
|
2013-11-11 10:41:12 -08:00
|
|
|
'widget/AllCapsTextView.java',
|
|
|
|
'widget/AnimatedHeightLayout.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'widget/ArrowPopup.java',
|
2013-12-11 15:51:01 -08:00
|
|
|
'widget/BasicColorPicker.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'widget/ButtonToast.java',
|
2013-11-11 10:41:12 -08:00
|
|
|
'widget/CheckableLinearLayout.java',
|
|
|
|
'widget/ClickableWhenDisabledEditText.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'widget/DateTimePicker.java',
|
|
|
|
'widget/Divider.java',
|
2013-12-11 16:28:13 -08:00
|
|
|
'widget/DoorHanger.java',
|
2014-02-18 15:16:26 -08:00
|
|
|
'widget/EllipsisTextView.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'widget/FaviconView.java',
|
2014-05-23 09:50:17 -07:00
|
|
|
'widget/FloatingHintEditText.java',
|
2013-11-11 10:41:12 -08:00
|
|
|
'widget/FlowLayout.java',
|
2013-11-13 17:11:58 -08:00
|
|
|
'widget/GeckoActionProvider.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'widget/GeckoPopupMenu.java',
|
2014-04-15 06:53:00 -07:00
|
|
|
'widget/GeckoSwipeRefreshLayout.java',
|
2014-01-28 09:15:36 -08:00
|
|
|
'widget/GeckoViewFlipper.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'widget/IconTabWidget.java',
|
2014-01-31 08:57:56 -08:00
|
|
|
'widget/SquaredImageView.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'widget/TabRow.java',
|
2014-04-02 11:32:30 -07:00
|
|
|
'widget/TabThumbnailWrapper.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
'widget/ThumbnailView.java',
|
|
|
|
'widget/TwoWayView.java',
|
2013-11-13 19:32:55 -08:00
|
|
|
'ZoomConstraints.java',
|
2013-10-24 15:38:22 -07: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-13 19:32:55 -08:00
|
|
|
android_package_dir = CONFIG['ANDROID_PACKAGE_NAME'].replace('.', '/')
|
2013-10-24 15:38:22 -07:00
|
|
|
gbjar.generated_sources += [
|
2013-11-13 19:32:55 -08:00
|
|
|
'org/mozilla/gecko/SysInfo.java',
|
2014-04-02 15:56:52 -07:00
|
|
|
'org/mozilla/gecko/widget/ThemedEditText.java',
|
|
|
|
'org/mozilla/gecko/widget/ThemedImageButton.java',
|
|
|
|
'org/mozilla/gecko/widget/ThemedImageView.java',
|
|
|
|
'org/mozilla/gecko/widget/ThemedLinearLayout.java',
|
|
|
|
'org/mozilla/gecko/widget/ThemedRelativeLayout.java',
|
|
|
|
'org/mozilla/gecko/widget/ThemedTextSwitcher.java',
|
|
|
|
'org/mozilla/gecko/widget/ThemedTextView.java',
|
2014-04-17 13:34:12 -07:00
|
|
|
'org/mozilla/gecko/widget/ThemedView.java',
|
2013-10-24 15:38:22 -07:00
|
|
|
]
|
|
|
|
if CONFIG['MOZ_CRASHREPORTER']:
|
2013-12-11 21:20:07 -08:00
|
|
|
gbjar.sources += [ 'CrashReporter.java' ]
|
|
|
|
ANDROID_RES_DIRS += [ SRCDIR + '/crashreporter/res' ]
|
|
|
|
|
2013-10-24 15:38:22 -07:00
|
|
|
gbjar.sources += sync_java_files
|
|
|
|
gbjar.generated_sources += sync_generated_java_files
|
2013-11-13 19:32:55 -08:00
|
|
|
gbjar.extra_jars = [
|
2014-03-05 08:57:09 -08:00
|
|
|
'gecko-R.jar',
|
2013-10-24 15:38:22 -07:00
|
|
|
'gecko-mozglue.jar',
|
|
|
|
'gecko-util.jar',
|
2014-07-25 15:20:13 -07:00
|
|
|
'nineoldandroids.jar',
|
2014-02-06 13:06:38 -08:00
|
|
|
'squareup-picasso.jar',
|
2013-10-24 15:38:22 -07:00
|
|
|
'sync-thirdparty.jar',
|
|
|
|
'websockets.jar',
|
|
|
|
]
|
2014-06-11 11:00:17 -07:00
|
|
|
|
2014-08-14 11:28:31 -07:00
|
|
|
moz_native_devices_jars = [
|
|
|
|
CONFIG['ANDROID_APPCOMPAT_LIB'],
|
|
|
|
CONFIG['ANDROID_MEDIAROUTER_LIB'],
|
|
|
|
CONFIG['GOOGLE_PLAY_SERVICES_LIB'],
|
|
|
|
]
|
|
|
|
moz_native_devices_sources = [
|
|
|
|
'ChromeCast.java',
|
|
|
|
'MediaPlayerManager.java',
|
|
|
|
]
|
2014-07-09 11:59:36 -07:00
|
|
|
if CONFIG['MOZ_NATIVE_DEVICES']:
|
2014-08-14 11:28:31 -07:00
|
|
|
gbjar.extra_jars += moz_native_devices_jars
|
|
|
|
gbjar.sources += moz_native_devices_sources
|
2014-06-11 11:00:17 -07:00
|
|
|
|
2013-11-13 19:32:55 -08:00
|
|
|
gbjar.javac_flags += ['-Xlint:all,-deprecation,-fallthrough']
|
2013-10-24 15:38:22 -07:00
|
|
|
|
2014-07-25 15:20:13 -07:00
|
|
|
noajar = add_java_jar('nineoldandroids')
|
|
|
|
noajar.sources += [ thirdparty_source_dir + f for f in [
|
|
|
|
'com/nineoldandroids/animation/Animator.java',
|
|
|
|
'com/nineoldandroids/animation/AnimatorInflater.java',
|
|
|
|
'com/nineoldandroids/animation/AnimatorListenerAdapter.java',
|
|
|
|
'com/nineoldandroids/animation/AnimatorSet.java',
|
|
|
|
'com/nineoldandroids/animation/ArgbEvaluator.java',
|
|
|
|
'com/nineoldandroids/animation/FloatEvaluator.java',
|
|
|
|
'com/nineoldandroids/animation/FloatKeyframeSet.java',
|
|
|
|
'com/nineoldandroids/animation/IntEvaluator.java',
|
|
|
|
'com/nineoldandroids/animation/IntKeyframeSet.java',
|
|
|
|
'com/nineoldandroids/animation/Keyframe.java',
|
|
|
|
'com/nineoldandroids/animation/KeyframeSet.java',
|
|
|
|
'com/nineoldandroids/animation/ObjectAnimator.java',
|
|
|
|
'com/nineoldandroids/animation/PreHoneycombCompat.java',
|
|
|
|
'com/nineoldandroids/animation/PropertyValuesHolder.java',
|
|
|
|
'com/nineoldandroids/animation/TimeAnimator.java',
|
|
|
|
'com/nineoldandroids/animation/TypeEvaluator.java',
|
|
|
|
'com/nineoldandroids/animation/ValueAnimator.java',
|
|
|
|
'com/nineoldandroids/util/FloatProperty.java',
|
|
|
|
'com/nineoldandroids/util/IntProperty.java',
|
|
|
|
'com/nineoldandroids/util/NoSuchPropertyException.java',
|
|
|
|
'com/nineoldandroids/util/Property.java',
|
|
|
|
'com/nineoldandroids/util/ReflectiveProperty.java',
|
|
|
|
'com/nineoldandroids/view/animation/AnimatorProxy.java',
|
|
|
|
'com/nineoldandroids/view/ViewHelper.java',
|
|
|
|
'com/nineoldandroids/view/ViewPropertyAnimator.java',
|
|
|
|
'com/nineoldandroids/view/ViewPropertyAnimatorHC.java',
|
|
|
|
'com/nineoldandroids/view/ViewPropertyAnimatorICS.java',
|
|
|
|
'com/nineoldandroids/view/ViewPropertyAnimatorPreHC.java'
|
|
|
|
] ]
|
|
|
|
#noajar.javac_flags += ['-Xlint:all']
|
|
|
|
|
2014-02-06 13:06:38 -08: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-11 21:20:07 -08:00
|
|
|
ANDROID_RES_DIRS += [
|
|
|
|
SRCDIR + '/resources',
|
|
|
|
TOPSRCDIR + '/' + CONFIG['MOZ_BRANDING_DIRECTORY'] + '/res',
|
|
|
|
OBJDIR + '/res',
|
2013-10-09 16:19:00 -07:00
|
|
|
]
|
2013-11-20 06:16:00 -08:00
|
|
|
|
2013-12-11 21:20:07 -08:00
|
|
|
ANDROID_GENERATED_RESFILES += [
|
2014-05-09 01:39:14 -07:00
|
|
|
'res/raw/suggestedsites.json',
|
2013-12-11 21:20:07 -08:00
|
|
|
'res/values/strings.xml',
|
2013-11-20 06:16:00 -08:00
|
|
|
]
|
|
|
|
|
2014-06-30 11:21:49 -07:00
|
|
|
for var in ('MOZ_ANDROID_ANR_REPORTER', 'MOZ_LINKER_EXTRACT', 'MOZILLA_OFFICIAL', 'MOZ_DEBUG',
|
2014-07-15 13:50:20 -07:00
|
|
|
'MOZ_ANDROID_SEARCH_ACTIVITY', 'MOZ_NATIVE_DEVICES', 'MOZ_ANDROID_MLS_STUMBLER'):
|
2013-11-27 05:55:07 -08:00
|
|
|
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',
|
2014-05-05 11:27:55 -07:00
|
|
|
'GRE_MILESTONE', 'MOZ_APP_BASENAME',
|
2013-11-27 05:55:07 -08:00
|
|
|
'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-13 22:19:50 -08:00
|
|
|
|
2014-06-30 11:21:50 -07:00
|
|
|
if CONFIG['MOZ_ANDROID_SEARCH_ACTIVITY']:
|
|
|
|
# The Search Activity is mostly independent of Fennec proper, but
|
|
|
|
# it does depend on Geckoview. Therefore, we build it as a jar
|
|
|
|
# that depends on the Geckoview jars.
|
|
|
|
search_source_dir = SRCDIR + '/../search'
|
|
|
|
include('../search/search_activity_sources.mozbuild')
|
|
|
|
|
|
|
|
ANDROID_RES_DIRS += [search_source_dir + '/res']
|
|
|
|
resjar.generated_sources += ['org/mozilla/search/R.java']
|
|
|
|
|
|
|
|
search_activity = add_java_jar('search-activity')
|
|
|
|
search_activity.sources += [search_source_dir + '/' + f for f in search_activity_sources]
|
|
|
|
search_activity.javac_flags += ['-Xlint:all']
|
|
|
|
search_activity.extra_jars = [
|
|
|
|
'gecko-R.jar',
|
|
|
|
'gecko-browser.jar',
|
|
|
|
'gecko-mozglue.jar',
|
|
|
|
'gecko-util.jar',
|
2014-07-25 15:20:13 -07:00
|
|
|
'nineoldandroids.jar'
|
2014-06-30 11:21:50 -07:00
|
|
|
]
|
|
|
|
|
2014-06-04 09:55:57 -07:00
|
|
|
generated_recursive_make_targets = ['.aapt.deps', '.locales.deps'] # Captures dependencies on Android manifest and all resources.
|
|
|
|
|
2014-02-24 18:14:05 -08:00
|
|
|
generated = add_android_eclipse_library_project('FennecResourcesGenerated')
|
2014-08-14 11:28:27 -07:00
|
|
|
generated.package_name = 'org.mozilla.gecko.generated'
|
2014-02-13 22:19:50 -08:00
|
|
|
generated.res = OBJDIR + '/res'
|
2014-06-04 09:55:57 -07:00
|
|
|
generated.recursive_make_targets += generated_recursive_make_targets
|
2014-02-13 22:19:50 -08:00
|
|
|
|
2014-02-24 18:14:05 -08:00
|
|
|
branding = add_android_eclipse_library_project('FennecResourcesBranding')
|
2014-08-14 11:28:27 -07:00
|
|
|
branding.package_name = 'org.mozilla.gecko.branding'
|
2014-02-13 22:19:50 -08:00
|
|
|
branding.res = TOPSRCDIR + '/' + CONFIG['MOZ_BRANDING_DIRECTORY'] + '/res'
|
2014-06-04 09:55:57 -07:00
|
|
|
branding.recursive_make_targets += generated_recursive_make_targets
|
2014-02-13 22:19:50 -08:00
|
|
|
|
2014-08-14 11:28:27 -07:00
|
|
|
static = add_android_eclipse_library_project('FennecResourcesStatic')
|
|
|
|
# 'org.mozilla.gecko.static' is not a valid Java package name, so we use a different one.
|
|
|
|
static.package_name = 'org.mozilla.gecko.resources'
|
|
|
|
static.res = SRCDIR + '/resources'
|
|
|
|
static.recursive_make_targets += generated_recursive_make_targets
|
|
|
|
static.included_projects += ['../' + generated.name, '../' + branding.name]
|
|
|
|
static.referenced_projects += ['../' + generated.name, '../' + branding.name]
|
|
|
|
|
2014-02-13 22:19:50 -08:00
|
|
|
main = add_android_eclipse_project('Fennec', OBJDIR + '/AndroidManifest.xml')
|
|
|
|
main.package_name = 'org.mozilla.gecko'
|
|
|
|
|
2014-02-25 15:59:31 -08: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-06-04 09:55:57 -07:00
|
|
|
main.recursive_make_targets += generated_recursive_make_targets
|
2014-06-24 19:14:34 -07:00
|
|
|
main.recursive_make_targets += ['generated/' + f for f in mgjar.generated_sources]
|
|
|
|
main.recursive_make_targets += ['generated/' + f for f in gbjar.generated_sources]
|
2014-02-13 22:19:50 -08:00
|
|
|
|
|
|
|
main.extra_jars += [CONFIG['ANDROID_COMPAT_LIB']]
|
2014-04-26 08:27:00 -07:00
|
|
|
main.assets = TOPOBJDIR + '/dist/' + CONFIG['MOZ_APP_NAME'] + '/assets'
|
|
|
|
main.libs = TOPOBJDIR + '/dist/' + CONFIG['MOZ_APP_NAME'] + '/lib'
|
2014-02-24 18:14:04 -08:00
|
|
|
main.res = None
|
2014-02-13 22:19:50 -08:00
|
|
|
|
|
|
|
cpe = main.add_classpathentry('src', SRCDIR,
|
|
|
|
dstdir='src/org/mozilla/gecko',
|
2014-08-14 11:28:27 -07:00
|
|
|
exclude_patterns=[
|
|
|
|
'org/mozilla/gecko/tests/**',
|
2014-02-18 00:08:41 -08:00
|
|
|
'org/mozilla/gecko/resources/**'])
|
2014-08-14 11:28:31 -07:00
|
|
|
|
2014-02-13 22:19:50 -08:00
|
|
|
if not CONFIG['MOZ_CRASHREPORTER']:
|
|
|
|
cpe.exclude_patterns += ['org/mozilla/gecko/CrashReporter.java']
|
2014-08-14 11:28:31 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_NATIVE_DEVICES']:
|
|
|
|
# This is rather hacky, but: we define three Eclipse projects for appcompat,
|
|
|
|
# mediarouter, and Google Play Services. mediarouter depends on appcompat;
|
|
|
|
# Google Play Services depends on both mediarouter and appcompat. The three
|
|
|
|
# projects are "resources only" because it is difficult to arrange for
|
|
|
|
# exactly one version of each shipped Java JAR file to end up in the final
|
|
|
|
# APK when including the JARs in the Eclipse projects. To work around this,
|
|
|
|
# we instead add all the JAR files to the main Fennec project.
|
|
|
|
|
|
|
|
appcompat = add_android_eclipse_library_project('appcompat')
|
|
|
|
appcompat.package_name = 'android.support.v7.appcompat'
|
|
|
|
appcompat.res = CONFIG['ANDROID_APPCOMPAT_RES']
|
|
|
|
|
|
|
|
mediarouter = add_android_eclipse_library_project('mediarouter')
|
|
|
|
mediarouter.package_name = 'android.support.v7.mediarouter'
|
|
|
|
mediarouter.res = CONFIG['ANDROID_MEDIAROUTER_RES']
|
|
|
|
mediarouter.included_projects += ['../' + appcompat.name]
|
|
|
|
mediarouter.referenced_projects += ['../' + appcompat.name]
|
|
|
|
|
|
|
|
gps = add_android_eclipse_library_project('google-play-services_lib')
|
|
|
|
gps.package_name = 'com.google.android.gms'
|
|
|
|
gps.res = CONFIG['GOOGLE_PLAY_SERVICES_RES']
|
|
|
|
gps.included_projects += ['../' + appcompat.name, '../' + mediarouter.name]
|
|
|
|
gps.referenced_projects += ['../' + appcompat.name, '../' + mediarouter.name]
|
|
|
|
|
|
|
|
main.included_projects += ['../' + gps.name, '../' + appcompat.name, '../' + mediarouter.name]
|
|
|
|
main.referenced_projects += ['../' + gps.name, '../' + appcompat.name, '../' + mediarouter.name]
|
|
|
|
|
|
|
|
main.extra_jars += moz_native_devices_jars
|
|
|
|
else:
|
|
|
|
cpe.exclude_patterns += moz_native_devices_sources
|
|
|
|
|
2014-08-14 11:28:27 -07:00
|
|
|
# The generated/ directory includes both files generated by aapt (R.java and
|
|
|
|
# Manifest.java for all packages) but also preprocessed files. In the past, the
|
|
|
|
# generated R.java files were used by the Eclipse build, but now Eclipse
|
|
|
|
# generates these files itself. Therefore, we exclude those generated sources.
|
2014-02-13 22:19:50 -08:00
|
|
|
main.add_classpathentry('generated', OBJDIR + '/generated',
|
2014-08-14 11:28:27 -07:00
|
|
|
dstdir='generated',
|
|
|
|
exclude_patterns=[
|
|
|
|
'**/R.java',
|
|
|
|
'**/Manifest.java'])
|
2014-02-13 22:19:50 -08:00
|
|
|
main.add_classpathentry('thirdparty', TOPSRCDIR + '/mobile/android/thirdparty',
|
|
|
|
dstdir='thirdparty',
|
|
|
|
ignore_warnings=True)
|
2014-02-24 18:14:04 -08:00
|
|
|
|
2014-08-14 11:28:27 -07:00
|
|
|
# Eclipse generates org.mozilla.gecko.R for this project, which is referenced by
|
|
|
|
# all the Java code. The reason that this is not generated in the main Fennec
|
|
|
|
# project is that you cannot specify a custom package to the Eclipse Android
|
|
|
|
# builder; that is, the Eclipse Android builder always builds the
|
|
|
|
# org.mozilla.fennec_*.R class. This approach works because Eclipse shares
|
|
|
|
# resources and some code across projects implicitly, which lets us provide
|
|
|
|
# org.mozilla.gecko.R to the main Fennec project from the FennecResources
|
|
|
|
# project.
|
|
|
|
#
|
|
|
|
# Previously, the static resources were in the FennecResources project. To let
|
|
|
|
# the FennecResources Eclipse project produce org.mozilla.gecko.R, however, the
|
|
|
|
# project must depend on all the resource projects. But the crash reporter
|
|
|
|
# resources depend on some of the static resources, and that causes a cycle.
|
|
|
|
# This layer of indirection lets us break the cycle.
|
|
|
|
|
2014-02-24 18:14:04 -08:00
|
|
|
resources = add_android_eclipse_library_project('FennecResources')
|
2014-08-14 11:28:27 -07:00
|
|
|
resources.package_name = 'org.mozilla.gecko'
|
|
|
|
resources.res = None
|
|
|
|
resources.included_projects += ['../' + static.name, '../' + generated.name, '../' + branding.name]
|
2014-06-04 09:55:57 -07:00
|
|
|
resources.recursive_make_targets += generated_recursive_make_targets
|
2014-02-24 18:14:04 -08:00
|
|
|
|
2014-06-24 19:14:35 -07:00
|
|
|
# The resources are included in the Fennec APK.
|
2014-02-24 18:14:04 -08:00
|
|
|
main.included_projects += ['../' + resources.name]
|
|
|
|
|
2014-06-24 19:14:36 -07:00
|
|
|
omnijar = add_android_eclipse_library_project('FennecOmnijar')
|
2014-08-14 11:28:27 -07:00
|
|
|
omnijar.package_name = 'org.mozilla.gecko.omnijar'
|
2014-06-24 19:14:36 -07:00
|
|
|
# This is delicate. We write into OBJDIR, and write triggers a new build of the
|
|
|
|
# Fennec project, because the omni.ja timestamp is always updated. (The target
|
|
|
|
# is FORCE and the installer does not track dependencies.) However, Eclipse only
|
|
|
|
# triggers a new build (of FennecOmnijar) when something actually changes, so
|
|
|
|
# we're not constantly rebuilding the FennecOmnijar (or Fennec) project.
|
|
|
|
omnijar.recursive_make_targets += [TOPOBJDIR + '/dist/fennec/assets/omni.ja']
|
|
|
|
for d in ['app', 'chrome', 'components', 'locales', 'modules', 'themes']:
|
|
|
|
omnijar.add_classpathentry(d, TOPSRCDIR + '/mobile/android/' + d, dstdir=d)
|
|
|
|
|
|
|
|
# The omnijar is included in the Fennec APK (although it's empty,
|
|
|
|
# having no resources, assets, or Java code).
|
2014-07-15 13:50:22 -07:00
|
|
|
main.included_projects += ['../' + omnijar.name]
|
2014-06-24 19:14:36 -07:00
|
|
|
|
2014-02-24 18:14:04 -08:00
|
|
|
if CONFIG['MOZ_CRASHREPORTER']:
|
2014-02-24 18:14:05 -08:00
|
|
|
crashreporter = add_android_eclipse_library_project('FennecResourcesCrashReporter')
|
2014-08-14 11:28:27 -07:00
|
|
|
crashreporter.package_name = 'org.mozilla.gecko.crashreporter'
|
2014-02-24 18:14:04 -08:00
|
|
|
crashreporter.res = SRCDIR + '/crashreporter/res'
|
2014-08-14 11:28:27 -07:00
|
|
|
crashreporter.recursive_make_targets += generated_recursive_make_targets
|
|
|
|
|
|
|
|
# layout/crash_reporter.xml references strings and other resources, and
|
|
|
|
# therefore depends on other resource projects.
|
|
|
|
crashreporter.included_projects += ['../' + static.name, '../' + generated.name]
|
|
|
|
crashreporter.referenced_projects += ['../' + static.name, '../' + generated.name]
|
2014-02-24 18:14:04 -08:00
|
|
|
|
2014-08-14 11:28:27 -07:00
|
|
|
resources.included_projects += ['../' + crashreporter.name]
|
|
|
|
resources.referenced_projects += ['../' + crashreporter.name]
|
2014-07-15 13:50:22 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_ANDROID_MLS_STUMBLER']:
|
|
|
|
main.included_projects += ['../FennecStumbler']
|
|
|
|
main.referenced_projects += ['../FennecStumbler']
|
2014-08-08 14:05:31 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_ANDROID_SEARCH_ACTIVITY']:
|
2014-08-14 11:28:27 -07:00
|
|
|
searchres = add_android_eclipse_library_project('FennecResourcesSearch')
|
|
|
|
# Eclipse generates org.mozilla.search.R for this project, which is
|
|
|
|
# referenced by the search/**/*.java code.
|
|
|
|
searchres.package_name = 'org.mozilla.search'
|
|
|
|
searchres.res = SRCDIR + '/../search/res'
|
|
|
|
|
|
|
|
searchres.included_projects += ['../' + static.name, '../' + generated.name, '../' + branding.name]
|
|
|
|
searchres.referenced_projects += ['../' + static.name, '../' + generated.name, '../' + branding.name]
|
|
|
|
|
|
|
|
resources.included_projects += ['../' + searchres.name]
|
|
|
|
resources.referenced_projects += ['../' + searchres.name]
|
2014-08-08 14:05:31 -07:00
|
|
|
|
2014-08-14 11:28:27 -07:00
|
|
|
# The Search Activity code is built as part of Fennec, so we follow suit in Eclipse.
|
|
|
|
main.add_classpathentry('search', TOPSRCDIR + '/mobile/android/search/java', dstdir='search')
|