File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ :: /*#! 2> /dev/null #
2+ @ 2 > /dev/null # 2 > nul & echo off & goto BOF #
3+ if [ -z " ${SIREUM_HOME}" ]; then #
4+ echo " Please set SIREUM_HOME env var" #
5+ exit -1 #
6+ fi #
7+ exec " ${SIREUM_HOME}/bin/sireum" slang run " $0" " $@" #
8+ :BOF
9+ setlocal
10+ if not defined SIREUM_HOME (
11+ echo Please set SIREUM_HOME env var
12+ exit /B -1
13+ )
14+ " %SIREUM_HOME% \bin\sireum.bat" slang run %0 %*
15+ exit /B %errorlevel%
16+ :: !#*/
17+ // #Sireum
18+
19+ import org.sireum._
20+ import org.sireum.project.{Module, Project, Target}
21+
22+ val home = Os.slashDir.up.canon
23+
24+ val example = Module(
25+ id = " example" ,
26+ basePath = home.string,
27+ subPathOpt = None(),
28+ deps = ISZ(),
29+ targets = ISZ(Target.Jvm),
30+ ivyDeps = ISZ(" org.sireum.kekinian::library:" ),
31+ sources = ISZ(Os.path(" src" ).string),
32+ resources = ISZ(),
33+ testSources = ISZ(),
34+ testResources = ISZ(),
35+ publishInfoOpt = None()
36+ )
37+
38+ val prj = Project.empty + example
39+
40+ println(project.JSON.fromProject(prj, T))
41+ k
You can’t perform that action at this time.
0 commit comments