Krita/docs/Rename Library Checklist

From KDE Community Wiki
< Krita‎ | docs
Revision as of 08:59, 7 July 2015 by Dmitry (talk | contribs) (Created page with "= Checklist = <ol> <li>Rename the target in CMakeLists.txt like [https://phabricator.kde.org/D130 here] <li>Change the import/export macro to handle new library name definitio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Checklist

  1. Rename the target in CMakeLists.txt like here
  2. Change the import/export macro to handle new library name definition MAKE_LIBKISPSD_LIB -> MAKE_KRITAPSD_LIB
  3. Change import/export macro itself: LIBKISPSD_EXPORT -> KRITAPSD_EXPORT
  4. In the end you should have something like that in libkispsd_export.h
    #ifndef KRITAPSD_EXPORT
    # if defined(MAKE_KRITAPSD_LIB)
    /* We are building this library */
    #  define KRITAPSD_EXPORT KDE_EXPORT
    # else
    /* We are using this library */ 
    #  define KRITAPSD_EXPORT KDE_IMPORT
    # endif
    #endif
    
  5. Rename all the instances of LIBKISPSD_EXPORT in other files
  6. Rename libkispsd_export.h itself and all its usages