pidgin/Makefile.mingw

Thu, 29 Jun 2017 15:33:29 -0500

author
Mike Ruprecht <cmaiku@gmail.com>
date
Thu, 29 Jun 2017 15:33:29 -0500
changeset 38578
c81f0a8301fe
parent 38420
156734aa651c
permissions
-rw-r--r--

gtkidle: Port XScreensaver to DBus ScreenSaver interfaces

Modern Linux desktops use one of 3 DBus interfaces for querying if
the screensaver is currently active. There's a FreeDesktop one, a
GNOME one, and a KDE one. Rather than querying XScreensaver, which
may not be available, such as with Wayland, this patch ports Pidgin's
idle checking function to use these modern DBus interfaces.

Because Gio includes built-in DBus API, this patch also drops the
guards around pidgin_get_time_idle(), which also re-enables the
Win32 code which wasn't enabled with the previous guards.

14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
1 #
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
2 # Makefile.mingw
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
3 #
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
4 # Description: Makefile for win32 (mingw) version of Pidgin
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
5 #
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
6
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
7 PIDGIN_TREE_TOP := ..
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
9
28783
7271f3acaae4 Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents: 26337
diff changeset
10 DEFINES := $(subst -DWIN32_LEAN_AND_MEAN,,$(DEFINES))
7271f3acaae4 Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents: 26337
diff changeset
11
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
12 ##
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
13 ## VARIABLE DEFINITIONS
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
14 ##
15438
c3e93cd038c5 Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
15 EXE_TARGET := pidgin
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
16 PIDGIN_TARGET := pidgin
14529
d3cec5c0192e [gaim-migrate @ 17183]
Daniel Atallah <datallah@pidgin.im>
parents: 14509
diff changeset
17 EXE_NAME := $(EXE_TARGET).exe
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
18
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
19 WINAPP := -mwindows
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
20
33366
75dbccde9fc7 Enable the GCC Stack-Smashing Protection functionality (-fstack-protector-all)
Daniel Atallah <datallah@pidgin.im>
parents: 33364
diff changeset
21 LDFLAGS := $(WINAPP) $(LD_HARDENING_OPTIONS) -Wl,--enable-auto-import -lssp
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
22
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
23 ##
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
24 ## INCLUDE PATHS
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
25 ##
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
26 PURPLE_INCLUDE_PATHS = \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
27 -I$(PURPLE_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
28 -I$(PURPLE_TOP)/win32 \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
29 -I$(PIDGIN_TREE_TOP) \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
30 -I$(GTK_TOP)/include \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
31 -I$(GTK_TOP)/include/glib-2.0 \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
32 -I$(GTK_TOP)/lib/glib-2.0/include
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
33
16393
d89faf3f5282 Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents: 16294
diff changeset
34 INCLUDE_PATHS += \
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
35 $(PURPLE_INCLUDE_PATHS) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
36 -I$(PIDGIN_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
37 -I$(PIDGIN_TOP)/win32 \
33948
b6c9e5dd95d1 VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33941
diff changeset
38 $(VV_INCLUDE_PATHS) \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
39 -I$(GTK_TOP)/include/gtk-2.0 \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
40 -I$(GTK_TOP)/include/pango-1.0 \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
41 -I$(GTK_TOP)/include/atk-1.0 \
16294
8310c8cce698 Add cairo to the mingw build include path. Fixes #175 .
Daniel Atallah <datallah@pidgin.im>
parents: 16100
diff changeset
42 -I$(GTK_TOP)/include/cairo \
33854
5744cfb1c3d1 Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33598
diff changeset
43 -I$(GTK_TOP)/include/gdk-pixbuf-2.0 \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
44 -I$(GTK_TOP)/lib/gtk-2.0/include \
33854
5744cfb1c3d1 Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33598
diff changeset
45 -I$(LIBSOUP_TOP)/include/libsoup-2.4 \
35141
48e4e99bb831 Fix win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34951
diff changeset
46 -I$(LIBGADU_TOP)/include \
33854
5744cfb1c3d1 Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33598
diff changeset
47 -I$(WEBKITGTK_TOP)/include/webkitgtk-1.0
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
48
16393
d89faf3f5282 Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents: 16294
diff changeset
49 LIB_PATHS += -L$(GTK_TOP)/lib \
33854
5744cfb1c3d1 Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33598
diff changeset
50 -L$(WEBKITGTK_TOP)/lib \
35141
48e4e99bb831 Fix win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34951
diff changeset
51 -L$(LIBGADU_TOP)/lib \
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
52 -L$(PURPLE_TOP) \
33948
b6c9e5dd95d1 VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33941
diff changeset
53 -L$(PIDGIN_TOP) \
b6c9e5dd95d1 VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33941
diff changeset
54 $(VV_LIB_PATHS)
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
55
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
56 ##
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
57 ## SOURCES, OBJECTS
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
58 ##
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
59 PIDGIN_C_SRC = \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
60 gtkaccount.c \
28783
7271f3acaae4 Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents: 26337
diff changeset
61 gtkblist-theme-loader.c \
25010
57a841ca2450 Fix win32 build. I haven't actually tested any of the functionality, but it
Daniel Atallah <datallah@pidgin.im>
parents: 23302
diff changeset
62 gtkblist-theme.c \
28783
7271f3acaae4 Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents: 26337
diff changeset
63 gtkblist.c \
19668
2071903c58e4 Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents: 19333
diff changeset
64 gtkcellrendererexpander.c \
28783
7271f3acaae4 Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents: 26337
diff changeset
65 gtkcertmgr.c \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
66 gtkconn.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
67 gtkconv.c \
32537
d24178263960 Add source files to Windows build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32325
diff changeset
68 gtkconv-theme.c \
d24178263960 Add source files to Windows build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32325
diff changeset
69 gtkconv-theme-loader.c \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
70 gtkdebug.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
71 gtkdialogs.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
72 gtkdnd-hints.c \
14745
d43256e1e6fd [gaim-migrate @ 17435]
Daniel Atallah <datallah@pidgin.im>
parents: 14638
diff changeset
73 gtkdocklet.c \
28783
7271f3acaae4 Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents: 26337
diff changeset
74 gtkicon-theme-loader.c \
25010
57a841ca2450 Fix win32 build. I haven't actually tested any of the functionality, but it
Daniel Atallah <datallah@pidgin.im>
parents: 23302
diff changeset
75 gtkicon-theme.c \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
76 gtkidle.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
77 gtklog.c \
26202
4a8bdf9c50a8 Fix gtkmedia's Makefile entries.
Michael Ruprecht <maiku@pidgin.im>
parents: 23302
diff changeset
78 gtkmedia.c \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
79 gtkmenutray.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
80 gtknotify.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
81 gtkplugin.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
82 gtkpluginpref.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
83 gtkpounce.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
84 gtkprefs.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
85 gtkprivacy.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
86 gtkrequest.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
87 gtkroomlist.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
88 gtksavedstatuses.c \
15094
7ebf5dd7d969 [gaim-migrate @ 17815]
Sean Egan <seanegan@pidgin.im>
parents: 14760
diff changeset
89 gtkscrollbook.c \
35782
8565e8e51e38 Fix win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35497
diff changeset
90 gtksmiley-manager.c \
8565e8e51e38 Fix win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35497
diff changeset
91 gtksmiley-theme.c \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
92 gtksound.c \
25010
57a841ca2450 Fix win32 build. I haven't actually tested any of the functionality, but it
Daniel Atallah <datallah@pidgin.im>
parents: 23302
diff changeset
93 gtkstatus-icon-theme.c \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
94 gtkstatusbox.c \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
95 gtkutils.c \
32578
945c0311cfce These two files are listed in Makefile.am, so it seems like they should
Mark Doliner <markdoliner@pidgin.im>
parents: 32537
diff changeset
96 gtkwebview.c \
32808
9ad5d3254f13 Add GtkWebViewToolbar to makefiles.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32578
diff changeset
97 gtkwebviewtoolbar.c \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
98 gtkwhiteboard.c \
34951
d83145736f76 Updated Makefile.mingw's
Ankit Vani <a@nevitus.org>
parents: 33948
diff changeset
99 gtkxfer.c \
35497
958c5c4b649e Fix the filename in pidgin/Makefile.mingw
Ankit Vani <a@nevitus.org>
parents: 35495
diff changeset
100 libpidgin.c \
21518
91a5412958cf Fix build.
Daniel Atallah <datallah@pidgin.im>
parents: 21414
diff changeset
101 minidialog.c \
35387
c516874b0d14 Prepare files for gtk-doc conversion.
Ankit Vani <a@nevitus.org>
parents: 35141
diff changeset
102 pidgin.c \
15891
8703019e56de win32 fixes for s/gaim/purple/ stuff.
Daniel Atallah <datallah@pidgin.im>
parents: 15765
diff changeset
103 pidginstock.c \
21904
04838305a40c Add the new file in .mingw, thanks to Kevin.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21671
diff changeset
104 pidgintooltip.c \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
105 win32/gtkwin32dep.c \
35912
0c0112fff3d2 We don't need GtkSpell anymore (see: WebKitGtk, Enchant)
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35893
diff changeset
106 win32/untar.c
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
107
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
108 PIDGIN_RC_SRC = win32/pidgin_dll_rc.rc
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
109 PIDGIN_OBJECTS = $(PIDGIN_C_SRC:%.c=%.o) $(PIDGIN_RC_SRC:%.rc=%.o)
14529
d3cec5c0192e [gaim-migrate @ 17183]
Daniel Atallah <datallah@pidgin.im>
parents: 14509
diff changeset
110
15438
c3e93cd038c5 Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
111 EXE_RC_SRC = win32/pidgin_exe_rc.rc
c3e93cd038c5 Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
112 EXE_C_SRC = win32/winpidgin.c
14529
d3cec5c0192e [gaim-migrate @ 17183]
Daniel Atallah <datallah@pidgin.im>
parents: 14509
diff changeset
113 EXE_OBJECTS = $(EXE_C_SRC:%.c=%.o) $(EXE_RC_SRC:%.rc=%.o)
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
114
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
115 ##
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
116 ## LIBRARIES
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
117 ##
17479
fee386cc9f1c Fix pidgin mingw build not to link to unneeded libraries.
Daniel Atallah <datallah@pidgin.im>
parents: 17391
diff changeset
118
fee386cc9f1c Fix pidgin mingw build not to link to unneeded libraries.
Daniel Atallah <datallah@pidgin.im>
parents: 17391
diff changeset
119 PIDGIN_LIBS = \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
120 -lintl \
17479
fee386cc9f1c Fix pidgin mingw build not to link to unneeded libraries.
Daniel Atallah <datallah@pidgin.im>
parents: 17391
diff changeset
121 -lglib-2.0 \
fee386cc9f1c Fix pidgin mingw build not to link to unneeded libraries.
Daniel Atallah <datallah@pidgin.im>
parents: 17391
diff changeset
122 -lgobject-2.0 \
17496
dd32a48782c0 Link pidgin against gthread again (I only just removed it a few days ago and now it is needed again).
Daniel Atallah <datallah@pidgin.im>
parents: 17479
diff changeset
123 -lgthread-2.0 \
17479
fee386cc9f1c Fix pidgin mingw build not to link to unneeded libraries.
Daniel Atallah <datallah@pidgin.im>
parents: 17391
diff changeset
124 -lpurple \
fee386cc9f1c Fix pidgin mingw build not to link to unneeded libraries.
Daniel Atallah <datallah@pidgin.im>
parents: 17391
diff changeset
125 -lz \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
126 -lgtk-win32-2.0 \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
127 -latk-1.0 \
31219
51169fe44203 Link with cairo on win32.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 30734
diff changeset
128 -lcairo \
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
129 -lpango-1.0 \
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
130 -lgdk-win32-2.0 \
15765
f281403e98cf Fix win32 docklet. This is pretty ugly - we'll force GTK+ 2.10 at some point and use GtkStatusIcon to avoid converting the stock images to HICONs directly.
Daniel Atallah <datallah@pidgin.im>
parents: 15675
diff changeset
131 -lgdk_pixbuf-2.0 \
17479
fee386cc9f1c Fix pidgin mingw build not to link to unneeded libraries.
Daniel Atallah <datallah@pidgin.im>
parents: 17391
diff changeset
132 -lgdi32 \
35141
48e4e99bb831 Fix win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 34951
diff changeset
133 -lgadu \
33854
5744cfb1c3d1 Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33598
diff changeset
134 -lwinmm \
33948
b6c9e5dd95d1 VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33941
diff changeset
135 $(VV_LIBS) \
33854
5744cfb1c3d1 Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33598
diff changeset
136 -lwebkitgtk-1.0
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
137
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
138 include $(PIDGIN_COMMON_RULES)
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
139
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
140 ##
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
141 ## TARGET DEFINITIONS
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
142 ##
18770
19fd340ce715 Convert portable winpidgin launcher executable to be the same binary as pidgin.exe and determine which behavior to use at runtime. Running "pidgin.exe --portable-mode" or renaming "pidgin.exe" to "pidgin-portable.exe" will cause the portable mode to be used.
Daniel Atallah <datallah@pidgin.im>
parents: 18100
diff changeset
143 .PHONY: all install install_shallow clean
14529
d3cec5c0192e [gaim-migrate @ 17183]
Daniel Atallah <datallah@pidgin.im>
parents: 14509
diff changeset
144
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
145 all: $(EXE_TARGET).exe $(PIDGIN_TARGET).dll
33937
f15e97d8758e win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33930
diff changeset
146 $(MAKE_at) $(MAKE) -C $(PIDGIN_PLUGINS_TOP) -f $(MINGW_MAKEFILE)
14634
23dd4c5cd4f2 [gaim-migrate @ 17296]
Daniel Atallah <datallah@pidgin.im>
parents: 14633
diff changeset
147
33948
b6c9e5dd95d1 VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33941
diff changeset
148 gtkdialogs.c: $(PIDGIN_REVISION_H)
b6c9e5dd95d1 VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33941
diff changeset
149
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
150 win32/pidgin_exe_rc.rc: win32/pidgin_exe_rc.rc.in $(PIDGIN_TREE_TOP)/VERSION
33937
f15e97d8758e win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33930
diff changeset
151 @echo -e " GEN\t$@"
35865
7f49bc843ce1 cross-win32: add version information to Pidgin/libpurple binaries
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35782
diff changeset
152 @sed -e 's/@PURPLE_VERSION@/$(PIDGIN_VERSION)/g' \
35893
c83a09a6e3d5 Fix legacy win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35865
diff changeset
153 -e 's/@PURPLE_MAJOR_VERSION@/$(PURPLE_MAJOR_VERSION)/g' \
c83a09a6e3d5 Fix legacy win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35865
diff changeset
154 -e 's/@PURPLE_MINOR_VERSION@/$(PURPLE_MINOR_VERSION)/g' \
c83a09a6e3d5 Fix legacy win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35865
diff changeset
155 -e 's/@PURPLE_MICRO_VERSION@/$(PURPLE_MICRO_VERSION)/g' \
c83a09a6e3d5 Fix legacy win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35865
diff changeset
156 -e 's/@PURPLE_API_VERSION@/$(PURPLE_API_VERSION)/g' \
14529
d3cec5c0192e [gaim-migrate @ 17183]
Daniel Atallah <datallah@pidgin.im>
parents: 14509
diff changeset
157 $@.in > $@
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
158
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
159 install_shallow: $(PIDGIN_INSTALL_DIR) $(EXE_TARGET).exe $(PIDGIN_TARGET).dll
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
160 cp $(EXE_TARGET).exe $(PIDGIN_TARGET).dll $(PIDGIN_INSTALL_DIR)
33941
80fcf7f86e4a win32: globally define _WIN32_WINNT macro, tune config, move gtkconv themes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33937
diff changeset
161 mkdir -p "$(PIDGIN_INSTALL_DIR)/theme"
80fcf7f86e4a win32: globally define _WIN32_WINNT macro, tune config, move gtkconv themes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33937
diff changeset
162 cp -r themes/* "$(PIDGIN_INSTALL_DIR)/theme/"
80fcf7f86e4a win32: globally define _WIN32_WINNT macro, tune config, move gtkconv themes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33937
diff changeset
163 chmod -R 777 "$(PIDGIN_INSTALL_DIR)/theme/"
14745
d43256e1e6fd [gaim-migrate @ 17435]
Daniel Atallah <datallah@pidgin.im>
parents: 14638
diff changeset
164
d43256e1e6fd [gaim-migrate @ 17435]
Daniel Atallah <datallah@pidgin.im>
parents: 14638
diff changeset
165 install: install_shallow all
33937
f15e97d8758e win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33930
diff changeset
166 $(MAKE_at) $(MAKE) -C $(PIDGIN_PLUGINS_TOP) -f $(MINGW_MAKEFILE) install
f15e97d8758e win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33930
diff changeset
167 $(MAKE_at) $(MAKE) -C $(PIDGIN_PIXMAPS_TOP) -f $(MINGW_MAKEFILE) install
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
168
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
169 win32/pidgin_dll_rc.rc: win32/pidgin_dll_rc.rc.in $(PIDGIN_TREE_TOP)/VERSION
33937
f15e97d8758e win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33930
diff changeset
170 @echo -e " GEN\t$@"
35865
7f49bc843ce1 cross-win32: add version information to Pidgin/libpurple binaries
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35782
diff changeset
171 @sed -e 's/@PURPLE_VERSION@/$(PIDGIN_VERSION)/g' \
35893
c83a09a6e3d5 Fix legacy win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35865
diff changeset
172 -e 's/@PURPLE_MAJOR_VERSION@/$(PURPLE_MAJOR_VERSION)/g' \
c83a09a6e3d5 Fix legacy win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35865
diff changeset
173 -e 's/@PURPLE_MINOR_VERSION@/$(PURPLE_MINOR_VERSION)/g' \
c83a09a6e3d5 Fix legacy win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35865
diff changeset
174 -e 's/@PURPLE_MICRO_VERSION@/$(PURPLE_MICRO_VERSION)/g' \
c83a09a6e3d5 Fix legacy win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35865
diff changeset
175 -e 's/@PURPLE_API_VERSION@/$(PURPLE_API_VERSION)/g' \
14529
d3cec5c0192e [gaim-migrate @ 17183]
Daniel Atallah <datallah@pidgin.im>
parents: 14509
diff changeset
176 $@.in > $@
d3cec5c0192e [gaim-migrate @ 17183]
Daniel Atallah <datallah@pidgin.im>
parents: 14509
diff changeset
177
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
178 $(EXE_OBJECTS) $(PIDGIN_OBJECTS): $(PIDGIN_CONFIG_H)
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
179
33930
392528e9a372 Fix compilation for win32
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33858
diff changeset
180 gtkdebug.c: gtkdebug.html.h
392528e9a372 Fix compilation for win32
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33858
diff changeset
181
30734
caafb5a4e95b Kill the win32 idle tracking code that works on old windows versions and move
Daniel Atallah <datallah@pidgin.im>
parents: 30389
diff changeset
182 $(PIDGIN_TARGET).dll $(PIDGIN_TARGET).dll.a: $(PURPLE_DLL).a $(PIDGIN_OBJECTS)
17479
fee386cc9f1c Fix pidgin mingw build not to link to unneeded libraries.
Daniel Atallah <datallah@pidgin.im>
parents: 17391
diff changeset
183 $(CC) -shared $(PIDGIN_OBJECTS) $(LIB_PATHS) $(PIDGIN_LIBS) $(DLL_LD_FLAGS) -Wl,--output-def,$(PIDGIN_TARGET).def,--out-implib,$(PIDGIN_TARGET).dll.a -o $(PIDGIN_TARGET).dll
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
184
30389
967a5b5437a0 Fix parallel builds on win32
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 29807
diff changeset
185 $(EXE_TARGET).exe: $(PIDGIN_CONFIG_H) $(PIDGIN_DLL).a $(EXE_OBJECTS) $(PIDGIN_TARGET).dll
33366
75dbccde9fc7 Enable the GCC Stack-Smashing Protection functionality (-fstack-protector-all)
Daniel Atallah <datallah@pidgin.im>
parents: 33364
diff changeset
186 $(CC) $(EXE_OBJECTS) $(LDFLAGS) -o $(EXE_TARGET).exe
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
187
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
188 ##
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
189 ## CLEAN RULES
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
190 ##
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
191 clean:
33937
f15e97d8758e win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33930
diff changeset
192 $(MAKE_at) $(MAKE) -C $(PIDGIN_PLUGINS_TOP) -f $(MINGW_MAKEFILE) clean
f15e97d8758e win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33930
diff changeset
193 $(MAKE_at) $(MAKE) -C $(PIDGIN_PIXMAPS_TOP) -f $(MINGW_MAKEFILE) clean
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
194 rm -f $(PIDGIN_OBJECTS) $(PIDGIN_RC_SRC) $(EXE_OBJECTS) $(EXE_RC_SRC)
18957
a9c2ef06b34b Make sure we delete all generated files with the mingw clean make target.
Daniel Atallah <datallah@pidgin.im>
parents: 18770
diff changeset
195 rm -f $(PIDGIN_TARGET).dll $(PIDGIN_TARGET).dll.a $(PIDGIN_TARGET).def
18770
19fd340ce715 Convert portable winpidgin launcher executable to be the same binary as pidgin.exe and determine which behavior to use at runtime. Running "pidgin.exe --portable-mode" or renaming "pidgin.exe" to "pidgin-portable.exe" will cause the portable mode to be used.
Daniel Atallah <datallah@pidgin.im>
parents: 18100
diff changeset
196 rm -f $(EXE_TARGET).exe
14377
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents: 14303
diff changeset
197
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15891
diff changeset
198 include $(PIDGIN_COMMON_TARGETS)

mercurial