blob: 5252b701a14f967d7a76fd6390bc918776cd7e79 (
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
|
config("QtPdf_config") {
cflags = [
@GN_CFLAGS_C@,
]
cflags_cc = [
@GN_CFLAGS_CC@,
]
defines = [
@GN_DEFINES@,
]
include_dirs = [
@GN_INCLUDE_DIRS@,
rebase_path("${target_gen_dir}/.moc/")
]
}
config("cpp17_config") {
# static initialized constexpr expressions must be compiled always as c++14 or always as c++17
# and our qtwebengine core sources use them as c++17
if (is_win) {
cflags_cc = [ "/std:c++17" ]
} else {
cflags_cc = [ "-std=c++17" ]
}
}
shared_library("QtPdf") {
rsp_types = [ "objects", "archives", "libs" ]
configs += [
":cpp17_config",
":QtPdf_config"
]
deps = [
"//third_party/pdfium"
]
}
|