Use ffizz_header to generate taskchampion.h

This commit is contained in:
Dustin J. Mitchell 2023-01-17 03:23:43 +00:00 committed by Dustin J. Mitchell
parent 989a330e46
commit 75e10676ce
20 changed files with 1881 additions and 1281 deletions

View file

@ -13,9 +13,11 @@ fn build_bindings_tests(suites: &[&'static str]) {
"UNITY_OUTPUT_CHAR_HEADER_DECLARATION",
"test_output(char c)",
);
build.file("src/bindings_tests/unity/unity.c");
let mut files = vec!["src/bindings_tests/test.c".to_string()];
let mut files = vec![
"src/bindings_tests/test.c".into(),
"src/bindings_tests/unity/unity.c".into(),
];
for suite in suites {
files.push(format!("src/bindings_tests/{}.c", suite));
}
@ -23,6 +25,7 @@ fn build_bindings_tests(suites: &[&'static str]) {
build.file(&file);
println!("cargo:rerun-if-changed={}", file);
}
println!("cargo:rerun-if-changed=../lib/taskchampion.h");
build.compile("bindings-tests");
}