File indexing completed on 2024-12-01 04:22:15

0001 #!/usr/bin/env python
0002 # -*- coding: utf-8 -*-
0003 #     Copyright 2009 Simon Edwards <simon@simonzone.com>
0004 #
0005 # This program is free software; you can redistribute it and/or modify
0006 # it under the terms of the GNU General Public License as published by
0007 # the Free Software Foundation; either version 2 of the License, or
0008 # (at your option) any later version.
0009 #
0010 # This program is distributed in the hope that it will be useful,
0011 # but WITHOUT ANY WARRANTY; without even the implied warranty of
0012 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013 # GNU General Public License for more details.
0014 #
0015 # You should have received a copy of the GNU General Public License
0016 # along with this program; if not, write to the
0017 # Free Software Foundation, Inc.,
0018 # 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
0019 
0020 import toolkit
0021 import qtkdemacros
0022 
0023 tk = toolkit.ModuleGenerator(
0024     module="PyKDE4.kggzmod",
0025     outputDirectory="/home/sbe/devel/pykde4/kggzmod/sip/kggzmod",
0026     
0027     # .h file extraction
0028     cmakelists="/home/sbe/devel/svn/kde/trunk/KDE/kdegames/libkdegames/kggzmod/CMakeLists.txt",
0029     ignoreHeaders="kggzmod_export.h",
0030     
0031     # Cpp parsing    
0032     preprocessSubstitutionMacros=qtkdemacros.QtPreprocessSubstitutionMacros(),
0033     macros=qtkdemacros.QtMacros(),
0034     bareMacros=qtkdemacros.QtBareMacros(["KGGZMOD_EXPORT"]),
0035     
0036     # Sip generation
0037     sipImportDirs=["/usr/share/sip/PyQt4/"],
0038     sipImports=["QtCore/QtCoremod.sip"],
0039     copyrightNotice=qtkdemacros.copyrightNotice(),
0040     exportMacros=["KGGZMOD_EXPORT"]
0041     
0042     #annotationRules=[toolkit.AnnotationRule()]
0043     )
0044 
0045 tk.run()
0046 #print(repr(tk.extractCmakeListsHeaders()))