Adding new fixes for latest version of hxtools and hxlibc
This commit is contained in:
@@ -3,3 +3,4 @@
|
|||||||
-D ios
|
-D ios
|
||||||
--macro allowPackage("flash")
|
--macro allowPackage("flash")
|
||||||
--macro keep("::APP_MAIN::")
|
--macro keep("::APP_MAIN::")
|
||||||
|
-D no-compilation
|
||||||
@@ -19,9 +19,11 @@ 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
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -3,13 +3,11 @@
|
|||||||
|
|
||||||
<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" />
|
||||||
@@ -23,7 +21,7 @@
|
|||||||
|
|
||||||
<ndll name="nme" />
|
<ndll name="nme" />
|
||||||
|
|
||||||
<include haxelib="openfl-tools" />
|
<include haxelib="hxtools" />
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -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,7 +77,6 @@ package lime.utils;
|
|||||||
|
|
||||||
|
|
||||||
public function clear() {
|
public function clear() {
|
||||||
// this.buffer.writeBytes(haxe.io.Bytes.alloc(0), 0, 0);
|
|
||||||
length = 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.
120093
ndll/Emscripten/nme-debug.a
120093
ndll/Emscripten/nme-debug.a
File diff suppressed because one or more lines are too long
13331
ndll/Emscripten/nme.a
13331
ndll/Emscripten/nme.a
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.
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user