diff --git a/BUILD.gn b/BUILD.gn index 04dc9824d6b847dc54aa06c5353e5ca193911bbb..68ca3a26ce4c7366ee2f48441c7ec6c3ea2ff994 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -10,9 +10,6 @@ import("//build/ohos.gni") -#import("//build/ohos_var.gni") -#import("//developtools/profiler/build/config.gni") - LIBSEPOL_ROOT_DIR = "//third_party/selinux/libsepol" LIBSELINUX_ROOT_DIR = "//third_party/selinux/libselinux" CHECKPOLICY_ROOT_DIR = "//third_party/selinux/checkpolicy" @@ -20,6 +17,15 @@ SECILC_ROOT_DIR = "//third_party/selinux/secilc" LIBFTS_ROOT_DIR = "//third_party/FreeBSD" LIBPCRE2_ROOT_DIR = "//third_party/pcre2" +config("third_party_selinux_config") { + include_dirs = [ + "$LIBSELINUX_ROOT_DIR/include", + "$LIBSELINUX_ROOT_DIR", + "$LIBPCRE2_ROOT_DIR/pcre2/src", + "$LIBFTS_ROOT_DIR", + ] +} + ohos_shared_library("libsepol") { md5_check_script = rebase_path("//third_party/selinux/check_md5.sh") _arguments = [ @@ -203,6 +209,8 @@ ohos_shared_library("libselinux") { "$LIBSEPOL_ROOT_DIR/include", ] + public_configs = [ ":third_party_selinux_config" ] + cflags = [ "-DOHOS_FC_INIT", "-D_GNU_SOURCE", diff --git a/bundle.json b/bundle.json index 29765097ae17d5154975cbc7ad58c3e117df9f26..b5488302e47bbe4847a86b45fcebb92a356b1e98 100644 --- a/bundle.json +++ b/bundle.json @@ -15,7 +15,9 @@ "subsystem": "", "syscap": [], "features": [], - "adapted_system_type": [], + "adapted_system_type": [ + "standard" + ], "rom": "", "ram": "", "deps": {