-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.main.xml
68 lines (58 loc) · 2.94 KB
/
build.main.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="UTF-8"?>
<project name="sugar-lang" default="all">
<!-- Key input modules -->
<property name="sdfmodule" value="sugar-lang"/>
<property name="metasdfmodule" value="Stratego-sugar-lang"/>
<property name="esvmodule" value="sugar-lang"/>
<property name="strmodule" value="sugar_lang"/>
<property name="ppmodule" value="sugar-lang-pp"/>
<property name="sigmodule" value="sugar-lang-sig"/>
<!-- Project directories -->
<property name="trans" location="trans"/>
<property name="src-gen" location="editor/java"/>
<property name="src-dirs" location="editor/java/org/sugarj/editor/strategies"/>
<property name="include" location="include"/>
<property name="lib" location="lib"/>
<property name="build" location="target/classes"/>
<property name="sdf-src-gen" location="src-gen"/>
<property name="pp" location="${sdf-src-gen}/pp"/>
<property name="signatures" location="${sdf-src-gen}/signatures"/>
<property name="lib-gen" location="${include}"/>
<property name="syntax" location="${sdf-src-gen}/syntax"/>
<property name="syntax.rel" location="${syntax}" relative="yes"/>
<property name="trans.rel" location="trans" relative="yes"/>
<property name="include.rel" location="${include}" relative="yes"/>
<property name="lib-gen.rel" location="${lib-gen}" relative="yes"/>
<!-- Imports -->
<property name="build.sdf.imports" value=""/>
<property name="build.stratego.args" value="
--library
-I "${trans}"
-I "${basedir}"
-la stratego-lib -la stratego-sglr -la stratego-gpp -la stratego-xtc -la stratego-aterm -la stratego-parallel"/>
<!-- Optional: external .def and .jar locations
<property name="externaldef" location="syntax/${sdfmodule}.def"/>
<property name="externaljar" value="../lib.jar"/>
<property name="externaljarflags" value="-la org.lib"/>
-->
<!-- Environment configuration for command-line builds -->
<condition property="build.strategoxt.sdf" value="${eclipse.spoofaximp.nativeprefix}" else="">
<isset property="eclipse.spoofaximp.nativeprefix"/>
</condition>
<echo message="SDF Path:${build.strategoxt.sdf}"/>
<property name="nativepath" value="${build.strategoxt.sdf}/"/>
<property location="${user.home}/.nix-profile/bin" name="build.strategoxt.sdf"/>
<!-- used for building inside of Eclipse -->
<import file="build.generated.xml"/>
<!-- Main target -->
<target name="all" depends="spoofaximp.default.ctree"/>
<target name="shell-all" if="compile.classpath">
<property name="eclipse.spoofaximp.jars" value="utils" />
<mkdir dir="${eclipse.spoofaximp.jars}" />
<copy todir="${eclipse.spoofaximp.jars}" flatten="true">
<path><pathelement path="${compile.classpath}"/></path>
</copy>
<antcall target="all"/>
<delete dir="${eclipse.spoofaximp.jars}" />
</target>
</project>