aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/clutter/clutter-common.inc
blob: 65b490a409029cf86ccf10827fe6d4e65b31e726 (plain)
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
# common functions for all clutter-libraries

# all .debug stuff goes to clutter*-dbg
FILES_${PN}-dbg += "${bindir}/.debug"

# helper for (git)-recipes which do not have gtk-doc.make
copy_gtk_doc_make() {
	if [ -e ${WORKDIR}/gtk-doc.make ] ; then
		cp ${WORKDIR}/gtk-doc.make ${S}/gtk-doc.make
	else
		touch ${S}/gtk-doc.make
	fi
}

# clutter packs assume building and target are the same
# for us they are definitely not
make_all_execs_installable() {
	for i in $(find ${S} -name Makefile.am) ; do
		sed -i -e s:noinst_PROGRAMS:bin_PROGRAMS:g $i
	done
}

#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
def get_clutter_fpu_setting(bb, d):
	if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
		return "--without-fpu"
	return ""