Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,21 @@ jobs:

- name: build tool
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
working-directory: test/cxx_standard
working-directory: test/tools
run: |
set -x
for xml in *.xml; do
haxelib run hxcpp $xml
haxelib run hxcpp $xml clean
# some tests include only xml or only hxml, so do not error if a type doesn't exist
shopt -s nullglob
for dir in */; do
pushd $dir
for xml in *.xml; do
haxelib run hxcpp $xml
haxelib run hxcpp $xml clean
done
for hxml in *.hxml; do
haxe $hxml
done
popd
done

cppia:
Expand Down
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ hxcpp.n

.vscode

test/cxx_standard/main
test/cxx_standard/main.hash
test/cxx_standard/main.exe
test/cxx_standard/main.exe.hash
test/tools/cxx_standard/main*

# Created by https://www.toptal.com/developers/gitignore/api/visualstudio
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudio
Expand Down
1 change: 1 addition & 0 deletions src/hx/libs/mysql/Build.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<xml>

<files id="hxcpp_mysql" dir="${this_dir}" >
<options name="Options.txt" />
<depend files="hxcpp-depends"/>
<depend name="${this_dir}/Build.xml" dateOnly="true" />
<depend name="${this_dir}/sha1.h" />
Expand Down
1 change: 1 addition & 0 deletions src/hx/libs/regexp/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
</files>

<files id="hxcpp_regexp">
<options name="Options.txt" />
<depend files="hxcpp-depends"/>
<depend name="${this_dir}/Build.xml" dateOnly="true" />
<cache value="true" asLibrary="true" />
Expand Down
1 change: 1 addition & 0 deletions src/hx/libs/sqlite/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<set name="SQLITE_DIR" value="${HXCPP}/project/thirdparty/sqlite-3.51.2"/>

<files id="hxcpp_sqlite" dir="${this_dir}" >
<options name="Options.txt" />
<depend files="hxcpp-depends"/>
<depend name="${this_dir}/Build.xml" dateOnly="true" />
<cache value="true" asLibrary="true" />
Expand Down
1 change: 1 addition & 0 deletions src/hx/libs/ssl/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<include name="${HXCPP}/project/thirdparty/mbedtls-files.xml" />

<files id="hxcpp_ssl" >
<options name="Options.txt" />
<depend files="hxcpp-depends"/>
<depend name="${this_dir}/Build.xml" dateOnly="true" />
<cache value="true" asLibrary="true" />
Expand Down
1 change: 1 addition & 0 deletions src/hx/libs/std/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<pragma once="true" />

<files id="hxcpp_std" dir="${this_dir}" >
<options name="Options.txt" />
<depend files="hxcpp-depends"/>
<depend name="${this_dir}/Build.xml" dateOnly="true" />
<cache value="1" asLibrary="true" />
Expand Down
4 changes: 2 additions & 2 deletions src/hx/libs/zlib/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

<pragma once="true" />

<import name="${this_dir}/../../zip/Build.xml"/>
<include name="${this_dir}/../../zip/Build.xml"/>

</xml>
</xml>
5 changes: 3 additions & 2 deletions src/hx/zip/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
<set name="HXCPP_ZIP_XML" value="${this_dir}/zlib/Build.xml"/>
</section>

<import name="${HXCPP_ZIP_XML}"/>
<include name="${HXCPP_ZIP_XML}"/>

<files id="hxcpp_zip_api">
<options name="Options.txt" />
<cache value="true" asLibrary="true" />

<depend files="hxcpp-depends"/>
Expand All @@ -19,4 +20,4 @@
<target id="haxe">
<files id="hxcpp_zip_api"/>
</target>
</xml>
</xml>
5 changes: 3 additions & 2 deletions src/hx/zip/zlib/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
</files>

<files id="hxcpp_zlib_impl" >
<options name="Options.txt" />
<depend files="hxcpp-depends"/>
<depend name="${this_dir}/Build.xml" dateOnly="true" />
<depend name="${this_dir}/ZLibCompress.hpp"/>
Expand All @@ -42,8 +43,8 @@
<compilerflag value="-I${ZLIB_DIR}"/>
<compilerflag value="-I${this_dir}"/>

<file name="ZLibUncompress.cpp"/>
<file name="ZLibCompress.cpp"/>
<file name="${this_dir}/ZLibUncompress.cpp" />
<file name="${this_dir}/ZLibCompress.cpp" />
</files>

<target id="haxe">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions test/tools/rebuild-no-smart-strings/Main.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function main() {
~/hello/.match("world");
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-m Main
--cpp bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-m Main
--cpp bin
-D disable-unicode-strings
Loading