diff --git a/ipc/test/ipc/BUILD.gn b/ipc/test/ipc/BUILD.gn index 5768ac71a85efcd8c726dbe791c0a6d36dde194b..671613b85a9bc8425ec39f8ab88b0028bfb06d0f 100644 --- a/ipc/test/ipc/BUILD.gn +++ b/ipc/test/ipc/BUILD.gn @@ -1,22 +1,22 @@ -# 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 +# 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("//foundation/communication/dsoftbus/dsoftbus.gni") - -lite_component("ipc_test") { - features = [ - "client:ipc_client", - "server:ipc_server", - "samgr:samgr", - ] -} \ No newline at end of file + +import("//foundation/communication/dsoftbus/dsoftbus.gni") + +lite_component("ipc_test") { + features = [ + "client:ipc_client", + "server:ipc_server", + "samgr:samgr", + ] +} diff --git a/ipc/test/ipc/client/BUILD.gn b/ipc/test/ipc/client/BUILD.gn index a98552b96c230841479353b32aa648dc6300e0df..855485e0c0a6d2e26a7a24bd25fd51eb0810f7a9 100644 --- a/ipc/test/ipc/client/BUILD.gn +++ b/ipc/test/ipc/client/BUILD.gn @@ -1,39 +1,36 @@ -# Copyright (c) 2020 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 +# Copyright (c) 2020 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/lite/config/component/lite_component.gni") - -SUBSYSTEM_DIR = "//foundation/communication/ipc/test" -IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c" - -executable("ipc_client") { - sources = [ - "$SUBSYSTEM_DIR/ipc/client/client.c", - ] - include_dirs = [ - "//third_party/bounds_checking_function/include", - "//utils/native/lite/include", - "$IPC_CORE_ROOT/manager/include", - "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", - "$SUBSYSTEM_DIR/ipc/include", - ] - ldflags = [ - "-lstdc++", - "-lpthread", - ] - deps = [ - "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" - ] - - configs -= [ "//build/lite/config:clang_opt" ] -} + +import("//build/lite/config/component/lite_component.gni") + +SUBSYSTEM_DIR = "//foundation/communication/ipc/test" +IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c" + +executable("ipc_client") { + sources = [ "$SUBSYSTEM_DIR/ipc/client/client.c" ] + include_dirs = [ + "//third_party/bounds_checking_function/include", + "//utils/native/lite/include", + "$IPC_CORE_ROOT/manager/include", + "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", + "$SUBSYSTEM_DIR/ipc/include", + ] + ldflags = [ + "-lstdc++", + "-lpthread", + ] + deps = + [ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ] + + configs -= [ "//build/lite/config:clang_opt" ] +} diff --git a/ipc/test/ipc/samgr/BUILD.gn b/ipc/test/ipc/samgr/BUILD.gn index f6193551544bfd4f523f672e0eb99ba332c89ac4..4ab5034005756bb864bc7e3e3147a5bfa6147aa0 100644 --- a/ipc/test/ipc/samgr/BUILD.gn +++ b/ipc/test/ipc/samgr/BUILD.gn @@ -1,41 +1,38 @@ -# Copyright (c) 2020 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 +# Copyright (c) 2020 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/lite/config/component/lite_component.gni") - -SUBSYSTEM_DIR = "//foundation/communication/ipc/test" -IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c" - -executable("samgr") { - sources = [ - "$SUBSYSTEM_DIR/ipc/samgr/samgr.c", - ] - include_dirs = [ - "//third_party/bounds_checking_function/include", - "//utils/native/lite/include", - "$IPC_CORE_ROOT/manager/include", - "$IPC_CORE_ROOT/ipc/include", - "//foundation/communication/ipc/services/dbinder/c/include", - "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", - "$SUBSYSTEM_DIR/ipc/include", - ] - ldflags = [ - "-lstdc++", - "-lpthread", - ] - deps = [ - "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", - ] - - configs -= [ "//build/lite/config:clang_opt" ] -} + +import("//build/lite/config/component/lite_component.gni") + +SUBSYSTEM_DIR = "//foundation/communication/ipc/test" +IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c" + +executable("samgr") { + sources = [ "$SUBSYSTEM_DIR/ipc/samgr/samgr.c" ] + include_dirs = [ + "//third_party/bounds_checking_function/include", + "//utils/native/lite/include", + "$IPC_CORE_ROOT/manager/include", + "$IPC_CORE_ROOT/ipc/include", + "//foundation/communication/ipc/services/dbinder/c/include", + "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", + "$SUBSYSTEM_DIR/ipc/include", + ] + ldflags = [ + "-lstdc++", + "-lpthread", + ] + deps = + [ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ] + + configs -= [ "//build/lite/config:clang_opt" ] +} diff --git a/ipc/test/ipc/server/BUILD.gn b/ipc/test/ipc/server/BUILD.gn index 9fee2af54f8072b74e521f254b84545aacc152e9..dd0dece6e066d36f99a39552ccb0dca806fb182b 100644 --- a/ipc/test/ipc/server/BUILD.gn +++ b/ipc/test/ipc/server/BUILD.gn @@ -1,39 +1,36 @@ -# Copyright (c) 2020 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 +# Copyright (c) 2020 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/lite/config/component/lite_component.gni") - -SUBSYSTEM_DIR = "//foundation/communication/ipc/test" -IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c" - -executable("ipc_server") { - sources = [ - "$SUBSYSTEM_DIR/ipc/server/server.c", - ] - include_dirs = [ - "//third_party/bounds_checking_function/include", - "//utils/native/lite/include", - "$IPC_CORE_ROOT/manager/include", - "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", - "$SUBSYSTEM_DIR/ipc/include", - ] - ldflags = [ - "-lstdc++", - "-lpthread", - ] - deps = [ - "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" - ] - - configs -= [ "//build/lite/config:clang_opt" ] -} + +import("//build/lite/config/component/lite_component.gni") + +SUBSYSTEM_DIR = "//foundation/communication/ipc/test" +IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c" + +executable("ipc_server") { + sources = [ "$SUBSYSTEM_DIR/ipc/server/server.c" ] + include_dirs = [ + "//third_party/bounds_checking_function/include", + "//utils/native/lite/include", + "$IPC_CORE_ROOT/manager/include", + "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", + "$SUBSYSTEM_DIR/ipc/include", + ] + ldflags = [ + "-lstdc++", + "-lpthread", + ] + deps = + [ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ] + + configs -= [ "//build/lite/config:clang_opt" ] +}