moz.build (1096B)
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 "neqo_glue", 9 ] 10 11 XPIDL_SOURCES += [ 12 "nsISocketProvider.idl", 13 "nsISocketProviderService.idl", 14 ] 15 16 XPIDL_MODULE = "necko_socket" 17 18 LOCAL_INCLUDES += [ 19 "/netwerk/base", 20 ] 21 22 include("/ipc/chromium/chromium-config.mozbuild") 23 24 EXPORTS += [ 25 "nsSocketProviderService.h", 26 ] 27 28 UNIFIED_SOURCES += [ 29 "nsSocketProviderService.cpp", 30 "nsSOCKSIOLayer.cpp", 31 "nsSOCKSSocketProvider.cpp", 32 "nsUDPSocketProvider.cpp", 33 ] 34 35 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows": 36 XPIDL_SOURCES += [ 37 "nsINamedPipeService.idl", 38 ] 39 EXPORTS += [ 40 "nsNamedPipeService.h", 41 ] 42 UNIFIED_SOURCES += ["nsNamedPipeIOLayer.cpp", "nsNamedPipeService.cpp"] 43 44 # for socket 45 OS_LIBS += CONFIG["SOCKET_LIBS"] 46 47 FINAL_LIBRARY = "xul" 48 49 CONFIGURE_SUBST_FILES += ["neqo/extra-bindgen-flags"]