-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move standard libraries into own build files so then can be included …
…directly in a haxe build
- Loading branch information
Showing
10 changed files
with
303 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
<xml> | ||
<section unless="haxe_target_included"> | ||
<set name="haxe_target_included" value="1" /> | ||
<set name="build_common_included" value="1" /> | ||
<include name="toolchain/haxe-target.xml" /> | ||
</section> | ||
<pragma once="true" /> | ||
<include name="toolchain/haxe-target.xml" /> | ||
</xml> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<xml> | ||
|
||
<include name="${HXCPP}/build-tool/BuildCommon.xml"/> | ||
|
||
|
||
|
||
<files id="mysql" > | ||
<depend name="${HXCPP}/include/hx/Macros.h"/> | ||
<depend name="${HXCPP}/include/hx/CFFI.h"/> | ||
|
||
<depend name="${this_dir}/Build.xml" dateOnly="true" /> | ||
<compilerflag value="-DSTATIC_LINK" unless="static_link||dynamic_link" /> | ||
|
||
|
||
<file name="mysql.cpp"/> | ||
<file name="my_proto/my_api.cpp"/> | ||
<file name="my_proto/my_proto.cpp"/> | ||
<file name="../common/socket.cpp"/> | ||
<file name="../common/sha1.cpp"/> | ||
</files> | ||
|
||
<target id="haxe"> | ||
<files id="mysql"/> | ||
<lib name="ws2_32.lib" if="windows" unless="static_link" /> | ||
</target> | ||
|
||
<target id="mysql" output="${LIBPREFIX}mysql5${LIB_DBG}${LIBEXTRA}" tool="linker" toolid="${STD_MODULE_LINK}"> | ||
<files id="mysql"/> | ||
<lib name="ws2_32.lib" if="windows" unless="static_link" /> | ||
<outdir name="../../../${DESTDIR}/${BINDIR}"/> | ||
</target> | ||
|
||
|
||
|
||
|
||
</xml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<xml> | ||
|
||
<include name="${HXCPP}/build-tool/BuildCommon.xml"/> | ||
|
||
|
||
<set name="PCRE_DIR" value="../../thirdparty/pcre-7.8" /> | ||
|
||
<files id="regexp" > | ||
<depend name="${HXCPP}/include/hx/Macros.h"/> | ||
<depend name="${HXCPP}/include/hx/CFFI.h"/> | ||
<cache value="true" /> | ||
<depend name="${this_dir}/Build.xml" dateOnly="true" /> | ||
<compilerflag value="-DSTATIC_LINK" unless="static_link||dynamic_link" /> | ||
|
||
<compilerflag value="-DPCRE_STATIC"/> | ||
<compilerflag value="-DSUPPORT_UTF8"/> | ||
<compilerflag value="-I${PCRE_DIR}"/> | ||
|
||
<file name="RegExp.cpp"/> | ||
|
||
<file name="${PCRE_DIR}/pcre_get.c"/> | ||
<file name="${PCRE_DIR}/pcre_study.c"/> | ||
<file name="${PCRE_DIR}/pcre_chartables.c"/> | ||
<file name="${PCRE_DIR}/pcre_globals.c"/> | ||
<file name="${PCRE_DIR}/pcre_tables.c"/> | ||
<file name="${PCRE_DIR}/pcre_compile.c"/> | ||
<file name="${PCRE_DIR}/pcre_info.c"/> | ||
<file name="${PCRE_DIR}/pcre_try_flipped.c"/> | ||
<file name="${PCRE_DIR}/pcre_config.c"/> | ||
<file name="${PCRE_DIR}/pcre_maketables.c"/> | ||
<file name="${PCRE_DIR}/pcre_ucd.c"/> | ||
<file name="${PCRE_DIR}/pcre_dfa_exec.c"/> | ||
<file name="${PCRE_DIR}/pcre_newline.c"/> | ||
<file name="${PCRE_DIR}/pcre_valid_utf8.c"/> | ||
<file name="${PCRE_DIR}/pcre_exec.c"/> | ||
<file name="${PCRE_DIR}/pcre_ord2utf8.c"/> | ||
<file name="${PCRE_DIR}/pcre_version.c"/> | ||
<file name="${PCRE_DIR}/pcre_fullinfo.c"/> | ||
<file name="${PCRE_DIR}/pcre_refcount.c"/> | ||
<file name="${PCRE_DIR}/pcre_xclass.c"/> | ||
|
||
</files> | ||
|
||
|
||
<target id="haxe"> | ||
<files id="regexp" /> | ||
</target> | ||
|
||
|
||
|
||
<target id="regexp" output="${LIBPREFIX}regexp${LIB_DBG}${LIBEXTRA}" tool="linker" toolid="${STD_MODULE_LINK}"> | ||
<files id="regexp"/> | ||
<outdir name="../../../${DESTDIR}/${BINDIR}"/> | ||
</target> | ||
|
||
</xml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<xml> | ||
|
||
<include name="${HXCPP}/build-tool/BuildCommon.xml"/> | ||
|
||
|
||
<files id="sqlite" > | ||
<depend name="${HXCPP}/include/hx/Macros.h"/> | ||
<depend name="${HXCPP}/include/hx/CFFI.h"/> | ||
<depend name="${this_dir}/Build.xml" dateOnly="true" /> | ||
<compilerflag value="-DSTATIC_LINK" unless="static_link||dynamic_link" /> | ||
|
||
<file name="sqlite3.c"/> | ||
<file name="sqlite.cpp"/> | ||
</files> | ||
|
||
|
||
|
||
<target id="haxe"> | ||
<files id="sqlite"/> | ||
<lib name="-lpthread" if="linux" unless="static_link" /> | ||
</target> | ||
|
||
<target id="sqlite" output="${LIBPREFIX}sqlite${LIB_DBG}${LIBEXTRA}" tool="linker" toolid="${STD_MODULE_LINK}"> | ||
<files id="sqlite"/> | ||
<lib name="-lpthread" if="linux" unless="static_link" /> | ||
<outdir name="../../../${DESTDIR}/${BINDIR}"/> | ||
</target> | ||
|
||
|
||
|
||
</xml> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<xml> | ||
|
||
<include name="${HXCPP}/build-tool/BuildCommon.xml"/> | ||
|
||
<files id="std" > | ||
<depend name="${HXCPP}/include/hx/Macros.h"/> | ||
<depend name="${HXCPP}/include/hx/CFFI.h"/> | ||
<depend name="${this_dir}/Build.xml" dateOnly="true" /> | ||
<compilerflag value="-DSTATIC_LINK" unless="static_link||dynamic_link" /> | ||
|
||
<cache value="1"/> | ||
|
||
<file name="Sys.cpp"/> | ||
<file name="Xml.cpp"/> | ||
<file name="Process.cpp"/> | ||
<file name="Random.cpp"/> | ||
<file name="Socket.cpp" /> | ||
<file name="String.cpp"/> | ||
<file name="File.cpp"/> | ||
<file name="Init.cpp"/> | ||
<file name="Misc.cpp"/> | ||
<file name="Interface.cpp" if="dynamic_link" /> | ||
|
||
</files> | ||
|
||
|
||
<target id="haxe"> | ||
<files id="std"/> | ||
<lib name="ws2_32.lib" if="windows" unless="static_link" /> | ||
<lib name="-lsocket" if="blackberry" unless="static_link" /> | ||
</target> | ||
|
||
|
||
<target id="std" output="${LIBPREFIX}std${LIB_DBG}${LIBEXTRA}" tool="linker" toolid="${STD_MODULE_LINK}"> | ||
<files id="std"/> | ||
<lib name="ws2_32.lib" if="windows" unless="static_link" /> | ||
<lib name="-lsocket" if="blackberry" unless="static_link" /> | ||
<outdir name="../../../${DESTDIR}/${BINDIR}"/> | ||
</target> | ||
|
||
</xml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<xml> | ||
|
||
<include name="${HXCPP}/build-tool/BuildCommon.xml"/> | ||
|
||
<set name="ZLIB_DIR" value="${this_dir}/../../thirdparty/zlib-1.2.3"/> | ||
|
||
<files id="hxcpp-zlib" > | ||
<depend name="${HXCPP}/include/hx/Macros.h"/> | ||
<depend name="${HXCPP}/include/hx/CFFI.h"/> | ||
<depend name="${this_dir}/Build.xml" dateOnly="true" /> | ||
<compilerflag value="-DSTATIC_LINK" unless="static_link||dynamic_link" /> | ||
|
||
<compilerflag value="-I${ZLIB_DIR}"/> | ||
|
||
<file name="ZLib.cpp"/> | ||
|
||
<file name="${ZLIB_DIR}/adler32.c"/> | ||
<file name="${ZLIB_DIR}/crc32.c"/> | ||
<file name="${ZLIB_DIR}/infback.c"/> | ||
<file name="${ZLIB_DIR}/inflate.c"/> | ||
<file name="${ZLIB_DIR}/uncompr.c"/> | ||
<file name="${ZLIB_DIR}/compress.c"/> | ||
<file name="${ZLIB_DIR}/deflate.c"/> | ||
<file name="${ZLIB_DIR}/gzio.c"/> | ||
<file name="${ZLIB_DIR}/inffast.c"/> | ||
<file name="${ZLIB_DIR}/inftrees.c"/> | ||
<file name="${ZLIB_DIR}/trees.c"/> | ||
<file name="${ZLIB_DIR}/zutil.c"/> | ||
</files> | ||
|
||
<target id="haxe"> | ||
<files id="hxcpp-zlib" /> | ||
</target> | ||
|
||
|
||
<target id="zlib" output="${LIBPREFIX}zlib${LIB_DBG}${LIBEXTRA}" tool="linker" toolid="${STD_MODULE_LINK}"> | ||
<files id="hxcpp-zlib"/> | ||
<outdir name="../../../${DESTDIR}/${BINDIR}"/> | ||
</target> | ||
|
||
</xml> |
Oops, something went wrong.