mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
CMake Changes
This is the changes made by Patrick Plenefisch converting the native code to use CMake and the CMake Maven Plugin, as opposed to the native Maven plugin. This is to allow for compatibility with newer versions of the GCC toolchain. All the cpp sources were moved from maven style directories to cpp style directories for CMake. Change-Id: I67f5e3608948f37c83b0990d232105a3784f8593
This commit is contained in:
59
networktables/cpp/lib/Desktop/src/test/ant/build.xml
Normal file
59
networktables/cpp/lib/Desktop/src/test/ant/build.xml
Normal file
@@ -0,0 +1,59 @@
|
||||
<project name="Network Tables 2.0 C++ builder" default="run-tests">
|
||||
<import file="test.xml"/>
|
||||
|
||||
<target name="build-server">
|
||||
<mkdir dir="build/server/obj"/>
|
||||
<!-- Creates an executable at the root of build/tests -->
|
||||
<cc outtype="executable" outfile="build/server/server" objdir="build/server/obj" debug="true">
|
||||
<compiler name="g++"/>
|
||||
|
||||
<compilerarg value="-g" location="start"/>
|
||||
|
||||
<!-- Include libs -->
|
||||
<libset libs="stdc++"/>
|
||||
<libset libs="pthread"/>
|
||||
<libset libs="wsock32" if="WINDOWS"/>
|
||||
|
||||
<!-- Include common sources and includes -->
|
||||
<fileset dir="${nt.src.common}" includes="**/*.cpp"/>
|
||||
<fileset dir="${nt.src.desktop}" includes="**/*.cpp"/>
|
||||
<includepath path="${nt.include}"/>
|
||||
|
||||
<!-- Include tests -->
|
||||
<fileset dir="${src}/test-server" includes="**/*.cpp"/>
|
||||
|
||||
</cc>
|
||||
</target>
|
||||
<target name="run-server" depends="build-server">
|
||||
<exec executable="build/server/server">
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="build-client">
|
||||
<mkdir dir="build/client/obj"/>
|
||||
<!-- Creates an executable at the root of build/tests -->
|
||||
<cc outtype="executable" outfile="build/client/client" objdir="build/client/obj" debug="true">
|
||||
<compiler name="g++"/>
|
||||
|
||||
<compilerarg value="-g" location="start"/>
|
||||
|
||||
<!-- Include libs -->
|
||||
<libset libs="stdc++"/>
|
||||
<libset libs="pthread"/>
|
||||
<libset libs="wsock32" if="WINDOWS"/>
|
||||
|
||||
<!-- Include common sources and includes -->
|
||||
<fileset dir="${nt.src.common}" includes="**/*.cpp"/>
|
||||
<fileset dir="${nt.src.desktop}" includes="**/*.cpp"/>
|
||||
<includepath path="${nt.include}"/>
|
||||
|
||||
<!-- Include tests -->
|
||||
<fileset dir="${src}/test-client" includes="**/*.cpp"/>
|
||||
|
||||
</cc>
|
||||
</target>
|
||||
<target name="run-client" depends="build-client">
|
||||
<exec executable="build/client/client">
|
||||
</exec>
|
||||
</target>
|
||||
</project>
|
||||
Reference in New Issue
Block a user