moz.build (1853B)
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 include("/dom/media/webrtc/third_party_build/webrtc.mozbuild") 7 8 if CONFIG["OS_TARGET"] == "WINNT": 9 DEFINES["SIP_OS_WINDOWS"] = True 10 elif CONFIG["OS_TARGET"] == "Darwin": 11 DEFINES["SIP_OS_OSX"] = True 12 else: 13 DEFINES["SIP_OS_LINUX"] = True 14 15 # TODO: bug 1172551 - get these tests working on iOS 16 # Also, these lengthy tests are prone to OOM on Windows ASan. 17 if CONFIG["MOZ_WIDGET_TOOLKIT"] != "uikit" and not ( 18 CONFIG["OS_TARGET"] == "WINNT" and CONFIG["MOZ_ASAN"] 19 ): 20 LOCAL_INCLUDES += [ 21 "!/dist/include/libwebrtc_overrides", 22 "!/ipc/ipdl/_ipdlheaders", 23 "/dom/media", 24 "/dom/media/gtest", 25 "/dom/media/systemservices", 26 "/dom/media/webrtc", 27 "/dom/media/webrtc/common", 28 "/dom/media/webrtc/common/time_profiling", 29 "/dom/media/webrtc/jsapi", 30 "/dom/media/webrtc/libwebrtcglue", 31 "/dom/media/webrtc/transport", 32 "/dom/media/webrtc/transport/test", 33 "/dom/media/webrtc/transport/third_party/nrappkit/src/registry", 34 "/dom/media/webrtc/transportbridge", 35 "/ipc/chromium/src", 36 "/media/webrtc/", 37 "/third_party/abseil-cpp", 38 "/third_party/libsrtp/src/include", 39 "/third_party/libwebrtc", 40 "/third_party/sipcc", 41 ] 42 43 SOURCES += [ 44 "audioconduit_unittests.cpp", 45 "jsep_session_unittest.cpp", 46 "jsep_track_unittest.cpp", 47 "mediapipeline_unittest.cpp", 48 "MockCall.cpp", 49 "sdp_unittests.cpp", 50 "videoconduit_unittests.cpp", 51 ] 52 53 FINAL_LIBRARY = "xul-gtest"