blob: 86e6258af1069f262a1a7994f186312a336c78b4 (
plain) (
blame)
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
|
import os.path
from devtools.yamaker.modules import GLOBAL
from devtools.yamaker.project import CMakeNinjaNixProject
def post_install(self):
with self.yamakes["."] as snappy:
# snappy is patched to support TString
snappy.NO_UTIL = False
# At the time, contrib/libs/snappy goes to ADDINCL GLOBAL
# due to presense in INTERFACE_INCLUDE_DIRECTORIES.txt.
#
# Replacing it with ADDINCL to newly generate inclink directory.
snappy.ADDINCL = [GLOBAL(os.path.join(self.arcdir, "include"))]
snappy.PEERDIR.add("library/cpp/sanitizer/include")
snappy = CMakeNinjaNixProject(
owners=["g:cpp-contrib"],
arcdir="contrib/libs/snappy",
nixattr="snappy",
platform_dispatchers=["config.h"],
inclink={
"include": [
"snappy.h",
"snappy-c.h",
"snappy-sinksource.h",
"snappy-stubs-public.h",
]
},
# Do not install unittests
install_targets=["snappy"],
post_install=post_install,
)
|