summaryrefslogtreecommitdiffstats
path: root/src/zstd/contrib/pzstd/BUCK
blob: d04eeedd8a1a33cb44d8d9faf5d7856db970d312 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
cxx_library(
    name='libpzstd',
    visibility=['PUBLIC'],
    header_namespace='',
    exported_headers=[
        'ErrorHolder.h',
        'Logging.h',
        'Pzstd.h',
    ],
    headers=[
        'SkippableFrame.h',
    ],
    srcs=[
        'Pzstd.cpp',
        'SkippableFrame.cpp',
    ],
    deps=[
        ':options',
        '//contrib/pzstd/utils:utils',
        '//lib:mem',
        '//lib:zstd',
    ],
)

cxx_library(
    name='options',
    visibility=['PUBLIC'],
    header_namespace='',
    exported_headers=['Options.h'],
    srcs=['Options.cpp'],
    deps=[
        '//contrib/pzstd/utils:scope_guard',
        '//lib:zstd',
        '//programs:util',
    ],
)

cxx_binary(
    name='pzstd',
    visibility=['PUBLIC'],
    srcs=['main.cpp'],
    deps=[
        ':libpzstd',
        ':options',
    ],
)

# Must run "make googletest" first
cxx_library(
    name='gtest',
    srcs=glob([
        'googletest/googletest/src/gtest-all.cc',
        'googletest/googlemock/src/gmock-all.cc',
        'googletest/googlemock/src/gmock_main.cc',
    ]),
    header_namespace='',
    exported_headers=subdir_glob([
        ('googletest/googletest/include', '**/*.h'),
        ('googletest/googlemock/include', '**/*.h'),
    ]),
    headers=subdir_glob([
        ('googletest/googletest', 'src/*.cc'),
        ('googletest/googletest', 'src/*.h'),
        ('googletest/googlemock', 'src/*.cc'),
        ('googletest/googlemock', 'src/*.h'),
    ]),
    platform_linker_flags=[
        ('android', []),
        ('', ['-lpthread']),
    ],
    visibility=['PUBLIC'],
)