• C
    builds: Fix and clean up MSVC DLL builds · 8e4ad1d7
    Chun-wei Fan 提交于
    Instead of passing a CFLAG/CXXFLAG to define HB_EXTERN, define it
    directly in src/hb.hh as __declspec(dllexport) extern when we are
    building HarfBuzz as DLLs on Visual Studio.  Define HB_INTERNAL
    as nothing without defining HB_NO_VISIBILITY when building HarfBuzz as
    DLLs to avoid linker errors on Visual Studio builds.
    
    Also "install" harfbuzz-subset.dll into $(PREFIX)\bin as the
    hb-subset utility will depend on that DLL at runtime, when HarfBuzz is
    built as DLLs.  Since it consists of private APIs that are subject to
    change, we do not install its headers nor .lib file.
    8e4ad1d7
CMakeLists.txt 29.6 KB