Skip to content

Commit ef17fd6

Browse files
naveenvenk17Naveen Venkat
authored andcommitted
bazel: avoid duplicate grt headers
Signed-off-by: naveenvenk17 <naveenvenkat1711@gmail.com>
1 parent 8b73031 commit ef17fd6

3 files changed

Lines changed: 32 additions & 9 deletions

File tree

src/est/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ cc_library(
2424
visibility = ["//visibility:private"],
2525
deps = [
2626
"//src/grt:groute",
27+
"//src/grt:route_pt",
2728
"//src/sta:opensta_lib",
2829
],
2930
)

src/grt/BUILD

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ cc_library(
3535
deps = ["//src/odb/src/db"],
3636
)
3737

38+
cc_library(
39+
name = "route_pt",
40+
hdrs = ["include/grt/RoutePt.h"],
41+
includes = [
42+
"include",
43+
],
44+
)
45+
3846
cc_library(
3947
name = "fastroute",
4048
srcs = [
@@ -121,17 +129,32 @@ cc_library(
121129
)
122130

123131
cc_library(
124-
name = "grt",
125-
srcs = [
132+
name = "grt_private_hdrs",
133+
hdrs = [
126134
"src/AbstractGrouteRenderer.h",
127135
"src/AbstractRoutingCongestionDataSource.h",
136+
"src/Net.h",
137+
"src/Pin.h",
138+
],
139+
includes = [
140+
"src",
141+
],
142+
visibility = ["//visibility:private"],
143+
deps = [
144+
":groute",
145+
":route_pt",
146+
"//src/odb/src/db",
147+
],
148+
)
149+
150+
cc_library(
151+
name = "grt",
152+
srcs = [
128153
"src/GlobalRouter.cpp",
129154
"src/Grid.cpp",
130155
"src/Grid.h",
131156
"src/Net.cpp",
132-
"src/Net.h",
133157
"src/Pin.cpp",
134-
"src/Pin.h",
135158
"src/RepairAntennas.cpp",
136159
"src/RepairAntennas.h",
137160
"src/RoutingTracks.h",
@@ -140,7 +163,6 @@ cc_library(
140163
hdrs = [
141164
"include/grt/GlobalRouter.h",
142165
"include/grt/PinGridLocation.h",
143-
"include/grt/RoutePt.h",
144166
"include/grt/Rudy.h",
145167
],
146168
copts = [
@@ -154,6 +176,8 @@ cc_library(
154176
":cugr",
155177
":fastroute",
156178
":groute",
179+
":grt_private_hdrs",
180+
":route_pt",
157181
"//src/ant",
158182
"//src/dbSta",
159183
"//src/dbSta:dbNetwork",
@@ -175,13 +199,9 @@ cc_library(
175199
cc_library(
176200
name = "ui",
177201
srcs = [
178-
"src/AbstractGrouteRenderer.h",
179-
"src/AbstractRoutingCongestionDataSource.h",
180202
"src/GrouteRenderer.cpp",
181203
"src/GrouteRenderer.h",
182204
"src/MakeGlobalRouter.cpp",
183-
"src/Net.h",
184-
"src/Pin.h",
185205
"src/fastroute/src/FastRouteRenderer.cpp",
186206
"src/heatMap.cpp",
187207
"src/heatMap.h",
@@ -207,6 +227,7 @@ cc_library(
207227
":fastroute",
208228
":groute",
209229
":grt",
230+
":grt_private_hdrs",
210231
"//:ord",
211232
"//src/gui",
212233
"//src/odb/src/db",

src/rsz/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ cc_library(
153153
"//src/est",
154154
"//src/grt",
155155
"//src/grt:groute",
156+
"//src/grt:route_pt",
156157
"//src/odb/src/db",
157158
"//src/sta:opensta_lib",
158159
"//src/stt",

0 commit comments

Comments
 (0)