mirror of
https://github.com/openharmony/build_lite.git
synced 2026-07-20 08:57:58 -04:00
lite_library支持移除部分configs
Signed-off-by: i-wangliangliang <willfox@126.com> Change-Id: Ic35c79e0e430e5da2dfc9dc2f1d9811a7cf7aaa1
This commit is contained in:
@@ -36,7 +36,7 @@ template("lite_library") {
|
||||
}
|
||||
} else {
|
||||
target(target_type, target_name) {
|
||||
forward_variables_from(invoker, "*")
|
||||
forward_variables_from(invoker, "*", [ "remove_configs" ])
|
||||
cflags = []
|
||||
cflags_cc = []
|
||||
ldflags = []
|
||||
@@ -50,6 +50,9 @@ template("lite_library") {
|
||||
if (defined(invoker.ldflags)) {
|
||||
ldflags += invoker.ldflags
|
||||
}
|
||||
if (defined(invoker.remove_configs)) {
|
||||
configs -= invoker.remove_configs
|
||||
}
|
||||
shared_lib = target_type == "shared_library"
|
||||
if (shared_lib) {
|
||||
cflags += [ "-fPIC" ]
|
||||
|
||||
Reference in New Issue
Block a user