Skip to content

Commit

Permalink
feat: refine C++ extension standalone test building
Browse files Browse the repository at this point in the history
  • Loading branch information
halajohn committed Jan 12, 2025
1 parent 57c1686 commit ef0c22a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .gnfiles/build/feature/ten_package.gni
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,26 @@ template("ten_package") {
configs += [ "${app_base_dir}${used_pkg}:config_for_ten_packages" ]
}

# =-=-= 拿掉会导致 C++ extension standalone test building fail.
app_base_dir = "${pkg_base_dir}/.ten/app/"

used_system_pkgs = []
used_system_pkgs =
exec_script("//.gnfiles/build/scripts/get_used_ten_pkgs.py",
[
"--pkg-base-dir",
rebase_path("${pkg_base_dir}"),
"--app-base-dir",
rebase_path("${app_base_dir}"),
"--pkg-type",
"system",
],
"list lines")
foreach(used_pkg, used_system_pkgs) {
configs += [
"${app_base_dir}${used_pkg}:config_for_standalone_ten_packages",
]
}
}
}

Expand Down

0 comments on commit ef0c22a

Please sign in to comment.