-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
108 lines (92 loc) · 3.84 KB
/
Makefile
File metadata and controls
108 lines (92 loc) · 3.84 KB
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
############################################################################
# frameworks/multimedia/media/Makefile
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################
include $(APPDIR)/Make.defs
CXXEXT := .cpp
CXXFLAGS += -std=c++17
MODULE = $(CONFIG_MEDIA_SERVER)
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/frameworks/multimedia/media/utils
CSRCS += $(wildcard client/*.c)
ifeq ($(CONFIG_LIBUV),)
CSRCS := $(filter-out $(wildcard client/media_uv*.c), $(CSRCS))
endif
CSRCS += $(wildcard utils/*.c)
ifeq ($(CONFIG_FEATURE_FRAMEWORK),y)
depend::
$(APPDIR)/../prebuilts/tools/rust/bin/jidl/jidl_gen_cpp \
$(APPDIR)/frameworks/multimedia/media/feature/volume.jidl --out-dir \
$(APPDIR)/frameworks/multimedia/media/feature --header volume.h --source volume.c
$(APPDIR)/../prebuilts/tools/rust/bin/jidl/jidl_gen_cpp \
$(APPDIR)/frameworks/multimedia/media/feature/audio.jidl --out-dir \
$(APPDIR)/frameworks/multimedia/media/feature --header audio.h --source audio.c
$(APPDIR)/../prebuilts/tools/rust/bin/jidl/jidl_gen_cpp \
$(APPDIR)/frameworks/multimedia/media/feature/session.jidl --out-dir \
$(APPDIR)/frameworks/multimedia/media/feature --header session.h --source session.c
$(APPDIR)/../prebuilts/tools/rust/bin/jidl/jidl_gen_cpp \
$(APPDIR)/frameworks/multimedia/media/feature/record.jidl --out-dir \
$(APPDIR)/frameworks/multimedia/media/feature --header record.h --source record.c
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/frameworks/multimedia/media/feature
CSRCS += feature/audio.c
CSRCS += feature/audio_impl.c
CSRCS += feature/volume.c
CSRCS += feature/volume_impl.c
CSRCS += feature/session.c
CSRCS += feature/session_impl.c
CSRCS += feature/record.c
CSRCS += feature/record_impl.c
endif # CONFIG_FEATURE_FRAMEWORK
ifneq ($(CONFIG_MEDIA_FOCUS),)
CSRCS += server/media_focus.c server/focus_stack.c
endif
ifneq ($(CONFIG_MEDIA_SERVER),)
CSRCS += server/media_stub.c server/media_server.c server/media_plugin.c
MAINSRC = server/media_daemon.c
PROGNAME = $(CONFIG_MEDIA_SERVER_PROGNAME)
PRIORITY = $(CONFIG_MEDIA_SERVER_PRIORITY)
STACKSIZE = $(CONFIG_MEDIA_SERVER_STACKSIZE)
endif
ifneq ($(CONFIG_LIB_FFMPEG),)
CSRCS += server/media_graph.c server/media_session.c
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/external/ffmpeg/ffmpeg
endif
ifneq ($(CONFIG_LIB_PFW),)
CSRCS += server/media_policy.c
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/frameworks/multimedia/media/pfw/include
endif
ifneq ($(CONFIG_MEDIA_TRIGGER),)
CSRCS += server/media_trigger.c
PRIORITY += $(CONFIG_MEDIA_TRIGGER_PRIORITY)
STACKSIZE += $(CONFIG_MEDIA_TRIGGER_STACKSIZE)
endif
ifneq ($(CONFIG_MEDIA_TOOL),)
MAINSRC += media_tool.c
PROGNAME += mediatool
PRIORITY += $(CONFIG_MEDIA_TOOL_PRIORITY)
STACKSIZE += $(CONFIG_MEDIA_TOOL_STACKSIZE)
endif
ASRCS := $(wildcard $(ASRCS))
CSRCS := $(wildcard $(CSRCS))
CXXSRCS := $(wildcard $(CXXSRCS))
MAINSRC := $(wildcard $(MAINSRC))
NOEXPORTSRCS = $(ASRCS)$(CSRCS)$(CXXSRCS)$(MAINSRC)
ifneq ($(NOEXPORTSRCS),)
BIN := $(APPDIR)/staging/libmedia.a
endif
EXPORT_FILES := include
include $(APPDIR)/Application.mk