diff --git a/base/BUILD.gn b/base/BUILD.gn index e9b037cad9dd1fcb8a75c6111b6afcdd94dd4897..c39c17bae6927c2a91422c7afa6c8477fdf44aea 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -124,6 +124,36 @@ ohos_static_library("utilsbase") { } } +# for updater_binary, utilsbase_static link static libhilog_base_static +ohos_static_library("utilsbase_static") { + if (current_os == "ios") { + sources = sources_utils_ios + configs = [ ":utils_coverage_config" ] + public_configs = [ ":utils_config" ] + + public_external_deps = [ "bounds_checking_function:libsec_static" ] + defines = [ "IOS_PLATFORM" ] + + subsystem_name = "commonlibrary" + part_name = "c_utils" + } else { + sources = sources_utils + configs = [ ":utils_coverage_config" ] + public_configs = [ ":utils_config" ] + if (current_os != "android" && current_os != "ios") { + defines = [ "CONFIG_HILOG" ] + } + if (c_utils_debug_log_enabled) { + configs += [ ":debug_log_enabled" ] + } + external_deps = [ "hilog:libhilog_base_static" ] + + public_external_deps = [ "bounds_checking_function:libsec_static" ] + subsystem_name = "commonlibrary" + part_name = "c_utils" + } +} + ohos_static_library("utilsbase_rtti") { visibility = [ "//foundation/multimedia/media_foundation/engine/plugin/plugins/source/video_capture:std_video_capture" ] sources = sources_utils diff --git a/bundle.json b/bundle.json index 1319fccbb48fe8fd0d49c4cb112d02b53a39baa8..76f36f01d3ba888f95445df38499e273cc6cff4f 100644 --- a/bundle.json +++ b/bundle.json @@ -101,6 +101,39 @@ "header_base": "//commonlibrary/c_utils/base/include" } }, + { + "name": "//commonlibrary/c_utils/base:utilsbase_static", + "header": { + "header_files": [ + "ashmem.h", + "common_errors.h", + "common_timer_errors.h", + "datetime_ex.h", + "directory_ex.h", + "errors.h", + "file_ex.h", + "flat_obj.h", + "nocopyable.h", + "observer.h", + "parcel.h", + "pubdef.h", + "refbase.h", + "rwlock.h", + "safe_block_queue.h", + "safe_map.h", + "safe_queue.h", + "semaphore_ex.h", + "singleton.h", + "sorted_vector.h", + "string_ex.h", + "thread_ex.h", + "thread_pool.h", + "timer.h", + "unique_fd.h" + ], + "header_base": "//commonlibrary/c_utils/base/include" + } + }, { "name": "//commonlibrary/c_utils/base:utils_rust", "header": {