From ddc20de1483028ee0b4401266499a59631e9d659 Mon Sep 17 00:00:00 2001 From: Rom Lemarchand Date: Thu, 2 Jan 2014 19:31:53 -0800 Subject: [PATCH] move sync headers from include to libsync Make sw_sync.h private Change-Id: I0b120ebe81fd4a191b7aa4b6a8de4f64d16e2b3e --- include/system/window.h | 1 - libsync/Android.mk | 3 +++ {include => libsync/include}/sync/sync.h | 0 {include/sync => libsync}/sw_sync.h | 2 -- libsync/sync_test.c | 1 + 5 files changed, 4 insertions(+), 3 deletions(-) rename {include => libsync/include}/sync/sync.h (100%) rename {include/sync => libsync}/sw_sync.h (98%) diff --git a/include/system/window.h b/include/system/window.h index 649bd71fd..588f9c674 100644 --- a/include/system/window.h +++ b/include/system/window.h @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include diff --git a/libsync/Android.mk b/libsync/Android.mk index 73de06998..626b76273 100644 --- a/libsync/Android.mk +++ b/libsync/Android.mk @@ -5,6 +5,8 @@ LOCAL_SRC_FILES := sync.c LOCAL_MODULE := libsync LOCAL_MODULE_TAGS := optional LOCAL_SHARED_LIBRARIES := liblog +LOCAL_C_INCLUDES := $(LOCAL_PATH)/include +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) @@ -12,4 +14,5 @@ LOCAL_SRC_FILES := sync.c sync_test.c LOCAL_MODULE := sync_test LOCAL_MODULE_TAGS := optional tests LOCAL_SHARED_LIBRARIES := liblog +LOCAL_C_INCLUDES := $(LOCAL_PATH)/include include $(BUILD_EXECUTABLE) diff --git a/include/sync/sync.h b/libsync/include/sync/sync.h similarity index 100% rename from include/sync/sync.h rename to libsync/include/sync/sync.h diff --git a/include/sync/sw_sync.h b/libsync/sw_sync.h similarity index 98% rename from include/sync/sw_sync.h rename to libsync/sw_sync.h index 3bf4110e2..fda1c4c57 100644 --- a/include/sync/sw_sync.h +++ b/libsync/sw_sync.h @@ -19,8 +19,6 @@ #ifndef __SYS_CORE_SW_SYNC_H #define __SYS_CORE_SW_SYNC_H -#include "sync.h" - __BEGIN_DECLS /* diff --git a/libsync/sync_test.c b/libsync/sync_test.c index 386747a62..ee9ea3ca1 100644 --- a/libsync/sync_test.c +++ b/libsync/sync_test.c @@ -23,6 +23,7 @@ #include #include +#include "sw_sync.h" pthread_mutex_t printf_mutex = PTHREAD_MUTEX_INITIALIZER;