Srinu Gorle | 04d5e40 | 2016-09-27 16:07:56 +0530 | [diff] [blame] | 1 | # 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 | |
| 11 | AM_CPPFLAGS = -D__packed__= |
| 12 | AM_CPPFLAGS += -D_ANDROID_ |
| 13 | AM_CPPFLAGS += -D_ENABLE_QC_MSG_LOG_ |
| 14 | #AM_CPPFLAGS += -g -O3 |
| 15 | #AM_CPPFLAGS += -O0 -fno-inline -fno-short-enums |
| 16 | AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/ |
| 17 | AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/ |
| 18 | AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy" |
| 19 | AM_CPPFLAGS += "-Dstrlcat=g_strlcat" |
| 20 | |
| 21 | h_sources =inc/OMX_Audio.h |
| 22 | h_sources +=inc/OMX_Component.h |
| 23 | h_sources +=inc/OMX_ContentPipe.h |
| 24 | h_sources +=inc/OMX_Core.h |
| 25 | h_sources +=inc/OMX_Image.h |
| 26 | h_sources +=inc/OMX_Index.h |
| 27 | h_sources +=inc/OMX_IVCommon.h |
| 28 | h_sources +=inc/OMX_Other.h |
| 29 | h_sources +=inc/OMX_QCOMExtns.h |
| 30 | h_sources +=inc/OMX_Types.h |
| 31 | h_sources +=inc/OMX_Video.h |
| 32 | h_sources +=inc/qc_omx_common.h |
| 33 | h_sources +=inc/qc_omx_component.h |
| 34 | h_sources +=inc/qc_omx_msg.h |
| 35 | h_sources +=inc/QOMX_AudioExtensions.h |
| 36 | h_sources +=inc/QOMX_AudioIndexExtensions.h |
| 37 | h_sources +=inc/OMX_CoreExt.h |
| 38 | h_sources +=inc/QOMX_CoreExtensions.h |
| 39 | h_sources +=inc/QOMX_FileFormatExtensions.h |
| 40 | h_sources +=inc/QOMX_IVCommonExtensions.h |
| 41 | h_sources +=inc/QOMX_SourceExtensions.h |
| 42 | h_sources +=inc/QOMX_VideoExtensions.h |
| 43 | h_sources +=inc/OMX_IndexExt.h |
| 44 | h_sources +=inc/QOMX_StreamingExtensions.h |
| 45 | |
| 46 | c_sources =src/common/omx_core_cmp.cpp |
| 47 | c_sources +=src/common/qc_omx_core.c |
| 48 | |
| 49 | if TARGET_MSM8953 |
| 50 | TARGET_REGISTRY = msm8953 |
| 51 | endif |
| 52 | |
Srinu Gorle | 667b16f | 2016-10-28 15:06:21 +0530 | [diff] [blame] | 53 | if TARGET_MSM8996 |
| 54 | TARGET_REGISTRY = msm8996 |
| 55 | endif |
| 56 | |
Arun Kumar Dasari | f7ad0db | 2016-05-26 11:05:29 +0530 | [diff] [blame] | 57 | if TARGET_MSM8909 |
| 58 | TARGET_REGISTRY = 8909 |
| 59 | endif |
| 60 | |
Srinu Gorle | 04d5e40 | 2016-09-27 16:07:56 +0530 | [diff] [blame] | 61 | c_sources +=src/${TARGET_REGISTRY}/registry_table_android.c |
| 62 | |
| 63 | lib_LTLIBRARIES = libOmxCore.la |
| 64 | include_HEADERS = $(h_sources) |
| 65 | libOmxCore_la_SOURCES = $(c_sources) |
| 66 | libOmxCore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC |
| 67 | libOmxCore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC |
Arun Kumar Dasari | f7ad0db | 2016-05-26 11:05:29 +0530 | [diff] [blame] | 68 | libOmxCore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 -lcutils |
| 69 | libOmxCore_la_LDFLAGS += -shared -avoid-version |
Srinu Gorle | 04d5e40 | 2016-09-27 16:07:56 +0530 | [diff] [blame] | 70 | |
| 71 | lib_LTLIBRARIES += libmm-omxcore.la |
| 72 | |
| 73 | c_sources =src/common/omx_core_cmp.cpp |
| 74 | c_sources +=src/common/qc_omx_core.c |
| 75 | c_sources +=src/${TARGET_REGISTRY}/registry_table.c |
| 76 | |
| 77 | include_HEADERS = $(h_sources) |
| 78 | libmm_omxcore_la_SOURCES = $(c_sources) |
| 79 | libmm_omxcore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC |
| 80 | libmm_omxcore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC |
Arun Kumar Dasari | f7ad0db | 2016-05-26 11:05:29 +0530 | [diff] [blame] | 81 | libmm_omxcore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 -lcutils |
| 82 | libmm_omxcore_la_LDFLAGS += -shared -avoid-version |
Srinu Gorle | 04d5e40 | 2016-09-27 16:07:56 +0530 | [diff] [blame] | 83 | |