Revision: 188
Author: roman_yakovenko
Date: 2006-05-30 20:41:50 -0700 (Tue, 30 May 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=188&view=rev
Log Message:
-----------
system headers that not used will not be generated
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/code_creators/module.py
pyplusplus_dev/pyplusplus/file_writers/writer.py
Modified: pyplusplus_dev/pyplusplus/code_creators/module.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/module.py 2006-05-31 03:41:08 UTC (rev 187)
+++ pyplusplus_dev/pyplusplus/code_creators/module.py 2006-05-31 03:41:50 UTC (rev 188)
@@ -27,7 +27,11 @@
def add_system_header( self, header ):
normalize = include_directories.include_directories_t.normalize
self.__system_headers.append( normalize( header ) )
-
+
+ def is_system_header( self, header ):
+ normalize = include_directories.include_directories_t.normalize
+ return normalize( header ) in self.__system_headers
+
def _get_include_dirs(self):
include_dirs = algorithm.creator_finder.find_by_class_instance(
what=include_directories.include_directories_t
Modified: pyplusplus_dev/pyplusplus/file_writers/writer.py
===================================================================
--- pyplusplus_dev/pyplusplus/file_writers/writer.py 2006-05-31 03:41:08 UTC (rev 187)
+++ pyplusplus_dev/pyplusplus/file_writers/writer.py 2006-05-31 03:41:50 UTC (rev 188)
@@ -41,7 +41,8 @@
def write_code_repository(self, dir):
for cr in code_repository.all:
- self.write_file( os.path.join( dir, cr.file_name ), cr.code )
+ if self.__extmodule.is_system_header( cr.file_name ):
+ self.write_file( os.path.join( dir, cr.file_name ), cr.code )
def write_file( fpath, content ):
"""Write a source file.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|