[HarfBuzz] dll build

eduardo eduardo at brainstorm.es
Tue Oct 1 12:43:38 PDT 2013


That's basically what other libraries do.

On Tue, 01 Oct 2013 14:54:26 -0400, Behdad Esfahbod wrote:
> On 13-10-01 02:51 PM, Jonathan Kew wrote:
>> On 1/10/13 19:26, Behdad Esfahbod wrote:
>>> On 13-10-01 08:03 AM, Eduardo Castineyra wrote:
>>>> Hi,
>>>>
>>>> When I build hb as a dll, it does not export any symbol. I had to 
>>>> the project
>>>> to add a .def file I stole from the hb-shape win32 compiled 
>>>> example. But I
>>>> don't know what the proper way to get the symbols to be exported 
>>>> is.
>>>
>>> *Someone* needs to create the .def file.  I don't know how people 
>>> do it on
>>> Windows, but the autotools-based build system knows how to build 
>>> it, so
>>> lifting it from the win32 bundle is indeed the easiest way I guess.
>>
>> AIUI, an alternative would be to annotate the public symbols in the 
>> source
>> with something like HB_PUBLIC_API, which would be #defined to be
>> "__declspec(dllexport)" when building a DLL on Windows.
>
> If that means adding one token before each function in the public
> header files
> I'm totally fine with that.
>
>
>>>> These are the options I used to compile HB:
>>>>
>>>> WIN32;_DEBUG;_WINDOWS;_USRDLL;HARFBUZZ_EXPORTS;HAVE_OT;HAVE_UCDN
>>>>
>>>> Regards!
>>>> _______________________________________________
>>>> HarfBuzz mailing list
>>>> HarfBuzz at lists.freedesktop.org
>>>> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>>>>
>>>
>>
>> _______________________________________________
>> HarfBuzz mailing list
>> HarfBuzz at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>>




More information about the HarfBuzz mailing list