Krita/docs/Rename Library Checklist: Difference between revisions
(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...") |
No edit summary |
||
Line 18: | Line 18: | ||
<li> Rename all the instances of LIBKISPSD_EXPORT in other files | <li> Rename all the instances of LIBKISPSD_EXPORT in other files | ||
<li> Rename <code>libkispsd_export.h</code> itself and all its usages | <li> Rename <code>libkispsd_export.h</code> itself and all its usages | ||
<li> Rename the folder containing the library | |||
</ol> | </ol> |
Revision as of 09:09, 7 July 2015
Checklist
- Rename the target in CMakeLists.txt like here
- Change the import/export macro to handle new library name definition
MAKE_LIBKISPSD_LIB
->MAKE_KRITAPSD_LIB
- Change import/export macro itself:
LIBKISPSD_EXPORT
->KRITAPSD_EXPORT
- 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
- Rename all the instances of LIBKISPSD_EXPORT in other files
- Rename
libkispsd_export.h
itself and all its usages - Rename the folder containing the library