Commit 4152f944 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Create source dir symlinks from the makefiles.

parent f2e0a145
...@@ -282,14 +282,12 @@ AC_DEFUN([WINE_APPEND_RULE],[AC_REQUIRE([WINE_CONFIG_HELPERS])wine_fn_append_rul ...@@ -282,14 +282,12 @@ AC_DEFUN([WINE_APPEND_RULE],[AC_REQUIRE([WINE_CONFIG_HELPERS])wine_fn_append_rul
dnl **** Create symlinks from config.status **** dnl **** Create symlinks from config.status ****
dnl dnl
dnl Usage: WINE_CONFIG_SYMLINK(target,src,files,enable,srcfile) dnl Usage: WINE_CONFIG_SYMLINK(target,src,enable)
dnl dnl
AC_DEFUN([WINE_CONFIG_SYMLINK],[AC_REQUIRE([WINE_CONFIG_HELPERS])dnl AC_DEFUN([WINE_CONFIG_SYMLINK],[AC_REQUIRE([WINE_CONFIG_HELPERS])dnl
m4_ifval([$4],[if test $4; then m4_ifval([$3],[if test $3; then
])m4_foreach([f],[$3], ])AC_CONFIG_LINKS([$1:$2])dnl
[AC_CONFIG_LINKS(m4_ifval([$1],[$1/])f[:]m4_ifval([$2],[$2/])m4_ifval([$5],[$5],f))])dnl wine_fn_config_symlink[ $1]m4_ifval([$3],[
m4_if([$1],[$2],[test "$srcdir" = "." || ])dnl
wine_fn_config_symlink[]m4_foreach([f],[$3],[ ]m4_ifval([$1],[$1/])f)m4_ifval([$4],[
fi])[]dnl fi])[]dnl
])]) ])])
......
...@@ -19947,16 +19947,6 @@ Makefile: $srcdir/Makefile.in config.status \$(MAKEDEP) ...@@ -19947,16 +19947,6 @@ Makefile: $srcdir/Makefile.in config.status \$(MAKEDEP)
depend: \$(MAKEDEP) dummy depend: \$(MAKEDEP) dummy
\$(MAKEDEP)" \$(MAKEDEP)"
if test "x$enable_fonts" != xno; then
ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
ac_config_links="$ac_config_links fonts/wingding.ttf:fonts/wingding.ttf"
test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf fonts/wingding.ttf
fi
ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
ac_config_links="$ac_config_links wine:tools/winewrapper" ac_config_links="$ac_config_links wine:tools/winewrapper"
wine_fn_config_symlink wine wine_fn_config_symlink wine
if test "x$enable_win64" != xno -o -n "$with_wine64"; then if test "x$enable_win64" != xno -o -n "$with_wine64"; then
...@@ -21973,12 +21963,6 @@ do ...@@ -21973,12 +21963,6 @@ do
case $ac_config_target in case $ac_config_target in
"include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
"include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;; "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
"fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
"fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
"fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
"fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
"fonts/wingding.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/wingding.ttf:fonts/wingding.ttf" ;;
"loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
"wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;; "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
"wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;; "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
"tools/makedep") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/makedep" ;; "tools/makedep") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/makedep" ;;
......
...@@ -2806,10 +2806,8 @@ Makefile: $srcdir/Makefile.in config.status \$(MAKEDEP) ...@@ -2806,10 +2806,8 @@ Makefile: $srcdir/Makefile.in config.status \$(MAKEDEP)
depend: \$(MAKEDEP) dummy depend: \$(MAKEDEP) dummy
\$(MAKEDEP)]) \$(MAKEDEP)])
WINE_CONFIG_SYMLINK(fonts,fonts,[marlett.ttf,symbol.ttf,tahoma.ttf,tahomabd.ttf,wingding.ttf],["x$enable_fonts" != xno]) WINE_CONFIG_SYMLINK(wine,tools/winewrapper)
WINE_CONFIG_SYMLINK(loader,loader,[l_intl.nls]) WINE_CONFIG_SYMLINK(wine64,tools/winewrapper,["x$enable_win64" != xno -o -n "$with_wine64"])
WINE_CONFIG_SYMLINK(,tools,[wine],,winewrapper)
WINE_CONFIG_SYMLINK(,tools,[wine64],["x$enable_win64" != xno -o -n "$with_wine64"],winewrapper)
WINE_CONFIG_MAKEFILE(dlls/acledit) WINE_CONFIG_MAKEFILE(dlls/acledit)
WINE_CONFIG_MAKEFILE(dlls/aclui) WINE_CONFIG_MAKEFILE(dlls/aclui)
......
...@@ -2387,6 +2387,24 @@ static void output_symlink_rule( const char *src_name, const char *link_name ) ...@@ -2387,6 +2387,24 @@ static void output_symlink_rule( const char *src_name, const char *link_name )
/******************************************************************* /*******************************************************************
* output_srcdir_symlink
*
* Output rule to create a symlink back to the source directory, for source files
* that are needed at run-time.
*/
static void output_srcdir_symlink( struct makefile *make, const char *obj )
{
char *src_file;
if (!make->src_dir) return;
src_file = src_dir_path( make, obj );
output( "%s: %s\n", obj, src_file );
output_symlink_rule( src_file, obj );
strarray_add( &make->all_targets, obj );
}
/*******************************************************************
* output_install_commands * output_install_commands
*/ */
static void output_install_commands( struct makefile *make, const struct makefile *submake, static void output_install_commands( struct makefile *make, const struct makefile *submake,
...@@ -2862,7 +2880,10 @@ static void output_source_sfd( struct makefile *make, struct incl_file *source, ...@@ -2862,7 +2880,10 @@ static void output_source_sfd( struct makefile *make, struct incl_file *source,
if (!(source->file->flags & FLAG_SFD_FONTS)) output( "all: %s\n", ttf_file ); if (!(source->file->flags & FLAG_SFD_FONTS)) output( "all: %s\n", ttf_file );
} }
if (source->file->flags & FLAG_INSTALL) if (source->file->flags & FLAG_INSTALL)
{
add_install_rule( make, source->name, ttf_obj, strmake( "D$(fontdir)/%s", ttf_obj )); add_install_rule( make, source->name, ttf_obj, strmake( "D$(fontdir)/%s", ttf_obj ));
output_srcdir_symlink( make, ttf_obj );
}
if (source->file->flags & FLAG_SFD_FONTS) if (source->file->flags & FLAG_SFD_FONTS)
{ {
...@@ -2913,6 +2934,7 @@ static void output_source_nls( struct makefile *make, struct incl_file *source, ...@@ -2913,6 +2934,7 @@ static void output_source_nls( struct makefile *make, struct incl_file *source,
{ {
add_install_rule( make, source->name, source->name, add_install_rule( make, source->name, source->name,
strmake( "D$(datadir)/wine/%s", source->name )); strmake( "D$(datadir)/wine/%s", source->name ));
output_srcdir_symlink( make, strmake( "%s.nls", obj ));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment