DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (31ec81b5d7bb)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

if CONFIG['MOZ_PLACES']:
    TEST_DIRS += ['tests']

XPIDL_SOURCES += [
    'nsINavHistoryService.idl',
]

if CONFIG['MOZ_PLACES']:
    LIBXUL_LIBRARY = True
    MSVC_ENABLE_PGO = True
    LIBRARY_NAME = 'places'

    XPIDL_SOURCES += [
        'mozIAsyncFavicons.idl',
        'mozIAsyncHistory.idl',
        'mozIAsyncLivemarks.idl',
        'mozIColorAnalyzer.idl',
        'mozIPlacesAutoComplete.idl',
        'nsIAnnotationService.idl',
        'nsIBrowserHistory.idl',
        'nsIFaviconService.idl',
        'nsINavBookmarksService.idl',
        'nsITaggingService.idl',
        'nsPIPlacesDatabase.idl',
        'nsPIPlacesHistoryListenersNotifier.idl',
    ]

    EXPORTS.mozilla.places = [
        'History.h',
        'Database.h',
    ]

    CPP_SOURCES += [
        'nsAnnoProtocolHandler.cpp',
        'nsAnnotationService.cpp',
        'nsFaviconService.cpp',
        'nsNavHistory.cpp',
        'nsNavHistoryQuery.cpp',
        'nsNavHistoryResult.cpp',
        'nsNavBookmarks.cpp',
        'nsMaybeWeakPtr.cpp',
        'nsPlacesModule.cpp',
        'SQLFunctions.cpp',
        'Helpers.cpp',
        'History.cpp',
        'AsyncFaviconHelpers.cpp',
        'PlaceInfo.cpp',
        'VisitInfo.cpp',
        'Database.cpp',
    ]

    EXTRA_JS_MODULES = [
        'BookmarkJSONUtils.jsm',
        'ClusterLib.js',
        'ColorAnalyzer_worker.js',
        'ColorConversion.js',
        'PlacesBackups.jsm',
        'PlacesDBUtils.jsm',
    ]

    EXTRA_PP_JS_MODULES += [
        'BookmarkHTMLUtils.jsm',
        'PlacesUtils.jsm',
    ]

MODULE = 'places'


if CONFIG['MOZ_PLACES']:
    EXTRA_COMPONENTS += [
        'ColorAnalyzer.js',
        'PlacesCategoriesStarter.js',
        'nsLivemarkService.js',
        'nsPlacesExpiration.js',
        'nsTaggingService.js',
        'toolkitplaces.manifest',
    ]
    if CONFIG['MOZ_XUL']:
        EXTRA_COMPONENTS += [
            'nsPlacesAutoComplete.js',
            'nsPlacesAutoComplete.manifest',
        ]