From c4a1cb572ce48df5348c7bc1ef074009399914fa Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Thu, 24 Oct 2024 20:56:22 -0400 Subject: [PATCH] Fix wpiutil thirdparty include roots in docs --- wpiutil/build.gradle | 43 +++++++++++++++++-------------------------- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/wpiutil/build.gradle b/wpiutil/build.gradle index 5f7966100b8..9b97b34b2c1 100644 --- a/wpiutil/build.gradle +++ b/wpiutil/build.gradle @@ -167,32 +167,23 @@ nativeUtils.exportsConfigs { } cppHeadersZip { - from('src/main/native/thirdparty/argparse/include/') { - into '/' - } - from('src/main/native/thirdparty/expected/include') { - into '/' - } - from('src/main/native/thirdparty/fmtlib/include') { - into '/' - } - from('src/main/native/thirdparty/json/include') { - into '/' - } - from('src/main/native/thirdparty/llvm/include') { - into '/' - } - from('src/main/native/thirdparty/mpack/include') { - into '/' - } - from('src/main/native/thirdparty/sigslot/include') { - into '/' - } - from('src/main/native/thirdparty/memory/include') { - into '/' - } - from('src/main/native/thirdparty/protobuf/include') { - into '/' + def thirdpartyIncDirs = [ + 'src/main/native/thirdparty/argparse/include/', + 'src/main/native/thirdparty/expected/include', + 'src/main/native/thirdparty/fmtlib/include', + 'src/main/native/thirdparty/json/include', + 'src/main/native/thirdparty/llvm/include', + 'src/main/native/thirdparty/mpack/include', + 'src/main/native/thirdparty/sigslot/include', + 'src/main/native/thirdparty/memory/include', + 'src/main/native/thirdparty/protobuf/include' + ] + + thirdpartyIncDirs.each { + ext.includeDirs << project.file(it) + from(it) { + into '/' + } } }