mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Create dummy wpiutil library. (#84)
This will allow dependencies such as wpilibc to update to use wpiutil without breaking "normal" ntcore static library use in the meantime. This commit also restructures the gradle files by creating a new (placeholder) wpiutil project, and moving the ntcore project into a separate gradle file. Added toolchains/native.gradle (refactored from ntcore). Also fixes ntcore skipJava on Windows by providing an alternate .def file for this case.
This commit is contained in:
@@ -11,12 +11,12 @@ configurations.errorprone {
|
||||
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.0.9'
|
||||
}
|
||||
|
||||
def generatedJNIHeaderLoc = '../build/include'
|
||||
def generatedJNIHeaderLoc = "${buildDir}/include"
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDirs = ['../java/src']
|
||||
srcDirs = ["${rootDir}/java/src"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -111,8 +111,8 @@ ext.setupJniIncludes = { binaries ->
|
||||
binaries.all {
|
||||
tasks.withType(CppCompile) {
|
||||
if (buildPlatform == 'arm') {
|
||||
cppCompiler.args '-I', file('../java/arm-linux').absolutePath
|
||||
cppCompiler.args '-I', file('../java/arm-linux/linux').absolutePath
|
||||
cppCompiler.args '-I', file("${rootDir}/java/arm-linux").absolutePath
|
||||
cppCompiler.args '-I', file("${rootDir}/java/arm-linux/linux").absolutePath
|
||||
} else {
|
||||
def jdkLocation = org.gradle.internal.jvm.Jvm.current().javaHome
|
||||
platformSpecificIncludeFlag("${jdkLocation}/include", cppCompiler)
|
||||
|
||||
Reference in New Issue
Block a user