-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix MSVC compiler flags * Build batches for sample on windows. * Fix test build scripts for windows. * Fix buildsample script * Fix test launcher for windows * Minor fix
- Loading branch information
Showing
6 changed files
with
43 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
haxe -D ammer.hl.hlInclude=%HLPATH%/include -D ammer.hl.hlLibrary=%HLPATH% build-hl.hxml | ||
copy native\adder.dll bin\hl\ |
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,2 @@ | ||
cd native | ||
nmake Makefile.win |
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,4 @@ | ||
copy native/adder.dll bin/hl | ||
copy dummy.txt bin\hl | ||
cd bin/hl | ||
hl sample.hl |
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
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,28 +1,41 @@ | ||
@echo off | ||
|
||
|
||
echo "building native library ..." | ||
cd native | ||
nmake /f Makefile.win | ||
cd .. | ||
|
||
|
||
echo "testing hl ..." | ||
haxe build-hl.hxml | ||
if errorrlevel 0 ( | ||
cd bin/hl | ||
cp ../../native/native.dll . | ||
hl test.hl | ||
cd ../.. | ||
) | ||
haxe -D ammer.hl.hlInclude=%HLPATH%/include -D ammer.hl.hlLibrary=%HLPATH% build-hl.hxml | ||
IF %ERRORLEVEL% NEQ 0 ( echo "build of hl tests failed" && goto :cpp) | ||
pushd bin\hl | ||
copy ..\..\native\native.dll . | ||
hl test.hl | ||
popd | ||
IF %ERRORLEVEL% NEQ 0 ( echo "hl tests failed" && goto :cpp) | ||
|
||
|
||
:cpp | ||
|
||
echo "testing cpp ..." | ||
rd /q /s bin\cpp | ||
|
||
haxe build-cpp.hxml | ||
if errorrlevel 0 ( | ||
cd bin/cpp | ||
cp ../../native/native.dll . | ||
./Main | ||
cd ../.. | ||
) | ||
IF %ERRORLEVEL% NEQ 0 ( echo "build of cpp tests failed" && goto :eval) | ||
|
||
cd bin\cpp | ||
copy ..\..\native\native.dll . | ||
Main.exe | ||
cd ../.. | ||
IF %ERRORLEVEL% NEQ 0 ( echo "cpp tests failed" && goto :eval) | ||
|
||
|
||
:eval | ||
|
||
|
||
echo "testing eval ..." | ||
cp native/native.dll . | ||
haxe -D ammer.eval.hxDir=%TEST_HXDIR% build-cpp.hxml | ||
copy native\native.dll . | ||
haxe -D ammer.eval.haxeDir=%HAXEPATH% build-eval.hxml | ||
IF %ERRORLEVEL% NEQ 0 ( echo "eval tests failed") |