-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathatom.mk
82 lines (72 loc) · 2.43 KB
/
atom.mk
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
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := gst-plugins-good
LOCAL_DESCRIPTION := GStreamer streaming media framework good plug-ins
LOCAL_CATEGORY_PATH := multimedia/gstreamer
LOCAL_CFLAGS := -DPARROT_MP4_FLAVOR
LOCAL_CONFIG_FILES := aconfig.in
$(call load-config)
LOCAL_LIBRARIES := gstreamer gst-plugins-base
LOCAL_CONDITIONAL_LIBRARIES := OPTIONAL:orc
LOCAL_CONDITIONAL_LIBRARIES += OPTIONAL:libsoup
LOCAL_CONDITIONAL_LIBRARIES += OPTIONAL:flac
LOCAL_CONDITIONAL_LIBRARIES += OPTIONAL:cairo
LOCAL_CONDITIONAL_LIBRARIES += OPTIONAL:libpng
LOCAL_CONDITIONAL_LIBRARIES += OPTIONAL:taglib
LOCAL_CONDITIONAL_LIBRARIES += OPTIONAL:zlib
LOCAL_CONDITIONAL_LIBRARIES += OPTIONAL:libjpeg-turbo
# --disable-maintainer-mode is to avoid regenerating configure/Makefile.in
# that we store in git repo
LOCAL_AUTOTOOLS_CONFIGURE_ARGS := \
--disable-maintainer-mode \
--disable-nls \
--disable-examples \
--disable-gtk-doc-html \
--disable-introspection
# Explicitly disable libraries that we don't depend on.
# It ensures consistency in build.
# If you want to enable one, put it also in LOCAL_CONDITIONAL_LIBRARIES and
# uncomment section in configuration file
LOCAL_AUTOTOOLS_CONFIGURE_ARGS += \
--disable-directsound \
--disable-waveform \
--disable-oss \
--disable-oss4 \
--disable-sunaudio \
--disable-osx_audio \
--disable-osx_video \
--disable-x \
--disable-aalib \
--disable-gdk_pixbuf \
--disable-libcaca \
--disable-libdv \
--disable-pulse \
--disable-dv1394 \
--disable-shout2 \
--disable-speex \
--disable-vpx \
--disable-wavpack \
--disable-bz2
# Get all config options from aconfig.in file and associate each option
# with its configure option. Each output lines look like:
# GST_PLUGINS_GOOD_DISABLE_FOO:--disable-foo
#
# To avoid useless processing, we first exclude all commented lines and those
# that don't start with config.
gst_plugins_good_configs := $(shell sed -e '/^\s*config/!d' \
-e 's/^\s*config\s\+\(GST_PLUGINS_GOOD_\(.*\)\)/\1/' \
-e 'h' \
-e 's/GST_PLUGINS_GOOD_\(.*\)/--\L\1/' \
-e 's/_/-/g' \
-e 'H' \
-e 'g' \
-e 's/\n/:/' $(LOCAL_PATH)/aconfig.in)
# Update LOCAL_AUTOTOOLS_CONFIGURE_ARGS with config state
$(foreach _config,$(gst_plugins_good_configs), \
$(eval _var := $(word 1,$(subst $(colon),$(space),$(_config)))) \
$(eval _opt := $(word 2,$(subst $(colon),$(space),$(_config)))) \
$(if $(CONFIG_$(_var)), \
$(eval LOCAL_AUTOTOOLS_CONFIGURE_ARGS += $(_opt)) \
) \
)
include $(BUILD_AUTOTOOLS)