Mercurial > pidgin
annotate src/protocols/yahoo/Makefile.mingw @ 9306:04a3e9e869ee
[gaim-migrate @ 10114]
Ok, this is yahoo buddy icon uploading support.
It's still not quite right, but it mostly works.
We don't send out updates yet so changing it or unsetting it may not work.
But setting it initally, or changing it and relogging will probably work.
I never did figure out what hash function yahoo is using, so I just used
g_string_hash. It probably won't matter.
I hope to finish this up before release. But people probably won't notice
the bugs too much anyway. It shouldn't crash or anything, people just might
not always see your newest icon right away.
Have fun kids.
For the record, Simguy tells me Yahoo likes 96x96 PNGs.
committer: Tailor Script <tailor@pidgin.im>
| author | Tim Ringenbach <marv@pidgin.im> |
|---|---|
| date | Fri, 18 Jun 2004 07:28:25 +0000 |
| parents | 2401a9ef74a0 |
| children | 3aa848ccf986 |
| rev | line source |
|---|---|
| 3630 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of libyahoo | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 INCLUDE_DIR := . | |
| 12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 13 GAIM_TOP := ../../.. | |
| 14 YAHOO_ROOT := . | |
| 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 16 | |
| 17 ## | |
| 18 ## VARIABLE DEFINITIONS | |
| 19 ## | |
| 20 | |
| 21 TARGET = libyahoo | |
| 22 | |
| 23 # Compiler Options | |
| 24 | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
25 CFLAGS = |
| 3630 | 26 |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
27 DEFINES = |
| 3630 | 28 |
| 29 # Static or Plugin... | |
| 30 ifeq ($(TYPE),STATIC) | |
| 31 DEFINES += -DSTATIC | |
| 32 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 33 else | |
| 34 ifeq ($(TYPE),PLUGIN) | |
| 35 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 36 endif | |
| 37 endif | |
| 38 | |
| 39 | |
| 40 ## | |
| 41 ## INCLUDE MAKEFILES | |
| 42 ## | |
| 43 | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
44 include $(GAIM_TOP)/src/win32/global.mak |
| 3630 | 45 |
| 46 ## | |
| 47 ## INCLUDE PATHS | |
| 48 ## | |
| 49 | |
| 50 INCLUDE_PATHS += -I$(YAHOO_ROOT) \ | |
| 51 -I$(GTK_TOP)/include \ | |
| 52 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 53 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 54 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 55 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 56 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 57 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 58 -I$(GAIM_TOP)/src \ | |
| 59 -I$(GAIM_TOP)/src/win32 \ | |
| 60 -I$(GAIM_TOP) | |
| 61 | |
| 62 | |
| 63 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 64 -L$(GAIM_TOP)/src | |
| 65 | |
| 66 | |
| 67 ## | |
| 68 ## SOURCES, OBJECTS | |
| 69 ## | |
| 70 | |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
71 C_SRC = yahoo.c \ |
| 8349 | 72 yahoo_auth.c \ |
|
6745
57a24492434b
[gaim-migrate @ 7277]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6574
diff
changeset
|
73 yahoochat.c \ |
| 7659 | 74 yahoo_filexfer.c \ |
| 9162 | 75 yahoo_profile.c \ |
| 9306 | 76 yahoo_picture.c \ |
| 9278 | 77 yahoo_friend.c \ |
|
6574
6256c2903d56
[gaim-migrate @ 7096]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5932
diff
changeset
|
78 crypt.c \ |
|
6256c2903d56
[gaim-migrate @ 7096]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5932
diff
changeset
|
79 util.c |
| 3630 | 80 |
| 81 | |
| 82 OBJECTS = $(C_SRC:%.c=%.o) | |
| 83 | |
| 84 | |
| 85 ## | |
| 86 ## LIBRARIES | |
| 87 ## | |
| 88 | |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
89 LIBS = -lgtk-win32-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
90 -lglib-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
91 -lgdk-win32-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
92 -lgmodule-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
93 -lgobject-2.0 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
94 -lws2_32 \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
95 -lintl \ |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
96 -lgaim |
| 3630 | 97 |
| 98 | |
| 99 ## | |
| 100 ## RULES | |
| 101 ## | |
| 102 | |
| 103 # How to make a C file | |
| 104 | |
| 105 %.o: %.c | |
| 106 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 107 | |
| 108 ## | |
| 109 ## TARGET DEFINITIONS | |
| 110 ## | |
| 111 | |
| 112 .PHONY: all clean | |
| 113 | |
| 114 all: $(TARGET).dll | |
| 115 | |
| 116 install: | |
| 117 cp $(YAHOO_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 118 | |
| 119 | |
| 120 ## | |
| 121 ## BUILD Dependencies | |
| 122 ## | |
| 123 | |
| 124 $(GAIM_TOP)/src/gaim.lib: | |
| 125 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 126 | |
| 127 ## | |
| 128 ## BUILD DLL | |
| 129 ## | |
| 130 | |
|
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
131 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
|
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
132 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
| 3630 | 133 |
| 134 | |
| 135 ## | |
| 136 ## CLEAN RULES | |
| 137 ## | |
| 138 | |
| 139 clean: | |
| 140 rm -rf *.o | |
| 141 rm -rf $(TARGET).dll | |
| 142 rm -rf $(TARGET).lib |
