summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2011-09-05 15:54:14 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2011-09-07 21:38:18 +0200
commitf31cdd28f4842597e9fd8428f7926dfbff25ddd7 (patch)
tree5eb4c0abe2166f10c4db46ded9ae1808fd57b45a
parenta7cd6bf0602ebb519a5f71abf933ed1e54e0c482 (diff)
downloadgobject-introspection-f31cdd28f4842597e9fd8428f7926dfbff25ddd7.tar.gz
Windows port: Simplify _giscanner's .pyd file extension handling.
By simply using -shrext ".pyd". https://bugzilla.gnome.org/show_bug.cgi?id=620566
-rw-r--r--Makefile-giscanner.am16
1 files changed, 2 insertions, 14 deletions
diff --git a/Makefile-giscanner.am b/Makefile-giscanner.am
index 8ae523f6..84fc2b2d 100644
--- a/Makefile-giscanner.am
+++ b/Makefile-giscanner.am
@@ -65,20 +65,8 @@ _giscanner_la_LDFLAGS = \
if OS_WIN32
_giscanner_la_LDFLAGS += \
- -no-undefined
+ -no-undefined \
+ -shrext ".pyd"
endif
_giscanner_la_SOURCES = giscanner/giscannermodule.c
-
-if OS_WIN32
-BUILT_SOURCES += _giscanner.pyd
-CLEANFILES += _giscanner.pyd
-
-_giscanner.pyd: _giscanner.la
- cp .libs/_giscanner.dll $@
-
-install-exec-hook:
- mv $(pkgpyexecdir)/_giscanner.dll $(pkgpyexecdir)/_giscanner.pyd
- rm $(pkgpyexecdir)/_giscanner.dll.a
- rm $(pkgpyexecdir)/_giscanner.la
-endif