提交 f40c9a9c 编写于 作者: L liubb_0516

add ipc test case

Signed-off-by: Nliubb_0516 <liubeibei8@huawei.com>
上级 eeff5fad
# Copyright (c) 2021 Huawei Device Co., Ltd. # Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//foundation/communication/dsoftbus/dsoftbus.gni") import("//foundation/communication/dsoftbus/dsoftbus.gni")
lite_component("ipc_test") { lite_component("ipc_test") {
features = [ features = [
"client:ipc_client", "client:ipc_client",
"server:ipc_server", "server:ipc_server",
"samgr:samgr", "samgr:samgr",
] ]
} }
\ No newline at end of file
# Copyright (c) 2020 Huawei Device Co., Ltd. # Copyright (c) 2020 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
SUBSYSTEM_DIR = "//foundation/communication/ipc/test" SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c" IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
executable("ipc_client") { executable("ipc_client") {
sources = [ sources = [ "$SUBSYSTEM_DIR/ipc/client/client.c" ]
"$SUBSYSTEM_DIR/ipc/client/client.c", include_dirs = [
] "//third_party/bounds_checking_function/include",
include_dirs = [ "//utils/native/lite/include",
"//third_party/bounds_checking_function/include", "$IPC_CORE_ROOT/manager/include",
"//utils/native/lite/include", "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
"$IPC_CORE_ROOT/manager/include", "$SUBSYSTEM_DIR/ipc/include",
"//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", ]
"$SUBSYSTEM_DIR/ipc/include", ldflags = [
] "-lstdc++",
ldflags = [ "-lpthread",
"-lstdc++", ]
"-lpthread", deps =
] [ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ]
deps = [
"//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" configs -= [ "//build/lite/config:clang_opt" ]
] }
configs -= [ "//build/lite/config:clang_opt" ]
}
# Copyright (c) 2020 Huawei Device Co., Ltd. # Copyright (c) 2020 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
SUBSYSTEM_DIR = "//foundation/communication/ipc/test" SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c" IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
executable("samgr") { executable("samgr") {
sources = [ sources = [ "$SUBSYSTEM_DIR/ipc/samgr/samgr.c" ]
"$SUBSYSTEM_DIR/ipc/samgr/samgr.c", include_dirs = [
] "//third_party/bounds_checking_function/include",
include_dirs = [ "//utils/native/lite/include",
"//third_party/bounds_checking_function/include", "$IPC_CORE_ROOT/manager/include",
"//utils/native/lite/include", "$IPC_CORE_ROOT/ipc/include",
"$IPC_CORE_ROOT/manager/include", "//foundation/communication/ipc/services/dbinder/c/include",
"$IPC_CORE_ROOT/ipc/include", "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
"//foundation/communication/ipc/services/dbinder/c/include", "$SUBSYSTEM_DIR/ipc/include",
"//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", ]
"$SUBSYSTEM_DIR/ipc/include", ldflags = [
] "-lstdc++",
ldflags = [ "-lpthread",
"-lstdc++", ]
"-lpthread", deps =
] [ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ]
deps = [
"//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", configs -= [ "//build/lite/config:clang_opt" ]
] }
configs -= [ "//build/lite/config:clang_opt" ]
}
# Copyright (c) 2020 Huawei Device Co., Ltd. # Copyright (c) 2020 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
SUBSYSTEM_DIR = "//foundation/communication/ipc/test" SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c" IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
executable("ipc_server") { executable("ipc_server") {
sources = [ sources = [ "$SUBSYSTEM_DIR/ipc/server/server.c" ]
"$SUBSYSTEM_DIR/ipc/server/server.c", include_dirs = [
] "//third_party/bounds_checking_function/include",
include_dirs = [ "//utils/native/lite/include",
"//third_party/bounds_checking_function/include", "$IPC_CORE_ROOT/manager/include",
"//utils/native/lite/include", "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
"$IPC_CORE_ROOT/manager/include", "$SUBSYSTEM_DIR/ipc/include",
"//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", ]
"$SUBSYSTEM_DIR/ipc/include", ldflags = [
] "-lstdc++",
ldflags = [ "-lpthread",
"-lstdc++", ]
"-lpthread", deps =
] [ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ]
deps = [
"//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" configs -= [ "//build/lite/config:clang_opt" ]
] }
configs -= [ "//build/lite/config:clang_opt" ]
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册