|
40 | 40 | @SuppressWarnings("unused")
|
41 | 41 | public class TestLauncher {
|
42 | 42 | public static void main(String[] args) {
|
43 |
| -// Launcher.buildAll("555ExampleProject.deep", "BootFromRam", false); |
44 |
| -// Launcher.buildAll("555ExampleProject.deep", "BootFromFlash", false); |
45 |
| -// Launcher.buildAll("555junitTarget.deep", "BootFromRam", false); |
46 |
| -// Launcher.buildAll("5200tinyExampleProject.deep", "BootFromRam", false); |
47 |
| -// Launcher.buildAll("5200ioExampleProject.deep", "BootFromRam", false); |
48 |
| -// Launcher.buildAll("5200junitTarget.deep", "BootFromRam", false); |
49 |
| -// Launcher.buildAll("iMX6ExampleProject.deep", "BootFromRam", false); |
50 |
| -// Launcher.buildAll("zyboExampleProject.deep", "BootFromRam", false); |
51 |
| - Launcher.buildAll("microzedExampleProject.deep", "BootFromRam", false); |
52 |
| -// Launcher.buildAll("microzedjunitTarget.deep", "BootFromRam", false); |
| 43 | + CommandLineParser p = new CommandLineParser(); |
| 44 | + p.parse(args); |
| 45 | + if (!p.checkRequiredOptions("deepfile", "targetconfig")) return; |
| 46 | + String deepFile = p.getFirstParameterFor("deepfile"); |
| 47 | + String targetConfig = p.getFirstParameterFor("targetconfig"); |
| 48 | + Launcher.buildAll(deepFile, targetConfig, false); |
| 49 | + |
53 | 50 | if (ErrorReporter.reporter.nofErrors == 0) {
|
54 | 51 | Programmer programmer = Configuration.getProgrammer();
|
55 | 52 | if (programmer != null) {
|
@@ -82,8 +79,13 @@ public static void main(String[] args) {
|
82 | 79 | } else
|
83 | 80 | System.out.println("no programmer defined");
|
84 | 81 | }
|
| 82 | + |
| 83 | + if (p.isPresent("interface-files-path")) { |
| 84 | + System.out.println("generating interface files"); |
| 85 | + String targetPath = p.getFirstParameterFor("interface-files-path"); |
| 86 | + Launcher.createInterfaceFiles(targetPath); |
| 87 | + } |
85 | 88 |
|
86 |
| -// Launcher.createInterfaceFiles("M:/EUser/JCC/org.deepjava.trglib"); |
87 | 89 |
|
88 | 90 | /* DEBUG OUTPRINTS */
|
89 | 91 | // System.out.println("%%%%%%%%%%%%%%% Class List %%%%%%%%%%%%%%%"); Linker32.printClassList(false, false, false, true);
|
|
0 commit comments