File tree 8 files changed +93
-0
lines changed
8 files changed +93
-0
lines changed Original file line number Diff line number Diff line change
1
+ [cxx]
2
+ gtest_dep = //contrib/gtest:gtest
Original file line number Diff line number Diff line change @@ -262,3 +262,10 @@ paket-files/
262
262
# Python Tools for Visual Studio (PTVS)
263
263
__pycache__ /
264
264
* .pyc
265
+
266
+ # Buck
267
+ /buck-out /
268
+ /.buckd /
269
+ /buckaroo /
270
+ .buckconfig.local
271
+ BUCKAROO_DEPS
Original file line number Diff line number Diff line change
1
+ cxx_library (
2
+ name = 'clickhouse-cpp' ,
3
+ header_namespace = 'clickhouse' ,
4
+ exported_headers = subdir_glob ([
5
+ ('clickhouse' , '**/*.h' ),
6
+ ]),
7
+ srcs = glob ([
8
+ 'clickhouse/**/*.cpp' ,
9
+ ]),
10
+ compiler_flags = [
11
+ '-std=c++11' ,
12
+ ],
13
+ visibility = [
14
+ 'PUBLIC' ,
15
+ ],
16
+ deps = [
17
+ '//contrib/cityhash:cityhash' ,
18
+ '//contrib/lz4:lz4' ,
19
+ ]
20
+ )
Original file line number Diff line number Diff line change
1
+ cxx_library (
2
+ name = 'cityhash' ,
3
+ header_namespace = 'cityhash' ,
4
+ exported_headers = subdir_glob ([
5
+ ('' , '*.h' ),
6
+ ]),
7
+ srcs = glob ([
8
+ '*.cc' ,
9
+ ]),
10
+ visibility = [
11
+ '//...' ,
12
+ ],
13
+ )
Original file line number Diff line number Diff line change
1
+ cxx_library (
2
+ name = 'gtest' ,
3
+ # This is a bit weird, but this is how the tests use the headers...
4
+ header_namespace = 'contrib/gtest' ,
5
+ exported_headers = subdir_glob ([
6
+ ('' , '*.h' ),
7
+ ]),
8
+ srcs = glob ([
9
+ '*.cc' ,
10
+ ]),
11
+ visibility = [
12
+ '//...' ,
13
+ ],
14
+ )
Original file line number Diff line number Diff line change
1
+ cxx_library (
2
+ name = 'lz4' ,
3
+ header_namespace = 'lz4' ,
4
+ exported_headers = subdir_glob ([
5
+ ('' , '*.h' ),
6
+ ]),
7
+ srcs = glob ([
8
+ '*.c' ,
9
+ ]),
10
+ visibility = [
11
+ '//...' ,
12
+ ],
13
+ )
Original file line number Diff line number Diff line change
1
+ cxx_binary (
2
+ name = 'simple' ,
3
+ srcs = [
4
+ 'main.cpp' ,
5
+ ],
6
+ compiler_flags = [
7
+ '-std=c++11' ,
8
+ ],
9
+ deps = [
10
+ '//:clickhouse-cpp' ,
11
+ ],
12
+ )
Original file line number Diff line number Diff line change
1
+ cxx_test (
2
+ name = 'ut' ,
3
+ srcs = glob ([
4
+ '*.cpp' ,
5
+ ]),
6
+ compiler_flags = [
7
+ '-std=c++11' ,
8
+ ],
9
+ deps = [
10
+ '//:clickhouse-cpp' ,
11
+ ],
12
+ )
You can’t perform that action at this time.
0 commit comments