Source code

Revision control

Other Tools

1
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2
# vim: set filetype=python:
3
# This Source Code Form is subject to the terms of the Mozilla Public
4
# License, v. 2.0. If a copy of the MPL was not distributed with this
5
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7
if CONFIG['MOZ_PLACES']:
8
TEST_DIRS += ['tests']
9
10
XPIDL_SOURCES += [
11
'nsINavHistoryService.idl',
12
]
13
14
XPIDL_MODULE = 'places'
15
16
if CONFIG['MOZ_PLACES']:
17
XPIDL_SOURCES += [
18
'mozIAsyncHistory.idl',
19
'mozIPlacesAutoComplete.idl',
20
'mozIPlacesPendingOperation.idl',
21
'mozISyncedBookmarksMirror.idl',
22
'nsIAnnotationService.idl',
23
'nsIFaviconService.idl',
24
'nsINavBookmarksService.idl',
25
'nsITaggingService.idl',
26
]
27
28
EXPORTS.mozilla.places = [
29
'Database.h',
30
'History.h',
31
'INativePlacesEventCallback.h',
32
'Shutdown.h',
33
'SyncedBookmarksMirror.h',
34
]
35
36
UNIFIED_SOURCES += [
37
'Database.cpp',
38
'FaviconHelpers.cpp',
39
'Helpers.cpp',
40
'History.cpp',
41
'nsAnnoProtocolHandler.cpp',
42
'nsAnnotationService.cpp',
43
'nsFaviconService.cpp',
44
'nsNavBookmarks.cpp',
45
'nsNavHistory.cpp',
46
'nsNavHistoryQuery.cpp',
47
'nsNavHistoryResult.cpp',
48
'PlaceInfo.cpp',
49
'Shutdown.cpp',
50
'SQLFunctions.cpp',
51
'VisitInfo.cpp',
52
]
53
54
LOCAL_INCLUDES += [
55
'../build',
56
]
57
58
EXTRA_JS_MODULES += [
59
'BookmarkHTMLUtils.jsm',
60
'BookmarkJSONUtils.jsm',
61
'Bookmarks.jsm',
62
'ExtensionSearchHandler.jsm',
63
'History.jsm',
64
'PageIconProtocolHandler.jsm',
65
'PlacesBackups.jsm',
66
'PlacesCategoriesStarter.jsm',
67
'PlacesDBUtils.jsm',
68
'PlacesExpiration.jsm',
69
'PlacesRemoteTabsAutocompleteProvider.jsm',
70
'PlacesSearchAutocompleteProvider.jsm',
71
'PlacesSyncUtils.jsm',
72
'PlacesTransactions.jsm',
73
'PlacesUtils.jsm',
74
'SyncedBookmarksMirror.jsm',
75
'TaggingService.jsm',
76
'UnifiedComplete.jsm',
77
]
78
79
XPCOM_MANIFESTS += [
80
'components.conf',
81
]
82
83
FINAL_LIBRARY = 'xul'
84
85
include('/ipc/chromium/chromium-config.mozbuild')
86
87
with Files('**'):
88
BUG_COMPONENT = ('Toolkit', 'Places')
89
90
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
91
CXXFLAGS += ['-Wno-error=shadow']
92
93
JAR_MANIFESTS += ['jar.mn']