Skip to content

Commit

Permalink
Fix for hxcpp target
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrobin committed Jul 10, 2015
1 parent c3b273e commit 1aae84c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
4 changes: 2 additions & 2 deletions haxelib.json
Expand Up @@ -4,8 +4,8 @@
"license": "BSD",
"tags": [ "protobuf", "serialization", "cross", "neko", "flash", "js", "cpp", "java", "php" ],
"description": "Crossplatform implementation of 'Google's Protocol Buffers' for haxe.",
"version": "0.4.4",
"releasenote": "Backward compatibility with haxe 3.1.3",
"version": "0.4.5",
"releasenote": "Fix for hxcpp target",
"contributors": [ "nitrobin" ],
"dependencies": {}
}
2 changes: 1 addition & 1 deletion protohx/MessageUtils.hx
Expand Up @@ -23,7 +23,7 @@ class MessageUtils {
#else
} else if (Std.is(value, Int64)) {
#end
return Int64.toStr(cast(value, Int64));
return Int64.toStr(cast(value));
} else if (Std.is(value, protohx.Message)) {
var m:Dynamic = {};
var msg = cast(value, protohx.Message);
Expand Down
21 changes: 21 additions & 0 deletions samples/04-metadata/build-cpp-pure.hxml
@@ -0,0 +1,21 @@
-cmd haxelib run protohx generate protohx.json
-cmd mkdir -p out/cpp

--next

-main Main
-cp src
-cp out/src-gen
-lib protohx
-debug
-D HXCPP_STACK_TRACE
-D HXCPP_STACK_LINE
-D HXCPP_DEBUG_LINK
-D HXCPP_CHECK_POINTER


-cpp out/cpp

--next

-cmd out/cpp/Main-debug
16 changes: 16 additions & 0 deletions samples/04-metadata/build-python.hxml
@@ -0,0 +1,16 @@

-cmd haxelib run protohx generate protohx.json
-cmd mkdir -p out

--next

-main Main
-cp src
-cp out/src-gen
-lib protohx

-python out/run.py

--next

-cmd python3 out/run.py

0 comments on commit 1aae84c

Please sign in to comment.