freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] CMake patches from Microsoft's vcpkg project


From: Nikolaus Waxweiler
Subject: Re: [ft-devel] CMake patches from Microsoft's vcpkg project
Date: Sat, 10 Mar 2018 12:09:42 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Certainly.  You are welcome to set something up!  I was too lazy to
do it myself...

:)

I'm currently looking at size and symbol differences of libfreetype (on Fedora 27 x86_64, GCC 7.3.1) when compiling with Autotools and CMake. I built the shared lib both times without changing any options.

Autotools:
```
Library configuration:
  external zlib: yes (pkg-config)
  bzip2:         yes (pkg-config)
  libpng:        yes (pkg-config)
  harfbuzz:      yes (pkg-config)
```
Size after `strip --strip-debug`: 756000 bytes
Defined external symbols (`nm -g --defined-only`):
https://paste.fedoraproject.org/paste/6jmubTV82kFM3y5inTmEzw

Looking good, matches what I remember of the Windows DLL printout.


CMake:
```
-- Building with ZLIB
-- Building with BZip2
-- Building with PNG
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.3.12")
-- Checking for module 'harfbuzz>=0.9.7'
--   Found harfbuzz, version 1.4.8
-- Checking for module 'harfbuzz-icu>=0.9.18'
--   Found harfbuzz-icu, version 1.4.8
-- Building with HarfBuzz
```
Size after `strip --strip-debug`: 1060536 bytes
Defined external symbols (`nm -g --defined-only`):
https://paste.fedoraproject.org/paste/9pJOmUbKK2hzuKUu2XXgSw

Looking less stellar, lots of private module functions exported that shouldn't be!

Investigating. @Alexei is this maybe what you meant by defining DLL_EXPORT?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]