部件依赖

Signed-off-by: lpf <liaopengfei@h-partners.com>
This commit is contained in:
lpf 2024-10-29 21:18:58 +08:00
parent 8010d89dc3
commit 90141ab020
28 changed files with 67 additions and 8 deletions

View File

@ -138,6 +138,7 @@ ohos_shared_library("libdm") {
"image_framework:image_native",
"ipc:ipc_single",
"samgr:samgr_proxy",
"graphic_2d:librender_service_base",
]
innerapi_tags = [ "platformsdk" ]

View File

@ -76,6 +76,8 @@ ohos_shared_library("libdms") {
"ipc:ipc_single",
"libxml2:libxml2",
"safwk:system_ability_fwk",
"samgr:samgr_proxy",
"graphic_2d:librender_service_base",
]
defines = []

View File

@ -67,6 +67,7 @@ ohos_shared_library("libwindow_extension_client") {
"hitrace:hitrace_meter",
"input:libmmi-client",
"ipc:ipc_single",
"graphic_2d:librender_service_base",
]
innerapi_tags = [ "platformsdk_indirect" ]

View File

@ -80,6 +80,9 @@ ohos_shared_library("libwindow_extension") {
"input:libmmi-client",
"ipc:ipc_single",
"napi:ace_napi",
"ipc:ipc_napi",
"ability_runtime:wantagent_innerkits",
"graphic_2d:librender_service_base",
]
part_name = "window_manager"

View File

@ -69,6 +69,8 @@ ohos_shared_library("cj_window_ffi") {
"napi:ace_napi",
"napi:cj_bind_ffi",
"napi:cj_bind_native",
"ability_runtime:wantagent_innerkits",
"graphic_2d:librender_service_base",
]
} else {
defines += [ "PREVIEWER" ]

View File

@ -107,6 +107,8 @@ ohos_shared_library("extensionwindow_napi") {
"hilog:libhilog",
"hitrace:hitrace_meter",
"napi:ace_napi",
"bundle_framework:appexecfwk_base",
"ability_runtime:ability_manager",
]
innerapi_tags = [ "platformsdk" ]

View File

@ -50,6 +50,7 @@ ohos_shared_library("screen_napi") {
"ability_runtime:runtime",
"c_utils:utils",
"graphic_surface:surface", # use for SurfaceUtils
"graphic_2d:librender_service_base",
"hilog:libhilog",
"hitrace:hitrace_meter",
"napi:ace_napi",

View File

@ -114,6 +114,7 @@ ohos_shared_library("window_napi") {
cfi_vcall_icall_only = true
debug = false
}
defines = ["SUPPORT_SCREEN"]
sources = [
"window_manager_napi/js_window_manager.cpp",
"window_manager_napi/window_manager_module.cpp",
@ -144,6 +145,8 @@ ohos_shared_library("window_napi") {
"hitrace:hitrace_meter",
"image_framework:image",
"napi:ace_napi",
"ability_runtime:wantagent_innerkits",
"graphic_2d:librender_service_base",
]
relative_install_dir = "module"
@ -181,6 +184,7 @@ ohos_shared_library("windowstage_kit") {
"c_utils:utils",
"hilog:libhilog",
"napi:ace_napi",
"ability_runtime:ability_manager",
]
innerapi_tags = [ "platformsdk" ]

View File

@ -144,6 +144,7 @@ if (!ispreview) {
"ace_engine:ace_uicontent",
"hilog:libhilog",
"napi:ace_napi",
"ability_runtime:ability_manager",
]
cflags_cc = [ "-DWINDOW_PREVIEW" ]

View File

@ -40,6 +40,7 @@ ohos_executable("setresolution_screen") {
external_deps = [
"c_utils:utils",
"graphic_2d:librender_service_base",
"graphic_surface:surface",
"init:libbegetutil",
]

View File

@ -15,6 +15,9 @@
#ifndef OHOS_ROSEN_WINDOW_TRANSITION_INFO_H
#define OHOS_ROSEN_WINDOW_TRANSITION_INFO_H
#ifndef SUPPORT_GRAPHICS
#define SUPPORT_GRAPHICS
#endif
#include <iremote_object.h>
#include <string>

View File

@ -54,6 +54,8 @@ ohos_shared_library("libintention_event") {
"hitrace:hitrace_meter",
"init:libbegetutil",
"input:libmmi-client",
"libxml2:libxml2",
"graphic_2d:librender_service_base",
]
defines = []

View File

@ -54,6 +54,7 @@ ohos_shared_library("intention_event_anr_manager") {
"hisysevent:libhisysevent",
"hitrace:hitrace_meter",
"ipc:ipc_single",
"bundle_framework:appexecfwk_base",
]
if (defined(global_parts_info) &&

View File

@ -95,7 +95,7 @@ bool IntentionEventManager::EnableInputEventListener(Ace::UIContent* uiContent,
TLOGI(WmsLogTag::WMS_EVENT, "SetWindowInputEventConsumer success");
if (IS_BETA) {
// Xcollie's SetTimerCounter task is set with the params to record count and time of the input down event
int id = HiviewDFX::XCollie::GetInstance().SetTimerCount("FREQUENT_CLICK_WARNING", FREQUENT_CLICK_TIME_LIMIT,
[[maybe_unused]] int id = HiviewDFX::XCollie::GetInstance().SetTimerCount("FREQUENT_CLICK_WARNING", FREQUENT_CLICK_TIME_LIMIT,
FREQUENT_CLICK_COUNT_LIMIT);
}
return true;

View File

@ -69,6 +69,9 @@ ohos_shared_library("scenesessionmanager_napi") {
"input:libmmi-client",
"ipc:ipc_single",
"napi:ace_napi",
"libxml2:libxml2",
"preferences:native_preferences",
"graphic_2d:librender_service_base",
]
defines = []

View File

@ -54,6 +54,7 @@ ohos_shared_library("screensessionmanager_napi") {
"image_framework:image_native",
"ipc:ipc_core",
"napi:ace_napi",
"graphic_2d:librender_service_base",
]
defines = []

View File

@ -48,6 +48,8 @@ ohos_shared_library("transactionmanager_napi") {
"ability_runtime:runtime",
"c_utils:utils",
"ffrt:libffrt",
"libxml2:libxml2",
"graphic_2d:librender_service_base",
"graphic_2d:librender_service_client",
"hilog:libhilog",
"napi:ace_napi",

View File

@ -94,6 +94,7 @@ ohos_shared_library("scene_session") {
"init:libbegetutil",
"input:libmmi-client",
"ipc:ipc_single",
"graphic_2d:librender_service_base",
]
if (!(host_os == "linux" && host_cpu == "arm64")) {
external_deps += [ "preferences:native_preferences" ]
@ -183,6 +184,7 @@ ohos_shared_library("screen_session") {
"hisysevent:libhisysevent",
"hitrace:hitrace_meter",
"init:libbegetutil",
"graphic_2d:librender_service_base",
]
public_external_deps = [
"ability_base:base",

View File

@ -132,6 +132,10 @@ ohos_shared_library("scene_session_manager") {
"napi:ace_napi",
"resource_management:global_resmgr",
"samgr:samgr_proxy",
"safwk:system_ability_fwk",
"bundle_framework:libappexecfwk_common",
"preferences:native_preferences",
"graphic_2d:librender_service_base",
]
defines = []
@ -232,6 +236,7 @@ ohos_shared_library("session_manager") {
"ipc:ipc_single",
"safwk:system_ability_fwk",
"samgr:samgr_proxy",
"graphic_2d:librender_service_base",
]
innerapi_tags = [ "platformsdk_indirect" ]

View File

@ -21,6 +21,12 @@
#include <mutex>
#include <shared_mutex>
#ifndef OHOS_BUILD_ENABLE_SECURITY_COMPONENT // pointer_envent.h
#define OHOS_BUILD_ENABLE_SECURITY_COMPONENT
#endif
#ifndef SUPPORT_SCREEN
#define SUPPORT_SCREEN
#endif
#include "mission_snapshot.h"
#include "transaction/rs_interfaces.h"

View File

@ -20,6 +20,10 @@
#include <vector>
#include <list>
#include "pixel_map.h"
#ifndef SUPPORT_SCREEN
#define SUPPORT_SCREEN
#endif
#include "mission_listener_interface.h"
#include "ws_common.h"

View File

@ -23,7 +23,7 @@
namespace OHOS {
namespace Rosen {
namespace {
constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, HILOG_DOMAIN_WINDOW, "AnomalyDetection" };
[[maybe_unused]] constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, HILOG_DOMAIN_WINDOW, "AnomalyDetection" };
}
void AnomalyDetection::SceneZOrderCheckProcess()

View File

@ -256,7 +256,7 @@ void SceneSessionDirtyManager::UpdateHotAreas(sptr<SceneSession> sceneSession, s
WLOGFE("sceneSession is nullptr");
return;
}
WSRect windowRect = sceneSession->GetSessionGlobalRect();
[[maybe_unused]] WSRect windowRect = sceneSession->GetSessionGlobalRect();
const std::vector<Rect>& hotAreas = sceneSession->GetTouchHotAreas();
for (auto area : hotAreas) {
MMI::Rect rect;

View File

@ -112,7 +112,7 @@ constexpr int SCALE_MAX_WIDTH = 8;
constexpr int PID_MAX_WIDTH = 8;
constexpr int PARENT_ID_MAX_WIDTH = 6;
constexpr int WINDOW_NAME_MAX_LENGTH = 20;
constexpr int32_t STATUS_BAR_AVOID_AREA = 0;
[[maybe_unused]] constexpr int32_t STATUS_BAR_AVOID_AREA = 0;
const std::string ARG_DUMP_ALL = "-a";
const std::string ARG_DUMP_WINDOW = "-w";
const std::string ARG_DUMP_SCREEN = "-s";
@ -638,7 +638,7 @@ void SceneSessionManager::ConfigDecor(const WindowSceneConfig::ConfigItem& decor
} else {
systemConfig_.freeMultiWindowConfig_.isSystemDecorEnable_ = item.boolValue_;
}
bool decorEnable = item.boolValue_;
[[maybe_unused]] bool decorEnable = item.boolValue_;
uint32_t support = 0;
std::vector<std::string> supportedModes;
item = decorConfig["supportedMode"];

View File

@ -21,7 +21,7 @@
namespace OHOS::Rosen {
namespace {
constexpr HiviewDFX::HiLogLabel LABEL = {LOG_CORE, HILOG_DOMAIN_WINDOW, "SceneSessionManagerLiteStub"};
constexpr uint32_t MAX_VECTOR_SIZE = 100;
[[maybe_unused]] constexpr uint32_t MAX_VECTOR_SIZE = 100;
constexpr uint32_t MAX_TOPN_INFO_SIZE = 200;
}

View File

@ -12,7 +12,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef SUPPORT_SCREEN
#define SUPPORT_SCREEN
#endif
#include "session_manager/include/zidl/scene_session_manager_proxy.h"
#include <ipc_types.h>

View File

@ -132,6 +132,7 @@ ohos_static_library("libwm_static") {
"ipc:ipc_single",
"napi:ace_napi",
"samgr:samgr_proxy",
"bundle_framework:libappexecfwk_common",
]
defines = []
@ -268,6 +269,8 @@ ohos_shared_library("libwm") {
"ipc:ipc_single",
"napi:ace_napi",
"samgr:samgr_proxy",
"bundle_framework:libappexecfwk_common",
"graphic_2d:librender_service_base",
]
defines = []
@ -427,6 +430,7 @@ ohos_shared_library("libwm_ndk") {
"hilog:libhilog",
"input:libmmi-client",
"input:oh_input_manager",
"ipc:ipc_core",
]
part_name = "window_manager"

View File

@ -114,6 +114,7 @@ ohos_shared_library("sms") {
"ipc:ipc_single",
"safwk:system_ability_fwk",
"samgr:samgr_proxy",
"graphic_2d:librender_service_base",
]
public_external_deps = [
"ability_runtime:ability_manager",
@ -148,7 +149,10 @@ if (window_manager_use_sceneboard) {
cfi_vcall_icall_only = true
debug = false
}
defines = []
defines = [
"SUPPORT_SCREEN",
"SUPPORT_GRAPHICS",
]
if (use_musl) {
if (musl_use_jemalloc && musl_use_jemalloc_dfx_intf) {
defines += [ "CONFIG_USE_JEMALLOC_DFX_INTF" ]
@ -223,10 +227,12 @@ if (window_manager_use_sceneboard) {
"hisysevent:libhisysevent",
"hitrace:hitrace_meter",
"image_framework:image_native",
"preferences:native_preferences",
"input:libmmi-client",
"ipc:ipc_single",
"libxml2:libxml2",
"safwk:system_ability_fwk",
"graphic_2d:librender_service_base",
]
if (defined(global_parts_info) &&