Exemple #1
0
include_files += [(os.path.join(gnome_dll_path, x), x) for x in missing_dll]

# GTK locales
include_files += [(os.path.join(gnome_dll_path, "share/locale", x,
                                "LC_MESSAGES", "glib20.mo"),
                   "share/locale/" + x + "/LC_MESSAGES/glib20.mo")
                  for x in enabled_gtk_locales]
include_files += [(os.path.join(gnome_dll_path, "share/locale", x,
                                "LC_MESSAGES", "gtk30.mo"),
                   "share/locale/" + x + "/LC_MESSAGES/gtk30.mo")
                  for x in enabled_gtk_locales]

# Data files
include_files += [x for x in os.listdir(".") if x.endswith(".glade")]
include_files += ["./icons"]
d = [(x, x) for x in find_mos("locale/")]
include_files += d
import pprint
pprint.pprint(include_files)
#sys.exit(0)

# syncthing-inotify
include_files += [ST_INOTIFY_EXE]

executables = [
    Executable(
        "scripts/syncthing-gtk-exe.py",
        compress=True,
        targetName="syncthing-gtk.exe",
        base="Win32GUI",
        icon="icons/st-logo-128.ico",
# Stuff required by GTK
gtk_dirs = ('etc', 'lib')
include_files += [ (os.path.join(gnome_dll_path, x), x) for x in gtk_dirs ]
include_files += [ (os.path.join(gnome_dll_path, x), x) for x in missing_dll ]

# GTK locales
include_files += [ (os.path.join(gnome_dll_path, "share/locale", x, "LC_MESSAGES", "glib20.mo"),
		"share/locale/" + x + "/LC_MESSAGES/glib20.mo" ) for x in enabled_gtk_locales ]
include_files += [ (os.path.join(gnome_dll_path, "share/locale", x, "LC_MESSAGES", "gtk30.mo"),
		"share/locale/" + x + "/LC_MESSAGES/gtk30.mo" ) for x in enabled_gtk_locales ]

# Data files
include_files += [ x for x in os.listdir(".") if x.endswith(".glade") ]
include_files += [ "./icons" ]
d = [ (x, x) for x in find_mos("locale/") ]
include_files += d
import pprint
pprint.pprint(include_files)
#sys.exit(0)


# syncthing-inotify
include_files += [ ST_INOTIFY_EXE ]

executables = [
	Executable(
		"scripts/syncthing-gtk-exe.py",
		compress = True,
		targetName = "syncthing-gtk.exe",
		base = "Win32GUI",