分布式输入gn部件化整改

Signed-off-by: litiangang4 <litiangang4@huawei.com>
This commit is contained in:
litiangang4
2023-04-24 18:07:30 +08:00
parent 8e64a3f3a2
commit d138969831
40 changed files with 376 additions and 532 deletions
+5 -8
View File
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
# Copyright (c) 2021-2023 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
@@ -19,8 +19,6 @@ ohos_shared_library("libdinput_handler") {
include_dirs = [
"include",
"${common_path}/include",
"//commonlibrary/c_utils/base/include",
"//utils/system/safwk/native/include",
"${fwk_common_path}/log/include",
"${fwk_common_path}/utils/include",
"${fwk_utils_path}/include/log",
@@ -29,12 +27,8 @@ ohos_shared_library("libdinput_handler") {
"${frameworks_path}/include",
"${utils_path}/include",
"//third_party/json/include",
"//third_party/libevdev/libevdev/",
"${fwk_interfaces_path}/include",
"${fwk_interfaces_path}/include/ipc",
"//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
"//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
]
sources = [
@@ -51,13 +45,16 @@ ohos_shared_library("libdinput_handler") {
deps = [
"${fwk_utils_path}:distributedhardwareutils",
"${utils_path}:libdinput_utils",
"//third_party/openssl:libcrypto_static",
"//third_party/libevdev:libevdev",
"//third_party/openssl:libcrypto_static",
]
external_deps = [
"c_utils:utils",
"dsoftbus:softbus_client",
"ipc:ipc_core",
"safwk:system_ability_fwk",
"samgr:samgr_proxy",
]
cflags_cc = [ "-DHILOG_ENABLE" ]
@@ -1,4 +1,4 @@
# Copyright (c) 2022 Huawei Device Co., Ltd.
# Copyright (c) 2022-2023 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
@@ -14,6 +14,7 @@
import("//build/test.gni")
import(
"//foundation/distributedhardware/distributed_input/distributedinput.gni")
module_out_path = "distributed_input/input_handler"
group("inputhandlertest") {
@@ -28,8 +29,6 @@ ohos_unittest("distributed_input_handler_test") {
include_dirs = [
"${common_path}/include",
"//commonlibrary/c_utils/base/include",
"//utils/system/safwk/native/include",
"${fwk_common_path}/log/include",
"${fwk_common_path}/utils/include",
"${fwk_utils_path}/include/log",
@@ -38,18 +37,14 @@ ohos_unittest("distributed_input_handler_test") {
"${frameworks_path}/include",
"${utils_path}/include",
"//third_party/json/include",
"//third_party/libevdev/libevdev/",
"${fwk_interfaces_path}/include",
"${fwk_interfaces_path}/include/ipc",
"//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
"//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
"//foundation/distributedhardware/distributed_input/inputdevicehandler/include",
"${distributedinput_path}/inputdevicehandler/include",
]
sources = [
"${common_path}/include/input_hub.cpp",
"//foundation/distributedhardware/distributed_input/inputdevicehandler/src/distributed_input_handler.cpp",
"${distributedinput_path}/inputdevicehandler/src/distributed_input_handler.cpp",
"distributed_input_handler_test.cpp",
]
@@ -70,15 +65,18 @@ ohos_unittest("distributed_input_handler_test") {
deps = [
"${fwk_utils_path}:distributedhardwareutils",
"${utils_path}:libdinput_utils",
"//third_party/openssl:libcrypto_static",
"//third_party/libevdev:libevdev",
"//third_party/openssl:libcrypto_static",
]
external_deps = [
"c_utils:utils",
"dsoftbus:softbus_client",
"ipc:ipc_core",
"safwk:system_ability_fwk",
"samgr:samgr_proxy",
]
cflags_cc = [ "-DHILOG_ENABLE" ]
}
## UnitTest distributed_input_handler_test }}}
## UnitTest distributed_input_handler_test }}}