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

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

View File

@@ -19,14 +19,16 @@ default: debug_print
ifeq ("$(BUILD_STYLE)","Debug")
DEBUG := -debug
DEF_DEBUG := -Ddebug
CONFIG := Debug
else
DEBUG :=
DEF_DEBUG :=
CONFIG := Release
endif
ifeq ("$(CLANG_ENABLE_OBJC_ARC)", "YES")
HXCPP_CLANG := -D HXCPP_CLANG -D OBJC_ARC
HXCPP_CLANG := -DHXCPP_CLANG -DOBJC_ARC
else
HXCPP_CLANG :=
endif
@@ -47,19 +49,22 @@ export HXCPP_COMPILE_THREADS := 2
build-haxe-i386:
@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)
touch ../Classes/Main.mm
build-haxe-armv6:
@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)
touch ../Classes/Main.mm
build-haxe-armv7:
@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)
touch ../Classes/Main.mm

View File

@@ -71,17 +71,6 @@ class Main {
//Called by lime
public function onkeydown(_event:Dynamic) {
// 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

View File

@@ -3,13 +3,11 @@
<haxedef name="lime_html5" if="html5" />
<haxedef name="lime_native" if="native" />
<!-- <haxeflag name="-D" value="I_LIKE_SQUIRRELS" /> -->
<haxedef name="no-compilation" />
<section unless="display">
<ndll name="std" haxelib="hxcpp" unless="neko" />
<ndll name="regexp" haxelib="hxcpp" unless="neko" />
<ndll name="zlib" haxelib="hxcpp" unless="neko" />
<haxelib name="hxlibc" if="cpp" />
<ndll name="openal" register="false" if="android" />
<ndll name="libfreetype" register="false" if="emscripten" />
@@ -23,7 +21,7 @@
<ndll name="nme" />
<include haxelib="openfl-tools" />
<include haxelib="hxtools" />
</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
untyped return __global__.__hxcpp_memory_get_float (bytes, position + byteOffset);
#else
buffer.position = position + byteOffset;
return buffer.readFloat ();
return buffer.readFloat();
#end
}

View File

@@ -23,6 +23,7 @@ package lime.utils;
if (Std.is (bufferOrArray, Int)) {
super (Std.int (bufferOrArray) * BYTES_PER_ELEMENT);
this.length = bufferOrArray;
} else if (Std.is (bufferOrArray, Array)) {
@@ -76,7 +77,6 @@ package lime.utils;
public function clear() {
// this.buffer.writeBytes(haxe.io.Bytes.alloc(0), 0, 0);
length = 0;
}

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
_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.1_ Added helpers for `create` and `copy`
_1.0.0_ Initial tools to forward commands to openfl-tools

View File

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

View File

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

View File

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