-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-5499-extras.xml
50 lines (44 loc) · 1.82 KB
/
build-5499-extras.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="5499-extras" default="all">
<target name="CowGyroJNI-generateHeader">
<echo>Generating CowGyroJNI header...</echo>
<javah outputFile="src/com/team1538/lib/c/CowGyroJNI.h" classpath="build">
<class name="com.team1538.lib.CowGyro"/>
</javah>
<javah outputFile="src/com/team1538/lib/c/CowAlphaNumJNI.h" classpath="build">
<class name="com.team1538.lib.CowAlphaNum"/>
</javah>
</target>
<target name="CowMXP_JNI-build">
<echo>Building CowMXP_JNI shared object for RoboRIO...</echo>
<pathconvert pathsep=" " property="wpilib.cpp.libs">
<fileset dir="${user.home}/wpilib/cpp/current/lib" id="libs">
<include name="libwpi_2015.so"/>
</fileset>
</pathconvert>
<exec executable="/usr/local/bin/arm-frc-linux-gnueabi-g++">
<arg value="-I${user.home}/wpilib/cpp/current/include"/>
<arg value="-I${java.home}/../include"/>
<arg value="-I${java.home}/../include/darwin"/>
<arg value="-std=c++14"/>
<arg value="-fPIC"/>
<arg value="-shared"/>
<arg value="-Os"/>
<arg value="-fdata-sections"/>
<arg value="-ffunction-sections"/>
<arg value="src/com/team1538/lib/c/CowGyro.cpp"/>
<arg value="src/com/team1538/lib/c/CowGyroJNI.cpp"/>
<arg value="src/com/team1538/lib/c/CowAlphaNum.cpp"/>
<arg value="src/com/team1538/lib/c/CowAlphaNumJNI.cpp"/>
<arg value="-oCowMXP_JNI.so"/>
<arg value="-Wl,--whole-archive"/>
<arg value="-Wl,--allow-multiple-definition"/>
<arg value="-Wl,--gc-sections"/>
<arg value="-L${user.home}/wpilib/cpp/current/lib"/>
<arg line="${wpilib.cpp.libs}"/>
<arg value="-Wl,--no-whole-archive"/>
</exec>
</target>
<target name="CowGyroJNI" depends="CowGyroJNI-generateHeader,CowMXP_JNI-build"/>
<target name="all" depends="CowGyroJNI"/>
</project>