-
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.
hyp-intercept: Create hyp-intercept as a shared lib
Since hyp-intercept will be used by multiple projects, making it as a shared lib is easy for maintenance. Change-Id: I156c3ae3ca35ee6705f4bc2f7acc639ff9fe6258 Signed-off-by: Alan Wang <[email protected]>
- Loading branch information
Alan Wang
authored and
Gerrit - the friendly Code Review server
committed
Jul 6, 2017
1 parent
d213e5f
commit dc82d85
Showing
8 changed files
with
50 additions
and
6 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
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,20 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_SRC_FILES := \ | ||
hypv_intercept.cpp | ||
LOCAL_C_INCLUDES = $(TOP)/hardware/qcom/media/mm-video-v4l2/vidc/common/inc | ||
|
||
LOCAL_SHARED_LIBRARIES := liblog libdl | ||
|
||
LOCAL_MODULE_TAGS := optional | ||
|
||
LOCAL_MODULE := libhypintercept | ||
|
||
LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib | ||
LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64 | ||
|
||
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr | ||
|
||
include $(BUILD_SHARED_LIBRARY) |
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,22 @@ | ||
# ----------------------------------------------------------------------------- | ||
# Common definitons | ||
# ----------------------------------------------------------------------------- | ||
|
||
AM_CFLAGS = -g -O3 | ||
AM_CFLAGS += -Werror | ||
|
||
AM_CPPFLAGS = -D_LINUX_ | ||
AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/common/inc | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Make the Shared library (libgioctl) | ||
# ----------------------------------------------------------------------------- | ||
h_sources = hypv_intercept.h | ||
c_sources = hypv_intercept.cpp | ||
|
||
include_HEADERS = $(h_source) | ||
lib_LTLIBRARIES = libhypintercept.la | ||
libhypintercept_la_SOURCES = $(c_sources) | ||
libhypintercept_la_CFLAGS = $(AM_CFLAGS) -fPIC | ||
libhypintercept_la_CPPFLAGS = $(AM_CPPFLAGS) | ||
libhypintercept_la_LDFLAGS = -shared -llog -ldl |
File renamed without changes.
File renamed without changes.
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