|
1 | 1 | from build.pkg import package |
2 | | -from build.c import clibrary |
| 2 | +from build.c import clibrary, cxxlibrary |
3 | 3 | from build.git import git_repository |
4 | 4 |
|
5 | 5 | package( |
|
26 | 26 | ), |
27 | 27 | ) |
28 | 28 |
|
29 | | -clibrary( |
| 29 | +cxxlibrary( |
30 | 30 | name="lexy_lib", |
31 | 31 | hdrs={ |
32 | 32 | h: f"dep/lexy/include/{h}" |
|
163 | 163 | ) |
164 | 164 | ], |
165 | 165 | ) |
| 166 | + |
| 167 | +cxxlibrary( |
| 168 | + name="snowhouse_lib", |
| 169 | + hdrs={ |
| 170 | + h: f"dep/snowhouse/include/{h}" |
| 171 | + for h in [ |
| 172 | + "snowhouse/snowhouse.h", |
| 173 | + "snowhouse/assert.h", |
| 174 | + "snowhouse/fluent/fluent.h", |
| 175 | + "snowhouse/fluent/constraintadapter.h", |
| 176 | + "snowhouse/fluent/constraintlist.h", |
| 177 | + "snowhouse/fluent/operators/andoperator.h", |
| 178 | + "snowhouse/fluent/operators/invalidexpressionexception.h", |
| 179 | + "snowhouse/fluent/operators/collections/collectionoperator.h", |
| 180 | + "snowhouse/fluent/operators/collections/collectionconstraintevaluator.h", |
| 181 | + "snowhouse/fluent/operators/collections/atleastoperator.h", |
| 182 | + "snowhouse/fluent/operators/collections/noneoperator.h", |
| 183 | + "snowhouse/fluent/operators/collections/atmostoperator.h", |
| 184 | + "snowhouse/fluent/operators/collections/alloperator.h", |
| 185 | + "snowhouse/fluent/operators/collections/exactlyoperator.h", |
| 186 | + "snowhouse/fluent/operators/notoperator.h", |
| 187 | + "snowhouse/fluent/operators/constraintoperator.h", |
| 188 | + "snowhouse/fluent/operators/oroperator.h", |
| 189 | + "snowhouse/fluent/expressionbuilder.h", |
| 190 | + "snowhouse/assertionexception.h", |
| 191 | + "snowhouse/exceptions.h", |
| 192 | + "snowhouse/stringizers.h", |
| 193 | + "snowhouse/macros.h", |
| 194 | + "snowhouse/constraints/equalscontainerconstraint.h", |
| 195 | + "snowhouse/constraints/islessthanorequaltoconstraint.h", |
| 196 | + "snowhouse/constraints/equalsconstraint.h", |
| 197 | + "snowhouse/constraints/isgreaterthanconstraint.h", |
| 198 | + "snowhouse/constraints/fulfillsconstraint.h", |
| 199 | + "snowhouse/constraints/endswithconstraint.h", |
| 200 | + "snowhouse/constraints/constraints.h", |
| 201 | + "snowhouse/constraints/haslengthconstraint.h", |
| 202 | + "snowhouse/constraints/startswithconstraint.h", |
| 203 | + "snowhouse/constraints/equalswithdeltaconstraint.h", |
| 204 | + "snowhouse/constraints/isgreaterthanorequaltoconstraint.h", |
| 205 | + "snowhouse/constraints/containsconstraint.h", |
| 206 | + "snowhouse/constraints/islessthanconstraint.h", |
| 207 | + "snowhouse/constraints/isemptyconstraint.h", |
| 208 | + "snowhouse/constraints/expressions/andexpression.h", |
| 209 | + "snowhouse/constraints/expressions/orexpression.h", |
| 210 | + "snowhouse/constraints/expressions/expression_fwd.h", |
| 211 | + "snowhouse/constraints/expressions/notexpression.h", |
| 212 | + "snowhouse/constraints/expressions/expression.h", |
| 213 | + "snowhouse/stringize.h", |
| 214 | + ] |
| 215 | + }, |
| 216 | + deps=[ |
| 217 | + git_repository( |
| 218 | + name="snowhouse_repo", |
| 219 | + url="https://github.com/banditcpp/snowhouse", |
| 220 | + branch="v5.0.0", |
| 221 | + path="dep/snowhouse", |
| 222 | + ) |
| 223 | + ], |
| 224 | +) |
0 commit comments