diff --git a/interfaces/innerkits/file/BUILD.gn b/interfaces/innerkits/file/BUILD.gn index 0ea71cf5ad0fac448bd06adb0f1834d7b231b4e1..eaf6e73cfda00f11d6c911e430ee51928eed3380 100755 --- a/interfaces/innerkits/file/BUILD.gn +++ b/interfaces/innerkits/file/BUILD.gn @@ -13,8 +13,7 @@ import("//build/ohos.gni") ohos_static_library("libfile") { - sources = - [ "//base/startup/init_lite/interfaces/innerkits/file/init_file.c" ] + sources = [ "//base/startup/init_lite/interfaces/innerkits/file/init_file.c" ] include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include", diff --git a/services/BUILD.gn b/services/BUILD.gn index 63878a03d98e717a5449debd03cfb968780c296a..4d4285c0918c46fc62493447c7df8bc909de41c2 100755 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -16,9 +16,9 @@ init_common_sources = [ "init/init_common_cmds.c", "init/init_common_service.c", "init/init_config.c", + "init/init_service_file.c", "init/init_service_manager.c", "init/init_service_socket.c", - "init/init_service_file.c", "init/main.c", "log/init_log.c", "utils/init_utils.c", @@ -167,9 +167,9 @@ if (defined(ohos_lite)) { ":init", ":init_etc", "//base/startup/init_lite/interfaces/innerkits/dynamic_service:dynamic_service", + "//base/startup/init_lite/interfaces/innerkits/file:libfile", "//base/startup/init_lite/interfaces/innerkits/fs_manager:libfsmanager_shared", "//base/startup/init_lite/interfaces/innerkits/socket:libsocket", - "//base/startup/init_lite/interfaces/innerkits/file:libfile", "//base/startup/init_lite/services/cmds/reboot:reboot", "//base/startup/init_lite/services/cmds/service_control:service_control", "//base/startup/init_lite/services/param:param", diff --git a/services/test/unittest/BUILD.gn b/services/test/unittest/BUILD.gn index b607077690f4c64124c87f7cb4d082304a7727be..392cb3f45088bea73e849a3a2e5fc297cc9cff4e 100755 --- a/services/test/unittest/BUILD.gn +++ b/services/test/unittest/BUILD.gn @@ -32,17 +32,17 @@ config("utest_config") { ohos_unittest("init_ut") { module_out_path = "startup/init" sources = [ + "//base/startup/init_lite/interfaces/innerkits/file/init_file.c", "//base/startup/init_lite/interfaces/innerkits/fs_manager/fstab.c", "//base/startup/init_lite/interfaces/innerkits/fs_manager/fstab_mount.c", - "//base/startup/init_lite/interfaces/innerkits/file/init_file.c", "//base/startup/init_lite/services/init/adapter/init_adapter.c", "//base/startup/init_lite/services/init/init_capability.c", "//base/startup/init_lite/services/init/init_common_cmds.c", "//base/startup/init_lite/services/init/init_common_service.c", "//base/startup/init_lite/services/init/init_config.c", + "//base/startup/init_lite/services/init/init_service_file.c", "//base/startup/init_lite/services/init/init_service_manager.c", "//base/startup/init_lite/services/init/init_service_socket.c", - "//base/startup/init_lite/services/init/init_service_file.c", "//base/startup/init_lite/services/init/standard/device.c", "//base/startup/init_lite/services/init/standard/init.c", "//base/startup/init_lite/services/init/standard/init_cmds.c", diff --git a/services/test/unittest/common/BUILD.gn b/services/test/unittest/common/BUILD.gn index 19a83ae8f97b456db136c8d22c5f797ba80cda96..c81375c35906e695bc0e2214445faca1f3e71452 100755 --- a/services/test/unittest/common/BUILD.gn +++ b/services/test/unittest/common/BUILD.gn @@ -43,6 +43,7 @@ if (defined(ohos_lite)) { "//base/startup/init_lite/services/init/init_common_cmds.c", "//base/startup/init_lite/services/init/init_common_service.c", "//base/startup/init_lite/services/init/init_config.c", + "//base/startup/init_lite/services/init/init_service_file.c", "//base/startup/init_lite/services/init/init_service_manager.c", "//base/startup/init_lite/services/init/init_service_socket.c", "//base/startup/init_lite/services/init/lite/init.c",