summaryrefslogtreecommitdiff
path: root/toolkit/components/places/moz.build
blob: 54026553753367b917ec00ef90df6fa9742038c4 (plain)
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; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

XPIDL_SOURCES += ['public/nsINavHistoryService.idl']

if CONFIG['MOZ_PLACES']:
    XPIDL_SOURCES += [
        'public/mozIAsyncFavicons.idl',
        'public/mozIAsyncHistory.idl',
        'public/mozIAsyncLivemarks.idl',
        'public/mozIColorAnalyzer.idl',
        'public/mozIPlacesAutoComplete.idl',
        'public/mozIPlacesPendingOperation.idl',
        'public/nsIAnnotationService.idl',
        'public/nsIBrowserHistory.idl',
        'public/nsIFaviconService.idl',
        'public/nsINavBookmarksService.idl',
        'public/nsITaggingService.idl',
        'public/nsPIPlacesDatabase.idl',
    ]

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

    UNIFIED_SOURCES += [
        'src/Database.cpp',
        'src/FaviconHelpers.cpp',
        'src/Helpers.cpp',
        'src/History.cpp',
        'src/nsAnnoProtocolHandler.cpp',
        'src/nsAnnotationService.cpp',
        'src/nsFaviconService.cpp',
        'src/nsNavBookmarks.cpp',
        'src/nsNavHistory.cpp',
        'src/nsNavHistoryQuery.cpp',
        'src/nsNavHistoryResult.cpp',
        'src/nsPlacesModule.cpp',
        'src/PlaceInfo.cpp',
        'src/Shutdown.cpp',
        'src/SQLFunctions.cpp',
        'src/VisitInfo.cpp',
    ]

    LOCAL_INCLUDES += ['../build']

    EXTRA_COMPONENTS += [
        'nsPlacesAutoComplete.manifest',
        'src/ColorAnalyzer.js',
        'src/nsLivemarkService.js',
        'src/nsPlacesAutoComplete.js',
        'src/nsPlacesExpiration.js',
        'src/nsTaggingService.js',
        'src/PageIconProtocolHandler.js',
        'src/PlacesCategoriesStarter.js',
        'src/UnifiedComplete.js',
        'toolkitplaces.manifest',
    ]

    EXTRA_JS_MODULES += [
        'src/BookmarkHTMLUtils.jsm',
        'src/BookmarkJSONUtils.jsm',
        'src/Bookmarks.jsm',
        'src/ClusterLib.js',
        'src/ColorAnalyzer_worker.js',
        'src/ColorConversion.js',
        'src/ExtensionSearchHandler.jsm',
        'src/History.jsm',
        'src/PlacesBackups.jsm',
        'src/PlacesDBUtils.jsm',
        'src/PlacesRemoteTabsAutocompleteProvider.jsm',
        'src/PlacesSearchAutocompleteProvider.jsm',
        'src/PlacesSyncUtils.jsm',
        'src/PlacesTransactions.jsm',
        'src/PlacesUtils.jsm',
    ]

    FINAL_LIBRARY = 'xul'

include('/ipc/chromium/chromium-config.mozbuild')

if CONFIG['GNU_CXX']:
    CXXFLAGS += ['-Wno-error=shadow']

XPIDL_MODULE = 'places'