diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-09-25 15:33:02 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2015-09-25 20:20:45 +0800 |
commit | a21d7688b95ae62034962bfc1e34801935dd670a (patch) | |
tree | 4887f085e4bf2f0deeb07c5312355fd1114bee50 | |
parent | 29a712f1af7bbb15bdc9d7e09cbf58517edf8c15 (diff) | |
download | pango-a21d7688b95ae62034962bfc1e34801935dd670a.tar.gz |
Build: Make Makefile.msvcproj A Bit More Generic
Handle also the situation where $(srcdir) == $(top_srcdir), so that this
can also be used in cases like librsvg and gobject-introspection.
-rw-r--r-- | build/Makefile.msvcproj | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build/Makefile.msvcproj b/build/Makefile.msvcproj index 5d9cdc52..9449a5b9 100644 --- a/build/Makefile.msvcproj +++ b/build/Makefile.msvcproj @@ -2,6 +2,10 @@ # Common Autotools file used to generate Visual Studio 2008+ # Projects from their templates +# This autotools file, from GLib, can be used in other projects +# that have Visual Studio build support, and is copied into +# $(srcroot)/build/. + # * Input variables: # # MSVCPROJS - List of Projects that should be generated @@ -27,9 +31,9 @@ ## Transform the MSVC project filename (no filename extensions) to something which can reference through a variable ## without automake/make complaining, eg Gtk-2.0 -> Gtk_2_0 _proj_name=$(subst /,_,$(subst -,_,$(subst .,_,$(1)))) -_proj_path_raw:=$(subst $(abs_top_srcdir)/,,$(abs_srcdir)) +_proj_path_raw:=$(subst $(abs_top_srcdir),,$(abs_srcdir)) _proj_path=$(subst /,\\,$(_proj_path_raw)) -_proj_subdir_int=$(if $(ifeq $(_proj_path),\.),\\,\\$(_proj_path)\\) +_proj_subdir_int=$(subst \\\\,\\,\\$(_proj_path)\\) _proj_subdir=$(subst \\.\\,\\,$(_proj_subdir_int)) _proj_files_raw=$(subst /,\\,$($(_proj_name)_FILES)) |