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 7GeckoSharedLibrary('AccessibleMarshal', linkage=None) 8 9SOURCES += [ 10 '!dlldata.c', 11 '!ISimpleDOM_i.c', 12 '!ISimpleDOM_p.c', 13 'AccessibleMarshalThunk.c', 14] 15 16DEFINES['REGISTER_PROXY_DLL'] = True 17# The following line is required to preserve compatibility with older versions 18# of AccessibleMarshal.dll. 19DEFINES['PROXY_CLSID'] = 'IID_ISimpleDOMNode' 20 21DEFFILE = 'AccessibleMarshal.def' 22 23OS_LIBS += [ 24 'kernel32', 25 'rpcrt4', 26 'oleaut32', 27] 28 29GENERATED_FILES += [ 30 'dlldata.c', 31 'ISimpleDOM.h', 32 'ISimpleDOM.tlb', 33 'ISimpleDOM_i.c', 34 'ISimpleDOM_p.c', 35] 36 37RCINCLUDE = 'AccessibleMarshal.rc' 38 39# Suppress warnings from the MIDL generated code. 40if CONFIG['CC_TYPE'] == 'clang-cl': 41 CFLAGS += [ 42 '-Wno-extern-initializer', 43 '-Wno-incompatible-pointer-types', 44 '-Wno-missing-braces', 45 '-Wno-unused-const-variable', 46 ] 47