mailnews/import/src/moz.build
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Fri, 26 Feb 2021 08:38:33 +0000
changeset 41360 302ebf0dd1edcb9a75d302e72445e27138310685
parent 40847 ce67a685b15b30f88e01eef16aafbf3138b80163
permissions -rw-r--r--
no bug - Bumping Thunderbird l10n changesets r=release a=l10n-bump DONTBUILD cs -> b1a9bfed4c9d193ce8c4a4962056bee3fa1f4691 dsb -> 3fc5c9fbda983fa457253e7931c5a79ae01acf53 es-AR -> 98e1db9fa4da598eedca1555e33c38ed7abe9d37 fr -> 50043609c2472700e42405397e2d46f92af26a24 hr -> 7f30df3f0e556e39236aa6b4bf3c74056158612b hu -> 2c3e13f063edbfb05933e6ca08a5e61fa429c05b it -> c9f2a8a0797daaec511ed306727e78fa8cc8719f ka -> 247a58a4ef9f58cfd6889c83f7638ae19c98bb82 nb-NO -> 8d74351ad6db6e7bd6227048a87c468615664344 pt-BR -> 8d9c47115a001365f1831b38fac5f166f7006c43 vi -> 3ce039ef66e4668daaea73dcc40774cd8f080bf7

# 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/.

SOURCES += [
    "ImportCharSet.cpp",
    "ImportOutFile.cpp",
    "ImportTranslate.cpp",
    "MorkImport.cpp",
    "nsAddrDatabase.cpp",
    "nsImportABDescriptor.cpp",
    "nsImportAddressBooks.cpp",
    "nsImportEmbeddedImageData.cpp",
    "nsImportEncodeScan.cpp",
    "nsImportFieldMap.cpp",
    "nsImportMail.cpp",
    "nsImportMailboxDescriptor.cpp",
    "nsImportScanFile.cpp",
    "nsImportService.cpp",
    "nsImportStringBundle.cpp",
    "nsImportTranslator.cpp",
    "nsTextAddress.cpp",
    "nsTextImport.cpp",
    "nsVCardAddress.cpp",
    "nsVCardImport.cpp",
]

if not CONFIG["MOZ_SUITE"]:
    EXTRA_JS_MODULES += [
        "SeamonkeyImport.jsm",
    ]

    XPCOM_MANIFESTS += [
        "components.conf",
    ]

if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
    SOURCES += [
        "nsAppleMailImport.cpp",
        "nsEmlxHelperUtils.mm",
    ]

if CONFIG["OS_ARCH"] == "WINNT":
    UNIFIED_SOURCES += [
        "nsBeckyAddressBooks.cpp",
        "nsBeckyFilters.cpp",
        "nsBeckyImport.cpp",
        "nsBeckyMail.cpp",
        "nsBeckySettings.cpp",
        "nsBeckyStringBundle.cpp",
        "nsBeckyUtils.cpp",
    ]

    if CONFIG["MOZ_MAPI_SUPPORT"]:
        SOURCES += [
            "MapiApi.cpp",
            "MapiMessage.cpp",
            "MapiMimeTypes.cpp",
            "nsOutlookCompose.cpp",
            "nsOutlookImport.cpp",
            "nsOutlookMail.cpp",
            "nsOutlookSettings.cpp",
            "nsOutlookStringBundle.cpp",
            "rtfDecoder.cpp",
            "rtfMailDecoder.cpp",
        ]

        SOURCES["rtfDecoder.cpp"].flags += ["-Wno-switch"]

    if CONFIG["CC_TYPE"] in ("msvc", "clang-cl"):
        SOURCES += [
            "nsWMImport.cpp",
            "nsWMSettings.cpp",
            "nsWMStringBundle.cpp",
            "nsWMUtils.cpp",
        ]

EXPORTS += [
    "ImportDebug.h",
    "nsVCardAddress.h",
]

FINAL_LIBRARY = "import"