summaryrefslogtreecommitdiff
path: root/Makefile-giscanner.am
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-03-10 13:15:52 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2015-07-30 11:01:01 +0800
commitad8fc51441b331c7db573201dd283a423081c042 (patch)
treef54c33c452d90e3c1b814b366e9072563236069c /Makefile-giscanner.am
parent0638f9f130fe080f945d07cde5cc01835a80553a (diff)
downloadgobject-introspection-ad8fc51441b331c7db573201dd283a423081c042.tar.gz
sourcescanner.py: Use Distutils for Preprocessing
Add a preprocess() function in ccompiler.py so that it will call the preprocess() method of the distutils.ccompiler class, and make use of it from sourcescanner.py. As we would need to set up the options (include paths, macros, undefs) to pass into the preprocessor (and later for the compiler), we have a new private function that translates what we have from the rest of giscanner so that it could be passed to distutils.ccompiler in a way that it understands. Also, as the MSVCCompiler classes in distutils do not provide a preprocess() implementation, we provide our own so that we can use it when preprocessing, via distutils, through subclassing MSVCCompiler. https://bugzilla.gnome.org/show_bug.cgi?id=728313
Diffstat (limited to 'Makefile-giscanner.am')
-rw-r--r--Makefile-giscanner.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile-giscanner.am b/Makefile-giscanner.am
index c2273cd6..5bc84253 100644
--- a/Makefile-giscanner.am
+++ b/Makefile-giscanner.am
@@ -43,6 +43,7 @@ pkgpyexec_PYTHON = \
giscanner/libtoolimporter.py \
giscanner/maintransformer.py \
giscanner/message.py \
+ giscanner/msvccompiler.py \
giscanner/shlibs.py \
giscanner/scannermain.py \
giscanner/sectionparser.py \