def gen_gtk_filelist(srcroot, subdir, dest): vars = read_vars_from_AM(os.path.join(srcroot, 'gtk', 'Makefile.am'), vars={}, conds={ 'USE_WIN32': True, 'USE_QUARTZ': False, 'USE_X11': False, 'USE_EXTERNAL_ICON_CACHE': False }, filters=[ 'gtkinclude_HEADERS', 'a11yinclude_HEADERS', 'deprecatedinclude_HEADERS', 'gtk_base_c_sources', 'gtk_clipboard_dnd_c_sources' ]) vars_depr = read_vars_from_AM( os.path.join(srcroot, 'gtk', 'deprecated', 'Makefile.inc'), vars={}, conds={}, filters=['deprecated_h_sources', 'deprecated_c_sources']) vars_a11y = read_vars_from_AM(os.path.join(srcroot, 'gtk', 'a11y', 'Makefile.inc'), vars={}, conds={}, filters=['a11y_h_sources', 'a11y_c_sources']) vars[ 'gtk_other_src'] = 'gtkprintoperation-win32.c gtktypebuiltins.h gtktypebuiltins.c' files = vars['gtkinclude_HEADERS'].split() + \ vars_a11y['a11y_h_sources'].split() + \ vars_depr['deprecated_h_sources'].split() + \ vars['gtk_base_c_sources'].split() + \ vars_a11y['a11y_c_sources'].split() + \ vars_depr['deprecated_c_sources'].split() + \ vars['gtk_other_src'].split() sources = [i for i in files \ if not (i.endswith('private.h')) \ and i != 'gtktextdisplay.h' \ and i != 'gtktextlayout.h' \ and i != 'gtkx.h'] with open(dest, 'w') as d: for i in sources: d.write(srcroot + '\\' + subdir + '\\' + i.replace('/', '\\') + '\n')
def gen_gtk_filelist(srcroot, subdir, dest): vars = read_vars_from_AM(os.path.join(srcroot, 'gtk', 'Makefile.am'), vars = {}, conds = {'USE_WIN32': True, 'USE_QUARTZ': False, 'USE_X11': False, 'USE_EXTERNAL_ICON_CACHE': False}, filters = ['gtkinclude_HEADERS', 'a11yinclude_HEADERS', 'deprecatedinclude_HEADERS', 'gtk_base_c_sources', 'gtk_clipboard_dnd_c_sources']) vars['gtk_other_src'] = 'gtkprintoperation-win32.c gtktypebuiltins.h gtktypebuiltins.c' files = vars['gtkinclude_HEADERS'].split() + \ vars['a11yinclude_HEADERS'].split() + \ vars['deprecatedinclude_HEADERS'].split() + \ vars['gtk_base_c_sources'].split() + \ vars['gtk_clipboard_dnd_c_sources'].split() + \ vars['gtk_other_src'].split() sources = [i for i in files \ if not (i.endswith('private.h')) \ and i != 'gtktextdisplay.h' \ and i != 'gtktextlayout.h' \ and i != 'gtkx.h'] with open(dest, 'w') as d: for i in sources: d.write(srcroot + '\\' + subdir + '\\' + i.replace('/', '\\') + '\n')
def gen_gtk_filelist(srcroot, subdir, dest): vars = read_vars_from_AM( os.path.join(srcroot, "gtk", "Makefile.am"), vars={}, conds={"USE_WIN32": True, "USE_QUARTZ": False, "USE_X11": False, "USE_EXTERNAL_ICON_CACHE": False}, filters=[ "gtk_public_h_sources", "gtk_base_c_sources", "gtk_use_win32_c_sources", "gtk_clipboard_dnd_c_sources", ], ) vars["gtk_other_src"] = "gtkprintoperation-win32.c gtktypebuiltins.h gtktypebuiltins.c" files = ( vars["gtk_public_h_sources"].split() + vars["gtk_base_c_sources"].split() + vars["gtk_other_src"].split() + vars["gtk_use_win32_c_sources"].split() + vars["gtk_clipboard_dnd_c_sources"].split() ) sources = [ i for i in files if not (i.endswith("private.h")) and i != "gtktextdisplay.h" and i != "gtktextlayout.h" and i != "gtkx.h" ] with open(dest, "w") as d: for i in sources: d.write(srcroot + "\\" + subdir + "\\" + i.replace("/", "\\") + "\n")
def gen_gdkwin32_filelist(srcroot, subdir, dest): vars = read_vars_from_AM(os.path.join(srcroot, subdir, 'Makefile.am'), vars = {}, conds = {'HAVE_INTROSPECTION': True, 'OS_WIN32': True}, filters = ['w32_introspection_files']) files = vars['w32_introspection_files'].split() with open(dest, 'w') as d: for i in files: d.write(srcroot + '\\' + subdir + '\\' + i.replace('/', '\\') + '\n')
def gen_gdkwin32_filelist(srcroot, subdir, dest): vars = read_vars_from_AM( os.path.join(srcroot, subdir, "Makefile.am"), vars={}, conds={"HAVE_INTROSPECTION": True, "OS_WIN32": True}, filters=["libgdk_win32_la_SOURCES", "libgdkinclude_HEADERS"], ) files = vars["libgdk_win32_la_SOURCES"].split() + vars["libgdkinclude_HEADERS"].split() with open(dest, "w") as d: for i in files: d.write(srcroot + "\\" + subdir + "\\" + i.replace("/", "\\") + "\n")
def gen_gdkwin32_filelist(srcroot, subdir, dest): vars = read_vars_from_AM( os.path.join(srcroot, subdir, "Makefile.am"), vars={}, conds={"HAVE_INTROSPECTION": True, "OS_WIN32": True}, filters=["w32_introspection_files"], ) files = vars["w32_introspection_files"].split() with open(dest, "w") as d: for i in files: d.write(srcroot + "\\" + subdir + "\\" + i.replace("/", "\\") + "\n")
def gen_atk_filelist(srcroot, subdir, dest): vars = read_vars_from_AM(os.path.join(srcroot, subdir, 'Makefile.am'), vars = {'top_builddir':'.'}, conds = {'HAVE_INTROSPECTION':True}, filters = ['introspection_sources', 'introspection_generated_sources']) files = vars['introspection_sources'].split() + \ vars['introspection_generated_sources'].split() with open(dest, 'w') as d: for i in files: if (i.startswith('./atk/')): i = i.replace('./atk/','') d.write(srcroot + '\\' + subdir + '\\' + i.replace('/', '\\') + '\n')
def gen_gdkwin32_filelist(srcroot, subdir, dest): vars = read_vars_from_AM(os.path.join(srcroot, subdir, 'Makefile.am'), vars={}, conds={ 'HAVE_INTROSPECTION': True, 'OS_WIN32': True }, filters=['w32_introspection_files']) files = vars['w32_introspection_files'].split() with open(dest, 'w') as d: for i in files: d.write(srcroot + '\\' + subdir + '\\' + i.replace('/', '\\') + '\n')
def gen_gdk_filelist(srcroot, subdir, dest): vars = read_vars_from_AM(os.path.join(srcroot, subdir, 'Makefile.am'), vars = {}, conds = {}, filters = ['gdk_h_sources', 'gdk_c_sources']) vars['gdk_enums'] = 'gdkenumtypes.c gdkenumtypes.h' files = vars['gdk_h_sources'].split() + \ vars['gdk_c_sources'].split() + \ vars['gdk_enums'].split() sources = [i for i in files if (i != 'gdkkeysyms-compat.h')] with open(dest, 'w') as d: for i in sources: d.write(srcroot + '\\' + subdir + '\\' + i.replace('/', '\\') + '\n')
def gen_gdkwin32_filelist(srcroot, subdir, dest): vars = read_vars_from_AM( os.path.join(srcroot, subdir, 'Makefile.am'), vars={}, conds={ 'HAVE_INTROSPECTION': True, 'OS_WIN32': True }, filters=['libgdk_win32_la_SOURCES', 'libgdkinclude_HEADERS']) files = vars['libgdk_win32_la_SOURCES'].split() + \ vars['libgdkinclude_HEADERS'].split() with open(dest, 'w') as d: for i in files: d.write(srcroot + '\\' + subdir + '\\' + i.replace('/', '\\') + '\n')
def gen_gdk_filelist(srcroot, subdir, dest): vars = read_vars_from_AM( os.path.join(srcroot, subdir, "Makefile.am"), vars={}, conds={}, filters=["gdk_public_h_sources", "gdk_c_sources"], ) vars["gdk_enums"] = "gdkenumtypes.c gdkenumtypes.h" files = vars["gdk_public_h_sources"].split() + vars["gdk_c_sources"].split() + vars["gdk_enums"].split() sources = [i for i in files if (i != "gdkkeysyms-compat.h")] with open(dest, "w") as d: for i in sources: d.write(srcroot + "\\" + subdir + "\\" + i.replace("/", "\\") + "\n")
def gen_gdk_filelist(srcroot, subdir, dest): vars = read_vars_from_AM(os.path.join(srcroot, subdir, 'Makefile.am'), vars={}, conds={}, filters=['gdk_public_h_sources', 'gdk_c_sources']) vars['gdk_enums'] = 'gdkenumtypes.c gdkenumtypes.h' files = vars['gdk_public_h_sources'].split() + \ vars['gdk_c_sources'].split() + \ vars['gdk_enums'].split() sources = [i for i in files if (i != 'gdkkeysyms-compat.h')] with open(dest, 'w') as d: for i in sources: d.write(srcroot + '\\' + subdir + '\\' + i.replace('/', '\\') + '\n')