Merge pull request #24 from ville-k/master
OSX 10.8 - fix building java bindings
This commit is contained in:
commit
907fe7a87f
|
@ -90,8 +90,12 @@ public class ArchNameTask extends Task {
|
||||||
if (ArchLoader.IS_DARWIN) {
|
if (ArchLoader.IS_DARWIN) {
|
||||||
//default to most recent SDK
|
//default to most recent SDK
|
||||||
//MacOSX10.3.9.sdk, MacOSX10.4u.sdk, MacOSX10.5.sdk,etc.
|
//MacOSX10.3.9.sdk, MacOSX10.4u.sdk, MacOSX10.5.sdk,etc.
|
||||||
|
String sdkRoot = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs";
|
||||||
|
if (new File(sdkRoot).exists() == false) {
|
||||||
|
sdkRoot = "/Developer/SDKs";
|
||||||
|
}
|
||||||
File[] sdks =
|
File[] sdks =
|
||||||
new File("/Developer/SDKs").listFiles(new FileFilter() {
|
new File(sdkRoot).listFiles(new FileFilter() {
|
||||||
public boolean accept(File file) {
|
public boolean accept(File file) {
|
||||||
String name = file.getName();
|
String name = file.getName();
|
||||||
return
|
return
|
||||||
|
@ -99,6 +103,7 @@ public class ArchNameTask extends Task {
|
||||||
name.endsWith(".sdk");
|
name.endsWith(".sdk");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (sdks != null) {
|
if (sdks != null) {
|
||||||
Arrays.sort(sdks);
|
Arrays.sort(sdks);
|
||||||
String prop = "uni.sdk";
|
String prop = "uni.sdk";
|
||||||
|
|
Loading…
Reference in New Issue