diff --git a/communication/broadcast/BUILD.gn b/communication/broadcast/BUILD.gn index 6943420d515ba53099cedaecd61be9a04f50d7a7..2e2c56730e09030bd1f6e5e04605cfb148457e14 100755 --- a/communication/broadcast/BUILD.gn +++ b/communication/broadcast/BUILD.gn @@ -12,50 +12,48 @@ # limitations under the License. config("broadcast_public") { - include_dirs = [ - "//foundation/distributedschedule/interfaces/kits/samgr_lite/communication/broadcast", - "//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr", - "//foundation/distributedschedule/services/samgr_lite/samgr/adapter", - "//utils/native/lite/include", - ] + include_dirs = [ + "//foundation/distributedschedule/interfaces/kits/samgr_lite/communication/broadcast", + "//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr", + "//foundation/distributedschedule/services/samgr_lite/samgr/adapter", + "//utils/native/lite/include", + ] } if (ohos_kernel_type == "liteos_riscv" || ohos_kernel_type == "liteos_m") { - static_library("broadcast") { - sources = [ - "source/pub_sub_implement.c", - "source/pub_sub_feature.c", - "source/broadcast_service.c", - ] - public_configs = [":broadcast_public"] - cflags = [ "-Wall" ] - include_dirs = [ - "//kernel/liteos_m/components/cmsis", - ] - } + static_library("broadcast") { + sources = [ + "source/broadcast_service.c", + "source/pub_sub_feature.c", + "source/pub_sub_implement.c", + ] + public_configs = [ ":broadcast_public" ] + cflags = [ "-Wall" ] + include_dirs = [ "//kernel/liteos_m/kal" ] + } } if (ohos_kernel_type == "liteos_a" || ohos_kernel_type == "linux") { - shared_library("broadcast") { - sources = [ - "source/pub_sub_implement.c", - "source/pub_sub_feature.c", - "source/broadcast_service.c", - ] - public_configs = [":broadcast_public"] - configs -= [ "//build/lite/config:language_c" ] - cflags_c = [ - "-std=c11", - "-Wall" - ] - include_dirs = [ - "//kernel/liteos_a/kernel/include/", - "//third_party/bounds_checking_function/include", - "//kernel/liteos_a/kernel/common", - ] - public_deps = [ - "//third_party/bounds_checking_function:libsec_shared", - "//foundation/distributedschedule/services/samgr_lite/samgr:samgr", - ] - } + shared_library("broadcast") { + sources = [ + "source/broadcast_service.c", + "source/pub_sub_feature.c", + "source/pub_sub_implement.c", + ] + public_configs = [ ":broadcast_public" ] + configs -= [ "//build/lite/config:language_c" ] + cflags_c = [ + "-std=c11", + "-Wall", + ] + include_dirs = [ + "//kernel/liteos_a/kernel/include/", + "//third_party/bounds_checking_function/include", + "//kernel/liteos_a/kernel/common", + ] + public_deps = [ + "//foundation/distributedschedule/services/samgr_lite/samgr:samgr", + "//third_party/bounds_checking_function:libsec_shared", + ] + } } diff --git a/samgr/adapter/BUILD.gn b/samgr/adapter/BUILD.gn index 637f1f874cd6d52ee3abd93e5e7ee12b2f8ac6c7..6801cf5a3df4705b6f9c8e1aee359acf0d29fe82 100755 --- a/samgr/adapter/BUILD.gn +++ b/samgr/adapter/BUILD.gn @@ -12,59 +12,56 @@ # limitations under the License. config("samgr_adapter_public") { - include_dirs = [ - "./", - "//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr", - "//utils/native/lite/include", - ] + include_dirs = [ + "./", + "//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr", + "//utils/native/lite/include", + ] } if (ohos_kernel_type == "liteos_riscv" || ohos_kernel_type == "liteos_m") { - static_library("samgr_adapter") { - sources = [ - "cmsis/memory_adapter.c", - "cmsis/queue_adapter.c", - "cmsis/thread_adapter.c", - "cmsis/time_adapter.c", - ] + static_library("samgr_adapter") { + sources = [ + "cmsis/memory_adapter.c", + "cmsis/queue_adapter.c", + "cmsis/thread_adapter.c", + "cmsis/time_adapter.c", + ] - public_configs = [":samgr_adapter_public"] - cflags = [ "-Wall" ] + public_configs = [ ":samgr_adapter_public" ] + cflags = [ "-Wall" ] - include_dirs = [ - "//kernel/liteos_m/components/cmsis", - "//kernel/liteos_m/components/kal/include", - ] - } + include_dirs = [ "//kernel/liteos_m/kal" ] + } } if (ohos_kernel_type == "liteos_a" || ohos_kernel_type == "linux") { - source_set("samgr_adapter") { - sources = [ - "posix/lock_free_queue.c", - "posix/memory_adapter.c", - "posix/queue_adapter.c", - "posix/thread_adapter.c", - "posix/time_adapter.c", - ] + source_set("samgr_adapter") { + sources = [ + "posix/lock_free_queue.c", + "posix/memory_adapter.c", + "posix/queue_adapter.c", + "posix/thread_adapter.c", + "posix/time_adapter.c", + ] - public_configs = [":samgr_adapter_public"] + public_configs = [ ":samgr_adapter_public" ] - include_dirs = [ - "//kernel/liteos_a/kernel/include/", - "//third_party/bounds_checking_function/include", - ] + include_dirs = [ + "//kernel/liteos_a/kernel/include/", + "//third_party/bounds_checking_function/include", + ] - cflags = [ - "-fPIC", - "-Wall" - ] - public_deps = [ - "//third_party/bounds_checking_function:libsec_shared" - ] - defines = [ "_GNU_SOURCE" ] - if (ohos_kernel_type == "linux") { - defines += [ "SAMGR_LINUX_ADAPTER" ] - } + cflags = [ + "-fPIC", + "-Wall", + ] + public_deps = [ + "//third_party/bounds_checking_function:libsec_shared", + ] + defines = [ "_GNU_SOURCE" ] + if (ohos_kernel_type == "linux") { + defines += [ "SAMGR_LINUX_ADAPTER" ] } + } }