tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.build (1534B)


      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 GeckoSharedLibrary("AccessibleMarshal")
      8 
      9 # Missing here, is the notion that changes to the idl files included by
     10 # ISimpleDOM.idl (e.g. ISimpleDOMNode.idl) should rebuild the outputs.
     11 GeneratedFile(
     12     "ISimpleDOM.h",
     13     "ISimpleDOM_p.c",
     14     "ISimpleDOM_i.c",
     15     "ISimpleDOM_dlldata.c",
     16     "ISimpleDOM.tlb",
     17     inputs=["ISimpleDOM.idl"],
     18     script="/build/midl.py",
     19     entry_point="midl",
     20     flags=["-I", SRCDIR, "-robust", "-dlldata", OBJDIR + "/ISimpleDOM_dlldata.c"],
     21 )
     22 
     23 SOURCES += [
     24     "!ISimpleDOM_dlldata.c",
     25     "!ISimpleDOM_i.c",
     26     "!ISimpleDOM_p.c",
     27     "AccessibleMarshalThunk.c",
     28 ]
     29 
     30 EXPORTS += [
     31     "!ISimpleDOM.h",
     32     "!ISimpleDOM_i.c",
     33 ]
     34 
     35 DEFINES["REGISTER_PROXY_DLL"] = True
     36 # The following line is required to preserve compatibility with older versions
     37 # of AccessibleMarshal.dll.
     38 DEFINES["PROXY_CLSID"] = "IID_ISimpleDOMNode"
     39 
     40 DEFFILE = "AccessibleMarshal.def"
     41 
     42 OS_LIBS += [
     43     "kernel32",
     44     "rpcrt4",
     45     "oleaut32",
     46 ]
     47 
     48 RCINCLUDE = "AccessibleMarshal.rc"
     49 
     50 # Suppress warnings from the MIDL generated code.
     51 if CONFIG["CC_TYPE"] == "clang-cl":
     52     CFLAGS += [
     53         "-Wno-extern-initializer",
     54         "-Wno-incompatible-pointer-types",
     55         "-Wno-missing-braces",
     56         "-Wno-unused-const-variable",
     57     ]