mobile/android/base/moz.build

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 DIRS += ['locales']
michael@0 8 SPHINX_TREES['fennec'] = 'docs'
michael@0 9
michael@0 10 include('android-services.mozbuild')
michael@0 11
michael@0 12 thirdparty_source_dir = TOPSRCDIR + '/mobile/android/thirdparty/'
michael@0 13
michael@0 14 resjar = add_java_jar('gecko-R')
michael@0 15 resjar.sources = []
michael@0 16 resjar.generated_sources += [
michael@0 17 'org/mozilla/gecko/R.java',
michael@0 18 ]
michael@0 19 resjar.javac_flags += ['-Xlint:all']
michael@0 20
michael@0 21 mgjar = add_java_jar('gecko-mozglue')
michael@0 22 mgjar.sources += [
michael@0 23 'mozglue/ByteBufferInputStream.java',
michael@0 24 'mozglue/DirectBufferAllocator.java',
michael@0 25 'mozglue/generatorannotations/GeneratorOptions.java',
michael@0 26 'mozglue/generatorannotations/OptionalGeneratedParameter.java',
michael@0 27 'mozglue/generatorannotations/WrapElementForJNI.java',
michael@0 28 'mozglue/generatorannotations/WrapEntireClassForJNI.java',
michael@0 29 'mozglue/JNITarget.java',
michael@0 30 'mozglue/NativeReference.java',
michael@0 31 'mozglue/NativeZip.java',
michael@0 32 'mozglue/RobocopTarget.java',
michael@0 33 'mozglue/WebRTCJNITarget.java',
michael@0 34 ]
michael@0 35 mgjar.generated_sources += [
michael@0 36 'org/mozilla/gecko/mozglue/GeckoLoader.java',
michael@0 37 ]
michael@0 38 mgjar.javac_flags += ['-Xlint:all']
michael@0 39
michael@0 40 wsjar = add_java_jar('websockets')
michael@0 41 wsjar.sources += [ thirdparty_source_dir + f for f in [
michael@0 42 'com/codebutler/android_websockets/HybiParser.java',
michael@0 43 'com/codebutler/android_websockets/WebSocketClient.java',
michael@0 44 ] ]
michael@0 45 wsjar.javac_flags += ['-Xlint:all,-serial']
michael@0 46
michael@0 47 gujar = add_java_jar('gecko-util')
michael@0 48 gujar.sources += [
michael@0 49 'util/ActivityResultHandler.java',
michael@0 50 'util/ActivityResultHandlerMap.java',
michael@0 51 'util/Clipboard.java',
michael@0 52 'util/EventCallback.java',
michael@0 53 'util/FileUtils.java',
michael@0 54 'util/FloatUtils.java',
michael@0 55 'util/GamepadUtils.java',
michael@0 56 'util/GeckoBackgroundThread.java',
michael@0 57 'util/GeckoEventListener.java',
michael@0 58 'util/GeckoJarReader.java',
michael@0 59 'util/HardwareUtils.java',
michael@0 60 'util/INIParser.java',
michael@0 61 'util/INISection.java',
michael@0 62 'util/JSONUtils.java',
michael@0 63 'util/MenuUtils.java',
michael@0 64 'util/NativeEventListener.java',
michael@0 65 'util/NativeJSContainer.java',
michael@0 66 'util/NativeJSObject.java',
michael@0 67 'util/NonEvictingLruCache.java',
michael@0 68 'util/ProxySelector.java',
michael@0 69 'util/RawResource.java',
michael@0 70 'util/StringUtils.java',
michael@0 71 'util/ThreadUtils.java',
michael@0 72 'util/UiAsyncTask.java',
michael@0 73 ]
michael@0 74 gujar.extra_jars = [
michael@0 75 'gecko-mozglue.jar'
michael@0 76 ]
michael@0 77 gujar.javac_flags += ['-Xlint:all,-deprecation']
michael@0 78
michael@0 79 stjar = add_java_jar('sync-thirdparty')
michael@0 80 stjar.sources += [ thirdparty_source_dir + f for f in sync_thirdparty_java_files ]
michael@0 81 stjar.javac_flags = ['-Xlint:none']
michael@0 82
michael@0 83 if CONFIG['MOZ_WEBRTC']:
michael@0 84 video_root = TOPSRCDIR + '/media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/'
michael@0 85 audio_root = TOPSRCDIR + '/media/webrtc/trunk/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/'
michael@0 86 wrjar = add_java_jar('webrtc')
michael@0 87 wrjar.sources += [
michael@0 88 video_root + 'CaptureCapabilityAndroid.java',
michael@0 89 video_root + 'VideoCaptureAndroid.java',
michael@0 90 video_root + 'VideoCaptureDeviceInfoAndroid.java',
michael@0 91 ]
michael@0 92 wrjar.sources += [
michael@0 93 audio_root + 'AudioManagerAndroid.java',
michael@0 94 audio_root + 'WebRTCAudioDevice.java',
michael@0 95 ]
michael@0 96 wrjar.extra_jars = [
michael@0 97 'gecko-R.jar',
michael@0 98 'gecko-browser.jar',
michael@0 99 'gecko-util.jar',
michael@0 100 'gecko-mozglue.jar',
michael@0 101 ]
michael@0 102 wrjar.javac_flags += ['-Xlint:all,-deprecation,-cast']
michael@0 103
michael@0 104 gbjar = add_java_jar('gecko-browser')
michael@0 105 gbjar.sources += [
michael@0 106 'AboutPages.java',
michael@0 107 'ActionModeCompat.java',
michael@0 108 'ActionModeCompatView.java',
michael@0 109 'ActivityHandlerHelper.java',
michael@0 110 'AlertNotification.java',
michael@0 111 'animation/AnimationUtils.java',
michael@0 112 'animation/AnimatorProxy.java',
michael@0 113 'animation/HeightChangeAnimation.java',
michael@0 114 'animation/PropertyAnimator.java',
michael@0 115 'animation/Rotate3DAnimation.java',
michael@0 116 'animation/ViewHelper.java',
michael@0 117 'ANRReporter.java',
michael@0 118 'AppNotificationClient.java',
michael@0 119 'Assert.java',
michael@0 120 'BaseGeckoInterface.java',
michael@0 121 'BrowserApp.java',
michael@0 122 'BrowserLocaleManager.java',
michael@0 123 'ContactService.java',
michael@0 124 'ContextGetter.java',
michael@0 125 'CustomEditText.java',
michael@0 126 'DataReportingNotification.java',
michael@0 127 'db/AbstractPerProfileDatabaseProvider.java',
michael@0 128 'db/AbstractTransactionalProvider.java',
michael@0 129 'db/BrowserContract.java',
michael@0 130 'db/BrowserDatabaseHelper.java',
michael@0 131 'db/BrowserDB.java',
michael@0 132 'db/BrowserProvider.java',
michael@0 133 'db/DBUtils.java',
michael@0 134 'db/FormHistoryProvider.java',
michael@0 135 'db/HomeProvider.java',
michael@0 136 'db/LocalBrowserDB.java',
michael@0 137 'db/PasswordsProvider.java',
michael@0 138 'db/PerProfileDatabaseProvider.java',
michael@0 139 'db/PerProfileDatabases.java',
michael@0 140 'db/ReadingListProvider.java',
michael@0 141 'db/SharedBrowserDatabaseProvider.java',
michael@0 142 'db/SQLiteBridgeContentProvider.java',
michael@0 143 'db/TabsProvider.java',
michael@0 144 'db/TopSitesCursorWrapper.java',
michael@0 145 'Distribution.java',
michael@0 146 'DoorHangerPopup.java',
michael@0 147 'DynamicToolbar.java',
michael@0 148 'EditBookmarkDialog.java',
michael@0 149 'EventDispatcher.java',
michael@0 150 'favicons/cache/FaviconCache.java',
michael@0 151 'favicons/cache/FaviconCacheElement.java',
michael@0 152 'favicons/cache/FaviconsForURL.java',
michael@0 153 'favicons/decoders/FaviconDecoder.java',
michael@0 154 'favicons/decoders/ICODecoder.java',
michael@0 155 'favicons/decoders/IconDirectoryEntry.java',
michael@0 156 'favicons/decoders/LoadFaviconResult.java',
michael@0 157 'favicons/Favicons.java',
michael@0 158 'favicons/LoadFaviconTask.java',
michael@0 159 'favicons/OnFaviconLoadedListener.java',
michael@0 160 'FilePicker.java',
michael@0 161 'FilePickerResultHandler.java',
michael@0 162 'FindInPageBar.java',
michael@0 163 'FormAssistPopup.java',
michael@0 164 'GeckoAccessibility.java',
michael@0 165 'GeckoActivity.java',
michael@0 166 'GeckoActivityStatus.java',
michael@0 167 'GeckoApp.java',
michael@0 168 'GeckoApplication.java',
michael@0 169 'GeckoAppShell.java',
michael@0 170 'GeckoBatteryManager.java',
michael@0 171 'GeckoConnectivityReceiver.java',
michael@0 172 'GeckoEditable.java',
michael@0 173 'GeckoEvent.java',
michael@0 174 'GeckoHalDefines.java',
michael@0 175 'GeckoInputConnection.java',
michael@0 176 'GeckoJavaSampler.java',
michael@0 177 'GeckoMessageReceiver.java',
michael@0 178 'GeckoNetworkManager.java',
michael@0 179 'GeckoProfile.java',
michael@0 180 'GeckoProfileDirectories.java',
michael@0 181 'GeckoProfilesProvider.java',
michael@0 182 'GeckoScreenOrientation.java',
michael@0 183 'GeckoSharedPrefs.java',
michael@0 184 'GeckoSmsManager.java',
michael@0 185 'GeckoThread.java',
michael@0 186 'GeckoUpdateReceiver.java',
michael@0 187 'GeckoView.java',
michael@0 188 'GeckoViewChrome.java',
michael@0 189 'GeckoViewContent.java',
michael@0 190 'gfx/Axis.java',
michael@0 191 'gfx/BitmapUtils.java',
michael@0 192 'gfx/BufferedCairoImage.java',
michael@0 193 'gfx/CairoGLInfo.java',
michael@0 194 'gfx/CairoImage.java',
michael@0 195 'gfx/CairoUtils.java',
michael@0 196 'gfx/DisplayPortCalculator.java',
michael@0 197 'gfx/DisplayPortMetrics.java',
michael@0 198 'gfx/DrawTimingQueue.java',
michael@0 199 'gfx/FloatSize.java',
michael@0 200 'gfx/GeckoLayerClient.java',
michael@0 201 'gfx/GLController.java',
michael@0 202 'gfx/ImmutableViewportMetrics.java',
michael@0 203 'gfx/InputConnectionHandler.java',
michael@0 204 'gfx/IntSize.java',
michael@0 205 'gfx/JavaPanZoomController.java',
michael@0 206 'gfx/Layer.java',
michael@0 207 'gfx/LayerMarginsAnimator.java',
michael@0 208 'gfx/LayerRenderer.java',
michael@0 209 'gfx/LayerView.java',
michael@0 210 'gfx/NativePanZoomController.java',
michael@0 211 'gfx/NinePatchTileLayer.java',
michael@0 212 'gfx/Overscroll.java',
michael@0 213 'gfx/OverscrollEdgeEffect.java',
michael@0 214 'gfx/PanningPerfAPI.java',
michael@0 215 'gfx/PanZoomController.java',
michael@0 216 'gfx/PanZoomTarget.java',
michael@0 217 'gfx/PluginLayer.java',
michael@0 218 'gfx/PointUtils.java',
michael@0 219 'gfx/ProgressiveUpdateData.java',
michael@0 220 'gfx/RectUtils.java',
michael@0 221 'gfx/RenderTask.java',
michael@0 222 'gfx/ScrollbarLayer.java',
michael@0 223 'gfx/SimpleScaleGestureDetector.java',
michael@0 224 'gfx/SingleTileLayer.java',
michael@0 225 'gfx/SubdocumentScrollHelper.java',
michael@0 226 'gfx/TextLayer.java',
michael@0 227 'gfx/TextureGenerator.java',
michael@0 228 'gfx/TextureReaper.java',
michael@0 229 'gfx/TileLayer.java',
michael@0 230 'gfx/TouchEventHandler.java',
michael@0 231 'gfx/ViewTransform.java',
michael@0 232 'gfx/VirtualLayer.java',
michael@0 233 'GlobalHistory.java',
michael@0 234 'health/BrowserHealthRecorder.java',
michael@0 235 'health/BrowserHealthReporter.java',
michael@0 236 'health/HealthRecorder.java',
michael@0 237 'health/SessionInformation.java',
michael@0 238 'health/StubbedHealthRecorder.java',
michael@0 239 'home/BookmarkFolderView.java',
michael@0 240 'home/BookmarksListAdapter.java',
michael@0 241 'home/BookmarksListView.java',
michael@0 242 'home/BookmarksPanel.java',
michael@0 243 'home/BrowserSearch.java',
michael@0 244 'home/DynamicPanel.java',
michael@0 245 'home/FadedTextView.java',
michael@0 246 'home/FramePanelLayout.java',
michael@0 247 'home/HistoryPanel.java',
michael@0 248 'home/HomeAdapter.java',
michael@0 249 'home/HomeBanner.java',
michael@0 250 'home/HomeConfig.java',
michael@0 251 'home/HomeConfigLoader.java',
michael@0 252 'home/HomeConfigPrefsBackend.java',
michael@0 253 'home/HomeContextMenuInfo.java',
michael@0 254 'home/HomeFragment.java',
michael@0 255 'home/HomeListView.java',
michael@0 256 'home/HomePager.java',
michael@0 257 'home/HomePagerTabStrip.java',
michael@0 258 'home/HomePanelPicker.java',
michael@0 259 'home/HomePanelsManager.java',
michael@0 260 'home/LastTabsPanel.java',
michael@0 261 'home/MostRecentPanel.java',
michael@0 262 'home/MultiTypeCursorAdapter.java',
michael@0 263 'home/PanelAuthCache.java',
michael@0 264 'home/PanelAuthLayout.java',
michael@0 265 'home/PanelBackItemView.java',
michael@0 266 'home/PanelGridView.java',
michael@0 267 'home/PanelInfoManager.java',
michael@0 268 'home/PanelItemView.java',
michael@0 269 'home/PanelLayout.java',
michael@0 270 'home/PanelListView.java',
michael@0 271 'home/PanelRefreshLayout.java',
michael@0 272 'home/PanelViewAdapter.java',
michael@0 273 'home/PanelViewItemHandler.java',
michael@0 274 'home/PinSiteDialog.java',
michael@0 275 'home/ReadingListPanel.java',
michael@0 276 'home/ReadingListRow.java',
michael@0 277 'home/SearchEngine.java',
michael@0 278 'home/SearchEngineRow.java',
michael@0 279 'home/SearchLoader.java',
michael@0 280 'home/SimpleCursorLoader.java',
michael@0 281 'home/SuggestClient.java',
michael@0 282 'home/TabMenuStrip.java',
michael@0 283 'home/TabMenuStripLayout.java',
michael@0 284 'home/TopSitesGridItemView.java',
michael@0 285 'home/TopSitesGridView.java',
michael@0 286 'home/TopSitesPanel.java',
michael@0 287 'home/TopSitesThumbnailView.java',
michael@0 288 'home/TwoLinePageRow.java',
michael@0 289 'InputMethods.java',
michael@0 290 'JavaAddonManager.java',
michael@0 291 'LightweightTheme.java',
michael@0 292 'LightweightThemeDrawable.java',
michael@0 293 'LocaleManager.java',
michael@0 294 'MediaCastingBar.java',
michael@0 295 'MemoryMonitor.java',
michael@0 296 'menu/GeckoMenu.java',
michael@0 297 'menu/GeckoMenuInflater.java',
michael@0 298 'menu/GeckoMenuItem.java',
michael@0 299 'menu/GeckoSubMenu.java',
michael@0 300 'menu/MenuItemActionBar.java',
michael@0 301 'menu/MenuItemActionView.java',
michael@0 302 'menu/MenuItemDefault.java',
michael@0 303 'menu/MenuPanel.java',
michael@0 304 'menu/MenuPopup.java',
michael@0 305 'MotionEventInterceptor.java',
michael@0 306 'NotificationClient.java',
michael@0 307 'NotificationHandler.java',
michael@0 308 'NotificationHelper.java',
michael@0 309 'NotificationService.java',
michael@0 310 'NSSBridge.java',
michael@0 311 'OrderedBroadcastHelper.java',
michael@0 312 'preferences/AlignRightLinkPreference.java',
michael@0 313 'preferences/AndroidImport.java',
michael@0 314 'preferences/AndroidImportPreference.java',
michael@0 315 'preferences/CustomListCategory.java',
michael@0 316 'preferences/CustomListPreference.java',
michael@0 317 'preferences/FontSizePreference.java',
michael@0 318 'preferences/GeckoPreferenceFragment.java',
michael@0 319 'preferences/GeckoPreferences.java',
michael@0 320 'preferences/LinkPreference.java',
michael@0 321 'preferences/ModifiableHintPreference.java',
michael@0 322 'preferences/MultiChoicePreference.java',
michael@0 323 'preferences/PanelsPreference.java',
michael@0 324 'preferences/PanelsPreferenceCategory.java',
michael@0 325 'preferences/PrivateDataPreference.java',
michael@0 326 'preferences/SearchEnginePreference.java',
michael@0 327 'preferences/SearchPreferenceCategory.java',
michael@0 328 'preferences/SyncPreference.java',
michael@0 329 'PrefsHelper.java',
michael@0 330 'PrivateTab.java',
michael@0 331 'prompts/ColorPickerInput.java',
michael@0 332 'prompts/IconGridInput.java',
michael@0 333 'prompts/IntentChooserPrompt.java',
michael@0 334 'prompts/IntentHandler.java',
michael@0 335 'prompts/Prompt.java',
michael@0 336 'prompts/PromptInput.java',
michael@0 337 'prompts/PromptListAdapter.java',
michael@0 338 'prompts/PromptListItem.java',
michael@0 339 'prompts/PromptService.java',
michael@0 340 'prompts/TabInput.java',
michael@0 341 'ReaderModeUtils.java',
michael@0 342 'ReferrerReceiver.java',
michael@0 343 'RemoteTabsContainer.java',
michael@0 344 'RemoteTabsList.java',
michael@0 345 'Restarter.java',
michael@0 346 'ScrollAnimator.java',
michael@0 347 'ServiceNotificationClient.java',
michael@0 348 'SessionParser.java',
michael@0 349 'SharedPreferencesHelper.java',
michael@0 350 'SiteIdentity.java',
michael@0 351 'SmsManager.java',
michael@0 352 'sqlite/ByteBufferInputStream.java',
michael@0 353 'sqlite/MatrixBlobCursor.java',
michael@0 354 'sqlite/SQLiteBridge.java',
michael@0 355 'sqlite/SQLiteBridgeException.java',
michael@0 356 'SurfaceBits.java',
michael@0 357 'Tab.java',
michael@0 358 'Tabs.java',
michael@0 359 'TabsAccessor.java',
michael@0 360 'TabsPanel.java',
michael@0 361 'TabsTray.java',
michael@0 362 'Telemetry.java',
michael@0 363 'TelemetryContract.java',
michael@0 364 'TextSelection.java',
michael@0 365 'TextSelectionHandle.java',
michael@0 366 'ThumbnailHelper.java',
michael@0 367 'toolbar/AutocompleteHandler.java',
michael@0 368 'toolbar/BackButton.java',
michael@0 369 'toolbar/BrowserToolbar.java',
michael@0 370 'toolbar/CanvasDelegate.java',
michael@0 371 'toolbar/ForwardButton.java',
michael@0 372 'toolbar/PageActionLayout.java',
michael@0 373 'toolbar/ShapedButton.java',
michael@0 374 'toolbar/SiteIdentityPopup.java',
michael@0 375 'toolbar/TabCounter.java',
michael@0 376 'toolbar/ToolbarDisplayLayout.java',
michael@0 377 'toolbar/ToolbarEditLayout.java',
michael@0 378 'toolbar/ToolbarEditText.java',
michael@0 379 'toolbar/ToolbarProgressView.java',
michael@0 380 'toolbar/ToolbarTitlePrefs.java',
michael@0 381 'TouchEventInterceptor.java',
michael@0 382 'updater/UpdateService.java',
michael@0 383 'updater/UpdateServiceHelper.java',
michael@0 384 'VideoPlayer.java',
michael@0 385 'webapp/Allocator.java',
michael@0 386 'webapp/ApkResources.java',
michael@0 387 'webapp/Dispatcher.java',
michael@0 388 'webapp/EventListener.java',
michael@0 389 'webapp/InstallHelper.java',
michael@0 390 'webapp/InstallListener.java',
michael@0 391 'webapp/TaskKiller.java',
michael@0 392 'webapp/UninstallListener.java',
michael@0 393 'webapp/WebappImpl.java',
michael@0 394 'WebappAllocator.java',
michael@0 395 'WebappImpl.java',
michael@0 396 'widget/ActivityChooserModel.java',
michael@0 397 'widget/AllCapsTextView.java',
michael@0 398 'widget/AnimatedHeightLayout.java',
michael@0 399 'widget/ArrowPopup.java',
michael@0 400 'widget/BasicColorPicker.java',
michael@0 401 'widget/ButtonToast.java',
michael@0 402 'widget/CheckableLinearLayout.java',
michael@0 403 'widget/ClickableWhenDisabledEditText.java',
michael@0 404 'widget/DateTimePicker.java',
michael@0 405 'widget/Divider.java',
michael@0 406 'widget/DoorHanger.java',
michael@0 407 'widget/EllipsisTextView.java',
michael@0 408 'widget/FaviconView.java',
michael@0 409 'widget/FlowLayout.java',
michael@0 410 'widget/GeckoActionProvider.java',
michael@0 411 'widget/GeckoPopupMenu.java',
michael@0 412 'widget/GeckoSwipeRefreshLayout.java',
michael@0 413 'widget/GeckoViewFlipper.java',
michael@0 414 'widget/IconTabWidget.java',
michael@0 415 'widget/SquaredImageView.java',
michael@0 416 'widget/TabRow.java',
michael@0 417 'widget/TabThumbnailWrapper.java',
michael@0 418 'widget/ThumbnailView.java',
michael@0 419 'widget/TwoWayView.java',
michael@0 420 'ZoomConstraints.java',
michael@0 421 ]
michael@0 422 gbjar.sources += [ thirdparty_source_dir + f for f in [
michael@0 423 'com/googlecode/eyesfree/braille/selfbraille/ISelfBrailleService.java',
michael@0 424 'com/googlecode/eyesfree/braille/selfbraille/SelfBrailleClient.java',
michael@0 425 'com/googlecode/eyesfree/braille/selfbraille/WriteData.java',
michael@0 426 ] ]
michael@0 427 android_package_dir = CONFIG['ANDROID_PACKAGE_NAME'].replace('.', '/')
michael@0 428 # All generated sources are handled specially in Makefile.in. And
michael@0 429 # R.java is handled even more specially than the others!
michael@0 430 gbjar.generated_sources += [ android_package_dir + f for f in [
michael@0 431 '/App.java',
michael@0 432 '/Webapp.java',
michael@0 433 '/WebApps.java',
michael@0 434 ] ]
michael@0 435 gbjar.generated_sources += [
michael@0 436 'org/mozilla/gecko/AppConstants.java',
michael@0 437 'org/mozilla/gecko/SysInfo.java',
michael@0 438 'org/mozilla/gecko/widget/ThemedEditText.java',
michael@0 439 'org/mozilla/gecko/widget/ThemedImageButton.java',
michael@0 440 'org/mozilla/gecko/widget/ThemedImageView.java',
michael@0 441 'org/mozilla/gecko/widget/ThemedLinearLayout.java',
michael@0 442 'org/mozilla/gecko/widget/ThemedRelativeLayout.java',
michael@0 443 'org/mozilla/gecko/widget/ThemedTextSwitcher.java',
michael@0 444 'org/mozilla/gecko/widget/ThemedTextView.java',
michael@0 445 'org/mozilla/gecko/widget/ThemedView.java',
michael@0 446 ]
michael@0 447 if CONFIG['MOZ_CRASHREPORTER']:
michael@0 448 gbjar.sources += [ 'CrashReporter.java' ]
michael@0 449 ANDROID_RES_DIRS += [ SRCDIR + '/crashreporter/res' ]
michael@0 450
michael@0 451 gbjar.sources += sync_java_files
michael@0 452 gbjar.generated_sources += sync_generated_java_files
michael@0 453 gbjar.extra_jars = [
michael@0 454 'gecko-R.jar',
michael@0 455 'gecko-mozglue.jar',
michael@0 456 'gecko-util.jar',
michael@0 457 'squareup-picasso.jar',
michael@0 458 'sync-thirdparty.jar',
michael@0 459 'websockets.jar',
michael@0 460 ]
michael@0 461 gbjar.javac_flags += ['-Xlint:all,-deprecation,-fallthrough']
michael@0 462
michael@0 463 spjar = add_java_jar('squareup-picasso')
michael@0 464 spjar.sources += [ thirdparty_source_dir + f for f in [
michael@0 465 'com/squareup/picasso/Action.java',
michael@0 466 'com/squareup/picasso/AssetBitmapHunter.java',
michael@0 467 'com/squareup/picasso/BitmapHunter.java',
michael@0 468 'com/squareup/picasso/Cache.java',
michael@0 469 'com/squareup/picasso/Callback.java',
michael@0 470 'com/squareup/picasso/ContactsPhotoBitmapHunter.java',
michael@0 471 'com/squareup/picasso/ContentStreamBitmapHunter.java',
michael@0 472 'com/squareup/picasso/DeferredRequestCreator.java',
michael@0 473 'com/squareup/picasso/Dispatcher.java',
michael@0 474 'com/squareup/picasso/Downloader.java',
michael@0 475 'com/squareup/picasso/FetchAction.java',
michael@0 476 'com/squareup/picasso/FileBitmapHunter.java',
michael@0 477 'com/squareup/picasso/GetAction.java',
michael@0 478 'com/squareup/picasso/ImageViewAction.java',
michael@0 479 'com/squareup/picasso/LruCache.java',
michael@0 480 'com/squareup/picasso/MarkableInputStream.java',
michael@0 481 'com/squareup/picasso/MediaStoreBitmapHunter.java',
michael@0 482 'com/squareup/picasso/NetworkBitmapHunter.java',
michael@0 483 'com/squareup/picasso/Picasso.java',
michael@0 484 'com/squareup/picasso/PicassoDrawable.java',
michael@0 485 'com/squareup/picasso/PicassoExecutorService.java',
michael@0 486 'com/squareup/picasso/Request.java',
michael@0 487 'com/squareup/picasso/RequestCreator.java',
michael@0 488 'com/squareup/picasso/ResourceBitmapHunter.java',
michael@0 489 'com/squareup/picasso/Stats.java',
michael@0 490 'com/squareup/picasso/StatsSnapshot.java',
michael@0 491 'com/squareup/picasso/Target.java',
michael@0 492 'com/squareup/picasso/TargetAction.java',
michael@0 493 'com/squareup/picasso/Transformation.java',
michael@0 494 'com/squareup/picasso/UrlConnectionDownloader.java',
michael@0 495 'com/squareup/picasso/Utils.java',
michael@0 496 ] ]
michael@0 497 #spjar.javac_flags += ['-Xlint:all']
michael@0 498
michael@0 499 ANDROID_RES_DIRS += [
michael@0 500 SRCDIR + '/resources',
michael@0 501 TOPSRCDIR + '/' + CONFIG['MOZ_BRANDING_DIRECTORY'] + '/res',
michael@0 502 OBJDIR + '/res',
michael@0 503 ]
michael@0 504
michael@0 505 ANDROID_GENERATED_RESFILES += [
michael@0 506 'res/values/strings.xml',
michael@0 507 ]
michael@0 508
michael@0 509 for var in ('MOZ_ANDROID_ANR_REPORTER', 'MOZ_LINKER_EXTRACT'):
michael@0 510 if CONFIG[var]:
michael@0 511 DEFINES[var] = 1
michael@0 512
michael@0 513 for var in ('MOZ_UPDATER', 'MOZ_PKG_SPECIAL'):
michael@0 514 if CONFIG[var]:
michael@0 515 DEFINES[var] = CONFIG[var]
michael@0 516
michael@0 517 for var in ('ANDROID_PACKAGE_NAME', 'ANDROID_CPU_ARCH', 'CPU_ARCH',
michael@0 518 'GRE_MILESTONE', 'MOZILLA_OFFICIAL', 'MOZ_APP_BASENAME',
michael@0 519 'MOZ_APP_DISPLAYNAME', 'MOZ_APP_ID', 'MOZ_APP_NAME',
michael@0 520 'MOZ_APP_VENDOR', 'MOZ_APP_VERSION', 'MOZ_CHILD_PROCESS_NAME',
michael@0 521 'MOZ_CRASHREPORTER', 'MOZ_UPDATE_CHANNEL', 'OMNIJAR_NAME',
michael@0 522 'OS_TARGET', 'TARGET_XPCOM_ABI'):
michael@0 523 DEFINES[var] = CONFIG[var]
michael@0 524
michael@0 525 # Mangle our package name to avoid Bug 750548.
michael@0 526 DEFINES['MANGLED_ANDROID_PACKAGE_NAME'] = CONFIG['ANDROID_PACKAGE_NAME'].replace('fennec', 'f3nn3c')
michael@0 527 DEFINES['MOZ_APP_ABI'] = CONFIG['TARGET_XPCOM_ABI']
michael@0 528
michael@0 529 if '-march=armv7' in CONFIG['OS_CFLAGS']:
michael@0 530 DEFINES['MOZ_MIN_CPU_VERSION'] = 7
michael@0 531 else:
michael@0 532 DEFINES['MOZ_MIN_CPU_VERSION'] = 5
michael@0 533
michael@0 534 generated = add_android_eclipse_library_project('FennecResourcesGenerated')
michael@0 535 generated.package_name = 'org.mozilla.fennec.resources.generated'
michael@0 536 generated.res = OBJDIR + '/res'
michael@0 537
michael@0 538 branding = add_android_eclipse_library_project('FennecResourcesBranding')
michael@0 539 branding.package_name = 'org.mozilla.fennec.resources.branding'
michael@0 540 branding.res = TOPSRCDIR + '/' + CONFIG['MOZ_BRANDING_DIRECTORY'] + '/res'
michael@0 541
michael@0 542 main = add_android_eclipse_project('Fennec', OBJDIR + '/AndroidManifest.xml')
michael@0 543 main.package_name = 'org.mozilla.gecko'
michael@0 544
michael@0 545 # These values were extracted from an existing Eclipse project. Use
michael@0 546 # Project > Resource > Resource Filters and inspect the resulting
michael@0 547 # .project file to modify this list.
michael@0 548 main.filtered_resources += [
michael@0 549 '1.0-projectRelativePath-matches-false-false-*org/mozilla/gecko/resources/**',
michael@0 550 '1.0-projectRelativePath-matches-false-false-*org/mozilla/gecko/tests/**',
michael@0 551 ]
michael@0 552
michael@0 553 main.recursive_make_targets += ['.aapt.deps'] # Captures dependencies on Android manifest and all resources.
michael@0 554 main.recursive_make_targets += [OBJDIR + '/generated/' + f for f in mgjar.generated_sources]
michael@0 555 main.recursive_make_targets += [OBJDIR + '/generated/' + f for f in gbjar.generated_sources]
michael@0 556
michael@0 557 main.included_projects += ['../' + generated.name, '../' + branding.name]
michael@0 558 main.referenced_projects += [generated.name, branding.name]
michael@0 559 main.extra_jars += [CONFIG['ANDROID_COMPAT_LIB']]
michael@0 560 main.assets = TOPOBJDIR + '/dist/' + CONFIG['MOZ_APP_NAME'] + '/assets'
michael@0 561 main.libs = TOPOBJDIR + '/dist/' + CONFIG['MOZ_APP_NAME'] + '/lib'
michael@0 562 main.res = None
michael@0 563
michael@0 564 cpe = main.add_classpathentry('src', SRCDIR,
michael@0 565 dstdir='src/org/mozilla/gecko',
michael@0 566 exclude_patterns=['org/mozilla/gecko/tests/**',
michael@0 567 'org/mozilla/gecko/resources/**'])
michael@0 568 if not CONFIG['MOZ_CRASHREPORTER']:
michael@0 569 cpe.exclude_patterns += ['org/mozilla/gecko/CrashReporter.java']
michael@0 570 main.add_classpathentry('generated', OBJDIR + '/generated',
michael@0 571 dstdir='generated')
michael@0 572 main.add_classpathentry('thirdparty', TOPSRCDIR + '/mobile/android/thirdparty',
michael@0 573 dstdir='thirdparty',
michael@0 574 ignore_warnings=True)
michael@0 575
michael@0 576 resources = add_android_eclipse_library_project('FennecResources')
michael@0 577 resources.package_name = 'org.mozilla.fennec.resources'
michael@0 578 resources.res = SRCDIR + '/resources'
michael@0 579 resources.included_projects += ['../' + generated.name, '../' + branding.name]
michael@0 580 resources.referenced_projects += [generated.name, branding.name]
michael@0 581
michael@0 582 main.included_projects += ['../' + resources.name]
michael@0 583 main.referenced_projects += [resources.name]
michael@0 584
michael@0 585 if CONFIG['MOZ_CRASHREPORTER']:
michael@0 586 crashreporter = add_android_eclipse_library_project('FennecResourcesCrashReporter')
michael@0 587 crashreporter.package_name = 'org.mozilla.fennec.resources.crashreporter'
michael@0 588 crashreporter.res = SRCDIR + '/crashreporter/res'
michael@0 589 crashreporter.included_projects += ['../' + resources.name]
michael@0 590 crashreporter.referenced_projects += [resources.name]
michael@0 591
michael@0 592 main.included_projects += ['../' + crashreporter.name]
michael@0 593 main.referenced_projects += [crashreporter.name]

mercurial