summaryrefslogtreecommitdiffstats
path: root/build
blob: 615510b60b85ea6bd316c6e732a24a19bf666003 (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
29
30
31
32
#!/usr/bin/make -f

upstream_source = glib
include ../source.mk

nop:
	@:

build:
	oh-autoconfigure -- \
		--enable-static \
		--disable-selinux \
		--disable-fam \
		--disable-xattr \
		--disable-libelf \
		--with-pcre=system
	oh-autobuild
	#if [ 'x$(OPK_BUILD_ARCH)' = 'x$(OPK_HOST_ARCH)' ]; then \
	#	oh-autobuild -T check; \
	#fi
	touch $@

install: build
	oh-autoinstall
	rm dest/usr/bin/glib-mkenums dest/usr/bin/gtester-report
	rm dest/usr/lib/$(OPK_HOST_ARCH)/*.la
	rm dest/usr/share/bash-completion/completions/*
	rm dest/usr/share/gdb/auto-load/*.py
	rm dest/usr/share/glib-2.0/gdb/*.py
	oh-fixperms
	oh-strip -k
	oh-installfiles