Bug 1942239 - Add option to explicitly enable incremental origin initialization in...
[gecko.git] / toolkit / components / contentanalysis / moz.build
blob99b57711c6d85f15e5f011e4d8c61e32d9832f37
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/.
7 with Files("**"):
8     BUG_COMPONENT = ("Toolkit", "General")
10 UNIFIED_SOURCES += [
11     "content_analysis/sdk/analysis.pb.cc",
12     "ContentAnalysis.cpp",
15 UNIFIED_SOURCES += [
16     "../../../third_party/content_analysis_sdk/browser/src/client_base.cc",
19 EXPORTS += ["ContentAnalysis.h"]
21 EXPORTS.mozilla.contentanalysis += [
22     "ContentAnalysisIPCTypes.h",
25 if CONFIG["OS_ARCH"] == "WINNT":
26     UNIFIED_SOURCES += [
27         "../../../third_party/content_analysis_sdk/browser/src/client_win.cc",
28         "../../../third_party/content_analysis_sdk/common/utils_win.cc",
29     ]
30 elif CONFIG["OS_ARCH"] == "Darwin":
31     UNIFIED_SOURCES += [
32         "../../../third_party/content_analysis_sdk/browser/src/client_mac.cc",
33     ]
34 else:
35     UNIFIED_SOURCES += [
36         "../../../third_party/content_analysis_sdk/browser/src/client_posix.cc",
37     ]
39 LOCAL_INCLUDES += [
40     "../../../third_party/content_analysis_sdk",
41     "../../../third_party/content_analysis_sdk/browser/include",
42     "content_analysis/sdk/",
45 XPIDL_SOURCES += [
46     "nsIContentAnalysis.idl",
49 XPIDL_MODULE = "toolkit_contentanalysis"
51 XPCOM_MANIFESTS += [
52     "components.conf",
55 include("/ipc/chromium/chromium-config.mozbuild")
57 DEFINES["GOOGLE_PROTOBUF_NO_RTTI"] = True
58 DEFINES["GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER"] = True
60 FINAL_LIBRARY = "xul"
62 TEST_DIRS += ["tests"]