@ -45,6 +45,7 @@ parser.add_argument('--ignore-headers', dest='ignore_headers', default='')
parser . add_argument ( ' --namespace ' , dest = ' namespace ' , default = ' ' )
parser . add_argument ( ' --namespace ' , dest = ' namespace ' , default = ' ' )
parser . add_argument ( ' --mode ' , dest = ' mode ' , default = ' ' )
parser . add_argument ( ' --mode ' , dest = ' mode ' , default = ' ' )
parser . add_argument ( ' --installdir ' , dest = ' install_dir ' )
parser . add_argument ( ' --installdir ' , dest = ' install_dir ' )
parser . add_argument ( ' --run ' , dest = ' run ' , default = ' ' )
def gtkdoc_run_check ( cmd , cwd , library_path = None ) :
def gtkdoc_run_check ( cmd , cwd , library_path = None ) :
env = dict ( os . environ )
env = dict ( os . environ )
@ -64,7 +65,7 @@ def gtkdoc_run_check(cmd, cwd, library_path=None):
def build_gtkdoc ( source_root , build_root , doc_subdir , src_subdirs ,
def build_gtkdoc ( source_root , build_root , doc_subdir , src_subdirs ,
main_file , module ,
main_file , module ,
html_args , scan_args , fixxref_args , mkdb_args ,
html_args , scan_args , fixxref_args , mkdb_args ,
gobject_typesfile , scanobjs_args , ld , cc , ldflags , cflags ,
gobject_typesfile , scanobjs_args , run , ld , cc , ldflags , cflags ,
html_assets , content_files , ignore_headers , namespace ,
html_assets , content_files , ignore_headers , namespace ,
expand_content_files , mode ) :
expand_content_files , mode ) :
print ( " Building documentation for %s " % module )
print ( " Building documentation for %s " % module )
@ -125,6 +126,7 @@ def build_gtkdoc(source_root, build_root, doc_subdir, src_subdirs,
if gobject_typesfile :
if gobject_typesfile :
scanobjs_cmd = [ ' gtkdoc-scangobj ' ] + scanobjs_args + [ ' --types= ' + gobject_typesfile ,
scanobjs_cmd = [ ' gtkdoc-scangobj ' ] + scanobjs_args + [ ' --types= ' + gobject_typesfile ,
' --module= ' + module ,
' --module= ' + module ,
' --run= ' + run ,
' --cflags= ' + cflags ,
' --cflags= ' + cflags ,
' --ldflags= ' + ldflags ,
' --ldflags= ' + ldflags ,
' --cc= ' + cc ,
' --cc= ' + cc ,
@ -231,6 +233,7 @@ def run(args):
mkdbargs ,
mkdbargs ,
options . gobject_typesfile ,
options . gobject_typesfile ,
scanobjsargs ,
scanobjsargs ,
options . run ,
options . ld ,
options . ld ,
options . cc ,
options . cc ,
options . ldflags ,
options . ldflags ,