@@ -8,7 +8,7 @@ load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
88package (
99 features = [
1010 "-parse_headers" ,
11- "- layering_check" ,
11+ "layering_check" ,
1212 # TODO(b/299593765): Fix strict ordering.
1313 "-libcxx_assertions" ,
1414 ],
@@ -62,6 +62,8 @@ OPENROAD_LIBRARY_DEPS = [
6262 "//src/drt:ui" ,
6363 "//src/dst" ,
6464 "//src/dst:ui" ,
65+ "//src/est" ,
66+ "//src/est:ui" ,
6567 "//src/exa" ,
6668 "//src/exa:ui" ,
6769 "//src/fin" ,
@@ -82,6 +84,8 @@ OPENROAD_LIBRARY_DEPS = [
8284 "//src/psm" ,
8385 "//src/rcx" ,
8486 "//src/rcx:ui" ,
87+ "//src/rmp" ,
88+ "//src/rmp:ui" ,
8589 "//src/rsz" ,
8690 "//src/rsz:ui" ,
8791 "//src/stt" ,
@@ -127,24 +131,20 @@ cc_binary(
127131 name = "openroad" ,
128132 srcs = [
129133 "src/Main.cc" ,
130- "src/OpenRoad.cc" ,
131- ":openroad_swig" ,
132- ":openroad_tcl" ,
133- ":rmp_swig" ,
134- ":rmp_tcl" ,
135134 "//bazel:runfiles" ,
136135 ],
137136 copts = OPENROAD_COPTS ,
138137 features = ["-use_header_modules" ],
139138 malloc = "@tcmalloc//tcmalloc" ,
140139 visibility = ["//visibility:public" ],
141140 deps = [
142- ":openroad_lib_private " ,
141+ ":openroad_lib " ,
143142 ":openroad_version" ,
144- "//src/odb " ,
145- "//src/rsz " ,
143+ "//:ord " ,
144+ "//src/gui " ,
146145 "//src/sta:opensta_lib" ,
147146 "//src/utl" ,
147+ "@boost.stacktrace" ,
148148 "@rules_cc//cc/runfiles" ,
149149 "@tk_tcl//:tcl" ,
150150 ],
@@ -163,21 +163,17 @@ cc_library(
163163 "src/Design.cc" ,
164164 "src/Tech.cc" ,
165165 "src/Timing.cc" ,
166- ] + glob ([
167- "src/rmp/src/*.h" ,
168- "src/rmp/src/*.cpp" ,
169- ]),
170- hdrs = glob ([
171- "src/rmp/include/rmp/*.h" ,
172- ]),
166+ ],
173167 copts = OPENROAD_COPTS ,
174168 defines = OPENROAD_DEFINES + GUI_BUILD_FLAGS ,
175169 features = ["-use_header_modules" ],
176170 includes = [
177171 "include" ,
178- "src/rmp/include" ,
179172 ],
180- deps = OPENROAD_LIBRARY_DEPS ,
173+ deps = OPENROAD_LIBRARY_DEPS + [
174+ "//src/sta:opensta_lib" ,
175+ "@tk_tcl//:tcl" ,
176+ ]
181177)
182178
183179cc_library (
@@ -189,22 +185,19 @@ cc_library(
189185 "src/Timing.cc" ,
190186 ":openroad_swig" ,
191187 ":openroad_tcl" ,
192- ":rmp_swig" ,
193- ":rmp_tcl" ,
194- ] + glob ([
195- "src/rmp/src/*.cpp" ,
196- "src/rmp/src/*.h" ,
197- ]),
198- hdrs = glob (["src/rmp/include/rmp/*.h" ]),
188+ ],
199189 copts = OPENROAD_COPTS ,
200190 defines = OPENROAD_DEFINES + GUI_BUILD_FLAGS ,
201191 features = ["-use_header_modules" ],
202192 includes = [
203193 "include" ,
204- "src/rmp/include" ,
205194 ],
206195 visibility = ["//visibility:public" ],
207- deps = OPENROAD_LIBRARY_DEPS ,
196+ deps = OPENROAD_LIBRARY_DEPS + [
197+ "//src/sta:opensta_lib" ,
198+ "@boost.stacktrace" ,
199+ "@tk_tcl//:tcl" ,
200+ ]
208201)
209202
210203cc_library (
@@ -252,15 +245,6 @@ tcl_encode(
252245 namespace = "ord" ,
253246)
254247
255- tcl_encode (
256- name = "rmp_tcl" ,
257- srcs = [
258- "src/rmp/src/rmp.tcl" ,
259- ],
260- char_array_name = "rmp_tcl_inits" ,
261- namespace = "rmp" ,
262- )
263-
264248tcl_wrap_cc (
265249 name = "openroad_swig" ,
266250 srcs = [
@@ -275,22 +259,6 @@ tcl_wrap_cc(
275259 ],
276260)
277261
278- tcl_wrap_cc (
279- name = "rmp_swig" ,
280- srcs = [
281- "src/rmp/src/rmp.i" ,
282- ":error_swig" ,
283- "//src/sta:sta_swig_files" ,
284- ],
285- module = "rmp" ,
286- namespace_prefix = "rmp" ,
287- root_swig_src = "src/rmp/src/rmp.i" ,
288- swig_includes = [
289- "src/rmp/src" ,
290- "src/sta" ,
291- ],
292- )
293-
294262filegroup (
295263 name = "error_swig" ,
296264 srcs = [
0 commit comments