moz.build (2818B)
1 # This Source Code Form is subject to the terms of the Mozilla Public 2 # License, v. 2.0. If a copy of the MPL was not distributed with this 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 5 6 ### This moz.build was AUTOMATICALLY GENERATED from a GN config, ### 7 ### DO NOT edit it by hand. ### 8 9 CMMFLAGS += [ 10 "-fobjc-arc" 11 ] 12 13 COMPILE_FLAGS["OS_INCLUDES"] = [] 14 AllowCompilerWarnings() 15 16 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" 17 DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" 18 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True 19 DEFINES["RTC_ENABLE_VP9"] = True 20 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" 21 DEFINES["WEBRTC_ENCODER_PSNR_STATS"] = True 22 DEFINES["WEBRTC_LIBRARY_IMPL"] = True 23 DEFINES["WEBRTC_MAC"] = True 24 DEFINES["WEBRTC_MOZILLA_BUILD"] = True 25 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" 26 DEFINES["WEBRTC_POSIX"] = True 27 DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0" 28 DEFINES["__STDC_CONSTANT_MACROS"] = True 29 DEFINES["__STDC_FORMAT_MACROS"] = True 30 31 FINAL_LIBRARY = "xul" 32 33 34 LOCAL_INCLUDES += [ 35 "!/dist/include/libwebrtc_overrides", 36 "!/ipc/ipdl/_ipdlheaders", 37 "!/third_party/libwebrtc/gen", 38 "/ipc/chromium/src", 39 "/third_party/abseil-cpp/", 40 "/third_party/libwebrtc/", 41 "/third_party/libwebrtc/sdk/objc/", 42 "/third_party/libwebrtc/sdk/objc/base/", 43 "/tools/profiler/public" 44 ] 45 46 UNIFIED_SOURCES += [ 47 "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_configuration.mm", 48 "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_frame_cgimage.mm", 49 "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_frame_iosurface.mm", 50 "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_frame_provider.mm", 51 "/third_party/libwebrtc/modules/desktop_capture/mac/sck_picker_handle.mm", 52 "/third_party/libwebrtc/modules/desktop_capture/mac/screen_capturer_mac.mm", 53 "/third_party/libwebrtc/modules/desktop_capture/mac/screen_capturer_sck.mm", 54 "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm", 55 "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_darwin.mm", 56 "/third_party/libwebrtc/modules/desktop_capture/window_capturer_mac.mm", 57 "/third_party/libwebrtc/modules/desktop_capture/window_finder_mac.mm" 58 ] 59 60 if not CONFIG["MOZ_DEBUG"]: 61 62 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 63 DEFINES["NDEBUG"] = True 64 DEFINES["NVALGRIND"] = True 65 66 if CONFIG["MOZ_DEBUG"] == "1": 67 68 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 69 DEFINES["_DEBUG"] = True 70 71 if CONFIG["TARGET_CPU"] == "aarch64": 72 73 DEFINES["WEBRTC_ARCH_ARM64"] = True 74 DEFINES["WEBRTC_HAS_NEON"] = True 75 DEFINES["__ARM_NEON__"] = "1" 76 77 if CONFIG["TARGET_CPU"] == "x86_64": 78 79 DEFINES["WEBRTC_ENABLE_AVX2"] = True 80 81 Library("desktop_capture_objc_gn")