@@ -378,28 +378,28 @@ pkg_files(
378378)
379379
380380# Pack ArkTs artifacts
381- # pkg_files(
382- # name = "coref-arkts-lib-script-pkg",
383- # srcs = [
384- # "//language/arkts:lib",
385- # ],
386- # attributes = pkg_attributes(
387- # mode = "0644",
388- # ),
389- # prefix = "lib/coref/arkts",
390- # strip_prefix = strip_prefix.from_pkg() + "lib",
391- # )
381+ pkg_files (
382+ name = "coref-arkts-lib-script-pkg" ,
383+ srcs = [
384+ "//language/arkts:lib" ,
385+ ],
386+ attributes = pkg_attributes (
387+ mode = "0644" ,
388+ ),
389+ prefix = "lib/coref/arkts" ,
390+ strip_prefix = strip_prefix .from_pkg () + "lib" ,
391+ )
392392
393- # pkg_files(
394- # name = "coref-arkts-src-extractor-pkg",
395- # srcs = [
396- # "//language/arkts/extractor:coref-arkts-src-extractor",
397- # ],
398- # attributes = pkg_attributes(
399- # mode = "0755",
400- # ),
401- # prefix = "language/arkts/extractor",
402- # )
393+ pkg_files (
394+ name = "coref-arkts-src-extractor-pkg" ,
395+ srcs = [
396+ "//language/arkts/extractor:coref-arkts-src-extractor" ,
397+ ],
398+ attributes = pkg_attributes (
399+ mode = "0755" ,
400+ ),
401+ prefix = "language/arkts/extractor" ,
402+ )
403403
404404# Current pkg_tar/pkg_files rules can't pack a directory generated from genrule.
405405# To workaround this, use the deprecated pkg_tar rule instead
@@ -506,7 +506,7 @@ coref_lib_script_pkgs = [
506506 ":coref-cfamily-lib-script-pkg" ,
507507 ":coref-properties-lib-script-pkg" ,
508508 ":coref-sql-lib-script-pkg" ,
509- # ":coref-arkts-lib-script-pkg",
509+ ":coref-arkts-lib-script-pkg" ,
510510]
511511
512512coref_libscript_languages = [
@@ -519,7 +519,7 @@ coref_libscript_languages = [
519519 "properties" ,
520520 "sql" ,
521521 # "swift",
522- # "arkts",
522+ "arkts" ,
523523]
524524
525525copy_to_directory (
@@ -626,15 +626,15 @@ copy_to_directory(
626626# visibility = ["//visibility:public"],
627627# )
628628
629- # copy_to_directory(
630- # name = "copy-arkts-lib-script",
631- # srcs = [
632- # "//language/arkts:lib",
633- # ],
634- # out = "lib/coref/arkts",
635- # replace_prefixes = {"language/arkts/lib": ""},
636- # visibility = ["//visibility:public"],
637- # )
629+ copy_to_directory (
630+ name = "copy-arkts-lib-script" ,
631+ srcs = [
632+ "//language/arkts:lib" ,
633+ ],
634+ out = "lib/coref/arkts" ,
635+ replace_prefixes = {"language/arkts/lib" : "" },
636+ visibility = ["//visibility:public" ],
637+ )
638638
639639genrule (
640640 name = "coref-lib-script-gen" ,
@@ -650,7 +650,7 @@ genrule(
650650 ":copy-sql-lib-script" ,
651651 ":copy-cfamily-lib-script" ,
652652 # ":copy-swift-lib-script",
653- # ":copy-arkts-lib-script",
653+ ":copy-arkts-lib-script" ,
654654 ],
655655 outs = ["lib/coref/%s.gdl" % language for language in coref_libscript_languages ],
656656 cmd = """
@@ -680,7 +680,7 @@ pkg_tar(
680680 name = "sparrow-cli" ,
681681 srcs = [
682682 ":coref-lib-pkg" ,
683- # ":coref-arkts-src-extractor-pkg",
683+ ":coref-arkts-src-extractor-pkg" ,
684684 # ":coref-go-src-extractor-pkg",
685685 ":coref-sql-src-extractor-pkg" ,
686686 ":coref-java-src-extractor-pkg" ,
0 commit comments