From 4ad05867cc90d22a0b596adba8fd3bbe2beb54c3 Mon Sep 17 00:00:00 2001 From: pwx1285814 Date: Mon, 27 Jan 2025 10:12:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E6=8E=92=E6=9F=A5=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: pwx1285814 Change-Id: Ifd4ce6e1b11ec5ce31a87a73f67c1cd7fa6cbecc --- common/BUILD.gn | 6 +++++- interfaces/innerkits/native_cpp/screen_sink/BUILD.gn | 6 +++++- interfaces/innerkits/native_cpp/screen_source/BUILD.gn | 6 +++++- screenhandler/BUILD.gn | 6 +++++- services/screenclient/BUILD.gn | 6 +++++- services/screenservice/sinkservice/BUILD.gn | 6 +++++- services/screenservice/sourceservice/BUILD.gn | 6 +++++- services/screentransport/screensinktrans/BUILD.gn | 6 +++++- services/screentransport/screensourcetrans/BUILD.gn | 6 +++++- 9 files changed, 45 insertions(+), 9 deletions(-) diff --git a/common/BUILD.gn b/common/BUILD.gn index 74c7be17..0a542d85 100644 --- a/common/BUILD.gn +++ b/common/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 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 @@ -56,6 +56,10 @@ ohos_shared_library("distributed_screen_utils") { "LOG_DOMAIN=0xD004140", ] + cflags = [ "-fstack-protector-strong" ] + + cflags_cc = cflags + subsystem_name = "distributedhardware" part_name = "distributed_screen" diff --git a/interfaces/innerkits/native_cpp/screen_sink/BUILD.gn b/interfaces/innerkits/native_cpp/screen_sink/BUILD.gn index ac3d3454..5c24a5a8 100644 --- a/interfaces/innerkits/native_cpp/screen_sink/BUILD.gn +++ b/interfaces/innerkits/native_cpp/screen_sink/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 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 @@ -56,6 +56,10 @@ ohos_shared_library("distributed_screen_sink_sdk") { "samgr:samgr_proxy", ] + cflags = [ "-fstack-protector-strong" ] + + cflags_cc = cflags + subsystem_name = "distributedhardware" part_name = "distributed_screen" diff --git a/interfaces/innerkits/native_cpp/screen_source/BUILD.gn b/interfaces/innerkits/native_cpp/screen_source/BUILD.gn index 11cb59ba..1f483313 100644 --- a/interfaces/innerkits/native_cpp/screen_source/BUILD.gn +++ b/interfaces/innerkits/native_cpp/screen_source/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 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 @@ -57,6 +57,10 @@ ohos_shared_library("distributed_screen_source_sdk") { "samgr:samgr_proxy", ] + cflags = [ "-fstack-protector-strong" ] + + cflags_cc = cflags + subsystem_name = "distributedhardware" part_name = "distributed_screen" diff --git a/screenhandler/BUILD.gn b/screenhandler/BUILD.gn index cd69bbf6..b05245dd 100644 --- a/screenhandler/BUILD.gn +++ b/screenhandler/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 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 @@ -55,6 +55,10 @@ ohos_shared_library("distributed_screen_handler") { "window_manager:libdm", ] + cflags = [ "-fstack-protector-strong" ] + + cflags_cc = cflags + subsystem_name = "distributedhardware" part_name = "distributed_screen" diff --git a/services/screenclient/BUILD.gn b/services/screenclient/BUILD.gn index f24202fa..095fe7c0 100644 --- a/services/screenclient/BUILD.gn +++ b/services/screenclient/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 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 @@ -63,6 +63,10 @@ ohos_shared_library("distributed_screen_client") { "window_manager:libwm", ] + cflags = [ "-fstack-protector-strong" ] + + cflags_cc = cflags + part_name = "distributed_screen" subsystem_name = "distributedhardware" } diff --git a/services/screenservice/sinkservice/BUILD.gn b/services/screenservice/sinkservice/BUILD.gn index 350eeae3..aff95a13 100644 --- a/services/screenservice/sinkservice/BUILD.gn +++ b/services/screenservice/sinkservice/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 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 @@ -98,6 +98,10 @@ ohos_shared_library("distributed_screen_sink") { "window_manager:libdm", ] + cflags = [ "-fstack-protector-strong" ] + + cflags_cc = cflags + subsystem_name = "distributedhardware" part_name = "distributed_screen" diff --git a/services/screenservice/sourceservice/BUILD.gn b/services/screenservice/sourceservice/BUILD.gn index 4d005653..64b399f1 100644 --- a/services/screenservice/sourceservice/BUILD.gn +++ b/services/screenservice/sourceservice/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 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 @@ -108,6 +108,10 @@ ohos_shared_library("distributed_screen_source") { "window_manager:libdm", ] + cflags = [ "-fstack-protector-strong" ] + + cflags_cc = cflags + subsystem_name = "distributedhardware" part_name = "distributed_screen" diff --git a/services/screentransport/screensinktrans/BUILD.gn b/services/screentransport/screensinktrans/BUILD.gn index b3ad507c..309a76e7 100644 --- a/services/screentransport/screensinktrans/BUILD.gn +++ b/services/screentransport/screensinktrans/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 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 @@ -81,6 +81,10 @@ ohos_shared_library("distributed_screen_sinktrans") { "media_foundation:media_foundation", ] + cflags = [ "-fstack-protector-strong" ] + + cflags_cc = cflags + subsystem_name = "distributedhardware" part_name = "distributed_screen" diff --git a/services/screentransport/screensourcetrans/BUILD.gn b/services/screentransport/screensourcetrans/BUILD.gn index 0e211a6b..62a3438d 100644 --- a/services/screentransport/screensourcetrans/BUILD.gn +++ b/services/screentransport/screensourcetrans/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 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 @@ -83,6 +83,10 @@ ohos_shared_library("distributed_screen_sourcetrans") { "media_foundation:media_foundation", ] + cflags = [ "-fstack-protector-strong" ] + + cflags_cc = cflags + subsystem_name = "distributedhardware" part_name = "distributed_screen" -- Gitee