diff --git a/BUILD.gn b/BUILD.gn index ff9d4ec121dbcb229ff46009a69a924b35002aee..b8eb7330ba24cccfcf7a4561e212108fbd03fa02 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -292,7 +292,6 @@ config("gobject_config") { ".", "gobject", "glib", - "//third_party/libffi/include", ] cflags = [ "-DG_LOG_DOMAIN=\"GObject\"", @@ -326,14 +325,17 @@ ohos_source_set("gobject_source") { ] configs = [ ":gobject_config" ] + + external_deps = [ "libffi:ffi" ] } ohos_shared_library("gobject") { deps = [ ":glib", ":gobject_source", - "//third_party/libffi:ffi", ] + + external_deps = [ "libffi:ffi" ] part_name = "glib" subsystem_name = "thirdparty" } diff --git a/bundle.json b/bundle.json index 0c480c550b80d5ea49b3c384e6b158beb2e4ce7a..9ef4c7e49ff232cdbefa09391e9e73cdd07e6cc9 100644 --- a/bundle.json +++ b/bundle.json @@ -25,9 +25,10 @@ "hisysevent", "hitrace", "hilog", - "init" + "init", + "libffi" ], - "third_party": [ "libffi" ] + "third_party": [] }, "build": { "sub_component": [],