Skip to content
  • Andreas Pakulat's avatar
    Uff. Unify #include's across libs and plugins. · bf280bff
    Andreas Pakulat authored
    The #include's now follow these rules:
    
    For libraries
     - #include <foo.h> / #include <Foo> for anything outside kdevplatform - i.e.
       other libraries
     - #include "foo.h" or #include "../foo.h" or #include "bar/foo.h" or #include
       "../bar/foo.h" for headers that are inside the same library
     - #include <bar/foo.h> for any library bar in kdevplatform
    
    For plugins
     - #include "foo.h" only for files inside the plugin
     - #include <bar/foo.h> for any kdevplatform library bar
     - #include <foo.h> / #include <Foo> for any other libs
    
    This allows us to remove all include_directories() calls, so we're only have -I
    switches for "external" libs (like KDE/Qt) and the top-level source/binary dir
    as well as the "current" source/binary dir.
    
    This is also supposed to make our header safer against include-problems, like
    using #include <icore.h> and that picks up a header of similar name from some
    other lib. 
    
    We've had a discussion about this quite a while back. Still if anybody feels
    like this still has problem please speak up.
    
    CCMAIL:kdevelop-devel@kdevelop.org
    bf280bff