libGit2?

Feature requests for future versions of Hollywood can be voiced here
Post Reply
SamuraiCrow
Posts: 126
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

libGit2?

Post by SamuraiCrow » Mon Feb 06, 2017 9:54 pm

How hard would it be to port https://github.com/libgit2/luagit2 bindings to Hollywood?

User avatar
airsoftsoftwair
Posts: 2448
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: libGit2?

Post by airsoftsoftwair » Wed Feb 08, 2017 12:36 am

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: 126
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: libGit2?

Post by SamuraiCrow » Wed Feb 08, 2017 9:03 am

SimpleGit for OS4 is based on it but may be statically linking it. I'll have to check on this some more later on.

User avatar
airsoftsoftwair
Posts: 2448
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: libGit2?

Post by airsoftsoftwair » Sat Feb 11, 2017 12:24 am

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