规范化BUILD.gn

Signed-off-by: lockzhiner_wang-xiaobin <wangxb@fzlzdz.com>
This commit is contained in:
lockzhiner_wang-xiaobin
2022-08-25 14:09:17 +08:00
parent 12db3b8216
commit b0aa12334d
5 changed files with 15 additions and 18 deletions
+6 -8
View File
@@ -12,11 +12,9 @@
# limitations under the License.
if (ohos_kernel_type == "liteos_m") {
import("//kernel/liteos_m/liteos.gni")
module_name = get_path_info(rebase_path("."), "name")
module_group(module_name) {
modules = [
"lingpi",
]
}
}
import("//kernel/liteos_m/liteos.gni")
module_name = get_path_info(rebase_path("."), "name")
module_group(module_name) {
modules = [ "lingpi" ]
}
}
+2 -2
View File
@@ -15,10 +15,10 @@ if (ohos_kernel_type == "liteos_m") {
import("//kernel/liteos_m/liteos.gni")
module_name = get_path_info(rebase_path("."), "name")
module_group(module_name) {
modules = [
modules = [
"liteos_m",
"third_party",
"//vendor/lockzhiner/lingpi/samples",
]
}
}
}
+1 -1
View File
@@ -15,4 +15,4 @@ import("//kernel/liteos_m/liteos.gni")
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
}
}
+1 -3
View File
@@ -14,7 +14,5 @@
import("//kernel/liteos_m/liteos.gni")
module_name = get_path_info(rebase_path("."), "name")
module_group(module_name) {
modules = [
"rk2206_lwip",
]
modules = [ "rk2206_lwip" ]
}
+5 -4
View File
@@ -15,11 +15,12 @@ import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/subsystem/lite_subsystem.gni")
config("public") {
include_dirs = [ "." ]
include_dirs = [ "." ]
}
build_ext_component("rk2206_lwip") {
exec_path = rebase_path(".", root_build_dir)
outdir = rebase_path("//kernel/liteos_m/components/net/lwip-2.1/porting/include/lwip/")
command = "sh ./build.sh $outdir"
exec_path = rebase_path(".", root_build_dir)
outdir = rebase_path(
"//kernel/liteos_m/components/net/lwip-2.1/porting/include/lwip/")
command = "sh ./build.sh $outdir"
}