Bug 1845134 - Part 4: Update existing ui-icons to use the latest source from acorn...
[gecko.git] / accessible / interfaces / ia2 / moz.build
blob9d39b2c1db9ab377315db2befeb011ef1e58f9ad
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/.
7 midl_enums = [
8     "AccessibleEventId",
9     "AccessibleRole",
10     "AccessibleStates",
11     "IA2CommonTypes",
14 midl_interfaces = [
15     "Accessible2",
16     "Accessible2_2",
17     "AccessibleAction",
18     "AccessibleApplication",
19     "AccessibleComponent",
20     "AccessibleDocument",
21     "AccessibleEditableText",
22     "AccessibleHyperlink",
23     "AccessibleHypertext",
24     "AccessibleHypertext2",
25     "AccessibleImage",
26     "AccessibleRelation",
27     "AccessibleTable",
28     "AccessibleTable2",
29     "AccessibleTableCell",
30     "AccessibleText",
31     "AccessibleText2",
32     "AccessibleTextSelectionContainer",
33     "AccessibleValue",
36 for enum in midl_enums:
37     GeneratedFile(
38         enum + ".h",
39         inputs=["/other-licenses/ia2/" + enum + ".idl"],
40         script="/build/midl.py",
41         entry_point="midl",
42         flags=["-app_config", "-I", TOPSRCDIR + "/other-licenses/ia2"],
43     )
45     EXPORTS += ["!" + enum + ".h"]
47 for iface in midl_interfaces:
48     GeneratedFile(
49         iface + ".h",
50         iface + "_p.c",
51         iface + "_i.c",
52         iface + "_dlldata.c",
53         inputs=["/other-licenses/ia2/" + iface + ".idl"],
54         script="/build/midl.py",
55         entry_point="midl",
56         flags=[
57             "-app_config",
58             "-I",
59             TOPSRCDIR + "/other-licenses/ia2",
60             "-dlldata",
61             OBJDIR + "/" + iface + "_dlldata.c",
62         ],
63     )
65     EXPORTS += ["!" + iface + ".h", "!" + iface + "_i.c"]
67     for p in [iface + "_p.c", iface + "_i.c"]:
68         SOURCES += ["!%s" % p]
70         # Give some symbols a unique name in each translation unit, to avoid
71         # collisions caused by https://llvm.org/pr41817.
72         if CONFIG["CC_TYPE"] == "clang-cl":
73             SOURCES["!%s" % p].flags += [
74                 "-DObject_StubDesc=Object_StubDesc__%s" % p[:-2]
75             ]
76             SOURCES["!%s" % p].flags += [
77                 "-DUserMarshalRoutines=UserMarshalRoutines__%s" % p[:-2]
78             ]
80 GeneratedFile(
81     "IA2Typelib.h",
82     "IA2Typelib_i.c",
83     "IA2Typelib.tlb",
84     inputs=["IA2Typelib.idl"],
85     script="/build/midl.py",
86     entry_point="midl",
87     flags=[
88         "-app_config",
89         "-I",
90         TOPSRCDIR + "/other-licenses/ia2",
91     ],