mirror of
https://github.com/openharmony/multimedia_medialibrary_standard.git
synced 2026-07-01 00:17:55 -04:00
optimize link time
Signed-off-by: panqiangbiao <panqiangbiao@huawei.com> Change-Id: Ic4d6f8dabff975142dcecdd562fa17bcebe4e25d
This commit is contained in:
@@ -74,10 +74,12 @@ ohos_shared_library("media_library") {
|
||||
defines = []
|
||||
defines += [ "MEDIALIBRARY_COMPATIBILITY=1" ]
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
}
|
||||
|
||||
innerapi_tags = [ "platformsdk" ]
|
||||
|
||||
@@ -42,11 +42,12 @@ ohos_shared_library("media_library_manager") {
|
||||
"hitrace:hitrace_meter",
|
||||
"image_framework:image_native",
|
||||
]
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
}
|
||||
|
||||
defines = []
|
||||
|
||||
@@ -203,12 +203,13 @@ ohos_shared_library("medialibrary_data_extension") {
|
||||
defines += [ "MEDIALIBRARY_SECURITY_OPEN=1" ]
|
||||
external_deps += [ "security_component:libsecurity_component_sdk" ]
|
||||
}
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
blocklist = "./extension_blocklist.txt"
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
blocklist = "./extension_blocklist.txt"
|
||||
}
|
||||
}
|
||||
|
||||
cflags_cc = [
|
||||
|
||||
@@ -67,11 +67,12 @@ ohos_static_library("mediatoollib") {
|
||||
"napi:ace_napi",
|
||||
"samgr:samgr_proxy",
|
||||
]
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
}
|
||||
|
||||
subsystem_name = "multimedia"
|
||||
@@ -110,11 +111,12 @@ ohos_executable("mediatool") {
|
||||
"hitrace:hitrace_meter",
|
||||
"samgr:samgr_proxy",
|
||||
]
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
}
|
||||
|
||||
subsystem_name = "multimedia"
|
||||
|
||||
@@ -28,13 +28,13 @@ ohos_static_library("medialibrary_async_worker") {
|
||||
"hilog:libhilog",
|
||||
"hitrace:hitrace_meter",
|
||||
]
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
}
|
||||
|
||||
subsystem_name = "multimedia"
|
||||
part_name = "media_library"
|
||||
}
|
||||
|
||||
+12
-12
@@ -30,13 +30,13 @@ ohos_static_library("medialibrary_common_utils") {
|
||||
"hitrace:hitrace_meter",
|
||||
]
|
||||
defines = [ "OPENSSL_SUPPRESS_DEPRECATED" ]
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
}
|
||||
|
||||
subsystem_name = "multimedia"
|
||||
part_name = "media_library"
|
||||
}
|
||||
@@ -63,13 +63,13 @@ ohos_static_library("permission_utils") {
|
||||
"ipc:ipc_core",
|
||||
"samgr:samgr_proxy",
|
||||
]
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
}
|
||||
|
||||
subsystem_name = "multimedia"
|
||||
part_name = "media_library"
|
||||
}
|
||||
|
||||
+24
-20
@@ -126,11 +126,12 @@ ohos_shared_library("medialibrary_nutils") {
|
||||
|
||||
defines = []
|
||||
defines += [ "MEDIALIBRARY_COMPATIBILITY=1" ]
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
}
|
||||
|
||||
if (purgeable_ashmem_enable) {
|
||||
@@ -180,11 +181,12 @@ ohos_shared_library("medialibrary") {
|
||||
|
||||
defines = []
|
||||
defines += [ "MEDIALIBRARY_COMPATIBILITY=1" ]
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
}
|
||||
|
||||
if (purgeable_ashmem_enable) {
|
||||
@@ -232,11 +234,12 @@ ohos_shared_library("userfilemanager") {
|
||||
|
||||
defines = []
|
||||
defines += [ "MEDIALIBRARY_COMPATIBILITY=1" ]
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
}
|
||||
|
||||
if (purgeable_ashmem_enable) {
|
||||
@@ -329,11 +332,12 @@ ohos_shared_library("photoaccesshelper") {
|
||||
|
||||
defines = []
|
||||
defines += [ "MEDIALIBRARY_COMPATIBILITY=1" ]
|
||||
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
if (!link_opt) {
|
||||
sanitize = {
|
||||
cfi = true
|
||||
cfi_cross_dso = true
|
||||
debug = false
|
||||
}
|
||||
}
|
||||
|
||||
if (purgeable_ashmem_enable) {
|
||||
|
||||
@@ -21,3 +21,7 @@ MEDIALIB_UTILS_PATH = "${MEDIALIB_ROOT_PATH}/frameworks/utils"
|
||||
MEDIALIB_SERVICES_PATH = "${MEDIALIB_ROOT_PATH}/frameworks/services"
|
||||
MEDIALIB_CLOUD_SYNC_PATH = "${MEDIALIB_SERVICES_PATH}/media_cloud_sync"
|
||||
MEDIALIB_MTP_PATH = "${MEDIALIB_SERVICES_PATH}/media_mtp"
|
||||
|
||||
declare_args() {
|
||||
link_opt = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user