summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-09-25 12:25:13 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2015-09-25 19:42:11 +0800
commit53e5f6e5aeda682307ba096b90c0040a589ddb2c (patch)
treee6960659eb8665841f000dfe3911d7f13d2d920e /build
parentd4554b765aeee36ee4c41b569a80dff42a2a5da9 (diff)
downloadatk-53e5f6e5aeda682307ba096b90c0040a589ddb2c.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.
Diffstat (limited to 'build')
-rw-r--r--build/Makefile.msvcproj10
1 files changed, 3 insertions, 7 deletions
diff --git a/build/Makefile.msvcproj b/build/Makefile.msvcproj
index 8ac5f81..9449a5b 100644
--- a/build/Makefile.msvcproj
+++ b/build/Makefile.msvcproj
@@ -4,11 +4,7 @@
# This autotools file, from GLib, can be used in other projects
# that have Visual Studio build support, and is copied into
-# $(srcroot)/build/, except those that have their main sources
-# in their $(srcroot), or those that have their autotools build
-# files in $(srcroot). Those that should not use this include:
-# gobject-introspection, librsvg, instead they would currently
-# need a modified version of this.
+# $(srcroot)/build/.
# * Input variables:
#
@@ -35,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))