mirror of
https://gitee.com/openharmony/third_party_typescript
synced 2024-11-22 22:40:30 +00:00
Add lisence of typescript in sdk
Issue: https://gitee.com/openharmony/third_party_typescript/issues/IA9OZ9?from=project-issue Signed-off-by: zju_wyx <wangyunxiao8@huawei.com> Change-Id: Ic0b9aafabfab27e167fb366dd27dac53ae20597a
This commit is contained in:
parent
9f87056417
commit
b0427d44ff
20
BUILD.gn
20
BUILD.gn
@ -11,6 +11,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/ohos.gni")
|
||||
import("//build/ohos/notice/notice.gni")
|
||||
|
||||
typescript_sources = [
|
||||
"lib/.gitattributes",
|
||||
"lib/README.md",
|
||||
@ -116,7 +119,14 @@ typescript_sources = [
|
||||
"lib/zh-tw/diagnosticMessages.generated.json",
|
||||
]
|
||||
|
||||
action("build_typescript") {
|
||||
group("build_typescript") {
|
||||
deps = [
|
||||
"//third_party/typescript:build_typescript_pack",
|
||||
"//third_party/typescript:typescript_notice",
|
||||
]
|
||||
}
|
||||
|
||||
action("build_typescript_pack") {
|
||||
sources = typescript_sources
|
||||
script = "compile_typescript.py"
|
||||
args = [
|
||||
@ -125,3 +135,11 @@ action("build_typescript") {
|
||||
]
|
||||
outputs = [ "${target_out_dir}/ohos-typescript-4.9.5-r4.tgz" ]
|
||||
}
|
||||
|
||||
collect_notice("typescript_notice") {
|
||||
license_file = "LICENSE"
|
||||
module_source_dir = get_label_info(":${target_name}", "dir")
|
||||
outputs = [
|
||||
"${sdk_notice_dir}/ets/build-tools/ets-loader/node_modules/typescript.txt",
|
||||
]
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
{
|
||||
"Name": "typescript",
|
||||
"License": "Apache-2.0",
|
||||
"License File": "NOTICE",
|
||||
"License File": "LICENSE",
|
||||
"Version Number": "4.9.5",
|
||||
"Owner": "lihong67@huawei.com",
|
||||
"Upstream URL": "https://github.com/Microsoft/TypeScript.git",
|
||||
|
Loading…
Reference in New Issue
Block a user