Skip to content

Commit 0ee904a

Browse files
committed
Fetch snowhouse dynamically.
1 parent 1a47871 commit 0ee904a

67 files changed

Lines changed: 63 additions & 5193 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,6 @@ written by Sean T Barett (and others). It is public domain/Unlicense/MIT
242242
licensed, at your choice. Please see the contents of the directory for the full
243243
text.
244244

245-
As an exception, `dep/snowhouse` contains the snowhouse assertion library,
246-
taken from https://github.com/banditcpp/snowhouse. It is Boost Standard License
247-
1.0 licensed. Please see the contents of the directory for the full text. Note
248-
that this is only used during the build and no code ends up in the output
249-
binaries.
250-
251245
As an exception, `dep/libusbp` contains the libusbp library, taken from
252246
https://github.com/pololu/libusbp. It is MIT licensed. Please see the contents
253247
of the directory for the full text.
@@ -265,10 +259,6 @@ package, written by Robert Leslie et al, taken from
265259
https://www.mars.org/home/rob/proj/hfs. It is GPL 2.0 licensed. Please see the
266260
contents of the directory for the full text.
267261

268-
As an exception, `dep/lexy` contains a partial copy of the lexy package, written
269-
by foonathen@github, taken from https://github.com/foonathan/lexy. It is BSL 1.0
270-
licensed. Please see the contents of the directory for the full text.
271-
272262
As an exception, `dep/alphanum` contains a copy of the alphanum package,
273263
written by Dave Koelle, taken from
274264
https://web.archive.org/web/20210207124255/davekoelle.com/alphanum.html. It is

dep/build.py

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from build.pkg import package
2-
from build.c import clibrary
2+
from build.c import clibrary, cxxlibrary
33
from build.git import git_repository
44

55
package(
@@ -26,7 +26,7 @@
2626
),
2727
)
2828

29-
clibrary(
29+
cxxlibrary(
3030
name="lexy_lib",
3131
hdrs={
3232
h: f"dep/lexy/include/{h}"
@@ -163,3 +163,62 @@
163163
)
164164
],
165165
)
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+
)

dep/snowhouse/CMakeLists.txt

Lines changed: 0 additions & 49 deletions
This file was deleted.

dep/snowhouse/LICENSE_1_0.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)