@@ -12,6 +12,28 @@ package(
1212 features = ["layering_check" ],
1313)
1414
15+ # Headers owned by :dpl but also consumed by :ui. Kept package-private so
16+ # nothing outside //src/dpl can depend on them.
17+ cc_library (
18+ name = "dpl_private_hdrs" ,
19+ hdrs = [
20+ "src/graphics/DplObserver.h" ,
21+ "src/infrastructure/Coordinates.h" ,
22+ "src/infrastructure/Grid.h" ,
23+ "src/infrastructure/Objects.h" ,
24+ "src/infrastructure/architecture.h" ,
25+ "src/infrastructure/network.h" ,
26+ ],
27+ includes = ["src" ],
28+ visibility = ["//visibility:private" ],
29+ deps = [
30+ "//src/odb/src/db" ,
31+ "//src/utl" ,
32+ "@boost.icl" ,
33+ "@boost.utility" ,
34+ ],
35+ )
36+
1537cc_library (
1638 name = "dpl" ,
1739 srcs = [
@@ -28,20 +50,14 @@ cc_library(
2850 "src/PlacementDRC.cpp" ,
2951 "src/PlacementDRC.h" ,
3052 "src/dbToOpendp.cpp" ,
31- "src/graphics/DplObserver.h" ,
32- "src/infrastructure/Coordinates.h" ,
3353 "src/infrastructure/DecapObjects.h" ,
3454 "src/infrastructure/Grid.cpp" ,
35- "src/infrastructure/Grid.h" ,
3655 "src/infrastructure/Objects.cpp" ,
37- "src/infrastructure/Objects.h" ,
3856 "src/infrastructure/Padding.cpp" ,
3957 "src/infrastructure/Padding.h" ,
4058 "src/infrastructure/architecture.cxx" ,
41- "src/infrastructure/architecture.h" ,
4259 "src/infrastructure/detailed_segment.h" ,
4360 "src/infrastructure/network.cxx" ,
44- "src/infrastructure/network.h" ,
4561 "src/legalize_shift.cxx" ,
4662 "src/legalize_shift.h" ,
4763 "src/objective/detailed_abu.cxx" ,
@@ -87,6 +103,7 @@ cc_library(
87103 "src" ,
88104 ],
89105 deps = [
106+ ":dpl_private_hdrs" ,
90107 "//src/odb/src/db" ,
91108 "//src/utl" ,
92109 "@boost.format" ,
@@ -105,14 +122,8 @@ cc_library(
105122 name = "ui" ,
106123 srcs = [
107124 "src/MakeOpendp.cpp" ,
108- "src/graphics/DplObserver.h" ,
109125 "src/graphics/Graphics.cpp" ,
110126 "src/graphics/Graphics.h" ,
111- "src/infrastructure/Coordinates.h" ,
112- "src/infrastructure/Grid.h" ,
113- "src/infrastructure/Objects.h" ,
114- "src/infrastructure/architecture.h" ,
115- "src/infrastructure/network.h" ,
116127 ":swig" ,
117128 ":tcl" ,
118129 ],
@@ -125,6 +136,7 @@ cc_library(
125136 ],
126137 deps = [
127138 ":dpl" ,
139+ ":dpl_private_hdrs" ,
128140 "//:ord" ,
129141 "//src/gui" ,
130142 "//src/odb/src/db" ,
0 commit comments