File tree Expand file tree Collapse file tree 12 files changed +504
-3
lines changed
Expand file tree Collapse file tree 12 files changed +504
-3
lines changed Original file line number Diff line number Diff line change 1+ [cxx]
2+ cppflags = -DXXH_NAMESPACE =ZSTD_ -DZSTD_LEGACY_SUPPORT =1
3+ cflags = -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing =1 -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wundef -Wpointer-arith
4+ cxxppflags = -DXXH_NAMESPACE =ZSTD_ -DZSTD_LEGACY_SUPPORT =1
5+ cxxflags = -std =c++11 -Wno-format-security -Wno-deprecated-declarations
6+ gtest_dep = //contrib/pzstd:gtest
7+
8+ [httpserver]
9+ port = 0
Original file line number Diff line number Diff line change 1+ c8dec2e8da52d483f6dd7c6cd2ad694e8e6fed2b
Original file line number Diff line number Diff line change @@ -37,3 +37,5 @@ googletest/
3737
3838# Directories
3939bin /
40+ .buckd /
41+ buck-out /
Original file line number Diff line number Diff line change 1+ cxx_library (
2+ name = 'libpzstd' ,
3+ visibility = ['PUBLIC' ],
4+ header_namespace = '' ,
5+ exported_headers = [
6+ 'ErrorHolder.h' ,
7+ 'Logging.h' ,
8+ 'Pzstd.h' ,
9+ ],
10+ headers = [
11+ 'SkippableFrame.h' ,
12+ ],
13+ srcs = [
14+ 'Pzstd.cpp' ,
15+ 'SkippableFrame.cpp' ,
16+ ],
17+ deps = [
18+ ':options' ,
19+ '//contrib/pzstd/utils:utils' ,
20+ '//lib:mem' ,
21+ '//lib:zstd' ,
22+ ],
23+ )
24+
25+ cxx_library (
26+ name = 'options' ,
27+ visibility = ['PUBLIC' ],
28+ header_namespace = '' ,
29+ exported_headers = ['Options.h' ],
30+ srcs = ['Options.cpp' ],
31+ deps = [
32+ '//contrib/pzstd/utils:scope_guard' ,
33+ '//lib:zstd' ,
34+ '//programs:util' ,
35+ ],
36+ )
37+
38+ cxx_binary (
39+ name = 'pzstd' ,
40+ visibility = ['PUBLIC' ],
41+ srcs = ['main.cpp' ],
42+ deps = [
43+ ':libpzstd' ,
44+ ':options' ,
45+ ],
46+ )
47+
48+ # Must run "make googletest" first
49+ cxx_library (
50+ name = 'gtest' ,
51+ srcs = glob ([
52+ 'googletest/googletest/src/gtest-all.cc' ,
53+ 'googletest/googlemock/src/gmock-all.cc' ,
54+ 'googletest/googlemock/src/gmock_main.cc' ,
55+ ]),
56+ header_namespace = '' ,
57+ exported_headers = subdir_glob ([
58+ ('googletest/googletest/include' , '**/*.h' ),
59+ ('googletest/googlemock/include' , '**/*.h' ),
60+ ]),
61+ headers = subdir_glob ([
62+ ('googletest/googletest' , 'src/*.cc' ),
63+ ('googletest/googletest' , 'src/*.h' ),
64+ ('googletest/googlemock' , 'src/*.cc' ),
65+ ('googletest/googlemock' , 'src/*.h' ),
66+ ]),
67+ platform_linker_flags = [
68+ ('android' , []),
69+ ('' , ['-lpthread' ]),
70+ ],
71+ visibility = ['PUBLIC' ],
72+ )
Original file line number Diff line number Diff line change 1+ cxx_test (
2+ name = 'options_test' ,
3+ srcs = ['OptionsTest.cpp' ],
4+ deps = ['//contrib/pzstd:options' ],
5+ )
6+
7+ cxx_test (
8+ name = 'pzstd_test' ,
9+ srcs = ['PzstdTest.cpp' ],
10+ deps = [
11+ ':round_trip' ,
12+ '//contrib/pzstd:libpzstd' ,
13+ '//contrib/pzstd/utils:scope_guard' ,
14+ '//programs:datagen' ,
15+ ],
16+ )
17+
18+ cxx_binary (
19+ name = 'round_trip_test' ,
20+ srcs = ['RoundTripTest.cpp' ],
21+ deps = [
22+ ':round_trip' ,
23+ '//contrib/pzstd/utils:scope_guard' ,
24+ '//programs:datagen' ,
25+ ]
26+ )
27+
28+ cxx_library (
29+ name = 'round_trip' ,
30+ header_namespace = 'test' ,
31+ exported_headers = ['RoundTrip.h' ],
32+ deps = [
33+ '//contrib/pzstd:libpzstd' ,
34+ '//contrib/pzstd:options' ,
35+ '//contrib/pzstd/utils:scope_guard' ,
36+ ]
37+ )
Original file line number Diff line number Diff line change 1+ cxx_library (
2+ name = 'buffer' ,
3+ visibility = ['PUBLIC' ],
4+ header_namespace = 'utils' ,
5+ exported_headers = ['Buffer.h' ],
6+ deps = [':range' ],
7+ )
8+
9+ cxx_library (
10+ name = 'file_system' ,
11+ visibility = ['PUBLIC' ],
12+ header_namespace = 'utils' ,
13+ exported_headers = ['FileSystem.h' ],
14+ deps = [':range' ],
15+ )
16+
17+ cxx_library (
18+ name = 'likely' ,
19+ visibility = ['PUBLIC' ],
20+ header_namespace = 'utils' ,
21+ exported_headers = ['Likely.h' ],
22+ )
23+
24+ cxx_library (
25+ name = 'range' ,
26+ visibility = ['PUBLIC' ],
27+ header_namespace = 'utils' ,
28+ exported_headers = ['Range.h' ],
29+ deps = [':likely' ],
30+ )
31+
32+ cxx_library (
33+ name = 'resource_pool' ,
34+ visibility = ['PUBLIC' ],
35+ header_namespace = 'utils' ,
36+ exported_headers = ['ResourcePool.h' ],
37+ )
38+
39+ cxx_library (
40+ name = 'scope_guard' ,
41+ visibility = ['PUBLIC' ],
42+ header_namespace = 'utils' ,
43+ exported_headers = ['ScopeGuard.h' ],
44+ )
45+
46+ cxx_library (
47+ name = 'thread_pool' ,
48+ visibility = ['PUBLIC' ],
49+ header_namespace = 'utils' ,
50+ exported_headers = ['ThreadPool.h' ],
51+ deps = [':work_queue' ],
52+ )
53+
54+ cxx_library (
55+ name = 'work_queue' ,
56+ visibility = ['PUBLIC' ],
57+ header_namespace = 'utils' ,
58+ exported_headers = ['WorkQueue.h' ],
59+ deps = [':buffer' ],
60+ )
61+
62+ cxx_library (
63+ name = 'utils' ,
64+ visibility = ['PUBLIC' ],
65+ deps = [
66+ ':buffer' ,
67+ ':file_system' ,
68+ ':likely' ,
69+ ':range' ,
70+ ':resource_pool' ,
71+ ':scope_guard' ,
72+ ':thread_pool' ,
73+ ':work_queue' ,
74+ ],
75+ )
Original file line number Diff line number Diff line change 1+ cxx_test (
2+ name = 'buffer_test' ,
3+ srcs = ['BufferTest.cpp' ],
4+ deps = ['//contrib/pzstd/utils:buffer' ],
5+ )
6+
7+ cxx_test (
8+ name = 'range_test' ,
9+ srcs = ['RangeTest.cpp' ],
10+ deps = ['//contrib/pzstd/utils:range' ],
11+ )
12+
13+ cxx_test (
14+ name = 'resource_pool_test' ,
15+ srcs = ['ResourcePoolTest.cpp' ],
16+ deps = ['//contrib/pzstd/utils:resource_pool' ],
17+ )
18+
19+ cxx_test (
20+ name = 'scope_guard_test' ,
21+ srcs = ['ScopeGuardTest.cpp' ],
22+ deps = ['//contrib/pzstd/utils:scope_guard' ],
23+ )
24+
25+ cxx_test (
26+ name = 'thread_pool_test' ,
27+ srcs = ['ThreadPoolTest.cpp' ],
28+ deps = ['//contrib/pzstd/utils:thread_pool' ],
29+ )
30+
31+ cxx_test (
32+ name = 'work_queue_test' ,
33+ srcs = ['RangeTest.cpp' ],
34+ deps = ['//contrib/pzstd/utils:work_queue' ],
35+ )
You can’t perform that action at this time.
0 commit comments