diff --git a/BUILD.gn b/BUILD.gn index 636562c06aaf2d676493b02a5d512fd069db31a6..d64ad0584bfb5f2804e54d72e95d4b37536a256a 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -41,7 +41,7 @@ copy("ConfigFiles") { } ndk_lib("samgr_lite_ndk") { - if (ohos_kernel_type == "liteos_m") { + if (ohos_kernel_type == "liteos_m" || ohos_kernel_type == "uniproton") { lib_extension = ".a" } else if (ohos_kernel_type == "liteos_a" || ohos_kernel_type == "linux") { lib_extension = ".so" diff --git a/bundle.json b/bundle.json index 019313b8888d2d1e395c8225303b3fa9bf5e2ffd..1c028e904541511f4220e1f9ef9b88c24aa6f001 100644 --- a/bundle.json +++ b/bundle.json @@ -20,6 +20,7 @@ "adapted_kernel": [ "liteos_a", "liteos_m", + "uniproton", "linux" ], "rom": "62KB", @@ -40,4 +41,4 @@ ] } } -} \ No newline at end of file +} diff --git a/communication/broadcast/BUILD.gn b/communication/broadcast/BUILD.gn index 51fd524fa956c72afe06311bb7f24998d7c17eac..0823025ea63364b8c7869bf0855c9fabc4b016c8 100644 --- a/communication/broadcast/BUILD.gn +++ b/communication/broadcast/BUILD.gn @@ -20,7 +20,7 @@ config("broadcast_public") { ] } -if (ohos_kernel_type == "liteos_m") { +if (ohos_kernel_type == "liteos_m" || ohos_kernel_type == "uniproton") { static_library("broadcast") { sources = [ "source/broadcast_service.c", diff --git a/samgr/BUILD.gn b/samgr/BUILD.gn index 3e22d9026efa364d54ac3c93604c9ae9df2c7bb9..9945161e0bab7479d123e9706c469f4b67b987c6 100644 --- a/samgr/BUILD.gn +++ b/samgr/BUILD.gn @@ -34,7 +34,7 @@ config("samgr_public") { ] } -if (ohos_kernel_type == "liteos_m") { +if (ohos_kernel_type == "liteos_m" || ohos_kernel_type == "uniproton") { static_library("samgr") { sources = [ "registry/service_registry.c", diff --git a/samgr/adapter/BUILD.gn b/samgr/adapter/BUILD.gn index d0c41afd6d8672c35e99ed75dc67043915d0a447..d2d2d5ac0d3d3ef2ea4522051329b3acaab189c2 100644 --- a/samgr/adapter/BUILD.gn +++ b/samgr/adapter/BUILD.gn @@ -19,7 +19,7 @@ config("samgr_adapter_public") { ] } -if (ohos_kernel_type == "liteos_m") { +if (ohos_kernel_type == "liteos_m" || ohos_kernel_type == "uniproton") { static_library("samgr_adapter") { sources = [ "cmsis/memory_adapter.c", @@ -30,10 +30,12 @@ if (ohos_kernel_type == "liteos_m") { public_configs = [ ":samgr_adapter_public" ] - include_dirs = [ - "//kernel/liteos_m/kal/", - "//kernel/liteos_m/kal/cmsis", - ] + if (ohos_kernel_type == "liteos_m") { + include_dirs = [ + "//kernel/liteos_m/kal/", + "//kernel/liteos_m/kal/cmsis", + ] + } } } diff --git a/samgr/source/BUILD.gn b/samgr/source/BUILD.gn index 30c7b797781e298f9f759fd4275dd25066d00405..4b81e2d3375c9db293b3cfefa7bcf0654d630448 100644 --- a/samgr/source/BUILD.gn +++ b/samgr/source/BUILD.gn @@ -23,7 +23,7 @@ config("samgr_source_public") { ] } -if (ohos_kernel_type == "liteos_m") { +if (ohos_kernel_type == "liteos_m" || ohos_kernel_type == "uniproton") { static_library("samgr_source") { sources = [ "common.c",