summaryrefslogtreecommitdiff
path: root/modules/nativescript
AgeCommit message (Collapse)Author
2017-09-01Fix files headerPoommetee Ketson
2017-08-30Make GDNative work on AndroidRuslan Mustakov
The changes include work done to ensure that GDNative apps and Nim integration specifically can run on Android. The changes have been tested on our WIP game, which uses godot-nim and depends on several third-party .so libs, and Platformer demo to ensure nothing got broken. - .so libraries are exported to lib/ folder in .apk, instead of assets/, because that's where Android expects them to be and it resolves the library name into "lib/<ABI>/<name>", where <ABI> is the ABI matching the current device. So we establish the convention that Android .so files in the project must be located in the folder corresponding to the ABI they were compiled for. - Godot callbacks (event handlers) are now called from the same thread from which Main::iteration is called. It is also what Godot now considers to be the main thread, because Main::setup is also called from there. This makes threading on Android more consistent with other platforms, making the code that depends on Thread::get_main_id more portable (GDNative has such code). - Sizes of GDNative API types have been fixed to work on 32-bit platforms.
2017-08-30Fix GDNative API generator after changes to MethodBindRuslan Mustakov
2017-08-30Add enums in GDNative API generatorRuslan Mustakov
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-24Convert Object::cast_to() to the static versionHein-Pieter van Braam
Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24-Code completion for enumerationsJuan Linietsky
-Disabled GDNative and GDNativeScript so build compiles again
2017-08-21Removed unnecessary assignmentsWilson E. Alvarez
2017-08-12Updated function argument namesWilson E. Alvarez
2017-08-11Merge pull request #10179 from marcelofg55/masterRémi Verschelde
Fix crash when running a game with the profiler enabled
2017-08-11Merge pull request #10202 from neikeq/how-do-you-turn-this-onRémi Verschelde
Improves method bind's detecting of signarute types
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-08-09Merge pull request #10206 from endragor/show-base-nativescript-propsThomas Herzog
Allow to edit base type NativeScript properties
2017-08-09Allow to edit base type NativeScript propertiesRuslan Mustakov
2017-08-09Fix getting default values for NativeScript base type propertiesRuslan Mustakov
2017-08-08Fix crash when running a game with the profiler enabledMarcelo Fernandez
2017-08-07Makes all Godot API's methods Lower CaseIndah Sylvia
2017-08-04Dont call nativescript callbacks if lib is not initializedRuslan Mustakov
2017-08-03Merge pull request #10060 from endragor/nativescript-frameThomas Herzog
Forward frame call to GDNative libraries
2017-08-03Forward frame call to GDNative librariesRuslan Mustakov
2017-08-02[GDNative/NativeScript] fix -rdynamic and removed _init callKarroffel
The _init call was buggy anyway and in the end shouldn't be a thing that's called via ClassDB, it should be something that's language specific, so we leave this out for the bindings. In the commit 66a7763 the SCsub file for GDNative was changed to use a cloned environment, that bricked -rdynamic which needs to be passed down to the linker, which didn't happen with the new env.
2017-07-30[NativeScript] fix signals from base class not being accessibleKarroffel
https://github.com/GodotNativeTools/cpp_bindings/issues/26
2017-07-27[NativeScript] fixed optional _init callKarroffel
In 3c53b35 a call to an "_init" function was introduced, that however was only executed in the `_new` function, also it *required* that such a function exists. With this patch the "_init" function will be optionally called on every instance creation.
2017-07-27[NativeScript] fix mutex double lockKarroffel
In 3c53b35 a bug got introduced where a mutex gets locked twice instead of locked and then unlocked. This path fixes that.
2017-07-27added an optional parameter to OS symbol lookupKarroffel
When looking up a symbol from a library, previously an error was shown when the symbol did not exist. That caused confusion when the lookup was completely optional. This adds a new parameter to that method so that those errors can be handled manually if needed.
2017-07-27[NativeScript] call _init on instance creationKarroffel
This also adds basic locking for the set of owners to avoid threading problems
2017-07-26Merge pull request #9882 from endragor/nativescript-refcountThomas Herzog
Forward refcount changes to NativeScriptInstance
2017-07-26Forward refcount changes to NativeScriptInstanceRuslan Mustakov
This also changes Reference::unreference() to always invoke refcount_decremented. Previously it was not invoked until the count reached zero due to short-circuit evalution of boolean expressions.
2017-07-26Support multithreading for NativeScriptLanguageRuslan Mustakov
Godot may call property setters from non-main thread when an object is loaded in the edtior. This means NativeScriptLanguage could be accessed from different threads, but it was not designed for thread-safety. Besides, previous behaviour made it so that godot_nativescript_init and godot_gdnative_init could be invoked from non-main thread, while godot_gdnative_thread is always invoked on the main thread. This may not be expected by the binding library. This commit defers native library initialization to the main thread and adds godot_nativescript_thread_enter and godot_nativescript_thread_exit callbacks to make a binding library aware of foreign threads.
2017-07-25Fix typo in NativeScript property gettersheepandshepherd
2017-07-25[NativeScript] fix double initialization in editorKarroffel
2017-07-25[NativeScript] bound `new` to ClassDBKarroffel
2017-07-24GDNative register_propertyRamesh Ravone
2017-07-24[NativeScript] forgot to uncomment userdata returnKarroffel
2017-07-24[NativeScript] fix double free but on exitKarroffel
2017-07-24[GDNative] new GDNative APIKarroffel
This adds GDNative as a separate class type. It can be used to interface with native libraries by using "native calls", which can be registered by modules (and in future other GDNative libraries?). It also reworks the currently called "GDNativeScript" into a "NativeScript" that just makes use of the new GDNative instead of it being the component that implements that functionality.