Home | History | Annotate | Download | only in mm-core
      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 += -U_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 
     53 if TARGET_MSM8996
     54 TARGET_REGISTRY = msm8996
     55 endif
     56 
     57 if TARGET_MSM8909
     58 TARGET_REGISTRY = 8909
     59 endif
     60 
     61 if TARGET_MSM8937
     62 TARGET_REGISTRY = 8937
     63 endif
     64 
     65 c_sources +=src/${TARGET_REGISTRY}/registry_table_android.c
     66 
     67 lib_LTLIBRARIES = libOmxCore.la
     68 include_HEADERS = $(h_sources)
     69 libOmxCore_la_SOURCES = $(c_sources)
     70 libOmxCore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
     71 libOmxCore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
     72 libOmxCore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 -lcutils
     73 libOmxCore_la_LDFLAGS += -shared -avoid-version
     74 
     75 lib_LTLIBRARIES += libmm-omxcore.la
     76 
     77 c_sources  =src/common/omx_core_cmp.cpp
     78 c_sources +=src/common/qc_omx_core.c
     79 c_sources +=src/${TARGET_REGISTRY}/registry_table.c
     80 
     81 include_HEADERS = $(h_sources)
     82 libmm_omxcore_la_SOURCES = $(c_sources)
     83 libmm_omxcore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
     84 libmm_omxcore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
     85 libmm_omxcore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 -lcutils
     86 libmm_omxcore_la_LDFLAGS += -shared -avoid-version
     87 
     88