mirror of
https://gitee.com/openharmony/third_party_typescript
synced 2024-11-27 00:51:12 +00:00
!482 Add license of typescript in sdk
Merge pull request !482 from zju_wyx/0905-license
This commit is contained in:
commit
5efac7c439
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