From 9dbe284f9f02341ddf71bd01c3482048efeb1cf2 Mon Sep 17 00:00:00 2001 From: changcheng-weng Date: Thu, 17 Sep 2020 21:32:04 +0800 Subject: [PATCH] update BUILD.gn. --- BUILD.gn | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 2cbd4c6..5def570 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -11,6 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. import("//build/lite/config/component/lite_component.gni") +import("//build/lite/config/subsystem/aafwk/config.gni") lite_component("appspawn_lite") { features = [ @@ -28,6 +29,10 @@ executable("appspawn") { "src/appspawn_adapter.c", ] + ldflags = [ + "-lstdc++", + ] + cflags = [ "-Wall", "-Wno-format", @@ -39,17 +44,29 @@ executable("appspawn") { "//utils/native/lite/include", "//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr", "//foundation/distributedschedule/interfaces/kits/samgr_lite/registry", + "//foundation/aafwk/interfaces/innerkits/abilitymgr_lite", "//third_party/bounds_checking_function/include/", "//third_party/cJSON", ] deps = [ "//third_party/bounds_checking_function:libsec_shared", + "//foundation/aafwk/frameworks/ability_lite:aafwk_abilitykit_lite", "//foundation/distributedschedule/services/samgr_lite/samgr:samgr", "//foundation/communication/frameworks/ipc_lite:liteipc_adapter", "//third_party/cJSON:cjson_shared", + "//utils/native/lite/kv_store:kv_store", ] + if (enable_ohos_appexecfwk_feature_ability == true) { + deps += [ + "//foundation/ace/frameworks/lite:ace_lite", + "//foundation/graphic/lite/frameworks/ui:ui", + "//foundation/graphic/lite/utils:graphic_utils", + "//foundation/graphic/lite/frameworks/surface", + ] + } + if (ohos_kernel_type == "liteos_a") { include_dirs += [ "//kernel/liteos_a/kernel/include", @@ -61,7 +78,6 @@ executable("appspawn") { } if (ohos_kernel_type == "linux") { - ldflags = ["-lstdc++"] include_dirs += [ ] } -- GitLab