mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Set rpath on all unix platforms to $ORIGIN (#2299)
* Set rpath on all unix platforms to $ORIGIN Will make it possible to extract JNI libraries easier
This commit is contained in:
@@ -9,9 +9,9 @@ nativeUtils {
|
||||
configureDependencies {
|
||||
wpiVersion = "-1"
|
||||
niLibVersion = "2020.10.1"
|
||||
opencvVersion = "3.4.7-2"
|
||||
opencvVersion = "3.4.7-3"
|
||||
googleTestVersion = "1.9.0-4-437e100-1"
|
||||
imguiVersion = "1.72b-3"
|
||||
imguiVersion = "1.72b-4"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,8 +21,12 @@ nativeUtils.wpi.addWarningsAsErrors()
|
||||
|
||||
nativeUtils.setSinglePrintPerPlatform()
|
||||
|
||||
nativeUtils.platformConfigs.named("osxx86-64").configure {
|
||||
it.linker.args << "-headerpad_max_install_names"
|
||||
nativeUtils.platformConfigs.each {
|
||||
if (it.name.contains('windows')) return
|
||||
it.linker.args << '-Wl,-rpath,\'$ORIGIN\''
|
||||
if (it.name == 'osxx86-64') {
|
||||
it.linker.args << "-headerpad_max_install_names"
|
||||
}
|
||||
}
|
||||
|
||||
model {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
def opencvVersion = '3.4.7-2'
|
||||
def opencvVersion = '3.4.7-3'
|
||||
|
||||
if (project.hasProperty('useCpp') && project.useCpp) {
|
||||
model {
|
||||
|
||||
Reference in New Issue
Block a user