mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
HAND FIXES: Fixup gradle / cmake / styleguide
This commit is contained in:
committed by
Peter Johnson
parent
105deaddb0
commit
c89910b7c6
@@ -43,20 +43,13 @@ includeOtherLibs {
|
|||||||
^fmt/
|
^fmt/
|
||||||
^glass/
|
^glass/
|
||||||
^gtest/
|
^gtest/
|
||||||
^hal/
|
|
||||||
^imgui
|
^imgui
|
||||||
^implot
|
^implot
|
||||||
^mockdata/
|
^mockdata/
|
||||||
^networktables/
|
|
||||||
^ntcore
|
|
||||||
^opencv2/
|
^opencv2/
|
||||||
^support/
|
^support/
|
||||||
^units/
|
^units/
|
||||||
^unsupported/
|
^unsupported/
|
||||||
^upb/
|
^upb/
|
||||||
^vision/
|
^vision/
|
||||||
^wpi/
|
|
||||||
^wpigui
|
|
||||||
^wpimath/
|
|
||||||
^wpinet/
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -321,13 +321,13 @@ if(WITH_GUI)
|
|||||||
add_subdirectory(thirdparty/imgui_suite)
|
add_subdirectory(thirdparty/imgui_suite)
|
||||||
add_subdirectory(wpigui)
|
add_subdirectory(wpigui)
|
||||||
add_subdirectory(glass)
|
add_subdirectory(glass)
|
||||||
add_subdirectory(outlineviewer)
|
add_subdirectory(tools/outlineviewer)
|
||||||
add_subdirectory(sysid)
|
add_subdirectory(tools/sysid)
|
||||||
if(WITH_WPICAL)
|
if(WITH_WPICAL)
|
||||||
add_subdirectory(wpical)
|
add_subdirectory(tools/wpical)
|
||||||
endif()
|
endif()
|
||||||
if(LIBSSH_FOUND)
|
if(LIBSSH_FOUND)
|
||||||
add_subdirectory(datalogtool)
|
add_subdirectory(tools/datalogtool)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -349,7 +349,7 @@ if(WITH_WPILIB)
|
|||||||
set(COMMANDSV3_DEP_REPLACE "find_dependency(commandsv3)")
|
set(COMMANDSV3_DEP_REPLACE "find_dependency(commandsv3)")
|
||||||
set(WPILIBC_DEP_REPLACE "find_dependency(wpilibc)")
|
set(WPILIBC_DEP_REPLACE "find_dependency(wpilibc)")
|
||||||
set(WPILIBJ_DEP_REPLACE "find_dependency(wpilibj)")
|
set(WPILIBJ_DEP_REPLACE "find_dependency(wpilibj)")
|
||||||
set(WPILIBNEWCOMMANDS_DEP_REPLACE "find_dependency(commandsv2)")
|
set(COMMAND_DEP_REPLACE "find_dependency(commandsv2)")
|
||||||
add_subdirectory(apriltag)
|
add_subdirectory(apriltag)
|
||||||
add_subdirectory(wpilibj)
|
add_subdirectory(wpilibj)
|
||||||
add_subdirectory(wpilibc)
|
add_subdirectory(wpilibc)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ apply plugin: 'c'
|
|||||||
|
|
||||||
ext {
|
ext {
|
||||||
nativeName = 'apriltag'
|
nativeName = 'apriltag'
|
||||||
devMain = 'edu.wpi.first.apriltag.DevMain'
|
devMain = 'org.wpilib.vision.apriltag.DevMain'
|
||||||
useJava = true
|
useJava = true
|
||||||
useCpp = true
|
useCpp = true
|
||||||
sharedCvConfigs = [
|
sharedCvConfigs = [
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
cppHeaderFileInclude {
|
cppHeaderFileInclude {
|
||||||
\.h$
|
\.h$
|
||||||
|
\.hpp$
|
||||||
\.inc$
|
\.inc$
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -14,11 +15,8 @@ repoRootNameOverride {
|
|||||||
includeOtherLibs {
|
includeOtherLibs {
|
||||||
^fmt/
|
^fmt/
|
||||||
^gtest/
|
^gtest/
|
||||||
^hal/
|
|
||||||
^networktables/
|
|
||||||
^opencv2/
|
^opencv2/
|
||||||
^support/
|
^support/
|
||||||
^wpi/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
includeGuardRoots {
|
includeGuardRoots {
|
||||||
|
|||||||
@@ -17,19 +17,12 @@ generatedFileExclude {
|
|||||||
}
|
}
|
||||||
|
|
||||||
includeOtherLibs {
|
includeOtherLibs {
|
||||||
^cameraserver/
|
|
||||||
^cscore
|
|
||||||
^fmt/
|
|
||||||
^frc/
|
|
||||||
^gtest/
|
^gtest/
|
||||||
^hal/
|
|
||||||
^imgui
|
^imgui
|
||||||
^mockdata/
|
^mockdata/
|
||||||
^networktables/
|
^networktables/
|
||||||
^ntcore
|
|
||||||
^opencv2/
|
^opencv2/
|
||||||
^support/
|
^support/
|
||||||
^units/
|
^units/
|
||||||
^vision/
|
^vision/
|
||||||
^wpi/
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ modifiableFileExclude {
|
|||||||
}
|
}
|
||||||
|
|
||||||
licenseUpdateExclude {
|
licenseUpdateExclude {
|
||||||
src/main/native/cpp/default_init_allocator\.h$
|
src/main/native/cpp/default_init_allocator\.hpp$
|
||||||
}
|
}
|
||||||
|
|
||||||
includeGuardRoots {
|
includeGuardRoots {
|
||||||
@@ -41,7 +41,5 @@ includeOtherLibs {
|
|||||||
^imgui
|
^imgui
|
||||||
^support/
|
^support/
|
||||||
^tcpsockets/
|
^tcpsockets/
|
||||||
^wpi/
|
^wpi/net/
|
||||||
^wpigui
|
|
||||||
^wpinet/
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
cppHeaderFileInclude {
|
cppHeaderFileInclude {
|
||||||
\.h$
|
\.h$
|
||||||
|
\.hpp$
|
||||||
}
|
}
|
||||||
|
|
||||||
cppSrcFileInclude {
|
cppSrcFileInclude {
|
||||||
@@ -27,5 +28,4 @@ includeOtherLibs {
|
|||||||
^fmt/
|
^fmt/
|
||||||
^gtest/
|
^gtest/
|
||||||
^upb/
|
^upb/
|
||||||
^wpi/(?!datalog)
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,24 +89,24 @@ doxygen.sourceSets.main {
|
|||||||
exclude 'apriltag_pose.h'
|
exclude 'apriltag_pose.h'
|
||||||
|
|
||||||
// LLVM
|
// LLVM
|
||||||
exclude 'wpi/Compiler.h'
|
exclude 'wpi/util/Compiler.hpp'
|
||||||
exclude 'wpi/ErrorHandling.h'
|
exclude 'wpi/util/ErrorHandling.hpp'
|
||||||
exclude 'wpi/bit.h'
|
exclude 'wpi/util/bit.hpp'
|
||||||
exclude 'wpi/raw_ostream.h'
|
exclude 'wpi/util/raw_ostream.hpp'
|
||||||
exclude 'wpi/SmallVector.h'
|
exclude 'wpi/util/SmallVector.hpp'
|
||||||
exclude 'wpi/StringExtras.h'
|
exclude 'wpi/util/StringExtras.hpp'
|
||||||
|
|
||||||
// libuv
|
// libuv
|
||||||
exclude 'uv/**'
|
exclude 'uv/**'
|
||||||
|
|
||||||
// json
|
// json
|
||||||
exclude 'wpi/detail/**'
|
exclude 'wpi/util/detail/**'
|
||||||
|
|
||||||
// mpack
|
// mpack
|
||||||
exclude 'wpi/mpack.h'
|
exclude 'wpi/util/mpack.h'
|
||||||
|
|
||||||
// units
|
// units
|
||||||
exclude 'units/**'
|
exclude 'wpi/units/**'
|
||||||
}
|
}
|
||||||
|
|
||||||
exclude '*.pb.h'
|
exclude '*.pb.h'
|
||||||
@@ -152,29 +152,31 @@ task generateJavaDocs(type: Javadoc) {
|
|||||||
options.addStringOption("tag", "pre:a:Pre-Condition")
|
options.addStringOption("tag", "pre:a:Pre-Condition")
|
||||||
options.addBooleanOption("Xdoclint/package:" +
|
options.addBooleanOption("Xdoclint/package:" +
|
||||||
// TODO: v Document these, then remove them from the list
|
// TODO: v Document these, then remove them from the list
|
||||||
"-edu.wpi.first.hal," +
|
"-org.wpilib.hardware.hal," +
|
||||||
"-edu.wpi.first.hal.simulation," +
|
"-org.wpilib.hardware.hal.simulation," +
|
||||||
// TODO: ^ Document these, then remove them from the list
|
// TODO: ^ Document these, then remove them from the list
|
||||||
"-edu.wpi.first.math.proto," +
|
"-org.wpilib.math.proto," +
|
||||||
"-edu.wpi.first.math.struct," +
|
"-org.wpilib.math.struct," +
|
||||||
"-edu.wpi.first.math.controller.proto," +
|
"-org.wpilib.math.controller.proto," +
|
||||||
"-edu.wpi.first.math.controller.struct," +
|
"-org.wpilib.math.controller.struct," +
|
||||||
"-edu.wpi.first.math.geometry.proto," +
|
"-org.wpilib.math.geometry.proto," +
|
||||||
"-edu.wpi.first.math.geometry.struct," +
|
"-org.wpilib.math.geometry.struct," +
|
||||||
"-edu.wpi.first.math.kinematics.proto," +
|
"-org.wpilib.math.kinematics.proto," +
|
||||||
"-edu.wpi.first.math.kinematics.struct," +
|
"-org.wpilib.math.kinematics.struct," +
|
||||||
"-edu.wpi.first.math.spline.proto," +
|
"-org.wpilib.math.linalg.proto," +
|
||||||
"-edu.wpi.first.math.spline.struct," +
|
"-org.wpilib.math.linalg.struct," +
|
||||||
"-edu.wpi.first.math.system.proto," +
|
"-org.wpilib.math.spline.proto," +
|
||||||
"-edu.wpi.first.math.system.struct," +
|
"-org.wpilib.math.spline.struct," +
|
||||||
"-edu.wpi.first.math.system.plant.proto," +
|
"-org.wpilib.math.system.proto," +
|
||||||
"-edu.wpi.first.math.system.plant.struct," +
|
"-org.wpilib.math.system.struct," +
|
||||||
"-edu.wpi.first.math.trajectory.proto," +
|
"-org.wpilib.math.system.plant.proto," +
|
||||||
"-edu.wpi.first.math.trajectory.struct," +
|
"-org.wpilib.math.system.plant.struct," +
|
||||||
"-org.wpilib.commands3.proto," +
|
"-org.wpilib.math.trajectory.proto," +
|
||||||
|
"-org.wpilib.math.trajectory.struct," +
|
||||||
|
"-org.wpilib.command3.proto," +
|
||||||
// The .measure package contains generated source files for which automatic javadoc
|
// The .measure package contains generated source files for which automatic javadoc
|
||||||
// generation is very difficult to do meaningfully.
|
// generation is very difficult to do meaningfully.
|
||||||
"-edu.wpi.first.units.measure", true)
|
"-org.wpilib.units.measure", true)
|
||||||
options.addBooleanOption("Xdoclint:html,missing,reference,syntax", true)
|
options.addBooleanOption("Xdoclint:html,missing,reference,syntax", true)
|
||||||
options.addBooleanOption('html5', true)
|
options.addBooleanOption('html5', true)
|
||||||
options.linkSource(true)
|
options.linkSource(true)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
cppHeaderFileInclude {
|
cppHeaderFileInclude {
|
||||||
\.h$
|
\.h$
|
||||||
|
\.hpp$
|
||||||
\.inc$
|
\.inc$
|
||||||
\.inl$
|
\.inl$
|
||||||
}
|
}
|
||||||
@@ -20,17 +21,12 @@ repoRootNameOverride {
|
|||||||
|
|
||||||
includeOtherLibs {
|
includeOtherLibs {
|
||||||
^GLFW
|
^GLFW
|
||||||
^cscore
|
|
||||||
^fmt/
|
^fmt/
|
||||||
^fields/
|
|
||||||
^frc/
|
|
||||||
^imgui
|
^imgui
|
||||||
portable-file-dialogs.h
|
|
||||||
^networktables/
|
|
||||||
^ntcore
|
|
||||||
^units
|
|
||||||
^upb/
|
^upb/
|
||||||
^wpi/
|
}
|
||||||
^wpigui
|
|
||||||
^wpimath/
|
includeProject {
|
||||||
|
wpi/gui/portable-file-dialogs.h
|
||||||
|
wpi/util/expected
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,18 +34,13 @@ repoRootNameOverride {
|
|||||||
}
|
}
|
||||||
|
|
||||||
includeOtherLibs {
|
includeOtherLibs {
|
||||||
^FRC_FPGA_ChipObject/
|
|
||||||
^FRC_NetworkCommunication/
|
|
||||||
^fmt/
|
^fmt/
|
||||||
^gtest/
|
^gtest/
|
||||||
^i2clib/
|
^i2clib/
|
||||||
^llvm/
|
^llvm/
|
||||||
^networktables/
|
|
||||||
^ntcore
|
|
||||||
^opencv2/
|
^opencv2/
|
||||||
^spilib/
|
^spilib/
|
||||||
^support/
|
^support/
|
||||||
^wpi/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
includeProject {
|
includeProject {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ ext {
|
|||||||
|
|
||||||
nativeName = 'hal'
|
nativeName = 'hal'
|
||||||
setBaseName = 'wpiHal'
|
setBaseName = 'wpiHal'
|
||||||
devMain = 'edu.wpi.first.hal.DevMain'
|
devMain = 'org.wpilib.hardware.hal.DevMain'
|
||||||
generatedHeaders = "src/generated/main/native/include"
|
generatedHeaders = "src/generated/main/native/include"
|
||||||
splitSetup = {
|
splitSetup = {
|
||||||
if (it.targetPlatform.name == nativeUtils.wpi.platforms.systemcore) {
|
if (it.targetPlatform.name == nativeUtils.wpi.platforms.systemcore) {
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ cHeaderFileInclude {
|
|||||||
|
|
||||||
cppHeaderFileInclude {
|
cppHeaderFileInclude {
|
||||||
(?<!_c)\.h$
|
(?<!_c)\.h$
|
||||||
|
\.hpp$
|
||||||
\.inc$
|
\.inc$
|
||||||
\.inl$
|
\.inl$
|
||||||
}
|
}
|
||||||
@@ -35,6 +36,4 @@ includeOtherLibs {
|
|||||||
^fmt/
|
^fmt/
|
||||||
^gtest/
|
^gtest/
|
||||||
^support/
|
^support/
|
||||||
^wpi/
|
|
||||||
^wpinet/
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
cppHeaderFileInclude {
|
cppHeaderFileInclude {
|
||||||
\.h$
|
\.h$
|
||||||
|
\.hpp$
|
||||||
}
|
}
|
||||||
|
|
||||||
cppSrcFileInclude {
|
cppSrcFileInclude {
|
||||||
@@ -18,8 +19,6 @@ includeOtherLibs {
|
|||||||
^fmt/
|
^fmt/
|
||||||
^gmock/
|
^gmock/
|
||||||
^gtest/
|
^gtest/
|
||||||
^networktables/
|
|
||||||
^wpi/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
includeGuardRoots {
|
includeGuardRoots {
|
||||||
|
|||||||
@@ -18,19 +18,10 @@ repoRootNameOverride {
|
|||||||
}
|
}
|
||||||
|
|
||||||
includeOtherLibs {
|
includeOtherLibs {
|
||||||
^cameraserver/
|
|
||||||
^cscore
|
|
||||||
^fmt/
|
^fmt/
|
||||||
^frc/
|
|
||||||
^gtest/
|
^gtest/
|
||||||
^hal/
|
|
||||||
^imgui
|
^imgui
|
||||||
^mockdata/
|
^mockdata/
|
||||||
^networktables/
|
|
||||||
^ntcore
|
|
||||||
^opencv2/
|
^opencv2/
|
||||||
^support/
|
^support/
|
||||||
^units/
|
|
||||||
^vision/
|
|
||||||
^wpi/
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,9 +36,9 @@ include 'wpiannotations'
|
|||||||
include 'wpiunits'
|
include 'wpiunits'
|
||||||
include 'fields'
|
include 'fields'
|
||||||
include 'glass'
|
include 'glass'
|
||||||
include 'outlineviewer'
|
include 'tools:outlineviewer'
|
||||||
include 'datalogtool'
|
include 'tools:datalogtool'
|
||||||
include 'sysid'
|
include 'tools:sysid'
|
||||||
include 'simulation:halsim_ds_socket'
|
include 'simulation:halsim_ds_socket'
|
||||||
include 'simulation:halsim_gui'
|
include 'simulation:halsim_gui'
|
||||||
include 'simulation:halsim_ws_core'
|
include 'simulation:halsim_ws_core'
|
||||||
@@ -57,13 +57,13 @@ include 'docs'
|
|||||||
include 'msvcruntime'
|
include 'msvcruntime'
|
||||||
include 'ntcoreffi'
|
include 'ntcoreffi'
|
||||||
include 'apriltag'
|
include 'apriltag'
|
||||||
include 'processstarter'
|
include 'tools:processstarter'
|
||||||
include 'epilogue-processor'
|
include 'epilogue-processor'
|
||||||
include 'epilogue-runtime'
|
include 'epilogue-runtime'
|
||||||
include 'thirdparty:catch2'
|
include 'thirdparty:catch2'
|
||||||
include 'thirdparty:googletest'
|
include 'thirdparty:googletest'
|
||||||
include 'thirdparty:imgui_suite'
|
include 'thirdparty:imgui_suite'
|
||||||
include 'wpical'
|
include 'tools:wpical'
|
||||||
include 'datalog'
|
include 'datalog'
|
||||||
|
|
||||||
buildCache {
|
buildCache {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<exclude-pattern>.*/*IntegrationTests.*</exclude-pattern>
|
<exclude-pattern>.*/*IntegrationTests.*</exclude-pattern>
|
||||||
<exclude-pattern>.*/*JNI.*</exclude-pattern>
|
<exclude-pattern>.*/*JNI.*</exclude-pattern>
|
||||||
<exclude-pattern>.*/math/proto.*</exclude-pattern>
|
<exclude-pattern>.*/math/proto.*</exclude-pattern>
|
||||||
<exclude-pattern>.*/commands3/proto.*</exclude-pattern>
|
<exclude-pattern>.*/command3/proto.*</exclude-pattern>
|
||||||
|
|
||||||
<rule ref="category/java/bestpractices.xml">
|
<rule ref="category/java/bestpractices.xml">
|
||||||
<exclude name="AccessorClassGeneration" />
|
<exclude name="AccessorClassGeneration" />
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
cppHeaderFileInclude {
|
cppHeaderFileInclude {
|
||||||
\.h$
|
\.h$
|
||||||
|
\.hpp$
|
||||||
\.inc$
|
\.inc$
|
||||||
\.inl$
|
\.inl$
|
||||||
}
|
}
|
||||||
@@ -21,10 +22,6 @@ repoRootNameOverride {
|
|||||||
includeOtherLibs {
|
includeOtherLibs {
|
||||||
^GLFW
|
^GLFW
|
||||||
^fmt/
|
^fmt/
|
||||||
^glass/
|
|
||||||
^imgui
|
^imgui
|
||||||
^libssh/
|
^libssh/
|
||||||
^portable-file-dialog
|
|
||||||
^wpi/
|
|
||||||
^wpigui
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
cppHeaderFileInclude {
|
cppHeaderFileInclude {
|
||||||
\.h$
|
\.h$
|
||||||
|
\.hpp$
|
||||||
\.inc$
|
\.inc$
|
||||||
\.inl$
|
\.inl$
|
||||||
}
|
}
|
||||||
@@ -21,15 +22,7 @@ repoRootNameOverride {
|
|||||||
includeOtherLibs {
|
includeOtherLibs {
|
||||||
^GLFW
|
^GLFW
|
||||||
^fmt/
|
^fmt/
|
||||||
^frc/
|
|
||||||
^glass/
|
|
||||||
^gtest/
|
^gtest/
|
||||||
^imgui
|
^imgui
|
||||||
^implot\.h$
|
^implot\.h$
|
||||||
^networktables/
|
|
||||||
^portable-file-dialogs\.h$
|
|
||||||
^ntcore
|
|
||||||
^units/
|
|
||||||
^wpi/
|
|
||||||
^wpigui
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
cppHeaderFileInclude {
|
cppHeaderFileInclude {
|
||||||
\.h$
|
\.h$
|
||||||
|
\.hpp$
|
||||||
\.inc$
|
\.inc$
|
||||||
\.inl$
|
\.inl$
|
||||||
}
|
}
|
||||||
@@ -21,15 +22,7 @@ repoRootNameOverride {
|
|||||||
includeOtherLibs {
|
includeOtherLibs {
|
||||||
^GLFW
|
^GLFW
|
||||||
^fmt/
|
^fmt/
|
||||||
^frc/
|
|
||||||
^glass/
|
|
||||||
^gtest/
|
^gtest/
|
||||||
^imgui
|
^imgui
|
||||||
^implot\.h$
|
^implot\.h$
|
||||||
^networktables/
|
|
||||||
^portable-file-dialogs\.h$
|
|
||||||
^ntcore
|
|
||||||
^units/
|
|
||||||
^wpi/
|
|
||||||
^wpigui
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
cppHeaderFileInclude {
|
cppHeaderFileInclude {
|
||||||
\.h$
|
\.h$
|
||||||
|
\.hpp$
|
||||||
\.inc$
|
\.inc$
|
||||||
\.inl$
|
\.inl$
|
||||||
}
|
}
|
||||||
@@ -24,13 +25,9 @@ includeOtherLibs {
|
|||||||
^GLFW
|
^GLFW
|
||||||
^ceres/
|
^ceres/
|
||||||
^fmt/
|
^fmt/
|
||||||
^frc/
|
|
||||||
^gtest/
|
^gtest/
|
||||||
^imgui
|
^imgui
|
||||||
^implot\.h$
|
^implot\.h$
|
||||||
^mrcal_wrapper\.h$
|
^mrcal_wrapper\.h$
|
||||||
^opencv2\.h$
|
^opencv2\.h$
|
||||||
^portable-file-dialogs\.h$
|
|
||||||
^wpi/
|
|
||||||
^wpigui
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ nativeUtils.platformConfigs.each {
|
|||||||
it.cppCompiler.args.add("-fpermissive")
|
it.cppCompiler.args.add("-fpermissive")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
def testResources = "\"$rootDir/wpical/src/main/native/assets\"".replace("\\", "/")
|
def testResources = "\"$rootDir/tools/wpical/src/main/native/assets\"".replace("\\", "/")
|
||||||
model {
|
model {
|
||||||
components {
|
components {
|
||||||
"${nativeName}"(NativeExecutableSpec) {
|
"${nativeName}"(NativeExecutableSpec) {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
cppHeaderFileInclude {
|
cppHeaderFileInclude {
|
||||||
\.h$
|
\.h$
|
||||||
|
\.hpp$
|
||||||
}
|
}
|
||||||
|
|
||||||
cppSrcFileInclude {
|
cppSrcFileInclude {
|
||||||
@@ -8,7 +9,7 @@ cppSrcFileInclude {
|
|||||||
|
|
||||||
generatedFileExclude {
|
generatedFileExclude {
|
||||||
wpigui/src/main/native/cpp/portable-file-dialogs\.cpp$
|
wpigui/src/main/native/cpp/portable-file-dialogs\.cpp$
|
||||||
wpigui/src/main/native/include/portable-file-dialogs\.h$
|
wpigui/src/main/native/include/wpi/gui/portable-file-dialogs\.h$
|
||||||
}
|
}
|
||||||
|
|
||||||
repoRootNameOverride {
|
repoRootNameOverride {
|
||||||
|
|||||||
@@ -9,18 +9,8 @@ cppSrcFileInclude {
|
|||||||
}
|
}
|
||||||
|
|
||||||
includeOtherLibs {
|
includeOtherLibs {
|
||||||
^cameraserver/
|
|
||||||
^cscore
|
|
||||||
^fmt/
|
^fmt/
|
||||||
^frc/
|
|
||||||
^frc2/
|
|
||||||
^gtest/
|
^gtest/
|
||||||
^hal/
|
|
||||||
^networktables/
|
|
||||||
^ntcore
|
|
||||||
^opencv2/
|
^opencv2/
|
||||||
^support/
|
|
||||||
^units/
|
|
||||||
^vision/
|
|
||||||
^wpi/
|
^wpi/
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ if(WITH_JAVA)
|
|||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
src/generate/WPILibVersion.java.in
|
src/generate/WPILibVersion.java.in
|
||||||
generated/main/java/org/wpilib/WPILibVersion.java
|
generated/main/java/org/wpilib/system/WPILibVersion.java
|
||||||
)
|
)
|
||||||
|
|
||||||
file(GLOB_RECURSE JAVA_SOURCES src/main/java/*.java src/generated/main/java/*.java)
|
file(GLOB_RECURSE JAVA_SOURCES src/main/java/*.java src/generated/main/java/*.java)
|
||||||
@@ -29,7 +29,7 @@ if(WITH_JAVA)
|
|||||||
add_jar(
|
add_jar(
|
||||||
wpilibj_jar
|
wpilibj_jar
|
||||||
${JAVA_SOURCES}
|
${JAVA_SOURCES}
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/generated/main/java/org/wpilib/WPILibVersion.java
|
${CMAKE_CURRENT_BINARY_DIR}/generated/main/java/org/wpilib/system/WPILibVersion.java
|
||||||
INCLUDE_JARS
|
INCLUDE_JARS
|
||||||
hal_jar
|
hal_jar
|
||||||
ntcore_jar
|
ntcore_jar
|
||||||
@@ -60,7 +60,7 @@ if(WITH_JAVA_SOURCE)
|
|||||||
if(NOT WITH_JAVA)
|
if(NOT WITH_JAVA)
|
||||||
configure_file(
|
configure_file(
|
||||||
src/generate/WPILibVersion.java.in
|
src/generate/WPILibVersion.java.in
|
||||||
generated/main/java/org/wpilib/WPILibVersion.java
|
generated/main/java/org/wpilib/system/WPILibVersion.java
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
add_source_jar(
|
add_source_jar(
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ ext {
|
|||||||
apply from: "${rootDir}/shared/java/javacommon.gradle"
|
apply from: "${rootDir}/shared/java/javacommon.gradle"
|
||||||
|
|
||||||
def wpilibVersionFileInput = file("src/generate/WPILibVersion.java.in")
|
def wpilibVersionFileInput = file("src/generate/WPILibVersion.java.in")
|
||||||
def wpilibVersionFileOutput = file("$buildDir/generated/java/edu/wpi/first/wpilibj/util/WPILibVersion.java")
|
def wpilibVersionFileOutput = file("$buildDir/generated/java/org/wpilib/system/WPILibVersion.java")
|
||||||
|
|
||||||
task generateJavaVersion() {
|
task generateJavaVersion() {
|
||||||
description = 'Generates the wpilib version class'
|
description = 'Generates the wpilib version class'
|
||||||
@@ -155,7 +155,7 @@ model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def oldWpilibVersionFile = file('src/main/java/edu/wpi/first/wpilibj/util/WPILibVersion.java')
|
def oldWpilibVersionFile = file('src/main/java/org/wpilib/system/WPILibVersion.java')
|
||||||
|
|
||||||
clean {
|
clean {
|
||||||
delete oldWpilibVersionFile
|
delete oldWpilibVersionFile
|
||||||
|
|||||||
@@ -79,14 +79,14 @@ tasks.register('buildDesktopJava') {
|
|||||||
apply from: 'publish.gradle'
|
apply from: 'publish.gradle'
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
templateDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/templates/")
|
templateDirectory = new File("$projectDir/src/main/java/org/wpilib/templates/")
|
||||||
templateFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/templates/templates.json")
|
templateFile = new File("$projectDir/src/main/java/org/wpilib/templates/templates.json")
|
||||||
exampleDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/examples/")
|
exampleDirectory = new File("$projectDir/src/main/java/org/wpilib/examples/")
|
||||||
exampleFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/examples/examples.json")
|
exampleFile = new File("$projectDir/src/main/java/org/wpilib/examples/examples.json")
|
||||||
commandDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/commands/")
|
commandDirectory = new File("$projectDir/src/main/java/org/wpilib/commands/")
|
||||||
commandFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/commands/commands.json")
|
commandFile = new File("$projectDir/src/main/java/org/wpilib/commands/commands.json")
|
||||||
snippetsDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/snippets/")
|
snippetsDirectory = new File("$projectDir/src/main/java/org/wpilib/snippets/")
|
||||||
snippetsFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/snippets/snippets.json")
|
snippetsFile = new File("$projectDir/src/main/java/org/wpilib/snippets/snippets.json")
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'cpp'
|
apply plugin: 'cpp'
|
||||||
@@ -174,7 +174,7 @@ model {
|
|||||||
new groovy.json.JsonSlurper().parseText(exampleFile.text).each { entry ->
|
new groovy.json.JsonSlurper().parseText(exampleFile.text).each { entry ->
|
||||||
project.tasks.create("run${entry.foldername}", JavaExec) { run ->
|
project.tasks.create("run${entry.foldername}", JavaExec) { run ->
|
||||||
run.group = "run examples"
|
run.group = "run examples"
|
||||||
run.mainClass = "edu.wpi.first.wpilibj.examples." + entry.foldername + "." + entry.mainclass
|
run.mainClass = "org.wpilib.examples." + entry.foldername + "." + entry.mainclass
|
||||||
run.classpath = sourceSets.main.runtimeClasspath
|
run.classpath = sourceSets.main.runtimeClasspath
|
||||||
run.dependsOn it.tasks.install
|
run.dependsOn it.tasks.install
|
||||||
run.systemProperty 'java.library.path', filePath
|
run.systemProperty 'java.library.path', filePath
|
||||||
@@ -188,15 +188,15 @@ model {
|
|||||||
testTask.group = "verification"
|
testTask.group = "verification"
|
||||||
testTask.useJUnitPlatform()
|
testTask.useJUnitPlatform()
|
||||||
testTask.filter {
|
testTask.filter {
|
||||||
includeTestsMatching("edu.wpi.first.wpilibj.examples.${entry.foldername}.*")
|
includeTestsMatching("org.wpilib.examples.${entry.foldername}.*")
|
||||||
// armsimulation regularly fails on CI Win64Debug
|
// armsimulation regularly fails on CI Win64Debug
|
||||||
if (project.hasProperty('ciDebugOnly')) {
|
if (project.hasProperty('ciDebugOnly')) {
|
||||||
excludeTestsMatching("edu.wpi.first.wpilibj.examples.armsimulation.*")
|
excludeTestsMatching("org.wpilib.examples.armsimulation.*")
|
||||||
}
|
}
|
||||||
setFailOnNoMatchingTests(false)
|
setFailOnNoMatchingTests(false)
|
||||||
}
|
}
|
||||||
test.filter {
|
test.filter {
|
||||||
excludeTestsMatching("edu.wpi.first.wpilibj.examples.${entry.foldername}.*")
|
excludeTestsMatching("org.wpilib.examples.${entry.foldername}.*")
|
||||||
setFailOnNoMatchingTests(false)
|
setFailOnNoMatchingTests(false)
|
||||||
}
|
}
|
||||||
testTask.testClassesDirs = sourceSets.test.output.classesDirs
|
testTask.testClassesDirs = sourceSets.test.output.classesDirs
|
||||||
@@ -219,7 +219,7 @@ model {
|
|||||||
new groovy.json.JsonSlurper().parseText(snippetsFile.text).each { entry ->
|
new groovy.json.JsonSlurper().parseText(snippetsFile.text).each { entry ->
|
||||||
project.tasks.create("runSnippet${entry.foldername}", JavaExec) { run ->
|
project.tasks.create("runSnippet${entry.foldername}", JavaExec) { run ->
|
||||||
run.group = "run snippets"
|
run.group = "run snippets"
|
||||||
run.mainClass = "edu.wpi.first.wpilibj.snippets." + entry.foldername + "." + entry.mainclass
|
run.mainClass = "org.wpilib.snippets." + entry.foldername + "." + entry.mainclass
|
||||||
run.classpath = sourceSets.main.runtimeClasspath
|
run.classpath = sourceSets.main.runtimeClasspath
|
||||||
run.dependsOn it.tasks.install
|
run.dependsOn it.tasks.install
|
||||||
run.systemProperty 'java.library.path', filePath
|
run.systemProperty 'java.library.path', filePath
|
||||||
@@ -233,11 +233,11 @@ model {
|
|||||||
testTask.group = "verification"
|
testTask.group = "verification"
|
||||||
testTask.useJUnitPlatform()
|
testTask.useJUnitPlatform()
|
||||||
testTask.filter {
|
testTask.filter {
|
||||||
includeTestsMatching("edu.wpi.first.wpilibj.snippets.${entry.foldername}.*")
|
includeTestsMatching("org.wpilib.snippets.${entry.foldername}.*")
|
||||||
setFailOnNoMatchingTests(false)
|
setFailOnNoMatchingTests(false)
|
||||||
}
|
}
|
||||||
test.filter {
|
test.filter {
|
||||||
excludeTestsMatching("edu.wpi.first.wpilibj.snippets.${entry.foldername}.*")
|
excludeTestsMatching("org.wpilib.snippets.${entry.foldername}.*")
|
||||||
setFailOnNoMatchingTests(false)
|
setFailOnNoMatchingTests(false)
|
||||||
}
|
}
|
||||||
testTask.testClassesDirs = sourceSets.test.output.classesDirs
|
testTask.testClassesDirs = sourceSets.test.output.classesDirs
|
||||||
|
|||||||
@@ -14,9 +14,8 @@ modifiableFileExclude {
|
|||||||
}
|
}
|
||||||
|
|
||||||
generatedFileExclude {
|
generatedFileExclude {
|
||||||
src/main/native/include/units/base\.h$
|
src/main/native/include/wpi/units/base\.hpp$
|
||||||
src/main/native/include/units/units\.h$
|
src/main/native/include/wpi/units/units\.hpp$
|
||||||
src/main/native/include/unsupported/
|
|
||||||
src/main/native/thirdparty/
|
src/main/native/thirdparty/
|
||||||
src/test/native/cpp/UnitsTest\.cpp$
|
src/test/native/cpp/UnitsTest\.cpp$
|
||||||
src/generated/main/java/org/wpilib/math/proto
|
src/generated/main/java/org/wpilib/math/proto
|
||||||
@@ -43,9 +42,8 @@ includeOtherLibs {
|
|||||||
^gtest/
|
^gtest/
|
||||||
^sleipnir/
|
^sleipnir/
|
||||||
^unsupported/
|
^unsupported/
|
||||||
^wpi/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
includeProject {
|
includeProject {
|
||||||
^units/
|
wpi/util/expected
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ ext {
|
|||||||
groupId = 'edu.wpi.first.wpimath'
|
groupId = 'edu.wpi.first.wpimath'
|
||||||
|
|
||||||
nativeName = 'wpimath'
|
nativeName = 'wpimath'
|
||||||
devMain = 'edu.wpi.first.math.DevMain'
|
devMain = 'org.wpilib.math.DevMain'
|
||||||
|
|
||||||
splitSetup = {
|
splitSetup = {
|
||||||
it.sources {
|
it.sources {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
cppHeaderFileInclude {
|
cppHeaderFileInclude {
|
||||||
\.h$
|
\.h$
|
||||||
|
\.hpp$
|
||||||
\.inc$
|
\.inc$
|
||||||
\.inl$
|
\.inl$
|
||||||
}
|
}
|
||||||
@@ -12,7 +13,7 @@ generatedFileExclude {
|
|||||||
src/main/native/thirdparty/
|
src/main/native/thirdparty/
|
||||||
|
|
||||||
src/main/native/cpp/http_parser\.cpp$
|
src/main/native/cpp/http_parser\.cpp$
|
||||||
src/main/native/include/wpinet/http_parser\.h$
|
src/main/native/include/wpi/net/http_parser\.hpp$
|
||||||
src/main/native/resources/
|
src/main/native/resources/
|
||||||
src/main/native/linux/AvahiClient
|
src/main/native/linux/AvahiClient
|
||||||
|
|
||||||
@@ -37,5 +38,4 @@ includeOtherLibs {
|
|||||||
^fmt/
|
^fmt/
|
||||||
^gmock/
|
^gmock/
|
||||||
^gtest/
|
^gtest/
|
||||||
^wpi/
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ cppSrcFileInclude {
|
|||||||
}
|
}
|
||||||
|
|
||||||
modifiableFileExclude {
|
modifiableFileExclude {
|
||||||
src/main/native/include/wpi/MulticastServiceAnnouncer\.h$
|
src/main/native/include/wpi/util/MulticastServiceAnnouncer\.h$
|
||||||
}
|
}
|
||||||
|
|
||||||
generatedFileExclude {
|
generatedFileExclude {
|
||||||
@@ -23,8 +23,8 @@ generatedFileExclude {
|
|||||||
src/main/python/
|
src/main/python/
|
||||||
src/test/python/
|
src/test/python/
|
||||||
|
|
||||||
src/main/native/include/wpi/fs\.h$
|
src/main/native/include/wpi/util/fs\.hpp$
|
||||||
src/main/native/include/wpi/FastQueue\.h$
|
src/main/native/include/wpi/util/FastQueue\.hpp$
|
||||||
src/main/native/cpp/fs\.cpp$
|
src/main/native/cpp/fs\.cpp$
|
||||||
src/main/native/resources/
|
src/main/native/resources/
|
||||||
src/main/native/windows/StackWalker
|
src/main/native/windows/StackWalker
|
||||||
@@ -37,7 +37,7 @@ generatedFileExclude {
|
|||||||
licenseUpdateExclude {
|
licenseUpdateExclude {
|
||||||
src/main/native/cpp/Base64\.cpp$
|
src/main/native/cpp/Base64\.cpp$
|
||||||
src/main/native/cpp/sha1\.cpp$
|
src/main/native/cpp/sha1\.cpp$
|
||||||
src/main/native/include/wpi/sha1\.h$
|
src/main/native/include/wpi/util/sha1\.hpp$
|
||||||
}
|
}
|
||||||
|
|
||||||
repoRootNameOverride {
|
repoRootNameOverride {
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ apply plugin: 'c'
|
|||||||
ext {
|
ext {
|
||||||
noWpiutil = true
|
noWpiutil = true
|
||||||
skipJniSymbols = [
|
skipJniSymbols = [
|
||||||
'Java_edu_wpi_first_util_CombinedRuntimeLoader_setDllDirectory'
|
'Java_org_wpilib_util_CombinedRuntimeLoader_setDllDirectory'
|
||||||
]
|
]
|
||||||
baseId = 'wpiutil'
|
baseId = 'wpiutil'
|
||||||
groupId = 'edu.wpi.first.wpiutil'
|
groupId = 'edu.wpi.first.wpiutil'
|
||||||
|
|
||||||
nativeName = 'wpiutil'
|
nativeName = 'wpiutil'
|
||||||
devMain = 'edu.wpi.first.util.DevMain'
|
devMain = 'org.wpilib.util.DevMain'
|
||||||
def generateTask = createGenerateResourcesTask('main', 'WPI', 'wpi', project)
|
def generateTask = createGenerateResourcesTask('main', 'WPI', 'wpi', project)
|
||||||
|
|
||||||
splitSetup = {
|
splitSetup = {
|
||||||
|
|||||||
Reference in New Issue
Block a user