Skip to content

Commit f1ec46a

Browse files
committed
Working script to create a single header file
1 parent 829cff4 commit f1ec46a

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

script-requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/create_single_header.sh

100644100755
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
quom -I include -I src src/dbc.cpp build/libdbc.hpp
1+
#!/bin/sh
2+
3+
set -e
4+
5+
cargo install cpp-amalgamate
6+
7+
rm -rf build/single_header/
8+
mkdir -p build/single_header/libdbc
9+
10+
files=$(find src -name "*.cpp")
11+
files="${files} $(find include -name "*.hpp")"
12+
13+
cpp-amalgamate -d include -d build/_deps/fastfloat-src/include ${files} -o build/single_header/libdbc/libdbc.hpp

0 commit comments

Comments
 (0)