required mingw headers
Jarosław Staniek
js at iidea.pl
Wed Oct 5 08:54:34 BST 2005
Ralf Habacker said the following, On 2005-10-05 09:30:
>>>>May be other compiler stuff may be located in similar directories.
>>>>
>>>> win/msvc/...
>>>> win/bcc/.
>>>>
>>>>As an alternative to the above mentioned layout the following directory
>>>>layout change seems to good, because the current layout makes it very
>>>>hard to differ public from local includes files especially if there are
>>>>different compilers and compiler specific includes trees.
>>>>
>>>>A possible suggestion looks like this
>>>>
>>>> win/include/mingw/sys...
>>>> win/src/(mingw)
>>>
>>>what does win/src/ contain? include files?
>>
>>c and cpp files.
>>
>>The main problem is that if h and c files are in the same directory, it is
>>not possible to avoid including this h file. My proposal looks like this
>>
>>generic public includes
>>
>>win/include/kdelibs_export_win.h
>>win/include/kdelibs_global_win.h
>>win/include/kdemacros.h
>>
>>compiler specific public includes
>>
>>win/include/mingw/netdb.h
>>win/include/mingw/pwd.h
>>win/include/mingw/sys/resource.h
>>win/include/mingw/sys/socket.h
>>win/include/mingw/sys/time.h
>>win/include/mingw/sys/wait.h
>>win/include/mingw/unistd.h
>>win/include/mingw/asm/...
>>
>>win/include/msvc/...
>>
>>local source files
>>
>>win/src/pwd.c
>>win/src/SConscript
>>win/src/time.c
>>win/src/unistd.c
>>win/src/win32_utils.c
>>win/src/win32_utils.h (unsure if this is a public include, if not it must
>>be located here )
>>win/src/win32_utils2.cpp
>>
>>3rdparty code
>>
>>win/3rdparty
>>win/3rdparty/zlib
>>win/3rdparty/bzip2
>>
>>tools
>>
>>win/tools
>>
>>resulting include definitions when compiling outside win dir -> win/include
>>for general definitions followed by win/include/[msvc | mingw] ... for the
>>compile specific definitions.
>>This scheme allows also to reduce the compilers header copying problem you
>>have by adding the compiler include path at the end of the list ?
>>
>
Ralf,
Now I can see include/ dir is needed, so I am OK with this as well as with
include/{compilername}/ .
> If you have problems moving all the src files into src, they could be still
> located in win.
Yes I would just keep source *.{c|cpp} files in win/.
Please apply these fixes.
> What is real required is to move the headers into include
> subdir like the above mentioned scheme. If you like I can try to patch the
> required pro files, that you have very small work.
Unnecessary, since we're not using qmake for kdelibs4, but only in current 3.5
branch. .pro files and shell scripts were just left here after branching 3.5,
and are kept to have a guideline what object file goes (comes from) where and
what compiler option may be needed. I guess after some time these files will
be removed, so there's no need make them up to date.
--
regards / pozdrawiam,
Jaroslaw Staniek / OpenOffice Polska / Kexi Team
http://www.openoffice.com.pl | http://www.kexi-project.org
KDElibs/Windows: http://wiki.kde.org/tiki-index.php?page=KDElibs+for+win32
More information about the kde-core-devel
mailing list