winegcc: Add -I for the prefix's include dir.

This allows external projects to e.g. "#include <wine/debug.h>" for
non-standard prefixes, like winehq's distro packages residing in /opt.

Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Andre Heider 2018-11-18 18:26:57 +01:00 committed by Alexandre Julliard
parent 6d4d8f2ea0
commit 0e279d26b8
2 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ C_SRCS = \
winegcc.c
winegcc_EXTRADEFS = \
-DINCLUDEDIR="\"${includedir}/wine\"" \
-DINCLUDEDIR="\"${includedir}\"" \
-DDLLDIR="\"${dlldir}\"" \
-DLIBDIR="\"${libdir}\"" \
-DCC="\"$(CC)\"" \

View File

@ -672,10 +672,11 @@ no_compat_defines:
{
if (opts->use_msvcrt)
{
strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR "/msvcrt" : "-I" INCLUDEDIR "/msvcrt" );
strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR "/wine/msvcrt" : "-I" INCLUDEDIR "/wine/msvcrt" );
strarray_add(comp_args, "-D__MSVCRT__");
}
strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR "/windows" : "-I" INCLUDEDIR "/windows" );
strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR : "-I" INCLUDEDIR );
strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR "/wine/windows" : "-I" INCLUDEDIR "/wine/windows" );
}
else if (opts->wine_objdir)
strarray_add(comp_args, strmake("-I%s/include", opts->wine_objdir) );