@@ -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 ],
@@ -84,6 +84,8 @@ OPENROAD_LIBRARY_DEPS = [
8484 "//src/psm" ,
8585 "//src/rcx" ,
8686 "//src/rcx:ui" ,
87+ "//src/rmp" ,
88+ "//src/rmp:ui" ,
8789 "//src/rsz" ,
8890 "//src/rsz:ui" ,
8991 "//src/stt" ,
@@ -129,24 +131,20 @@ cc_binary(
129131 name = "openroad" ,
130132 srcs = [
131133 "src/Main.cc" ,
132- "src/OpenRoad.cc" ,
133- ":openroad_swig" ,
134- ":openroad_tcl" ,
135- ":rmp_swig" ,
136- ":rmp_tcl" ,
137134 "//bazel:runfiles" ,
138135 ],
139136 copts = OPENROAD_COPTS ,
140137 features = ["-use_header_modules" ],
141138 malloc = "@tcmalloc//tcmalloc" ,
142139 visibility = ["//visibility:public" ],
143140 deps = [
144- ":openroad_lib_private " ,
141+ ":openroad_lib " ,
145142 ":openroad_version" ,
146- "//src/odb " ,
147- "//src/rsz " ,
143+ "//:ord " ,
144+ "//src/gui " ,
148145 "//src/sta:opensta_lib" ,
149146 "//src/utl" ,
147+ "@boost.stacktrace" ,
150148 "@rules_cc//cc/runfiles" ,
151149 "@tk_tcl//:tcl" ,
152150 ],
@@ -165,21 +163,17 @@ cc_library(
165163 "src/Design.cc" ,
166164 "src/Tech.cc" ,
167165 "src/Timing.cc" ,
168- ] + glob ([
169- "src/rmp/src/*.h" ,
170- "src/rmp/src/*.cpp" ,
171- ]),
172- hdrs = glob ([
173- "src/rmp/include/rmp/*.h" ,
174- ]),
166+ ],
175167 copts = OPENROAD_COPTS ,
176168 defines = OPENROAD_DEFINES + GUI_BUILD_FLAGS ,
177169 features = ["-use_header_modules" ],
178170 includes = [
179171 "include" ,
180- "src/rmp/include" ,
181172 ],
182- deps = OPENROAD_LIBRARY_DEPS ,
173+ deps = OPENROAD_LIBRARY_DEPS + [
174+ "//src/sta:opensta_lib" ,
175+ "@tk_tcl//:tcl" ,
176+ ]
183177)
184178
185179cc_library (
@@ -191,22 +185,19 @@ cc_library(
191185 "src/Timing.cc" ,
192186 ":openroad_swig" ,
193187 ":openroad_tcl" ,
194- ":rmp_swig" ,
195- ":rmp_tcl" ,
196- ] + glob ([
197- "src/rmp/src/*.cpp" ,
198- "src/rmp/src/*.h" ,
199- ]),
200- hdrs = glob (["src/rmp/include/rmp/*.h" ]),
188+ ],
201189 copts = OPENROAD_COPTS ,
202190 defines = OPENROAD_DEFINES + GUI_BUILD_FLAGS ,
203191 features = ["-use_header_modules" ],
204192 includes = [
205193 "include" ,
206- "src/rmp/include" ,
207194 ],
208195 visibility = ["//visibility:public" ],
209- deps = OPENROAD_LIBRARY_DEPS ,
196+ deps = OPENROAD_LIBRARY_DEPS + [
197+ "//src/sta:opensta_lib" ,
198+ "@boost.stacktrace" ,
199+ "@tk_tcl//:tcl" ,
200+ ]
210201)
211202
212203cc_library (
@@ -254,15 +245,6 @@ tcl_encode(
254245 namespace = "ord" ,
255246)
256247
257- tcl_encode (
258- name = "rmp_tcl" ,
259- srcs = [
260- "src/rmp/src/rmp.tcl" ,
261- ],
262- char_array_name = "rmp_tcl_inits" ,
263- namespace = "rmp" ,
264- )
265-
266248tcl_wrap_cc (
267249 name = "openroad_swig" ,
268250 srcs = [
@@ -277,22 +259,6 @@ tcl_wrap_cc(
277259 ],
278260)
279261
280- tcl_wrap_cc (
281- name = "rmp_swig" ,
282- srcs = [
283- "src/rmp/src/rmp.i" ,
284- ":error_swig" ,
285- "//src/sta:sta_swig_files" ,
286- ],
287- module = "rmp" ,
288- namespace_prefix = "rmp" ,
289- root_swig_src = "src/rmp/src/rmp.i" ,
290- swig_includes = [
291- "src/rmp/src" ,
292- "src/sta" ,
293- ],
294- )
295-
296262filegroup (
297263 name = "error_swig" ,
298264 srcs = [
0 commit comments