File: build.xml

package info (click to toggle)
ngs-sdk 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,236 kB
  • ctags: 4,917
  • sloc: cpp: 20,310; perl: 6,833; java: 5,054; python: 1,674; makefile: 674; xml: 233; sh: 70
file content (87 lines) | stat: -rw-r--r-- 2,899 bytes parent folder | download | duplicates (3)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<project>

    <!-- This file is currently for use on Windows; Linux/Mac builds are run via gmake -->
    <property environment="env"/>
    <property name="Platform"   value="x64" />
    <property name="Configuration"      value="Debug" />
    <property name="Output"     value="${basedir}\..\..\OUTDIR" />
    <property name="MSVS"           value="2013" />
    
    <condition property="PlatformToolset" value="v100" else="v120">
        <equals arg1="${MSVS}" arg2="2010"/>
    </condition>    
    <property name="vdb.dir"        value="${Output}\ncbi-vdb\win\${PlatformToolset}\${Platform}\${Configuration}\bin" />
    <property name="ngs.dir"        value="${Output}\ngs-sdk\win\${PlatformToolset}\${Platform}\${Configuration}\bin" />
	
    <!-- Set this to full path to Python if not in PATH already -->
    <property name="python.exe"     value="python" />
    
    <target name="install">
        <exec executable="${python.exe}" failonerror="true" >
            <arg value="setup.py" />
            <arg value="install" />
            <arg value="--user" />
        </exec>
    </target>
    
    <macrodef name="run-example">
        <attribute name="class" />
        <element name="args" optional="yes" />
        <sequential>
            <exec executable="${python.exe}" failonerror="true">
                <env key="PATH" value="${vdb.dir};${ngs.dir};${env.PATH}"/>            
                <env key="NGS_PY_DOWNLOAD_LIBRARY" value="0"/>
                <arg value="examples/@{class}.py"/>
                <args />
            </exec>
            <!-- TODO: use fc to diff output against expected -->
        </sequential>
    </macrodef>

    <target name="run" depends="install">
        <run-example class="FragTest">
            <args>
                <arg value="ERR225922" />
                <arg value="10000" />
                <arg value="2" />
            </args>
        </run-example>
    
        <run-example class="AlignTest">
            <args>
                <arg value="ERR225922"/>
                <arg value="1000"/>
                <arg value="2"/>
            </args>
        </run-example>
        
        <run-example class="AlignSliceTest">
            <args>
                <arg value="SRR1121656"/>
                <arg value="1"/>
                <arg value="1"/>
                <arg value="9999"/>
            </args>
        </run-example>
        
        <run-example class="PileupTest">
            <args>
                <arg value="SRR1121656"/>
                <arg value="1"/>
                <arg value="9999"/>
                <arg value="10003"/>
            </args>
        </run-example>
        
        <run-example class="RefTest">
            <args>
                <arg value="SRR1121656"/>
            </args>
        </run-example>
        
    </target>
    
    <target name="clean" />
    <target name="build" />

</project>