michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: if CONFIG['MOZ_PLACES']: michael@0: TEST_DIRS += ['tests'] michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsINavHistoryService.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'places' michael@0: michael@0: if CONFIG['MOZ_PLACES']: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'mozIAsyncFavicons.idl', michael@0: 'mozIAsyncHistory.idl', michael@0: 'mozIAsyncLivemarks.idl', michael@0: 'mozIColorAnalyzer.idl', michael@0: 'mozIPlacesAutoComplete.idl', michael@0: 'nsIAnnotationService.idl', michael@0: 'nsIBrowserHistory.idl', michael@0: 'nsIFaviconService.idl', michael@0: 'nsINavBookmarksService.idl', michael@0: 'nsITaggingService.idl', michael@0: 'nsPIPlacesDatabase.idl', michael@0: 'nsPIPlacesHistoryListenersNotifier.idl', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.places = [ michael@0: 'Database.h', michael@0: 'History.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'AsyncFaviconHelpers.cpp', michael@0: 'Database.cpp', michael@0: 'Helpers.cpp', michael@0: 'History.cpp', michael@0: 'nsAnnoProtocolHandler.cpp', michael@0: 'nsAnnotationService.cpp', michael@0: 'nsFaviconService.cpp', michael@0: 'nsMaybeWeakPtr.cpp', michael@0: 'nsNavBookmarks.cpp', michael@0: 'nsNavHistory.cpp', michael@0: 'nsNavHistoryQuery.cpp', michael@0: 'nsNavHistoryResult.cpp', michael@0: 'nsPlacesModule.cpp', michael@0: 'PlaceInfo.cpp', michael@0: 'SQLFunctions.cpp', michael@0: 'VisitInfo.cpp', michael@0: ] michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../build', michael@0: ] michael@0: michael@0: EXTRA_JS_MODULES = [ michael@0: 'BookmarkHTMLUtils.jsm', michael@0: 'BookmarkJSONUtils.jsm', michael@0: 'ClusterLib.js', michael@0: 'ColorAnalyzer_worker.js', michael@0: 'ColorConversion.js', michael@0: 'PlacesBackups.jsm', michael@0: 'PlacesDBUtils.jsm', michael@0: 'PlacesTransactions.jsm', michael@0: 'PriorityUrlProvider.jsm' michael@0: ] michael@0: michael@0: EXTRA_PP_JS_MODULES += [ michael@0: 'PlacesUtils.jsm', michael@0: ] michael@0: michael@0: EXTRA_COMPONENTS += [ michael@0: 'ColorAnalyzer.js', michael@0: 'nsLivemarkService.js', michael@0: 'nsPlacesExpiration.js', michael@0: 'nsTaggingService.js', michael@0: 'PlacesCategoriesStarter.js', michael@0: 'toolkitplaces.manifest', michael@0: ] michael@0: if CONFIG['MOZ_XUL']: michael@0: EXTRA_COMPONENTS += [ michael@0: 'nsPlacesAutoComplete.js', michael@0: 'nsPlacesAutoComplete.manifest', michael@0: 'UnifiedComplete.js', michael@0: 'UnifiedComplete.manifest', michael@0: ] michael@0: FINAL_LIBRARY = 'xul' michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild')