mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
ec6bfa5b12
- Previously if miniglog was being used (on a non-Android system), we compiled it into a separate library, against which Ceres then linked. - This was unsatisfactory as it required miniglog being built as a static library when building Ceres as a Windows DLL, because miniglog did not use the dllexport/dllimport statements, whilst for other platforms when building Ceres as a shared library, miniglog needed to be compiled as a shared library. - We now compile miniglog into Ceres on all platforms, not just on Android. - miniglog now uses the CERES_EXPORT macro to support Windows DLLs. This means that miniglog now depends on Ceres' internal/port.h (and thus internal/config.h) which define the CERES_EXPORT macro and control its behaviour respectively. - miniglog now also uses localtime_s, not localtime on Windows. Change-Id: Ia55b9af8b4e6decf067eab92f0a5c2d14358a1e9