@@ -2,12 +2,12 @@ package(default_visibility = ["//visibility:public"])
2
2
3
3
cc_library (
4
4
name = "detail_hdrs" ,
5
- hdrs = glob (["include/coke/detail/*" ])
5
+ hdrs = glob (["include/coke/detail/*.h " ])
6
6
)
7
7
8
8
cc_library (
9
9
name = "compatible_hdrs" ,
10
- hdrs = glob (["include/coke/compatible/*" ])
10
+ hdrs = glob (["include/coke/compatible/*.h " ])
11
11
)
12
12
13
13
cc_library (
@@ -34,7 +34,6 @@ cc_library(
34
34
],
35
35
hdrs = [
36
36
"include/coke/basic_awaiter.h" ,
37
- "include/coke/basic_server.h" ,
38
37
"include/coke/coke.h" ,
39
38
"include/coke/condition.h" ,
40
39
"include/coke/dag.h" ,
@@ -46,7 +45,6 @@ cc_library(
46
45
"include/coke/latch.h" ,
47
46
"include/coke/make_task.h" ,
48
47
"include/coke/mutex.h" ,
49
- "include/coke/network.h" ,
50
48
"include/coke/qps_pool.h" ,
51
49
"include/coke/queue_common.h" ,
52
50
"include/coke/queue.h" ,
@@ -67,19 +65,25 @@ cc_library(
67
65
]
68
66
)
69
67
68
+ cc_library (
69
+ name = "net" ,
70
+ srcs = [],
71
+ hdrs = glob (["include/coke/net/*.h" ]),
72
+ includes = ["include" ],
73
+ deps = [
74
+ "//:common" ,
75
+ ],
76
+ )
77
+
70
78
cc_library (
71
79
name = "http" ,
72
80
srcs = [
73
81
"src/http_impl.cpp"
74
82
],
75
- hdrs = [
76
- "include/coke/http_client.h" ,
77
- "include/coke/http_server.h" ,
78
- "include/coke/http_utils.h" ,
79
- ],
83
+ hdrs = glob (["include/coke/http/*.h" ]),
80
84
includes = ["include" ],
81
85
deps = [
82
- "//:common " ,
86
+ "//:net " ,
83
87
"@workflow//:http" ,
84
88
],
85
89
)
@@ -89,14 +93,10 @@ cc_library(
89
93
srcs = [
90
94
"src/redis_impl.cpp"
91
95
],
92
- hdrs = [
93
- "include/coke/redis_client.h" ,
94
- "include/coke/redis_server.h" ,
95
- "include/coke/redis_utils.h" ,
96
- ],
96
+ hdrs = glob (["include/coke/redis/*.h" ]),
97
97
includes = ["include" ],
98
98
deps = [
99
- "//:common " ,
99
+ "//:net " ,
100
100
"@workflow//:redis" ,
101
101
],
102
102
)
@@ -106,13 +106,10 @@ cc_library(
106
106
srcs = [
107
107
"src/mysql_impl.cpp"
108
108
],
109
- hdrs = [
110
- "include/coke/mysql_client.h" ,
111
- "include/coke/mysql_utils.h" ,
112
- ],
109
+ hdrs = glob (["include/coke/mysql/*.h" ]),
113
110
includes = ["include" ],
114
111
deps = [
115
- "//:common " ,
112
+ "//:net " ,
116
113
"@workflow//:mysql" ,
117
114
],
118
115
)
0 commit comments