moz.build (1796B)
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 DIRS += [ 8 "datamodel", 9 ] 10 11 EXPORTS.mozilla.dom += [ 12 "FileSystemAccessHandle.h", 13 "FileSystemAccessHandleControlParent.h", 14 "FileSystemAccessHandleParent.h", 15 "FileSystemManagerParent.h", 16 "FileSystemManagerParentFactory.h", 17 "FileSystemParentTypes.h", 18 "FileSystemQuotaClient.h", 19 "FileSystemQuotaClientFactory.h", 20 "FileSystemWritableFileStreamParent.h", 21 ] 22 23 UNIFIED_SOURCES += [ 24 "FileSystemAccessHandle.cpp", 25 "FileSystemAccessHandleControlParent.cpp", 26 "FileSystemAccessHandleParent.cpp", 27 "FileSystemContentTypeGuess.cpp", 28 "FileSystemHashSource.cpp", 29 "FileSystemHashStorageFunction.cpp", 30 "FileSystemManagerParent.cpp", 31 "FileSystemManagerParentFactory.cpp", 32 "FileSystemQuotaClient.cpp", 33 "FileSystemQuotaClientFactory.cpp", 34 "FileSystemStreamCallbacks.cpp", 35 "FileSystemWritableFileStreamParent.cpp", 36 "NotifyUtils.cpp", 37 "ResultStatement.cpp", 38 "StartedTransaction.cpp", 39 ] 40 41 LOCAL_INCLUDES += [ 42 "/dom/fs/include", 43 "/dom/fs/parent/datamodel", 44 ] 45 46 FINAL_LIBRARY = "xul" 47 48 include("/ipc/chromium/chromium-config.mozbuild") 49 50 if CONFIG["COMPILE_ENVIRONMENT"]: 51 CbindgenHeader( 52 "data_encoding_ffi_generated.h", 53 inputs=["/dom/fs/parent/rust/data-encoding-ffi"], 54 ) 55 56 CbindgenHeader( 57 "mime_guess_ffi_generated.h", 58 inputs=["/dom/fs/parent/rust/mime-guess-ffi"], 59 ) 60 61 EXPORTS.mozilla.dom += [ 62 "!data_encoding_ffi_generated.h", 63 "!mime_guess_ffi_generated.h", 64 ]