summaryrefslogtreecommitdiffstats
path: root/dom/fs/parent/moz.build
blob: 95298ad0f2d56ab8f7266f10d48c110d6e45bfc6 (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
# -*- Mode: python; 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/.

DIRS += [
    "datamodel",
]

EXPORTS.mozilla.dom += [
    "FileSystemAccessHandle.h",
    "FileSystemAccessHandleControlParent.h",
    "FileSystemAccessHandleParent.h",
    "FileSystemManagerParent.h",
    "FileSystemManagerParentFactory.h",
    "FileSystemParentTypes.h",
    "FileSystemQuotaClient.h",
    "FileSystemQuotaClientFactory.h",
    "FileSystemWritableFileStreamParent.h",
]

UNIFIED_SOURCES += [
    "FileSystemAccessHandle.cpp",
    "FileSystemAccessHandleControlParent.cpp",
    "FileSystemAccessHandleParent.cpp",
    "FileSystemContentTypeGuess.cpp",
    "FileSystemHashSource.cpp",
    "FileSystemHashStorageFunction.cpp",
    "FileSystemManagerParent.cpp",
    "FileSystemManagerParentFactory.cpp",
    "FileSystemQuotaClient.cpp",
    "FileSystemQuotaClientFactory.cpp",
    "FileSystemStreamCallbacks.cpp",
    "FileSystemWritableFileStreamParent.cpp",
    "ResultStatement.cpp",
    "StartedTransaction.cpp",
]

LOCAL_INCLUDES += [
    "/dom/fs/include",
    "/dom/fs/parent/datamodel",
]

FINAL_LIBRARY = "xul"

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

if CONFIG["COMPILE_ENVIRONMENT"]:
    CbindgenHeader(
        "data_encoding_ffi_generated.h",
        inputs=["/dom/fs/parent/rust/data-encoding-ffi"],
    )

    CbindgenHeader(
        "mime_guess_ffi_generated.h",
        inputs=["/dom/fs/parent/rust/mime-guess-ffi"],
    )

    EXPORTS.mozilla.dom += [
        "!data_encoding_ffi_generated.h",
        "!mime_guess_ffi_generated.h",
    ]