All of lore.kernel.org
 help / color / mirror / Atom feed
* External library
@ 2007-02-13 22:38 Jason Morganson
  2007-02-14 20:15 ` Yoshinori K. Okuji
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Morganson @ 2007-02-13 22:38 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

Hello all,

I was wondering what the group thinks about the use of external libraries in
GRUB. Is is acceptable to add this kind of dependency? Would it be alright
to say... add a configure option to compile in support for the Freetype
library? If so what is the proper way that you would like this to be done,
are conditional code blocks enough isolation of the outside code? Also, is
it possible to do initialization in the GRUB_MOD_INIT macro or is there a
better place to do this? I look forward to helping out in any way that I
can. If you could give me a little direction so that I implement in the
manner that you want it done it would be appreciated. Thank you for your
time.

Regards,
Jason Morganson

[-- Attachment #2: Type: text/html, Size: 730 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: External library
  2007-02-13 22:38 External library Jason Morganson
@ 2007-02-14 20:15 ` Yoshinori K. Okuji
  2007-02-16 17:16   ` Vesa Jääskeläinen
  0 siblings, 1 reply; 3+ messages in thread
From: Yoshinori K. Okuji @ 2007-02-14 20:15 UTC (permalink / raw)
  To: The development of GRUB 2

On Tuesday 13 February 2007 23:38, Jason Morganson wrote:
> I was wondering what the group thinks about the use of external libraries
> in GRUB. Is is acceptable to add this kind of dependency?

If the dependency is reasonable, and if no license/copyright problem exists, 
yes.

> Would it be 
> alright to say... add a configure option to compile in support for the
> Freetype library?

First I would like to know why you are interested in using FreeType in GRUB.

> If so what is the proper way that you would like this to 
> be done, are conditional code blocks enough isolation of the outside code?
> Also, is it possible to do initialization in the GRUB_MOD_INIT macro or is
> there a better place to do this?

That depends. Say, if you load a module, but not really use it, then it is 
better to initialize the module later, for example, when a function in the 
library is used at the first time. If you load and use it all the time, then 
there is no reason to delay the initialization. This is not so specific to 
GRUB.

Thanks,
Okuji



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: External library
  2007-02-14 20:15 ` Yoshinori K. Okuji
@ 2007-02-16 17:16   ` Vesa Jääskeläinen
  0 siblings, 0 replies; 3+ messages in thread
From: Vesa Jääskeläinen @ 2007-02-16 17:16 UTC (permalink / raw)
  To: The development of GRUB 2

Yoshinori K. Okuji wrote:
> On Tuesday 13 February 2007 23:38, Jason Morganson wrote:
>> I was wondering what the group thinks about the use of external libraries
>> in GRUB. Is is acceptable to add this kind of dependency?
> 
> If the dependency is reasonable, and if no license/copyright problem exists, 
> yes.

I think directly linking the library might not be a good idea, but
stripping it down to only support most important things and adapt font
rendering code.

FreeType is distributed in both GPL and FreeType licenses.
http://freetype.sourceforge.net/license.html

>> Would it be 
>> alright to say... add a configure option to compile in support for the
>> Freetype library?
> 
> First I would like to know why you are interested in using FreeType in GRUB.

Actually I might be the curlpit for that suggestion ;) See my other
partly reposted message.

Basicly freetype library gives us a support for using vector fonts and
thus we can scale fonts and they still look pretty on larger screens. Of
course one can write that from scratch but here we have a library that
could be used on the task.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-16 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-13 22:38 External library Jason Morganson
2007-02-14 20:15 ` Yoshinori K. Okuji
2007-02-16 17:16   ` Vesa Jääskeläinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.