Adding new fixes for latest version of hxtools and hxlibc

This commit is contained in:
underscorediscovery
2013-11-24 01:39:23 -03:30
parent a11a301b1e
commit b713cffcaa
37 changed files with 34 additions and 133464 deletions

View File

@@ -2,4 +2,5 @@
-D iphone -D iphone
-D ios -D ios
--macro allowPackage("flash") --macro allowPackage("flash")
--macro keep("::APP_MAIN::") --macro keep("::APP_MAIN::")
-D no-compilation

View File

@@ -19,14 +19,16 @@ default: debug_print
ifeq ("$(BUILD_STYLE)","Debug") ifeq ("$(BUILD_STYLE)","Debug")
DEBUG := -debug DEBUG := -debug
DEF_DEBUG := -Ddebug
CONFIG := Debug CONFIG := Debug
else else
DEBUG := DEBUG :=
DEF_DEBUG :=
CONFIG := Release CONFIG := Release
endif endif
ifeq ("$(CLANG_ENABLE_OBJC_ARC)", "YES") ifeq ("$(CLANG_ENABLE_OBJC_ARC)", "YES")
HXCPP_CLANG := -D HXCPP_CLANG -D OBJC_ARC HXCPP_CLANG := -DHXCPP_CLANG -DOBJC_ARC
else else
HXCPP_CLANG := HXCPP_CLANG :=
endif endif
@@ -47,19 +49,22 @@ export HXCPP_COMPILE_THREADS := 2
build-haxe-i386: build-haxe-i386:
@echo "Haxe simulator build CONFIG : $(CONFIG)" @echo "Haxe simulator build CONFIG : $(CONFIG)"
haxe Build.hxml -D simulator -cpp build/$(CONFIG) $(DEBUG) $(HXCPP_CLANG) haxe Build.hxml -D simulator -cpp build/$(CONFIG) $(DEBUG)
cd build/$(CONFIG); haxelib run hxlibc Build.xml -Dios -Diphone -Dsimulator $(DEF_DEBUG) $(HXCPP_CLANG)
cp $(LIB_BASE).iphonesim.a ../lib/i386$(LIB_DEST) cp $(LIB_BASE).iphonesim.a ../lib/i386$(LIB_DEST)
touch ../Classes/Main.mm touch ../Classes/Main.mm
build-haxe-armv6: build-haxe-armv6:
@echo "Haxe armv6 build CONFIG : $(CONFIG)" @echo "Haxe armv6 build CONFIG : $(CONFIG)"
haxe Build.hxml -D HXCPP_ARMV6 -cpp build/$(CONFIG) $(DEBUG) $(HXCPP_CLANG) haxe Build.hxml -D HXCPP_ARMV6 -cpp build/$(CONFIG) $(DEBUG)
cd build/$(CONFIG); haxelib run hxlibc Build.xml -Dios -Diphone -DHXCPP_ARMV6 $(DEF_DEBUG) $(HXCPP_CLANG)
cp $(LIB_BASE).iphoneos.a ../lib/armv6$(LIB_DEST) cp $(LIB_BASE).iphoneos.a ../lib/armv6$(LIB_DEST)
touch ../Classes/Main.mm touch ../Classes/Main.mm
build-haxe-armv7: build-haxe-armv7:
@echo "Haxe armv7 build CONFIG : $(CONFIG)" @echo "Haxe armv7 build CONFIG : $(CONFIG)"
haxe Build.hxml -D HXCPP_ARMV7 -cpp build/$(CONFIG) $(DEBUG) $(HXCPP_CLANG) haxe Build.hxml -D HXCPP_ARMV7 -cpp build/$(CONFIG) $(DEBUG)
cd build/$(CONFIG); haxelib run hxlibc Build.xml -Dios -Diphone -DHXCPP_ARMV7 $(DEF_DEBUG) $(HXCPP_CLANG)
cp $(LIB_BASE).iphoneos-v7.a ../lib/armv7$(LIB_DEST) cp $(LIB_BASE).iphoneos-v7.a ../lib/armv7$(LIB_DEST)
touch ../Classes/Main.mm touch ../Classes/Main.mm

View File

@@ -71,17 +71,6 @@ class Main {
//Called by lime //Called by lime
public function onkeydown(_event:Dynamic) { public function onkeydown(_event:Dynamic) {
// trace(_event); // trace(_event);
//49
if(_event.value == 49) {
trace( "selected : " + lib.window.fileDialogOpen('open file!!!',' oenenenfelkes') );
}
if(_event.value == 50) {
trace( "selected : " + lib.window.fileDialogSave('select a save file','saveeeee') );
}
if(_event.value == 51) {
trace( "selected : " + lib.window.fileDialogFolder('Select folder2222','select a folder!!') );
}
} }
//Called by lime //Called by lime

View File

@@ -3,17 +3,15 @@
<haxedef name="lime_html5" if="html5" /> <haxedef name="lime_html5" if="html5" />
<haxedef name="lime_native" if="native" /> <haxedef name="lime_native" if="native" />
<!-- <haxeflag name="-D" value="I_LIKE_SQUIRRELS" /> --> <haxedef name="no-compilation" />
<section unless="display"> <section unless="display">
<ndll name="std" haxelib="hxcpp" unless="neko" /> <haxelib name="hxlibc" if="cpp" />
<ndll name="regexp" haxelib="hxcpp" unless="neko" />
<ndll name="zlib" haxelib="hxcpp" unless="neko" />
<ndll name="openal" register="false" if="android" /> <ndll name="openal" register="false" if="android" />
<ndll name="libfreetype" register="false" if="emscripten" /> <ndll name="libfreetype" register="false" if="emscripten" />
<ndll name="curl_ssl" register="false" if="ios" /> <ndll name="curl_ssl" register="false" if="ios" />
<ndll name="png" register="false" if="ios" /> <ndll name="png" register="false" if="ios" />
<ndll name="jpeg" register="false" if="ios" /> <ndll name="jpeg" register="false" if="ios" />
@@ -21,9 +19,9 @@
<ndll name="ogg" register="false" if="ios" /> <ndll name="ogg" register="false" if="ios" />
<ndll name="vorbis" register="false" if="ios" /> <ndll name="vorbis" register="false" if="ios" />
<ndll name="nme" /> <ndll name="nme" />
<include haxelib="openfl-tools" /> <include haxelib="hxtools" />
</section> </section>

View File

@@ -85,13 +85,13 @@ package lime.utils;
} }
inline public function getFloat32 (position:Int):Float { inline public function getFloat32(position:Int):Float {
#if cpp #if cpp
untyped return __global__.__hxcpp_memory_get_float (bytes, position + byteOffset); untyped return __global__.__hxcpp_memory_get_float (bytes, position + byteOffset);
#else #else
buffer.position = position + byteOffset; buffer.position = position + byteOffset;
return buffer.readFloat (); return buffer.readFloat();
#end #end
} }

View File

@@ -23,6 +23,7 @@ package lime.utils;
if (Std.is (bufferOrArray, Int)) { if (Std.is (bufferOrArray, Int)) {
super (Std.int (bufferOrArray) * BYTES_PER_ELEMENT); super (Std.int (bufferOrArray) * BYTES_PER_ELEMENT);
this.length = bufferOrArray;
} else if (Std.is (bufferOrArray, Array)) { } else if (Std.is (bufferOrArray, Array)) {
@@ -76,9 +77,8 @@ package lime.utils;
public function clear() { public function clear() {
// this.buffer.writeBytes(haxe.io.Bytes.alloc(0), 0, 0);
length = 0; length = 0;
} }
public static function fromMatrix (matrix:Matrix3D):Float32Array { public static function fromMatrix (matrix:Matrix3D):Float32Array {
return new Float32Array (matrix.rawData); return new Float32Array (matrix.rawData);

View File

@@ -287,7 +287,7 @@ class ByteArray extends Bytes #if !haxe3 , #end implements ArrayAccess<Int> #if
public function readFloat():Float public function readFloat():Float
{ {
#if !lime_html5 #if !lime_html5
if (position + 4 > length) if (position + 4 > length)
ThrowEOFi(); ThrowEOFi();

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
run.n vendored

Binary file not shown.

View File

@@ -1,6 +1,7 @@
### lime build tools version changes ### lime build tools version changes
_1.0.3_ Migrating to latest hxtools from openfl-tools
_1.0.2_ Added code to handle injecting default project names, adding separate luxe/lime build files. _1.0.2_ Added code to handle injecting default project names, adding separate luxe/lime build files.
_1.0.1_ Added helpers for `create` and `copy` _1.0.1_ Added helpers for `create` and `copy`
_1.0.0_ Initial tools to forward commands to openfl-tools _1.0.0_ Initial tools to forward commands to openfl-tools

View File

@@ -1,5 +1,5 @@
-main RunScript -main RunScript
-neko ../run.n -neko ../run.n
-lib openfl-tools -lib hxtools
-D pathtools -D pathtools
-cp src -cp src

View File

@@ -1,6 +1,6 @@
-main RunScript -main RunScript
-neko ../../luxe/run.n -neko ../../luxe/run.n
-lib openfl-tools -lib hxtools
-D pathtools -D pathtools
-D luxe -D luxe
-cp src -cp src

View File

@@ -114,13 +114,13 @@ class RunScript {
} //if there is an xml mentioned } //if there is an xml mentioned
} //for each argument } //for each argument
if(!explicit_project) { // if(!explicit_project) {
#if luxe // #if luxe
args.insert(1,'project.luxe.xml'); // args.insert(1,'project.luxe.xml');
#else // #else
args.insert(1,'project.lime.xml'); // args.insert(1,'project.lime.xml');
#end // #end
} // }
return args; return args;
@@ -144,8 +144,8 @@ class RunScript {
var args = append_project_file(args); var args = append_project_file(args);
//make a full command line //make a full command line
var full_args = [ "run", "openfl-tools" ].concat(args); var full_args = [ "run", "hxtools" ].concat(args);
//enforce the folder to the current on //enforce the folder to the current one
Sys.setCwd(cwd); Sys.setCwd(cwd);
//and then execute //and then execute
return Sys.command("haxelib", full_args); return Sys.command("haxelib", full_args);
@@ -155,7 +155,7 @@ class RunScript {
} else { } else {
Sys.println(""); Sys.println("");
var version = "1.0.2"; var version = "1.0.3";
#if luxe #if luxe
Sys.println(" luxe build tools " + version); Sys.println(" luxe build tools " + version);