Skip to content

Commit

Permalink
Generated components bindings (cpp + haxe) (#8)
Browse files Browse the repository at this point in the history
* Added gengine-gen-bindings

* comma

* Types map

* File generation

* Updatd template

* Update tasks

* Do not include static methods

* Const qualifier on methods

* result_full_type

* Added argument_full_type

* excluded-types

* Sync

* Wip

* Added overload renaming

* Temp fix

* Constructor trick

* Generated AnimatedModel

* Include dir

* More rules

* include-relative

* Updated rules

* Sync

* Sync

* Updated template

* Wip

* Switched to c++14

* Wip

* Sync

* Wip haxe generation

* Wip on renames

* Removed old files

* Wip

* Functional generation

* Removed useless file

* Urho2D generation

* Wip on Urho2D generated bindings support

* Added particle effect 2d

* USe first base only

* Renamed script to bindings

* Added more rules for physics

* Full support of urho2d generated bindings

* Fixes for emscripten

* More generated components

* Various fixes related to SoundSource

* Fixed string binding
  • Loading branch information
gogoprog committed Aug 1, 2017
1 parent 38e41a9 commit 13f18de
Show file tree
Hide file tree
Showing 60 changed files with 904 additions and 1,353 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ valgrind*
vgcore*

/dist
tags
50 changes: 50 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"python.pythonPath": "/bin/python2",
"files.associations": {
"functional": "cpp",
"utility": "cpp",
"type_traits": "cpp",
"array": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"cctype": "cpp",
"chrono": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"codecvt": "cpp",
"condition_variable": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"exception": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"memory": "cpp",
"mutex": "cpp",
"new": "cpp",
"numeric": "cpp",
"optional": "cpp",
"ostream": "cpp",
"ratio": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"thread": "cpp",
"tuple": "cpp",
"typeinfo": "cpp",
"algorithm": "cpp"
}
}
4 changes: 4 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
"message": 5
}
}
},
{
"taskName": "gen-bindings",
"command": "gengine-gen-bindings"
}
]
}
2 changes: 1 addition & 1 deletion build/premake4.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if os.is("linux") then
local getcxxflags = premake.gcc.getcxxflags;
function premake.gcc.getcxxflags(cfg)
local cxxflags = { Cxx11 = "-std=c++11" }
local cxxflags = { Cxx11 = "-std=c++14" }
local r = getcxxflags(cfg);
local r2 = table.translate(cfg.flags, cxxflags);
for _,v in ipairs(r2) do table.insert(r, v) end
Expand Down
2 changes: 1 addition & 1 deletion deps/common/libembindcefv8
2 changes: 1 addition & 1 deletion scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def compile():

if not os.path.exists(targetDir + "/build.hxml"):
log("Compiling : Running haxe default command line...")
os.system("haxe -cp " + os.environ['GENGINE'] + "/deps/common/Ash-Haxe/src/ -cp " + os.environ['GENGINE'] + "/src/haxe/ -cp " + targetDir + " -cp " + targetDir + "/src -main gengine.Main -js " + targetDir + "generated/main.js")
os.system("haxe -cp " + os.environ['GENGINE'] + "/deps/common/Ash-Haxe/src/" + " -cp " + os.environ['GENGINE'] + "/src/haxe/" + " -cp " + os.environ['GENGINE'] + "/src/bindings/generated/haxe/" + " -cp " + targetDir + " -cp " + targetDir + "/src -main gengine.Main -js " + targetDir + "generated/main.js")
else:
log("Compiling : Running haxe with build.hxml...")
currentDir = os.getcwd()
Expand Down
Loading

0 comments on commit 13f18de

Please sign in to comment.