blob: ce1e8c31242487290472c24623f7daf816955a1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
assert(is_win)
import("//build/toolchain/win/midl.gni")
midl("iaccessible2") {
sources = [
"ia2_api_all.idl",
]
}
# Generate a proxy DLL from the generated code.
shared_library("IAccessible2Proxy") {
sources = [
"$target_gen_dir/ia2_api_all.dlldata.c",
"$target_gen_dir/ia2_api_all_p.c",
"IAccessible2Proxy.def",
]
config("IAccessible2Proxy_warnings") {
if (is_clang) {
cflags = [
# MIDL generated code has a habit of omitting optional braces.
"-Wno-missing-braces",
"-Wno-incompatible-pointer-types",
]
}
}
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [ ":IAccessible2Proxy_warnings" ]
defines = [ "REGISTER_PROXY_DLL" ]
libs = [ "rpcrt4.lib" ]
deps = [
":iaccessible2",
]
}
|