moz.build (1543B)
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 with Files("**"): 8 BUG_COMPONENT = ("DevTools", "Memory") 9 10 TEST_DIRS += ["tests/gtest"] 11 12 XPCSHELL_TESTS_MANIFESTS += ["tests/xpcshell/xpcshell.toml"] 13 MOCHITEST_CHROME_MANIFESTS += ["tests/chrome/chrome.toml"] 14 BROWSER_CHROME_MANIFESTS += ["tests/browser/browser.toml"] 15 16 EXPORTS.mozilla.devtools += [ 17 "AutoMemMap.h", 18 "CoreDump.pb.h", 19 "DeserializedNode.h", 20 "DominatorTree.h", 21 "FileDescriptorOutputStream.h", 22 "HeapSnapshot.h", 23 "HeapSnapshotTempFileHelperChild.h", 24 "HeapSnapshotTempFileHelperParent.h", 25 "ZeroCopyNSIOutputStream.h", 26 ] 27 28 IPDL_SOURCES += [ 29 "PHeapSnapshotTempFileHelper.ipdl", 30 ] 31 32 include("/ipc/chromium/chromium-config.mozbuild") 33 34 SOURCES += [ 35 "AutoMemMap.cpp", 36 "CoreDump.pb.cc", 37 "DeserializedNode.cpp", 38 "DominatorTree.cpp", 39 "FileDescriptorOutputStream.cpp", 40 "HeapSnapshot.cpp", 41 "HeapSnapshotTempFileHelperParent.cpp", 42 "ZeroCopyNSIOutputStream.cpp", 43 ] 44 45 # Disable RTTI in google protocol buffer 46 DEFINES["GOOGLE_PROTOBUF_NO_RTTI"] = True 47 48 FINAL_LIBRARY = "xul" 49 50 DevToolsModules( 51 "census-tree-node.js", 52 "CensusUtils.js", 53 "DominatorTreeNode.js", 54 "HeapAnalyses.worker.js", 55 "HeapAnalysesClient.js", 56 "HeapSnapshotFileUtils.js", 57 "shortest-paths.js", 58 )