-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdm: Add GCC toolchain compatible makefiles.
CRs-Fixed: 1054762 Change-Id: I370acf2507eaade3d4a96e956ebb5f61f659ceb6
- Loading branch information
Rajavenu Kyatham
authored and
Gerrit - the friendly Code Review server
committed
Aug 26, 2016
1 parent
da3f632
commit 038ee09
Showing
8 changed files
with
200 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Makefile.am - Automake script for sdm | ||
|
||
ACLOCAL_AMFLAGS = -I m4 | ||
|
||
SUBDIRS = libqservice libqdutils libgralloc sdm/libs/utils sdm/libs/core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# -*- Autoconf -*- | ||
# configure.ac -- Autoconf script for sdm | ||
# | ||
|
||
# Process this file with autoconf to produce a configure script | ||
|
||
# Requires autoconf tool later than 2.61 | ||
AC_PREREQ(2.61) | ||
# Initialize the display package version 1.0.0 | ||
AC_INIT([display],1.0.0) | ||
# Does not strictly follow GNU Coding standards | ||
AM_INIT_AUTOMAKE([foreign]) | ||
# Disables auto rebuilding of configure, Makefile.ins | ||
AM_MAINTAINER_MODE | ||
# defines some macros variable to be included by source | ||
AC_CONFIG_HEADERS([config.h]) | ||
AC_CONFIG_MACRO_DIR([m4]) | ||
AC_SUBST([COMMON_CFLAGS], [-Wall -Werror -Wno-sign-conversion -Wconversion -DDEBUG_CALC_FPS]) | ||
AC_SUBST([AM_CPPFLAGS], [--std=c++11]) | ||
|
||
AC_ARG_WITH([core_includes], | ||
AC_HELP_STRING([--with-core-includes=@<:@dir@:>@], | ||
[Specify the location of the core headers]), | ||
[core_incdir=$withval], | ||
with_core_includes=no) | ||
|
||
if test "x$with_core_includes" != "xno"; then | ||
CFLAGS="${CFLAGS} -I${core_incdir}" | ||
fi | ||
|
||
AC_ARG_WITH(sanitized-headers, | ||
AS_HELP_STRING([--with-sanitized-headers=DIR], | ||
[Specify the location of the sanitized Linux headers]), | ||
[CPPFLAGS="$CPPFLAGS -idirafter $withval"]) | ||
|
||
# Checks for programs. | ||
AC_PROG_CC | ||
AM_PROG_CC_C_O | ||
AC_PROG_CXX | ||
AC_PROG_LIBTOOL | ||
AC_PROG_AWK | ||
AC_PROG_CPP | ||
AC_PROG_INSTALL | ||
AC_PROG_LN_S | ||
AC_PROG_MAKE_SET | ||
|
||
AC_SUBST([CFLAGS]) | ||
AC_SUBST([CC]) | ||
AC_CONFIG_FILES([ \ | ||
Makefile \ | ||
libqservice/Makefile \ | ||
libqdutils/Makefile \ | ||
libgralloc/Makefile \ | ||
sdm/libs/utils/Makefile \ | ||
sdm/libs/core/Makefile | ||
]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
h_sources = alloc_controller.h \ | ||
memalloc.h | ||
|
||
cpp_sources = ionalloc.cpp \ | ||
alloc_controller.cpp | ||
|
||
library_includedir = $(pkgincludedir) | ||
library_include_HEADERS = $(h_sources) | ||
|
||
lib_LTLIBRARIES = libmemalloc.la | ||
libmemalloc_la_CC = @CC@ | ||
libmemalloc_la_SOURCES = $(cpp_sources) | ||
libmemalloc_la_CFLAGS = $(COMMON_CFLAGS) -DLOG_TAG=\"qdmemalloc\" | ||
libmemalloc_la_CPPFLAGS = $(AM_CPPFLAGS) | ||
libmemalloc_LDADD = -lhardware -lcutils -llog -lutils -ldl | ||
libmemalloc_la_LIBADD = ../libqdutils/libqdutils.la | ||
|
||
header_sources = gralloc_priv.h \ | ||
gr.h | ||
|
||
c_sources = gpu.cpp \ | ||
gralloc.cpp \ | ||
framebuffer.cpp \ | ||
mapper.cpp | ||
|
||
library_includedir = $(pkgincludedir) | ||
library_include_HEADERS = $(header_sources) | ||
|
||
lib_LTLIBRARIES += libgralloc.la | ||
libgralloc_la_CC = @CC@ | ||
libgralloc_la_SOURCES = $(c_sources) | ||
libgralloc_la_CFLAGS = $(COMMON_CFLAGS) -DLOG_TAG=\"qdgralloc\" | ||
libgralloc_la_CPPFLAGS = $(AM_CPPFLAGS) | ||
libgralloc_LDADD = -lhardware -lcutils -llog -lutils | ||
libgralloc_la_LIBADD = ../libqdutils/libqdutils.la | ||
libgralloc_la_LIBADD += ../libqdutils/libqdMetaData.la | ||
libgralloc_la_LIBADD += libmemalloc.la |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
h_sources = qdMetaData.h | ||
|
||
cpp_sources = qdMetaData.cpp | ||
|
||
library_includedir = $(includedir) | ||
library_include_HEADERS = $(h_sources) | ||
|
||
lib_LTLIBRARIES = libqdMetaData.la | ||
libqdMetaData_la_CC = @CC@ | ||
libqdMetaData_la_SOURCES = $(cpp_sources) | ||
libqdMetaData_la_CFLAGS = $(AM_CFLAGS) -DLOG_TAG=\"DisplayMetaData\" | ||
libqdMetaData_la_CPPFLAGS = $(AM_CPPFLAGS) | ||
libqdMetaData_LDADD = -lcutils -llog | ||
|
||
header_sources = display_config.h | ||
|
||
c_sources = profiler.cpp \ | ||
qd_utils.cpp \ | ||
display_config.cpp | ||
|
||
library_includedir = $(includedir) | ||
library_include_HEADERS = $(header_sources) | ||
|
||
lib_LTLIBRARIES += libqdutils.la | ||
libqdutils_la_CC = @CC@ | ||
libqdutils_la_SOURCES = $(c_sources) | ||
libqdutils_la_CFLAGS = $(COMMON_CFLAGS) -DLOG_TAG=\"qdutils\" | ||
libqdutils_la_CPPFLAGS = $(AM_CPPFLAGS) | ||
libqdutils_LDADD = -lhardware -lcutils -llog -lbinder | ||
libqdutils_la_LIBADD = ../libqservice/libqservice.la |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
h_sources = IQService.h \ | ||
IQClient.h | ||
|
||
cpp_sources = QService.cpp \ | ||
IQService.cpp \ | ||
IQClient.cpp \ | ||
IQHDMIClient.cpp | ||
|
||
library_includedir = $(includedir) | ||
library_include_HEADERS = $(h_sources) | ||
|
||
lib_LTLIBRARIES = libqservice.la | ||
libqservice_la_CC = @CC@ | ||
libqservice_la_SOURCES = $(cpp_sources) | ||
libqservice_la_CFLAGS = $(COMMON_CFLAGS) -DLOG_TAG=\"qdqservice\" | ||
libqservice_la_CPPFLAGS = $(AM_CPPFLAGS) | ||
libqservice_LDADD = -lhardware -lcutils -llog -lbinder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
HEADER_PATH := ${WORKSPACE}/display/display-hal/sdm/include | ||
|
||
c_sources = core_interface.cpp \ | ||
core_impl.cpp \ | ||
display_base.cpp \ | ||
display_primary.cpp \ | ||
display_hdmi.cpp \ | ||
display_virtual.cpp \ | ||
comp_manager.cpp \ | ||
strategy.cpp \ | ||
resource_default.cpp \ | ||
dump_impl.cpp \ | ||
color_manager.cpp \ | ||
fb/hw_info.cpp \ | ||
fb/hw_device.cpp \ | ||
fb/hw_primary.cpp \ | ||
fb/hw_hdmi.cpp \ | ||
fb/hw_virtual.cpp \ | ||
fb/hw_color_manager.cpp \ | ||
fb/hw_scale.cpp \ | ||
fb/hw_events.cpp | ||
|
||
core_h_sources = $(HEADER_PATH)/core/*.h | ||
|
||
core_includedir = $(includedir)/sdm/core | ||
core_include_HEADERS = $(core_h_sources) | ||
|
||
private_h_sources = $(HEADER_PATH)/private/*.h | ||
|
||
private_includedir = $(includedir)/sdm/private | ||
private_include_HEADERS = $(private_h_sources) | ||
|
||
utils_h_sources = $(HEADER_PATH)/utils/*.h | ||
|
||
utils_includedir = $(includedir)/sdm/utils | ||
utils_include_HEADERS = $(utils_h_sources) | ||
|
||
lib_LTLIBRARIES = libsdmcore.la | ||
libsdmcore_la_CC = @CC@ | ||
libsdmcore_la_SOURCES = $(c_sources) | ||
libsdmcore_la_CFLAGS = $(COMMON_CFLAGS) -DLOG_TAG=\"SDM\" | ||
libsdmcore_la_CPPFLAGS = $(AM_CPPFLAGS) | ||
libsdmcore_la_LIBADD = ../utils/libsdmutils.la |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
cpp_sources = debug.cpp \ | ||
rect.cpp \ | ||
sys.cpp \ | ||
formats.cpp | ||
|
||
lib_LTLIBRARIES = libsdmutils.la | ||
libsdmutils_la_CC = @CC@ | ||
libsdmutils_la_SOURCES = $(cpp_sources) | ||
libsdmutils_la_CFLAGS = $(COMMON_CFLAGS) -DLOG_TAG=\"SDM\" | ||
libsdmutils_la_CPPFLAGS = $(AM_CPPFLAGS) |