show_licenses()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BinoX
User
User
Posts: 46
Joined: Mon Jan 31, 2005 11:57 am

show_licenses()

Post by BinoX »

It would be nice if you could put this at the top of the code somewhere and have the compiler output a list of the licences that your application has used so you can properly attribute things in an application "about" box.

Failing this, having a bit of licence text or a mention of the licence in the relevant help file section would be useful.

(Unless there's a really obvious way of doing this that I've missed)
User avatar
bbanelli
Enthusiast
Enthusiast
Posts: 544
Joined: Tue May 28, 2013 10:51 pm
Location: Europe
Contact:

Re: show_licenses()

Post by bbanelli »

BinoX wrote:It would be nice if you could put this at the top of the code somewhere and have the compiler output a list of the licences that your application has used so you can properly attribute things in an application "about" box.

Failing this, having a bit of licence text or a mention of the licence in the relevant help file section would be useful.

(Unless there's a really obvious way of doing this that I've missed)
License file for PureBasic applications (without using 3D engine commands)
License file for the 3D engine integrated with PureBasic?

So you can basically make this function DIY...
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/
BinoX
User
User
Posts: 46
Joined: Mon Jan 31, 2005 11:57 am

Re: show_licenses()

Post by BinoX »

I know about that page...

The problem is there's no way of telling 100% for sure that a particular function uses a certain license...

Things like libpng are obvious (to me at least)

But do any functions of purebasic use zlib internally.. I have no idea what "pcre" is so am unsure as to what uses that... Same with jcalg1

I imagine that 99% of what I do would use nothing more than libpng... But I do like to be sure.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: show_licenses()

Post by Tenaja »

It would be very handy if PB could auto-generate the license file.

It would also be helpful if every help page covered every lib license involved.

In the meantime, you can search for specific libraries, for instance google this:
jcalg1 site:http://www.purebasic.com/documentation/
Post Reply