diff options
Diffstat (limited to 'src/test-native/bug1398/make-bug1398.sh')
-rwxr-xr-x | src/test-native/bug1398/make-bug1398.sh | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/test-native/bug1398/make-bug1398.sh b/src/test-native/bug1398/make-bug1398.sh index cc6ec6800..d410f7066 100755 --- a/src/test-native/bug1398/make-bug1398.sh +++ b/src/test-native/bug1398/make-bug1398.sh @@ -2,5 +2,25 @@ set -x -gcc -x objective-c -framework Cocoa -o Bug1398macOSContextOpsOnMainThread Bug1398macOSContextOpsOnMainThread.c \ - && javac -source 1.8 -target 1.8 -classpath ../../../gluegen/build/gluegen-rt.jar:../../build/jar/jogl-all.jar Bug1398macOSContextOpsOnMainThread.java +USE_232=1 +ok=0 + +if [ $USE_232 -eq 0 ] ; then + xcrun clang -x objective-c -framework Cocoa \ + -DCLASSPATH="\".:/Users/jogamp/projects/JogAmp/gluegen/build/gluegen-rt.jar:/Users/jogamp/projects/JogAmp/jogl/build/jar/jogl-all.jar\"" \ + -DLIBPATH="\"/Users/jogamp/projects/JogAmp/gluegen/build/obj:/Users/jogamp/projects/JogAmp/jogl/build/lib\"" \ + -o Bug1398macOSContextOpsOnMainThread Bug1398macOSContextOpsOnMainThread.c \ + && ok=1 +else + xcrun clang -x objective-c -framework Cocoa \ + -DCLASSPATH="\".:/Users/jogamp/projects/JogAmp/builds/v2.3.2/jogamp-all-platforms/jar/gluegen-rt.jar:/Users/jogamp/projects/JogAmp/builds/v2.3.2/jogamp-all-platforms/jar/jogl-all.jar\"" \ + -DLIBPATH="\"/Users/jogamp/projects/JogAmp/builds/v2.3.2/jogamp-all-platforms/lib/macosx-universal\"" \ + -o Bug1398macOSContextOpsOnMainThread Bug1398macOSContextOpsOnMainThread.c \ + && ok=1 +fi + +if [ $ok -eq 1 ] ; then + javac -source 1.8 -target 1.8 -classpath ../../../../gluegen/build/gluegen-rt.jar:../../../build/jar/jogl-all.jar RedSquareES2.java Bug1398macOSContextOpsOnMainThread.java +fi + +# ./Bug1398macOSContextOpsOnMainThread /Users/jogamp/projects/JogAmp/gluegen/build/obj:/Users/jogamp/projects/JogAmp/jogl/build/lib/lib |