~ubuntu-branches/ubuntu/lucid/tomboy/lucid-proposed

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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
include $(top_srcdir)/Makefile.include

SUBDIRS = . Addins

TARGET = Tomboy.exe
WRAPPER = tomboy
PANEL_WRAPPER = tomboy-panel

DBUS_CSFILES = 				\
	$(srcdir)/IRemoteControl.cs	\
	$(srcdir)/RemoteControl.cs	\
	$(srcdir)/RemoteControlProxy.cs

if ENABLE_DBUS
DBUS_CSFLAGS = -define:ENABLE_DBUS
DBUS_USED_CSFILES = $(DBUS_CSFILES)
endif

OSX_CSFILES =					\
	$(srcdir)/MacApplication.cs		\
	$(srcdir)/MacFactory.cs			\
	$(srcdir)/WindowsApplication.cs		\
	$(srcdir)/XmlPreferencesClient.cs

if ENABLE_OSX
OSX_CSFLAGS = -define:MAC
OSX_USED_CSFILES = $(OSX_CSFILES)
OSX_LIBS =					\
	-r:$(top_srcdir)/macbin/ige-mac-integration-sharp.dll
endif

WIN_CSFILES =					\
	$(srcdir)/ManagedWinapi.EventDispatchingNativeWindow.cs	\
	$(srcdir)/ManagedWinapi.Hotkey.cs	\
	$(srcdir)/WindowsApplication.cs		\
	$(srcdir)/WindowsFactory.cs		\
	$(srcdir)/WindowsKeybinder.cs		\
	$(srcdir)/XmlPreferencesClient.cs

if ENABLE_WIN
WIN_CSFLAGS = -define:WIN32
WIN_USED_CSFILES = $(WIN_CSFILES)
WIN_LIBS =					\
	-r:System.Windows.Forms.dll
endif

GNOME_CSFILES =					\
	$(srcdir)/Applet.cs 			\
	$(srcdir)/GConfPreferencesClient.cs	\
	$(srcdir)/GnomeApplication.cs		\
	$(srcdir)/GnomeFactory.cs		\
	$(srcdir)/XKeybinder.cs

if ENABLE_GNOME
GNOME_USED_CSFILES = $(GNOME_CSFILES)

if FIXED_PANELAPPLET
FIXED_PANELAPPLET_CSFLAGS = -define:FIXED_PANELAPPLET
else
PANELAPPLET_USED_CSFILES =			\
	$(srcdir)/panelapplet/*.cs
endif
endif

if FIXED_GTKSPELL
FIXED_GTKSPELL_CSFLAGS = -define:FIXED_GTKSPELL
endif

CSFLAGS = 				\
	-debug				\
	-define:DEBUG 			\
	-unsafe 			\
	-target:exe 			\
	$(DBUS_CSFLAGS) 		\
	$(OSX_CSFLAGS) 		\
	$(WIN_CSFLAGS) 		\
	$(FIXED_PANELAPPLET_CSFLAGS)	\
	$(FIXED_GTKSPELL_CSFLAGS) \
	$(CSC_DEFINES)

CSFILES = 					\
	$(srcdir)/Tomboy.cs 			\
	$(srcdir)/Search.cs 			\
	$(srcdir)/AbstractAddin.cs		\
	$(srcdir)/ActionManager.cs		\
	$(srcdir)/AddinManager.cs		\
	$(srcdir)/AddinPreferenceFactory.cs	\
	$(srcdir)/ApplicationAddin.cs		\
	$(srcdir)/Contrast.cs		\
	$(srcdir)/Keybinder.cs			\
	$(srcdir)/Logger.cs			\
	$(srcdir)/NativeApplication.cs		\
	$(srcdir)/Note.cs 			\
	$(srcdir)/NoteAddin.cs			\
	$(srcdir)/NoteEditor.cs			\
	$(srcdir)/NoteManager.cs 		\
	$(srcdir)/NoteWindow.cs 		\
	$(srcdir)/NoteBuffer.cs 		\
	$(srcdir)/NoteTag.cs 			\
	$(srcdir)/PlatformFactory.cs		\
	$(srcdir)/Preferences.cs		\
	$(srcdir)/PreferencesClient.cs		\
	$(srcdir)/PreferencesDialog.cs		\
	$(srcdir)/PreferenceTabAddin.cs		\
	$(srcdir)/PrefsKeybinder.cs		\
	$(srcdir)/RecentChanges.cs		\
	$(srcdir)/RecentTreeView.cs		\
	$(srcdir)/Services.cs			\
	$(srcdir)/Tag.cs			\
	$(srcdir)/TagButton.cs			\
	$(srcdir)/TagManager.cs			\
	$(srcdir)/Tray.cs 			\
	$(srcdir)/Trie.cs			\
	$(srcdir)/Undo.cs 			\
	$(srcdir)/Utils.cs			\
	$(srcdir)/Watchers.cs			\
	$(srcdir)/Notebooks/*.cs		\
	$(srcdir)/Synchronization/*.cs		\
	\
	$(GNOME_USED_CSFILES)			\
	$(WIN_USED_CSFILES)			\
	$(OSX_USED_CSFILES)			\
	\
	$(PANELAPPLET_USED_CSFILES)			\
	\
	$(srcdir)/Gnome.Keyring/*.cs		\
	\
	$(DBUS_USED_CSFILES)	


ASSEMBLIES = 		\
	$(GTKSHARP_LIBS) 	\
	$(GNOME_LIBS) 	\
	-r:Mono.Posix	\
	$(DBUS_LIBS)	\
	$(LINK_MONO_ADDINS)	\
	$(WIN_LIBS)	\
	$(OSX_LIBS)

RESOURCES = 										\
	-resource:$(top_srcdir)/data/GNOME_TomboyApplet.xml,GNOME_TomboyApplet.xml	\
	-resource:$(top_srcdir)/data/UIManagerLayout.xml	\
	-resource:$(top_srcdir)/data/icons/hicolor_apps_48x48_tomboy.png,tomboy.png			\
	-resource:$(top_srcdir)/data/icons/hicolor_places_22x22_note.png,note.png		\
	-resource:$(top_srcdir)/data/icons/hicolor_actions_16x16_note-new.png,note-new.png		\
	-resource:$(top_srcdir)/data/icons/hicolor_actions_22x22_filter-note-all.png,filter-note-all.png		\
	-resource:$(top_srcdir)/data/icons/hicolor_actions_22x22_filter-note-unfiled.png,filter-note-unfiled.png		\
	-resource:$(top_srcdir)/data/icons/hicolor_places_22x22_notebook.png,notebook.png		\
	-resource:$(top_srcdir)/data/icons/hicolor_actions_48x48_notebook-new.png,notebook-new.png		\
	-resource:$(top_srcdir)/data/icons/hicolor_status_16x16_pin-down.png,pin-down.png				\
	-resource:$(top_srcdir)/data/icons/hicolor_status_16x16_pin-up.png,pin-up.png		\
	-resource:$(top_srcdir)/data/icons/hicolor_status_16x16_pin-active.png,pin-active.png			\
	-resource:$(srcdir)/Tomboy.addin.xml


$(TARGET).mdb: $(TARGET)

$(TARGET): $(CSFILES) Defines.cs
	$(CSC) -out:$@ $(CSFLAGS) $^ $(ASSEMBLIES) $(RESOURCES)

tomboylibdir = $(pkglibdir)
tomboylib_DATA = $(TARGET) $(TARGET).config $(TARGET).mdb


bin_SCRIPTS = $(WRAPPER) $(PANEL_WRAPPER)

$(WRAPPER): $(srcdir)/$(WRAPPER).in Makefile
	sed -e "s|\@prefix\@|$(prefix)|g" 		\
	    -e "s|\@pkglibdir\@|$(pkglibdir)|g" 	\
	    -e "s|\@bindir\@|$(bindir)|g"		\
	    -e "s|\@target\@|$(TARGET)|g" 		\
	    -e "s|\@wrapper\@|$(WRAPPER)|g"		\
	    -e "s|\@extragac\@|$(EXTRA_GAC_PREFIX)|g"	\
	    -e "s|\@srcdir\@|$(PWD)|g"	\
	    < $< > $@
	chmod +x $(WRAPPER)

$(PANEL_WRAPPER): $(srcdir)/$(PANEL_WRAPPER).in Makefile
	sed -e "s|\@prefix\@|$(prefix)|g" 		\
	    -e "s|\@pkglibdir\@|$(pkglibdir)|g" 	\
	    -e "s|\@bindir\@|$(bindir)|g"		\
	    -e "s|\@target\@|$(TARGET)|g" 		\
	    -e "s|\@wrapper\@|$(WRAPPER)|g"		\
	    -e "s|\@extragac\@|$(EXTRA_GAC_PREFIX)|g"	\
	    -e "s|\@srcdir\@|$(PWD)|g"	\
	    < $< > $@
	chmod +x $(PANEL_WRAPPER)

$(TARGET).config: $(srcdir)/$(TARGET).config.in Makefile
	sed -e "s|\@pkglibdir\@|$(pkglibdir)|" \
	    < $< > $@

Defines.cs: $(srcdir)/Defines.cs.in Makefile
	sed -e "s|\@version\@|$(VERSION)|"     \
	    -e "s|\@datadir\@|$(datadir)|"     \
	    -e "s|\@pkglibdir\@|$(pkglibdir)|" \
	    < $< > $@

EXTRA_DIST =            		\
	$(CSFILES)      		\
	$(GNOME_CSFILES)		\
	$(OSX_CSFILES)		\
	$(WIN_CSFILES)		\
	$(DBUS_CSFILES)		\
	$(PANELAPPLET_CSFILES)		\
	$(WRAPPER).in			\
	$(PANEL_WRAPPER).in		\
	$(TARGET).config.in		\
	$(srcdir)/Defines.cs.in		\
	$(srcdir)/Tomboy.addin.xml

CLEANFILES =			\
	$(TARGET) 		\
	$(TARGET).config	\
	$(TARGET).mdb 		\
	$(WRAPPER)		\
	$(PANEL_WRAPPER)	\
	Defines.cs