annotate rlm/swank-all.pl @ 8:00524751595b

added vba-clojure to the list of projects
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Mar 2012 00:36:16 -0600
parents 913acb5a675b
children ea8bd9af7576
rev   line source
rlm@2 1 #!/usr/bin/perl
rlm@2 2
rlm@7 3 $replP = $ARGV[0];
rlm@7 4
rlm@2 5 @JVM_options =
rlm@2 6 ("-verbose:gc",
rlm@2 7 "-Xmn500M",
rlm@2 8 "-Xms3000M",
rlm@2 9 "-Xmx3000M",
rlm@2 10 "-server");
rlm@2 11
rlm@2 12 @classpath_projects =
rlm@2 13 ("/home/r/proj/rlm/src",
rlm@5 14 "/home/r/proj/dylan/src",
rlm@2 15 "/home/r/proj/curry/src",
rlm@2 16 "/home/r/java/lib/*",
rlm@2 17 "/home/r/proj/aurellem/src",
rlm@2 18 "/home/r/proj/pokemon-types/src",
rlm@2 19 "/home/r/proj/cortex/src",
rlm@2 20 "/home/r/proj/cortex/assets",
rlm@2 21 "/home/r/proj/abomination/src",
rlm@2 22 "/home/r/proj/abomination/classes",
rlm@5 23 "/home/r/proj/pony/src",
rlm@2 24 "/home/r/proj/coderloop/src",
rlm@2 25 "/home/r/proj/audio-send/java/dist/audio-send.jar",
rlm@2 26 "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",
rlm@8 27 "/home/r/proj/jmeCapture/dist/jmeCapture.jar",
rlm@8 28 "/home/r/proj/vba-clojure/java/dist/gb-bindings.jar",
rlm@8 29 "/home/r/proj/vba-clojure/clojure"
rlm@2 30 );
rlm@2 31
rlm@2 32 @classpath_libs =
rlm@2 33 ("/home/r/java/incanter/*",
rlm@2 34 "/home/r/java/enlive/src",
rlm@2 35 "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar",
rlm@5 36 "/home/r/proj/jMonkeyEngine3/dist/lib/eventbus.jar",
rlm@5 37 "/home/r/proj/jMonkeyEngine3/dist/lib/jinput.jar",
rlm@5 38 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",
rlm@2 39 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",
rlm@2 40 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",
rlm@5 41
rlm@5 42 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",
rlm@5 43 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",
rlm@2 44 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",
rlm@5 45 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-niftygui.jar",
rlm@5 46 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",
rlm@5 47 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-terrain.jar",
rlm@2 48 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",
rlm@2 49 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",
rlm@2 50 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",
rlm@5 51 "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",
rlm@5 52 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-default-controls.jar",
rlm@5 53 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-examples.jar",
rlm@5 54 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty.jar",
rlm@5 55 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-style-black.jar",
rlm@5 56 "/home/r/proj/jMonkeyEngine3/dist/lib/noise-0.0.1-SNAPSHOT.jar",
rlm@5 57 "/home/r/proj/jMonkeyEngine3/dist/lib/stack-alloc.jar",
rlm@5 58 "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",
rlm@5 59 "/home/r/proj/jMonkeyEngine3/dist/lib/xmlpull-xpp3.jar",
rlm@5 60
rlm@5 61 ### physics, choose jbullet or bullet
rlm@5 62
rlm@5 63 # jbullet -- has... special.... cone joints
rlm@5 64 # "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",
rlm@4 65 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",
rlm@5 66
rlm@5 67 # bullet
rlm@5 68 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet.jar",
rlm@5 69 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet-natives.jar",
rlm@2 70
rlm@2 71 );
rlm@2 72
rlm@2 73 @C_libs =
rlm@2 74 ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",
rlm@8 75 "/home/r/java/lp_solve-5.5-java/lib/ux64",
rlm@8 76 "/home/r/proj/vba-clojure/build/artifacts/lib");
rlm@2 77
rlm@2 78
rlm@2 79 $JVM_options = join " ", @JVM_options;
rlm@2 80 $classpath_projects = join ":", @classpath_projects;
rlm@2 81 $classpath_libs = join ":", @classpath_libs;
rlm@2 82 $C_libs = join ":", @C_libs;
rlm@2 83
rlm@7 84 $swank_launch ="clojure.main";
rlm@7 85 $swank_launch .= " -e ";
rlm@7 86 $swank_launch .= '"';
rlm@7 87 $swank_launch .= "(do (require 'swank.swank)";
rlm@7 88 $swank_launch .= "(require 'rlm.rlm-commands)";
rlm@7 89 $swank_launch .= "(swank.swank/start-repl 4005))";
rlm@7 90 $swank_launch .= '"';
rlm@2 91
rlm@7 92 $repl_launch = "clojure.main";
rlm@7 93
rlm@7 94 $clojure_command = $swank_launch;
rlm@7 95
rlm@7 96 if ($replP eq "--repl") {$clojure_command = $repl_launch;}
rlm@7 97
rlm@7 98 $command = "java $JVM_options -cp $classpath_projects:$classpath_libs" .
rlm@7 99 " -Djava.library.path=$C_libs $clojure_command";
rlm@2 100
rlm@2 101 print "$command\n";
rlm@2 102
rlm@2 103 system($command);
rlm@2 104