-
Notifications
You must be signed in to change notification settings - Fork 17
/
win32env.mk
107 lines (86 loc) · 2.6 KB
/
win32env.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Adjust the following paths to where you have stuff installed
# ============================================================
# Note: don't quote the paths here, it's done below where needed
# Where Mingw was installed
MINGW_PREFIX = C:/Mingw
# Where GTK+ bundle was installed
GTK_PREFIX = C:/Gtk
# Python 2 digit version (ie. 25, 26, 27)
PYTHON_VERSION=27
# Where Python 2.x was installed
PYTHON_PREFIX = C:/Python$(PYTHON_VERSION)
# Where Geany was installed
GEANY_PREFIX = C:/Program Files/Geany
# Where Geany's source code is
# Note: official installer doesn't isntall headers, so need from source
GEANY_SRCDIR = C:/Documents and Settings/User/My Documents/Projects/Geany/geany
# Where PyGObject and PyGTK source code trees are
# Note: official installer doesn't install headers, so need from source
PYGOBJECT_SRCDIR = C:/Gtk/Python/pygobject-2.28.6
PYGTK_SRCDIR = C:/Gtk/Python/pygtk-2.24.0
# For making an .exe installer, path to NSIS `makensis.exe` program
MAKE_NSIS = C:/Program Files/NSIS/makensis.exe
# ======================================================================
# Shouldn't need to change anything below here
# ============================================
GEANYPY_VERSION = 0.1
CC = $(MINGW_PREFIX)/bin/gcc.exe
MAKE = $(MINGW_PREFIX)/bin/mingw32-make.exe
RM_F = -del /f /q
GEANYPY_CFLAGS = \
-DGEANYPY_WINDOWS_BUILD=1 \
-DG_LOG_DOMAIN=\"GeanyPy\"
GEANY_CFLAGS = \
-I"$(GEANY_SRCDIR)/plugins" \
-I"$(GEANY_SRCDIR)/src" \
-I"$(GEANY_SRCDIR)/tagmanager/src" \
-I"$(GEANY_SRCDIR)/scintilla/include" \
-DGTK
GTK_CFLAGS = \
-I"$(GTK_PREFIX)/include" \
-I"$(GTK_PREFIX)/include/gtk-2.0" \
-I"$(GTK_PREFIX)/include/glib-2.0" \
-I"$(GTK_PREFIX)/include/cairo" \
-I"$(GTK_PREFIX)/include/pango-1.0" \
-I"$(GTK_PREFIX)/include/gdk-pixbuf-2.0" \
-I"$(GTK_PREFIX)/include/atk-1.0" \
-I"$(GTK_PREFIX)/lib/glib-2.0/include" \
-I"$(GTK_PREFIX)/lib/gtk-2.0/include"
GTK_LIBS = \
-L"$(GTK_PREFIX)/lib" \
-lgtk-win32-2.0 \
-lgdk-win32-2.0 \
-latk-1.0 -lgio-2.0 \
-lpangoft2-1.0 \
-lpangocairo-1.0 \
-lgdk_pixbuf-2.0 \
-lcairo \
-lpango-1.0 \
-lfreetype \
-lfontconfig \
-lgobject-2.0 \
-lglib-2.0 \
-lgmodule-2.0
PYTHON_CFLAGS = \
-I"$(PYTHON_PREFIX)/include"
PYTHON_LIBS = \
-L"$(PYTHON_PREFIX)/libs" \
-lpython$(PYTHON_VERSION)
PYGOBJECT_CFLAGS = \
-I"$(PYGOBJECT_SRCDIR)/gio" \
-I"$(PYGOBJECT_SRCDIR)/glib" \
-I"$(PYGOBJECT_SRCDIR)/gobject"
PYGTK_CFLAGS = \
-I"$(PYGTK_SRCDIR)/gtk"
_CFLAGS = \
$(CFLAGS) -Wall -Werror -g \
$(PYTHON_CFLAGS) \
$(GTK_CFLAGS) \
$(PYGOBJECT_CFLAGS) \
$(PYGTK_CFLAGS) \
$(GEANY_CFLAGS) \
$(GEANYPY_CFLAGS)
_LDFLAGS = \
$(LDFLAGS) \
$(PYTHON_LIBS) \
$(GTK_LIBS)