Tue, 02 Oct 2007 17:16:16 +0000
Rename PURPLE_REASON_INVALID_USERNAME to PURPLE_REASON_INVALID_SETTINGS, so it
can be used when a server parameter is required but not supplied (for example).
| 14286 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
4 | # Description: Makefile for win32 (mingw) version of LibPurple |
| 14286 | 5 | # |
| 6 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
7 | PIDGIN_TREE_TOP := .. |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
8 | include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
| 14286 | 9 | |
|
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
|
10 | TARGET = libpurple |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14303
diff
changeset
|
11 | NEEDED_DLLS = $(LIBXML2_TOP)/bin/libxml2.dll |
| 14286 | 12 | |
| 13 | ## | |
| 14 | ## INCLUDE PATHS | |
| 15 | ## | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
16 | INCLUDE_PATHS += \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
17 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
18 | -I$(PURPLE_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
19 | -I$(PIDGIN_TREE_TOP) \ |
| 14286 | 20 | -I$(GTK_TOP)/include \ |
| 21 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 22 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14303
diff
changeset
|
23 | -I$(LIBXML2_TOP)/include |
| 14286 | 24 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
25 | LIB_PATHS += -L$(GTK_TOP)/lib \ |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14303
diff
changeset
|
26 | -L$(LIBXML2_TOP)/lib |
| 14286 | 27 | |
| 28 | ## | |
| 29 | ## SOURCES, OBJECTS | |
| 30 | ## | |
| 31 | C_SRC = \ | |
| 32 | account.c \ | |
| 33 | accountopt.c \ | |
| 34 | blist.c \ | |
| 35 | buddyicon.c \ | |
|
19668
2071903c58e4
Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents:
18957
diff
changeset
|
36 | certificate.c \ |
| 14286 | 37 | cipher.c \ |
| 38 | cmds.c \ | |
| 39 | connection.c \ | |
| 40 | conversation.c \ | |
| 41 | core.c \ | |
| 42 | debug.c \ | |
| 43 | dnsquery.c \ | |
| 44 | dnssrv.c \ | |
| 45 | eventloop.c \ | |
| 46 | ft.c \ | |
| 47 | circbuffer.c \ | |
| 48 | idle.c \ | |
| 49 | imgstore.c \ | |
| 50 | log.c \ | |
| 51 | mime.c \ | |
|
16036
d74e95743ae1
fix win32 build for nat-pmp stuff. I haven't tested it, but it compiles.
Daniel Atallah <datallah@pidgin.im>
parents:
15891
diff
changeset
|
52 | nat-pmp.c \ |
| 14286 | 53 | network.c \ |
| 54 | notify.c \ | |
| 55 | ntlm.c \ | |
| 56 | plugin.c \ | |
| 57 | pluginpref.c \ | |
| 58 | pounce.c \ | |
| 59 | prefs.c \ | |
| 60 | privacy.c \ | |
| 61 | proxy.c \ | |
| 62 | prpl.c \ | |
| 63 | request.c \ | |
| 64 | roomlist.c \ | |
| 65 | savedstatuses.c \ | |
| 66 | server.c \ | |
| 67 | signals.c \ | |
| 68 | sound.c \ | |
| 69 | sslconn.c \ | |
| 70 | status.c \ | |
| 71 | stringref.c \ | |
| 72 | stun.c \ | |
| 73 | upnp.c \ | |
| 74 | util.c \ | |
| 75 | value.c \ | |
|
17721
2570bd5db300
Somehow, version.c wasn't added to the libpurple build. Now that it is actually used, it really needs to be added.
Daniel Atallah <datallah@pidgin.im>
parents:
17391
diff
changeset
|
76 | version.c \ |
| 14286 | 77 | xmlnode.c \ |
| 78 | whiteboard.c \ | |
|
14792
02a5df4343f7
[gaim-migrate @ 17486]
Daniel Atallah <datallah@pidgin.im>
parents:
14760
diff
changeset
|
79 | win32/giowin32.c \ |
| 14286 | 80 | win32/libc_interface.c \ |
| 81 | win32/win32dep.c | |
| 82 | ||
|
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
|
83 | RC_SRC = win32/libpurplerc.rc |
|
14529
d3cec5c0192e
[gaim-migrate @ 17183]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
84 | |
|
d3cec5c0192e
[gaim-migrate @ 17183]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
85 | OBJECTS = $(C_SRC:%.c=%.o) $(RC_SRC:%.rc=%.o) |
| 14286 | 86 | |
| 87 | ## | |
| 88 | ## LIBRARIES | |
| 89 | ## | |
| 90 | LIBS = \ | |
| 91 | -lglib-2.0 \ | |
| 92 | -lgthread-2.0 \ | |
| 93 | -lgobject-2.0 \ | |
| 94 | -lgmodule-2.0 \ | |
| 95 | -lintl \ | |
| 96 | -lws2_32 \ | |
| 97 | -lxml2 | |
| 98 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
99 | include $(PIDGIN_COMMON_RULES) |
| 14286 | 100 | |
| 101 | ## | |
| 102 | ## TARGET DEFINITIONS | |
| 103 | ## | |
|
14760
30c5e60cc33b
[gaim-migrate @ 17450]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
104 | .PHONY: all install install_shallow clean |
| 14286 | 105 | |
| 106 | all: $(TARGET).dll | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
107 | $(MAKE) -C $(PURPLE_PROTOS_TOP) -f $(MINGW_MAKEFILE) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
108 | $(MAKE) -C $(PURPLE_PLUGINS_TOP) -f $(MINGW_MAKEFILE) |
| 14286 | 109 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
110 | install_shallow: $(PURPLE_INSTALL_DIR) $(TARGET).dll |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
111 | cp $(TARGET).dll $(PURPLE_INSTALL_DIR) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
112 | cp $(NEEDED_DLLS) $(PURPLE_INSTALL_DIR) |
|
14760
30c5e60cc33b
[gaim-migrate @ 17450]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
113 | |
|
30c5e60cc33b
[gaim-migrate @ 17450]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
114 | install: install_shallow all |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
115 | $(MAKE) -C $(PURPLE_PROTOS_TOP) -f $(MINGW_MAKEFILE) install |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
116 | $(MAKE) -C $(PURPLE_PLUGINS_TOP) -f $(MINGW_MAKEFILE) install |
| 14286 | 117 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
118 | ./win32/libpurplerc.rc: ./win32/libpurplerc.rc.in $(PIDGIN_TREE_TOP)/VERSION |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
119 | sed -e 's/@PURPLE_VERSION@/$(PURPLE_VERSION)/g' \ |
|
14529
d3cec5c0192e
[gaim-migrate @ 17183]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
120 | $@.in > $@ |
|
d3cec5c0192e
[gaim-migrate @ 17183]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
121 | |
|
16663
bcc4caec2e29
Fix version.h generation on mingw build.
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
122 | $(OBJECTS): $(PURPLE_CONFIG_H) $(PURPLE_VERSION_H) |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14303
diff
changeset
|
123 | |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14303
diff
changeset
|
124 | $(TARGET).dll $(TARGET).dll.a: $(OBJECTS) |
|
17391
295a60226a56
Create .def files for easy msvc import library creation.
Daniel Atallah <datallah@pidgin.im>
parents:
16761
diff
changeset
|
125 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--output-def,$(TARGET).def,--out-implib,$(TARGET).dll.a -o $(TARGET).dll |
| 14286 | 126 | |
| 127 | ## | |
| 128 | ## CLEAN RULES | |
| 129 | ## | |
| 130 | clean: | |
|
18957
a9c2ef06b34b
Make sure we delete all generated files with the mingw clean make target.
Daniel Atallah <datallah@pidgin.im>
parents:
17721
diff
changeset
|
131 | rm -f $(OBJECTS) $(RC_SRC) $(PURPLE_VERSION_H) |
|
a9c2ef06b34b
Make sure we delete all generated files with the mingw clean make target.
Daniel Atallah <datallah@pidgin.im>
parents:
17721
diff
changeset
|
132 | rm -f $(TARGET).dll $(TARGET).dll.a $(TARGET).def |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
133 | $(MAKE) -C $(PURPLE_PROTOS_TOP) -f $(MINGW_MAKEFILE) clean |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
134 | $(MAKE) -C $(PURPLE_PLUGINS_TOP) -f $(MINGW_MAKEFILE) clean |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14303
diff
changeset
|
135 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16036
diff
changeset
|
136 | include $(PIDGIN_COMMON_TARGETS) |