feat: change /system/lib to HDF_LIBRARY_PATH_DIR macro.

把UHDF中依赖/system/lib目录的统一到一个代码宏中,便于重构

Signed-off-by: handyohos <zhangxiaotian@huawei.com>
Change-Id: I4305d730fb1c2e07fc9078b6ee790d4104213e07

#I4PWHS
This commit is contained in:
handyohos
2022-01-07 22:33:19 +08:00
parent c3a153ce15
commit dcc3f7bd29
Regular → Executable
+12
View File
@@ -88,6 +88,18 @@ typedef enum {
*/
#define HDF_KILO_UNIT 1000
#ifdef __LITEOS__
#define HDF_LIBRARY_FULL_PATH(x) "/usr/lib/" x ".so"
#define HDF_LIBRARY_DIR "/usr/lib"
#define HDF_ETC_DIR "/etc"
#define HDF_CONFIG_DIR "/etc"
#else
#define HDF_LIBRARY_FULL_PATH(x) "/system/lib/" x ".z.so"
#define HDF_LIBRARY_DIR "/system/lib"
#define HDF_ETC_DIR "/system/etc"
#define HDF_CONFIG_DIR "/system/etc/hdfconfig"
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */