diff --git a/dprof/BUILD.gn b/dprof/BUILD.gn index 41d8695f92fd36ee02ed5d4ceda90ea97c8bc68a..950a464f92a8cedb7fb99e2eea34c0304b3d5b64 100644 --- a/dprof/BUILD.gn +++ b/dprof/BUILD.gn @@ -11,8 +11,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -import("//ark/runtime_core/ark_config.gni") -import("//build/ohos.gni") +if (defined(ark_independent_build)) { + import("//runtime_core/ark_config.gni") + import("$build_root/ark.gni") +} else { + import("//ark/runtime_core/ark_config.gni") + import("//build/ohos.gni") +} config("libdprof_config") { include_dirs = [ @@ -39,9 +44,15 @@ source_set("libdprof_static") { deps = [ "$ark_root/libpandabase:libarkbase" ] } -ohos_static_library("libdprof") { - deps = [ ":libdprof_static" ] +if (!defined(ark_independent_build)) { + ohos_static_library("libdprof") { + deps = [ ":libdprof_static" ] - subsystem_name = "ark" - part_name = "ark" + subsystem_name = "ark" + part_name = "ark" + } +} else { + ark_static_library("libdprof") { + deps = [ ":libdprof_static" ] + } }