-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
33 lines (26 loc) · 871 Bytes
/
build.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
<?xml version = "1.0" encoding = "UTF-8"?>
<project name = "project_sdl" default = "run">
<taskdef resource="cpptasks.tasks"/>
<target name = "setup">
<mkdir dir = "./bin/"/>
<mkdir dir = "./src/"/>
</target>
<target name = "clean">
<delete dir = "bin/"/>
</target>
<target name = "compile" depends = "setup">
<cc outtype="executable" outfile="./bin/main" name = "g++">
<!--<compilerarg value ="-Wall" />-->
<compilerarg value = "-std=c++11"/>
<libset libs="SDL2"/>
<libset libs="SDL2_image"/>
<libset libs="z"/>
<libset libs="stdc++"/> <!-- to import standard lybrary of c++ -->
<libset libs="m"/> <!-- to import math -->
<fileset dir="./src/" includes="*.cpp"/>
</cc>
</target>
<target name = "run" depends = "compile">
<exec executable = "./bin/main"/>
</target>
</project>