forked from wpilibsuite/allwpilib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into more-serialization
- Loading branch information
Showing
162 changed files
with
42,017 additions
and
1,806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
*.adoc text eol=lf | ||
*.c text eol=lf | ||
*.cmake text eol=lf | ||
*.clang-format text eol=lf | ||
*.clang-tidy text eol=lf | ||
*.cpp text eol=lf | ||
*.gradle text eol=lf | ||
*.groovy text eol=lf | ||
*.h text eol=lf | ||
*.hpp text eol=lf | ||
*.in text eol=lf | ||
*.inc text eol=lf | ||
*.java text eol=lf | ||
*.jinja text eol=lf | ||
*.json text eol=lf | ||
*.m text eol=lf | ||
*.md text eol=lf | ||
*.mm text eol=lf | ||
*.patch text eol=lf | ||
*.plist text eol=lf | ||
*.proto text eol=lf | ||
*.py text eol=lf | ||
*.styleguide text eol=lf | ||
*.txt text eol=lf | ||
*.xml text eol=lf | ||
*.yaml text eol=lf | ||
*.yml text eol=lf | ||
|
||
# Generated files | ||
*/src/generated/** linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,9 @@ out/ | |
# Fleet | ||
.fleet | ||
|
||
# jdtls | ||
.factorypath | ||
|
||
# Created by http://www.gitignore.io | ||
|
||
### Linux ### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ cppSrcFileInclude { | |
|
||
modifiableFileExclude { | ||
cmake/toolchains/ | ||
thirdparty/ | ||
\.patch$ | ||
gradlew | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ | |
import os | ||
|
||
from wpimath import geometry, units | ||
import numpy as np | ||
|
||
|
||
def main(): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,70 @@ | ||
|
||
import org.gradle.api.GradleException; | ||
import org.gradle.api.Plugin; | ||
import org.gradle.api.Project; | ||
import org.gradle.api.Task; | ||
import org.gradle.api.file.FileTree; | ||
import org.gradle.api.tasks.compile.JavaCompile; | ||
import org.gradle.language.base.internal.ProjectLayout; | ||
import org.gradle.language.base.plugins.ComponentModelBasePlugin; | ||
import org.gradle.language.nativeplatform.tasks.AbstractNativeSourceCompileTask; | ||
import org.gradle.model.ModelMap; | ||
import edu.wpi.first.toolchain.ToolchainExtension | ||
import org.gradle.model.Mutate; | ||
import org.gradle.api.plugins.ExtensionContainer; | ||
import org.gradle.nativeplatform.test.googletest.GoogleTestTestSuiteBinarySpec; | ||
import org.gradle.model.RuleSource; | ||
import org.gradle.model.Validate; | ||
import org.gradle.nativeplatform.NativeExecutableBinarySpec | ||
import org.gradle.nativeplatform.NativeBinarySpec; | ||
import org.gradle.nativeplatform.NativeComponentSpec; | ||
import org.gradle.nativeplatform.NativeLibrarySpec; | ||
import org.gradle.nativeplatform.SharedLibraryBinarySpec; | ||
import org.gradle.nativeplatform.StaticLibraryBinarySpec; | ||
import org.gradle.nativeplatform.platform.internal.NativePlatformInternal; | ||
import org.gradle.nativeplatform.toolchain.NativeToolChain; | ||
import org.gradle.nativeplatform.toolchain.NativeToolChainRegistry; | ||
import org.gradle.nativeplatform.toolchain.internal.PlatformToolProvider; | ||
import org.gradle.nativeplatform.toolchain.internal.ToolType; | ||
import org.gradle.nativeplatform.toolchain.internal.gcc.AbstractGccCompatibleToolChain; | ||
import org.gradle.nativeplatform.toolchain.internal.msvcpp.VisualCppToolChain; | ||
import org.gradle.nativeplatform.toolchain.internal.tools.ToolRegistry; | ||
import org.gradle.platform.base.BinarySpec; | ||
import org.gradle.platform.base.ComponentSpec; | ||
import org.gradle.platform.base.ComponentSpecContainer; | ||
import org.gradle.platform.base.BinaryContainer; | ||
import org.gradle.platform.base.ComponentType; | ||
import org.gradle.platform.base.TypeBuilder; | ||
import org.gradle.nativeplatform.tasks.ObjectFilesToBinary; | ||
import groovy.transform.CompileStatic; | ||
import groovy.transform.CompileDynamic | ||
import org.gradle.nativeplatform.BuildTypeContainer | ||
|
||
@CompileStatic | ||
class DisableBuildingGTest implements Plugin<Project> { | ||
@CompileStatic | ||
public void apply(Project project) { | ||
|
||
} | ||
|
||
@CompileStatic | ||
static class Rules extends RuleSource { | ||
@CompileDynamic | ||
private static void setBuildableFalseDynamically(NativeBinarySpec binary) { | ||
binary.buildable = false | ||
} | ||
|
||
@Validate | ||
@CompileStatic | ||
// TODO: Move this to tc plugin | ||
void disableCrossTests(BinaryContainer binaries, ExtensionContainer extContainer) { | ||
final ToolchainExtension ext = extContainer.getByType(ToolchainExtension.class); | ||
|
||
for (GoogleTestTestSuiteBinarySpec binary : binaries.withType(GoogleTestTestSuiteBinarySpec.class)) { | ||
if (ext.getCrossCompilers().findByName(binary.getTargetPlatform().getName()) != null) { | ||
setBuildableFalseDynamically(binary) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
import org.gradle.api.GradleException; | ||
import org.gradle.api.Plugin; | ||
import org.gradle.api.Project; | ||
import org.gradle.api.Task; | ||
import org.gradle.api.file.FileTree; | ||
import org.gradle.api.tasks.compile.JavaCompile; | ||
import org.gradle.language.base.internal.ProjectLayout; | ||
import org.gradle.language.base.plugins.ComponentModelBasePlugin; | ||
import org.gradle.language.nativeplatform.tasks.AbstractNativeSourceCompileTask; | ||
import org.gradle.model.ModelMap; | ||
import edu.wpi.first.toolchain.ToolchainExtension | ||
import org.gradle.model.Mutate; | ||
import org.gradle.api.plugins.ExtensionContainer; | ||
import org.gradle.nativeplatform.test.googletest.GoogleTestTestSuiteBinarySpec; | ||
import org.gradle.model.RuleSource; | ||
import org.gradle.model.Validate; | ||
import org.gradle.nativeplatform.NativeExecutableBinarySpec | ||
import org.gradle.nativeplatform.NativeBinarySpec; | ||
import org.gradle.nativeplatform.NativeComponentSpec; | ||
import org.gradle.nativeplatform.NativeLibrarySpec; | ||
import org.gradle.nativeplatform.SharedLibraryBinarySpec; | ||
import org.gradle.nativeplatform.StaticLibraryBinarySpec; | ||
import org.gradle.nativeplatform.platform.internal.NativePlatformInternal; | ||
import org.gradle.nativeplatform.toolchain.NativeToolChain; | ||
import org.gradle.nativeplatform.toolchain.NativeToolChainRegistry; | ||
import org.gradle.nativeplatform.toolchain.internal.PlatformToolProvider; | ||
import org.gradle.nativeplatform.toolchain.internal.ToolType; | ||
import org.gradle.nativeplatform.toolchain.internal.gcc.AbstractGccCompatibleToolChain; | ||
import org.gradle.nativeplatform.toolchain.internal.msvcpp.VisualCppToolChain; | ||
import org.gradle.nativeplatform.toolchain.internal.tools.ToolRegistry; | ||
import org.gradle.platform.base.BinarySpec; | ||
import org.gradle.platform.base.ComponentSpec; | ||
import org.gradle.platform.base.ComponentSpecContainer; | ||
import org.gradle.platform.base.BinaryContainer; | ||
import org.gradle.platform.base.ComponentType; | ||
import org.gradle.platform.base.TypeBuilder; | ||
import org.gradle.nativeplatform.tasks.ObjectFilesToBinary; | ||
import groovy.transform.CompileStatic; | ||
import groovy.transform.CompileDynamic | ||
import org.gradle.nativeplatform.BuildTypeContainer | ||
|
||
@CompileStatic | ||
class DisableBuildingGTest implements Plugin<Project> { | ||
@CompileStatic | ||
public void apply(Project project) { | ||
|
||
} | ||
|
||
@CompileStatic | ||
static class Rules extends RuleSource { | ||
@CompileDynamic | ||
private static void setBuildableFalseDynamically(NativeBinarySpec binary) { | ||
binary.buildable = false | ||
} | ||
|
||
@Validate | ||
@CompileStatic | ||
// TODO: Move this to tc plugin | ||
void disableCrossTests(BinaryContainer binaries, ExtensionContainer extContainer) { | ||
final ToolchainExtension ext = extContainer.getByType(ToolchainExtension.class); | ||
|
||
for (GoogleTestTestSuiteBinarySpec binary : binaries.withType(GoogleTestTestSuiteBinarySpec.class)) { | ||
if (ext.getCrossCompilers().findByName(binary.getTargetPlatform().getName()) != null) { | ||
setBuildableFalseDynamically(binary) | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.