blob: 9fa9b32f841c6ae75b045eacebdf13a372274ab3 [file] [log] [blame]
Srinu Gorle04d5e402016-09-27 16:07:56 +05301# sources and intermediate files are separated
2
3#AM_CFLAGS = -Wall
4#AM_CFLAGS += -Wundef
5#AM_CFLAGS += -Wstrict-prototypes
6#AM_CFLAGS += -Wno-trigraphs
7#AM_CFLAGS += -g -O3
8#AM_CFLAGS += -O0 -fno-inline -fno-short-enums
9#AM_CFLAGS += -fPIC
10
11AM_CPPFLAGS = -D__packed__=
12AM_CPPFLAGS += -D_ANDROID_
13AM_CPPFLAGS += -D_ENABLE_QC_MSG_LOG_
14#AM_CPPFLAGS += -g -O3
15#AM_CPPFLAGS += -O0 -fno-inline -fno-short-enums
16AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/
17AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/
18AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy"
19AM_CPPFLAGS += "-Dstrlcat=g_strlcat"
20
21h_sources =inc/OMX_Audio.h
22h_sources +=inc/OMX_Component.h
23h_sources +=inc/OMX_ContentPipe.h
24h_sources +=inc/OMX_Core.h
25h_sources +=inc/OMX_Image.h
26h_sources +=inc/OMX_Index.h
27h_sources +=inc/OMX_IVCommon.h
28h_sources +=inc/OMX_Other.h
29h_sources +=inc/OMX_QCOMExtns.h
30h_sources +=inc/OMX_Types.h
31h_sources +=inc/OMX_Video.h
32h_sources +=inc/qc_omx_common.h
33h_sources +=inc/qc_omx_component.h
34h_sources +=inc/qc_omx_msg.h
35h_sources +=inc/QOMX_AudioExtensions.h
36h_sources +=inc/QOMX_AudioIndexExtensions.h
37h_sources +=inc/OMX_CoreExt.h
38h_sources +=inc/QOMX_CoreExtensions.h
39h_sources +=inc/QOMX_FileFormatExtensions.h
40h_sources +=inc/QOMX_IVCommonExtensions.h
41h_sources +=inc/QOMX_SourceExtensions.h
42h_sources +=inc/QOMX_VideoExtensions.h
43h_sources +=inc/OMX_IndexExt.h
44h_sources +=inc/QOMX_StreamingExtensions.h
45
46c_sources =src/common/omx_core_cmp.cpp
47c_sources +=src/common/qc_omx_core.c
48
49if TARGET_MSM8953
50TARGET_REGISTRY = msm8953
51endif
52
Srinu Gorle667b16f2016-10-28 15:06:21 +053053if TARGET_MSM8996
54TARGET_REGISTRY = msm8996
55endif
56
Arun Kumar Dasarif7ad0db2016-05-26 11:05:29 +053057if TARGET_MSM8909
58TARGET_REGISTRY = 8909
59endif
60
Srinu Gorle04d5e402016-09-27 16:07:56 +053061c_sources +=src/${TARGET_REGISTRY}/registry_table_android.c
62
63lib_LTLIBRARIES = libOmxCore.la
64include_HEADERS = $(h_sources)
65libOmxCore_la_SOURCES = $(c_sources)
66libOmxCore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
67libOmxCore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
Arun Kumar Dasarif7ad0db2016-05-26 11:05:29 +053068libOmxCore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 -lcutils
69libOmxCore_la_LDFLAGS += -shared -avoid-version
Srinu Gorle04d5e402016-09-27 16:07:56 +053070
71lib_LTLIBRARIES += libmm-omxcore.la
72
73c_sources =src/common/omx_core_cmp.cpp
74c_sources +=src/common/qc_omx_core.c
75c_sources +=src/${TARGET_REGISTRY}/registry_table.c
76
77include_HEADERS = $(h_sources)
78libmm_omxcore_la_SOURCES = $(c_sources)
79libmm_omxcore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
80libmm_omxcore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
Arun Kumar Dasarif7ad0db2016-05-26 11:05:29 +053081libmm_omxcore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 -lcutils
82libmm_omxcore_la_LDFLAGS += -shared -avoid-version
Srinu Gorle04d5e402016-09-27 16:07:56 +053083