libGit2?

Feature requests for future versions of Hollywood can be voiced here
Post Reply
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

libGit2?

Post by SamuraiCrow »

How hard would it be to port https://github.com/libgit2/luagit2 bindings to Hollywood?
I'm on registered MorphOS using FlowStudio.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: libGit2?

Post by airsoftsoftwair »

On Windows/Linux/Mac it's not so difficult but on Amiga compatibles you'd need to invest some effort into adapting libgit to compile without the C functions that need constructor/destructor code, see here: http://www.hollywood-mal.com/docs/html/ ... SCRT_.html
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: libGit2?

Post by SamuraiCrow »

SimpleGit for OS4 is based on it but may be statically linking it. I'll have to check on this some more later on.
I'm on registered MorphOS using FlowStudio.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: libGit2?

Post by airsoftsoftwair »

Yes, that definitely looks like static linking. In a Hollywood plugin you'll of course normally also statically link libgit but there is no constructor/destructor code for the C runtime so you need to tweak lots of code for this purpose.
Post Reply