mirror of
https://gitee.com/openharmony/security_selinux
synced 2025-02-17 03:18:21 +00:00
support extra args
Signed-off-by: steven_q <qichanggui@huawei.com> Change-Id: Ibd71edf7128ecf6f5bffcdd688aa634adf67845f
This commit is contained in:
parent
ba6f6962d4
commit
81fd7ad2be
14
BUILD.gn
14
BUILD.gn
@ -368,6 +368,13 @@ action("build_policy") {
|
||||
"--components",
|
||||
components,
|
||||
]
|
||||
|
||||
if (extra_args != "default") {
|
||||
foreach(arg, string_split(extra_args, " ")) {
|
||||
args += [ arg ]
|
||||
}
|
||||
}
|
||||
|
||||
deps = [
|
||||
"$THIRD_PARTY_DIR/selinux:checkpolicy($host_toolchain)",
|
||||
"$THIRD_PARTY_DIR/selinux:secilc($host_toolchain)",
|
||||
@ -426,6 +433,13 @@ action("build_update_policy") {
|
||||
"--components",
|
||||
components,
|
||||
]
|
||||
|
||||
if (extra_args != "default") {
|
||||
foreach(arg, string_split(extra_args, " ")) {
|
||||
args += [ arg ]
|
||||
}
|
||||
}
|
||||
|
||||
deps = [
|
||||
"$THIRD_PARTY_DIR/selinux:checkpolicy($host_toolchain)",
|
||||
"$THIRD_PARTY_DIR/selinux:secilc($host_toolchain)",
|
||||
|
@ -18,6 +18,7 @@ declare_args() {
|
||||
selinux_build_path = "default"
|
||||
components = "default"
|
||||
special_build_policy_script = "default"
|
||||
extra_args = "default"
|
||||
}
|
||||
|
||||
declare_args() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user