mirror of
https://gitee.com/openharmony/multimedia_image_framework
synced 2024-11-23 15:10:26 +00:00
7ffd750d72
Signed-off-by: 何光耀 <heguangyao1@h-partners.com>
240 lines
11 KiB
Plaintext
240 lines
11 KiB
Plaintext
# Copyright (C) 2021 Huawei Device Co., Ltd.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import("//build/ohos.gni")
|
|
import("//foundation/multimedia/image_framework/ide/image_decode_config.gni")
|
|
|
|
if (use_clang_ios) {
|
|
ohos_source_set("pluginmanager") {
|
|
sources = [
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/common/attr_data.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/common/platform_adp.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/capability.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/impl_class.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/impl_class_key.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/impl_class_mgr.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/json_helper.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin_fw.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin_info_lock.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin_mgr.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/plugin_server.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/pluginbase/plugin_class_base.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/thirdpartyadp/gstreamer/gst_plugin_fw.cpp",
|
|
]
|
|
|
|
cflags = [
|
|
"-DIMAGE_DEBUG_FLAG",
|
|
#"-DIMAGE_COLORSPACE_FLAG",
|
|
]
|
|
|
|
include_dirs = [
|
|
"//foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include",
|
|
"//foundation/multimedia/image_framework/plugins/manager/include",
|
|
"//foundation/multimedia/image_framework/plugins/manager/include/pluginbase",
|
|
"//foundation/multimedia/image_framework/plugins/manager/include/utils",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/common",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/pluginbase",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/thirdpartyadp/gstreamer",
|
|
"//foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include",
|
|
"//foundation/multimedia/image_framework/interfaces/innerkits/include",
|
|
"//foundation/multimedia/utils/include",
|
|
"//third_party/json/single_include/nlohmann",
|
|
"//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
|
|
"$image_subsystem/mock/native/include/log",
|
|
]
|
|
|
|
defines = image_decode_ios_defines
|
|
include_dirs += [
|
|
"//commonlibrary/c_utils/base/include",
|
|
"$image_subsystem/mock/native/include/log",
|
|
"//foundation/multimedia/image_framework/mock/native/include/secure",
|
|
]
|
|
|
|
deps = [ "$image_subsystem/mock/native:log_mock_static" ]
|
|
|
|
#relative_install_dir = "module/multimedia"
|
|
subsystem_name = "multimedia"
|
|
part_name = "image_framework"
|
|
}
|
|
} else {
|
|
ohos_shared_library("pluginmanager") {
|
|
if (!use_clang_android) {
|
|
branch_protector_ret = "pac_ret"
|
|
sanitize = {
|
|
cfi = true
|
|
cfi_cross_dso = true
|
|
cfi_vcall_icall_only = true
|
|
debug = false
|
|
}
|
|
}
|
|
sources = [
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/common/attr_data.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/common/platform_adp.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/capability.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/impl_class.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/impl_class_key.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/impl_class_mgr.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/json_helper.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin_fw.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin_info_lock.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin_mgr.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/plugin_server.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/pluginbase/plugin_class_base.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/thirdpartyadp/gstreamer/gst_plugin_fw.cpp",
|
|
]
|
|
|
|
cflags = [
|
|
"-DIMAGE_DEBUG_FLAG",
|
|
"-DIMAGE_COLORSPACE_FLAG",
|
|
]
|
|
|
|
include_dirs = [
|
|
"//foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include",
|
|
"//foundation/multimedia/image_framework/plugins/manager/include",
|
|
"//foundation/multimedia/image_framework/plugins/manager/include/pluginbase",
|
|
"//foundation/multimedia/image_framework/plugins/manager/include/utils",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/common",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/pluginbase",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/thirdpartyadp/gstreamer",
|
|
"//foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include",
|
|
"//foundation/multimedia/image_framework/interfaces/innerkits/include",
|
|
"$image_subsystem/mock/native/include/log",
|
|
]
|
|
|
|
if (use_mingw_win) {
|
|
defines = image_decode_windows_defines
|
|
include_dirs += [ "$image_subsystem/mock/native/include/log" ]
|
|
deps = [ "$image_subsystem/mock/native:log_mock_static" ]
|
|
} else if (use_clang_mac) {
|
|
defines = image_decode_mac_defines
|
|
include_dirs += [
|
|
"//foundation/multimedia/image_framework/mock/native/include",
|
|
"//third_party/bounds_checking_function/include",
|
|
]
|
|
deps = [
|
|
"//foundation/multimedia/image_framework/mock/native:log_mock_static",
|
|
"//third_party/bounds_checking_function:libsec_static",
|
|
]
|
|
} else if (use_clang_android) {
|
|
include_dirs += [ "//commonlibrary/c_utils/base/include" ]
|
|
cflags -= [ "-DIMAGE_COLORSPACE_FLAG" ]
|
|
|
|
deps = [
|
|
"//commonlibrary/c_utils/base:utils",
|
|
"//foundation/multimedia/image_framework/mock/native:log_mock_static",
|
|
]
|
|
} else {
|
|
ldflags = [ "-Wl,-Bsymbolic" ]
|
|
|
|
external_deps = [
|
|
"c_utils:utils",
|
|
"graphic_2d:color_manager",
|
|
"hilog:libhilog",
|
|
"json:nlohmann_json_static",
|
|
]
|
|
}
|
|
|
|
#relative_install_dir = "module/multimedia"
|
|
subsystem_name = "multimedia"
|
|
innerapi_tags = [ "platformsdk_indirect" ]
|
|
part_name = "image_framework"
|
|
}
|
|
}
|
|
|
|
ohos_static_library("pluginmanager_static") {
|
|
if (!is_arkui_x) {
|
|
sanitize = {
|
|
cfi = true
|
|
cfi_cross_dso = true
|
|
cfi_vcall_icall_only = true
|
|
debug = false
|
|
}
|
|
}
|
|
sources = [
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/common/attr_data.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/common/platform_adp.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/capability.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/impl_class.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/impl_class_key.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/impl_class_mgr.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/json_helper.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin_fw.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin_info_lock.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework/plugin_mgr.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/plugin_server.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/pluginbase/plugin_class_base.cpp",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/thirdpartyadp/gstreamer/gst_plugin_fw.cpp",
|
|
]
|
|
|
|
include_dirs = [
|
|
"//foundation/multimedia/image_framework/plugins/manager/include",
|
|
"//foundation/multimedia/image_framework/plugins/manager/include/pluginbase",
|
|
"//foundation/multimedia/image_framework/plugins/manager/include/utils",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/common",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/framework",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/pluginbase",
|
|
"//foundation/multimedia/image_framework/plugins/manager/src/thirdpartyadp/gstreamer",
|
|
"//foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include",
|
|
"//foundation/multimedia/image_framework/interfaces/innerkits/include",
|
|
]
|
|
|
|
if (use_mingw_win) {
|
|
defines = image_decode_windows_defines
|
|
include_dirs +=
|
|
[ "//foundation/multimedia/image_framework/mock/native/include" ]
|
|
deps = [
|
|
"//foundation/multimedia/image_framework/mock/native:log_mock_static",
|
|
]
|
|
} else if (use_clang_mac) {
|
|
defines = image_decode_mac_defines
|
|
include_dirs += [
|
|
"//foundation/multimedia/image_framework/mock/native/include",
|
|
"//third_party/bounds_checking_function/include",
|
|
]
|
|
deps = [
|
|
"//foundation/multimedia/image_framework/mock/native:log_mock_static",
|
|
"//third_party/bounds_checking_function:libsec_static",
|
|
]
|
|
} else if (use_clang_ios) {
|
|
defines = image_decode_ios_defines
|
|
include_dirs += [ "$image_subsystem/mock/native/include/log" ]
|
|
deps = [ "$image_subsystem/mock/native:log_mock_static" ]
|
|
} else if (use_clang_android) {
|
|
include_dirs += [
|
|
"//commonlibrary/c_utils/base/include",
|
|
"$image_subsystem/mock/native/include/log",
|
|
]
|
|
|
|
deps = [
|
|
"$image_subsystem/mock/native:log_mock_static",
|
|
"//commonlibrary/c_utils/base:utils",
|
|
]
|
|
} else {
|
|
ldflags = [ "-Wl,-Bsymbolic" ]
|
|
|
|
external_deps = [
|
|
"c_utils:utils",
|
|
"graphic_2d:color_manager",
|
|
"hilog:libhilog",
|
|
"json:nlohmann_json_static",
|
|
]
|
|
}
|
|
subsystem_name = "multimedia"
|
|
part_name = "image_framework"
|
|
}
|