regular revision 20929296
1# This file defines the content of the regular Haiku image.
2
3# import everything from the minimum image
4include [ FDirName $(HAIKU_BUILD_RULES_DIR) images definitions minimum ] ;
5
6SYSTEM_BIN += [ FFilterByBuildFeatures
7	CortexAddOnHost
8	FirstBootPrompt	fwcontrol@x86
9	gdb@x86
10	installsound
11	mail2mbox mbox2mail mkdos mount_nfs
12	play playfile playsound playwav
13	screenshot setdecor spamdbm
14	translate
15] ;
16
17SYSTEM_APPS += [ FFilterByBuildFeatures
18	CDPlayer CodyCam
19	GLInfo@mesa
20	HaikuDepot
21	Icon-O-Matic Installer LaunchBox
22	Magnify Mail MediaConverter MediaPlayer MidiPlayer
23	PackageInstaller People PoorMan PowerStatus
24	RemoteDesktop
25	Screenshot SerialConnect SoundRecorder
26	TV
27	WebWatch
28] ;
29
30DESKBAR_APPLICATIONS +=
31	CodyCam CDPlayer
32	HaikuDepot
33	Icon-O-Matic Installer
34	Magnify Mail MediaConverter MediaPlayer MidiPlayer
35	People PoorMan
36	SoundRecorder
37	TV
38;
39
40DESKBAR_DESKTOP_APPLETS +=
41	LaunchBox
42	PowerStatus
43;
44
45SYSTEM_PREFERENCES += [ FFilterByBuildFeatures
46	DataTranslations
47	E-mail
48	Media
49	Printers
50	ScreenSaver Sounds
51] ;
52
53SYSTEM_DEMOS += [ FFilterByBuildFeatures
54	BSnow Chart Clock Cortex FontDemo GLTeapot@mesa
55	$(HAIKU_INCLUDE_TRADEMARKS)Haiku3d@mesa Mandelbrot OverlayImage Pairs
56	PatchBay Playground Pulse Sudoku
57] ;
58
59
60rule HaikuImageGetSystemLibs
61{
62	return
63		# libs with special grist
64		[ MultiArchDefaultGristFiles libroot.so : revisioned ]
65		$(HAIKU_SHARED_LIBSTDC++_$(TARGET_PACKAGING_ARCH))
66		$(HAIKU_SHARED_LIBSUPC++_$(TARGET_PACKAGING_ARCH))
67		# libs with standard grist
68		[ MultiArchDefaultGristFiles [ FFilterByBuildFeatures
69			libalm.so
70			libbe.so libbsd.so libbnetapi.so
71			libdebug.so libdevice.so
72			libgame.so libglut.so@mesa libgnu.so
73			libmail.so libmedia.so libmidi.so libmidi2.so
74			libnetwork.so
75			libpackage.so
76			libscreensaver.so
77			libtextencoding.so libtracker.so libtranslation.so
78		] ]
79		;
80}
81
82
83rule HaikuImageGetPrivateSystemLibs
84{
85	return [ MultiArchDefaultGristFiles [ FFilterByBuildFeatures
86		libalm.so
87		libfluidsynth.so
88		libilmimf.so
89		libpackage-add-on-libsolv.so
90		libroot-addon-icu.so
91	] ] ;
92}
93
94
95SYSTEM_SERVERS += [ FFilterByBuildFeatures
96	cddb_daemon
97	mail_daemon media_addon_server media_server midi_server
98	nfs4_idmapper_server
99	print_server print_addon_server
100] ;
101
102SYSTEM_ADD_ONS_ACCELERANTS += [ FFilterByBuildFeatures
103	x86,x86_64 @{
104		intel_810.accelerant intel_extreme.accelerant
105		matrox.accelerant
106		nvidia.accelerant
107		radeon.accelerant radeon_hd.accelerant
108		#via.accelerant
109	}@ # x86,x86_64
110	x86 @{
111		3dfx.accelerant ati.accelerant neomagic.accelerant s3.accelerant
112	}@ # x86
113] ;
114
115SYSTEM_ADD_ONS_TRANSLATORS += [ FFilterByBuildFeatures
116	BMPTranslator
117	EXRTranslator
118	GIFTranslator
119	HVIFTranslator
120	ICOTranslator ICNSTranslator
121	JPEGTranslator	JPEG2000Translator
122	PCXTranslator PNGTranslator PPMTranslator PSDTranslator
123	RAWTranslator RTFTranslator
124	SGITranslator
125	TGATranslator TIFFTranslator@tiff
126	WebPTranslator WonderBrushTranslator
127] ;
128
129SYSTEM_ADD_ONS_MEDIA += [ FFilterByBuildFeatures
130	cortex_audioadapter.media_addon	cortex_flanger.media_addon
131	dvb.media_addon@x86
132	equalizer.media_addon
133	firewire_dv.media_addon@x86
134	hmulti_audio.media_addon
135	#legacy.media_addon
136	mixer.media_addon
137	opensound.media_addon
138	tone_producer_demo.media_addon
139	usb_webcam.media_addon
140	video_producer_demo.media_addon	video_window_demo.media_addon
141	vst_host.media_addon
142] ;
143
144SYSTEM_ADD_ONS_MEDIA_PLUGINS += [ FFilterByBuildFeatures
145	ffmpeg@ffmpeg
146	raw_decoder
147] ;
148
149SYSTEM_ADD_ONS_PRINT += [ FFilterByBuildFeatures
150	Canon\ LIPS3\ Compatible
151	Canon\ LIPS4\ Compatible
152	Gutenprint@gutenprint
153	PCL5\ Compatible
154	PCL6\ Compatible
155	PDF\ Writer
156	PS\ Compatible
157	Preview
158] ;
159
160SYSTEM_ADD_ONS_PRINT_TRANSPORT +=
161	HP\ JetDirect
162	IPP
163	LPR
164	# Parallel\ Port
165	Print\ To\ File
166	Serial\ Port
167	USB\ Port
168;
169
170SYSTEM_ADD_ONS_SCREENSAVERS += [ FFilterByBuildFeatures
171	Butterfly
172	DebugNow
173	Flurry@mesa
174	GLife@mesa Gravity@mesa
175	$(HAIKU_INCLUDE_TRADEMARKS)Haiku
176	Icons IFS
177	Leaves
178	Message
179	Spider
180] ;
181
182SYSTEM_ADD_ONS_DRIVERS_AUDIO +=
183	auich auvia
184	echo3g emuxki
185	hda
186	ice1712
187	sis7018
188;
189
190SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD +=
191	#cmedia usb_audio
192;
193
194SYSTEM_ADD_ONS_DRIVERS_GRAPHICS += [ FFilterByBuildFeatures
195	x86,x86_64 @{
196		intel_810 intel_extreme
197		matrox
198		nvidia
199		radeon radeon_hd
200		#via
201	}@ # x86,x86_64
202	x86 @{
203		3dfx
204		ati
205		neomagic
206		s3
207	}@ # x86
208] ;
209
210SYSTEM_ADD_ONS_DRIVERS_MIDI +=
211	emuxki
212	ice1712
213	usb_midi
214;
215
216SYSTEM_ADD_ONS_DRIVERS_POWER += [ FFilterByBuildFeatures
217	acpi_battery@x86,x86_64
218] ;
219
220SYSTEM_ADD_ONS_FILE_SYSTEMS +=
221	cdda
222	googlefs
223	nfs nfs4
224;
225
226# Mailbox folders and symlink
227AddDirectoryToHaikuImage home mail draft ;
228AddDirectoryToHaikuImage home mail in ;
229AddDirectoryToHaikuImage home mail out ;
230
231# Add boot launch directory
232AddDirectoryToHaikuImage home config settings boot launch ;
233
234# Add mail provider infos.
235AddFilesToHaikuImage home config settings Mail ProviderInfo :
236	$(HAIKU_PROVIDER_INFOS) ;
237
238# Add Tracker New Templates
239AddFilesToHaikuImage home config settings Tracker "Tracker New Templates"
240	:
241	"<tracker-new-templates>C++ header"
242	"<tracker-new-templates>C++ source"
243	"<tracker-new-templates>makefile"
244	"<tracker-new-templates>text file"
245;
246
247#local bashCompletionFiles = [ Glob $(etcDir)/bash_completion.d : * ] ;
248#local bashCompletionHelperFiles
249#    = [ Glob $(etcDir)/bash_completion.d/helpers : * ] ;
250#bashCompletionFiles = $(bashCompletionFiles:G=bash-completion) ;
251#bashCompletionHelperFiles = $(bashCompletionHelperFiles:G=bash-completion-hlp) ;
252#AddDirectoryToHaikuImage system etc bash_completion.d ;
253#AddDirectoryToHaikuImage system etc bash_completion.d helpers ;
254#AddFilesToHaikuImage system etc bash_completion.d : $(bashCompletionFiles) ;
255#AddFilesToHaikuImage system etc bash_completion.d helpers
256#    : $(bashCompletionHelperFiles) ;
257
258# decorators
259#AddFilesToHaikuImage system non-packaged add-ons decorators
260#	: BeDecorator MacDecorator WinDecorator ;
261
262# printers
263AddDirectoryToHaikuImage home config settings printers Preview
264	: home-config-settings-printers-preview.rdef ;
265AddDirectoryToHaikuImage home config settings printers "Save as PDF"
266	: home-config-settings-printers-save-as-pdf.rdef ;
267
268# dvb channel settings
269CopyDirectoryToHaikuImage home config settings Media
270	: [ FDirName $(HAIKU_TOP) data settings media dvb ]
271	: dvb : -x Jamfile ;
272
273# repository config and cache files
274local repositories = $(HAIKU_REPOSITORIES) ;
275if $(HAIKU_ADD_HAIKU_REPOSITORY_CONFIG) {
276	repositories += <repository>haiku ;
277}
278local repository ;
279for repository in $(repositories) {
280	local config = [ on $(repository) return $(HAIKU_REPOSITORY_CONFIG_FILE) ] ;
281	local cache = [ on $(repository) return $(HAIKU_REPOSITORY_CACHE_FILE) ] ;
282	if $(HAIKU_UPDATE_ALL_PACKAGES) {
283		HAIKU_INCLUDE_IN_IMAGE on $(config) $(cache) = 1 ;
284	}
285	AddFilesToHaikuImage system settings package-repositories
286		: $(config) : $(repository:G=) ;
287	AddFilesToHaikuImage system cache package-repositories
288		: $(cache) : $(repository:G=) ;
289}
290