Check for ../gobject-introspection-1.0.pc.in to determine if we run
authorJohan Dahlin <johan@gnome.org>
Fri, 22 Aug 2008 21:48:23 +0000 (21:48 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Fri, 22 Aug 2008 21:48:23 +0000 (21:48 +0000)
2008-08-22  Johan Dahlin  <johan@gnome.org>

    * giscanner/sourcescanner.py:
    Check for ../gobject-introspection-1.0.pc.in to determine
    if we run installed or uninstalled.

svn path=/trunk/; revision=464

ChangeLog
giscanner/sourcescanner.py

index 1d4447c..058ee63 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-08-22  Johan Dahlin  <johan@gnome.org>
 
+       * giscanner/sourcescanner.py:
+       Check for ../gobject-introspection-1.0.pc.in to determine
+       if we run installed or uninstalled.
+
+2008-08-22  Johan Dahlin  <johan@gnome.org>
+
        * gir/Makefile.am:
        * giscanner/sourcescanner.py:
        Send in undefs/defines via writing it directly to stdin
index 4315cdc..cc0373a 100644 (file)
@@ -236,8 +236,10 @@ class SourceScanner(object):
         defines.append('__G_LIBCONFIG_H__')
 
         dirname = os.path.dirname(os.path.abspath(__file__))
-        includedir = os.path.join(dirname, '..', 'giscanner')
-        if not os.path.exists(includedir):
+        if os.path.exists(
+            os.path.join(dirname, '..', 'gobject-introspection-1.0.pc.in')):
+            includedir = os.path.join(dirname, '..', 'giscanner')
+        else:
             includedir = INCLUDEDIR
         filenames.insert(0, os.path.join(includedir, 'glibconfig-scanner.h'))