• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023-2024 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13import("//build/ohos_var.gni")
14import("//foundation/arkui/ace_engine/ace_config.gni")
15import("//foundation/arkui/ace_engine/adapter/preview/build/config.gni")
16
17# Avoid conditional judgment branches caused by dynamic library suffixes.
18if (use_mac) {
19  dylib_suffix = ".dylib"
20  label_res =
21      "//base/global/resource_management/frameworks/resmgr:global_resmgr_mac"
22  label_hilog =
23      "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog_mac"
24} else if (use_mingw_win) {
25  dylib_suffix = ".dll"
26  label_res =
27      "//base/global/resource_management/frameworks/resmgr:global_resmgr_win"
28  label_hilog =
29      "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog_windows"
30} else if (use_linux || host_cpu == "arm64") {
31  dylib_suffix = ".so"
32  label_res =
33      "//base/global/resource_management/frameworks/resmgr:global_resmgr_linux"
34  label_hilog =
35      "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog_linux"
36}
37
38common_bin = [
39  {
40    label = "//third_party/curl:curl_shared"
41    subsystem_name = "thirdparty"
42    part_name = "curl"
43  },
44  {
45    label = "//third_party/nghttp2/lib:libnghttp2_shared"
46    subsystem_name = "thirdparty"
47    part_name = "nghttp2"
48  },
49  {
50    label = "//third_party/bounds_checking_function:libsec_shared"
51    subsystem_name = "thirdparty"
52    part_name = "bounds_checking_function"
53  },
54  {
55    label = "//foundation/arkui/napi:ace_napi"
56    subsystem_name = "arkui"
57    part_name = "napi"
58  },
59  {
60    label = "//third_party/cJSON:cjson"
61    subsystem_name = "thirdparty"
62    part_name = "cJSON"
63  },
64  {
65    label = "//third_party/icu/icu4c:shared_icui18n"
66    subsystem_name = "thirdparty"
67    part_name = "icu"
68    lib_names = [ "hmicui18n" ]
69  },
70  {
71    label = "//third_party/icu/icu4c:shared_icuuc"
72    subsystem_name = "thirdparty"
73    part_name = "icu"
74    lib_names = [ "hmicuuc" ]
75  },
76  {
77    label = "//base/global/i18n/frameworks/intl:intl_util"
78    subsystem_name = "global"
79    part_name = "i18n"
80    lib_names = [ "intl_util" ]
81  },
82  {
83    label = "//third_party/libuv:uv"
84    subsystem_name = "thirdparty"
85    part_name = "libuv"
86  },
87  {
88    label = "//foundation/graphic/graphic_2d/rosen/modules/glfw_render_context:libglfw_render_context"
89    subsystem_name = "graphic"
90    part_name = "graphic_2d"
91  },
92  {
93    label = "//foundation/graphic/graphic_2d/rosen/modules/render_service_base:librender_service_base"
94    subsystem_name = "graphic"
95    part_name = "graphic_2d"
96  },
97  {
98    label = "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client"
99    subsystem_name = "graphic"
100    part_name = "graphic_2d"
101  },
102  {
103    label = "//third_party/glfw:glfw"
104    subsystem_name = "thirdparty"
105    part_name = "glfw"
106  },
107  {
108    label = "//foundation/graphic/graphics_effect:graphics_effect_core"
109    subsystem_name = "graphic"
110    part_name = "graphics_effect"
111    lib_names = [ "graphics_effect" ]
112  },
113  {
114    label = "//third_party/jsoncpp:jsoncpp"
115    subsystem_name = "thirdparty"
116    part_name = "jsoncpp"
117  },
118  {
119    label = "//third_party/skia:skia_canvaskit"
120    subsystem_name = "thirdparty"
121    part_name = "skia"
122  },
123  {
124    label = "//arkcompiler/ets_runtime:libark_jsruntime"
125    subsystem_name = "arkcompiler"
126    part_name = "ets_runtime"
127  },
128  {
129    label = "//arkcompiler/toolchain/tooling:libark_ecma_debugger"
130    subsystem_name = "arkcompiler"
131    part_name = "toolchain"
132    lib_names = [ "ark_tooling" ]
133  },
134  {
135    label = "//arkcompiler/toolchain/inspector:ark_debugger"
136    subsystem_name = "arkcompiler"
137    part_name = "toolchain"
138    lib_names = [ "ark_inspector" ]
139  },
140  {
141    label = "//third_party/openssl:libssl_shared"
142    subsystem_name = "thirdparty"
143    part_name = "openssl"
144    lib_names = [ "ssl_openssl" ]
145  },
146  {
147    label = "//third_party/openssl:libcrypto_shared"
148    subsystem_name = "thirdparty"
149    part_name = "openssl"
150    lib_names = [ "crypto_openssl" ]
151  },
152  {
153    label = label_res
154    subsystem_name = "global"
155    part_name = "resource_management"
156  },
157  {
158    label = "//base/global/resource_management/interfaces/js/innerkits/core:resmgr_napi_core_preview"
159    subsystem_name = "global"
160    part_name = "resource_management"
161  },
162  {
163    label = label_hilog
164    subsystem_name = "hiviewdfx"
165    part_name = "hilog"
166  },
167  {
168    label = "//foundation/arkui/ace_engine/build:libace_compatible"
169    subsystem_name = "arkui"
170    part_name = "ace_engine"
171  },
172  {
173    label = "//foundation/arkui/ace_engine/interfaces/inner_api/ace:ace_forward_compatibility"
174    subsystem_name = "arkui"
175    part_name = "ace_engine"
176  },
177  {
178    label =
179        "//foundation/arkui/ace_engine/interfaces/inner_api/ace:ace_uicontent"
180    subsystem_name = "arkui"
181    part_name = "ace_engine"
182  },
183  {
184    label = "//foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor:drawable_descriptor"
185    subsystem_name = "arkui"
186    part_name = "ace_engine"
187  },
188]
189
190if (defined(use_rosen_drawing) && use_rosen_drawing) {
191  common_bin += [
192    {
193      label = "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics"
194      subsystem_name = "graphic"
195      part_name = "graphic_2d"
196    },
197    {
198      label = "//foundation/graphic/graphic_2d/frameworks/text:rosen_text"
199      subsystem_name = "graphic"
200      part_name = "graphic_2d"
201    },
202  ]
203
204  common_bin += [
205    {
206      label = "//foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing:drawing_napi_impl"
207      subsystem_name = "graphic"
208      part_name = "graphic_2d"
209    },
210  ]
211}
212
213_arkui_shared_libs = [
214  {
215    label = "//foundation/arkui/ace_engine/interfaces/napi/kits/drawabledescriptor:drawabledescriptor"
216    subsystem_name = "arkui"
217    part_name = "ace_engine"
218    lib_names = [ "drawabledescriptor" ]
219  },
220  {
221    label = "//foundation/arkui/ace_engine/interfaces/napi/kits:napi_group"
222    subsystem_name = "arkui"
223    part_name = "ace_engine"
224    lib_names = [ "focuscontroller" ]
225  },
226  {
227    label = "//foundation/arkui/ace_engine/interfaces/napi/kits:napi_group"
228    subsystem_name = "arkui"
229    part_name = "ace_engine"
230    lib_names = [ "containerutils" ]
231  },
232  {
233    label = "//foundation/arkui/ace_engine/component_ext/arc_alphabet_indexer:arcalphabetindexer"
234    subsystem_name = "arkui"
235    part_name = "ace_engine"
236    lib_names = [ "arcalphabetindexer" ]
237  },
238  {
239    label = "//foundation/arkui/ace_engine/component_ext/arc_list:arclist"
240    subsystem_name = "arkui"
241    part_name = "ace_engine"
242    lib_names = [ "arclist" ]
243  },
244  {
245    label = "//foundation/arkui/ace_engine/component_ext/arc_scroll_bar:arcscrollbar"
246    subsystem_name = "arkui"
247    part_name = "ace_engine"
248    lib_names = [ "arcscrollbar" ]
249  },
250  {
251    label = "//foundation/arkui/ace_engine/component_ext/arc_swiper:arcswiper"
252    subsystem_name = "arkui"
253    part_name = "ace_engine"
254    lib_names = [ "arcswiper" ]
255  },
256]
257
258if (defined(current_platform.config)) {
259  platform_config = current_platform.config
260  if (defined(platform_config.enable_component_test) &&
261      platform_config.enable_component_test && use_mingw_win) {
262    _arkui_shared_libs += [
263      {
264        label = "//foundation/arkui/ace_engine/interfaces/napi/kits/component_test:componenttest"
265        subsystem_name = "arkui"
266        part_name = "ace_engine"
267        lib_names = [ "componenttest" ]
268      },
269    ]
270  }
271}
272
273napi_modules = [
274  {
275    prefix = "arkui"
276    shard_libs = _arkui_shared_libs
277  },
278  {
279    prefix = "multimedia"
280    shard_libs = [
281      {
282        label = "//foundation/multimedia/av_session/avpicker:avcastpicker"
283        subsystem_name = "multimedia"
284        part_name = "av_session"
285        lib_names = [ "avcastpicker" ]
286      },
287    ]
288  },
289  {
290    prefix = ""
291    shard_libs = [
292      {
293        label = "//base/hiviewdfx/hilog/interfaces/js/kits/napi:libhilognapi"
294        subsystem_name = "hiviewdfx"
295        part_name = "hilog"
296        lib_names = [ "hilog_napi" ]
297      },
298      {
299        label = "//commonlibrary/ets_utils/js_api_module/buffer:buffer_packages"
300        subsystem_name = "commonlibrary"
301        part_name = "ets_utils"
302        lib_names = [ "buffer" ]
303      },
304      {
305        label =
306            "//foundation/window/window_manager/previewer:previewer_window_napi"
307        subsystem_name = "window"
308        part_name = "window_manager"
309        lib_names = [ "previewer_window_napi" ]
310      },
311      {
312        label = "//base/global/resource_management/interfaces/js/kits:resourcemanager_preview"
313        subsystem_name = "global"
314        part_name = "resource_management"
315        lib_names = [ "resourcemanager" ]
316      },
317      {
318        label = "//base/global/resource_management/interfaces/js/kits:sendableresourcemanager_preview"
319        subsystem_name = "global"
320        part_name = "resource_management"
321        lib_names = [ "sendableresourcemanager" ]
322      },
323      {
324        label = "//foundation/arkui/ace_engine/interfaces/napi/kits:napi_group"
325        subsystem_name = "arkui"
326        part_name = "ace_engine"
327        lib_names = [
328          "configuration",
329          "device",
330          "font",
331          "grid",
332          "measure",
333          "mediaquery",
334          "prompt",
335          "promptaction",
336          "router",
337          "animator",
338          "overlay",
339        ]
340      },
341    ]
342  },
343  {
344    prefix = "util"
345    shard_libs = [
346      {
347        label = "//commonlibrary/ets_utils/js_util_module/container:container_packages"
348        subsystem_name = "commonlibrary"
349        part_name = "ets_utils"
350        lib_names = [
351          "arraylist",
352          "deque",
353          "queue",
354          "vector",
355          "linkedlist",
356          "list",
357          "stack",
358          "struct",
359          "treemap",
360          "treeset",
361          "hashmap",
362          "hashset",
363          "lightweightmap",
364          "lightweightset",
365          "plainarray",
366        ]
367      },
368    ]
369  },
370  {
371    prefix = "arkui/advanced"
372    shard_libs = [
373      {
374        label = "//foundation/arkui/ace_engine/advanced_ui_component/arcslider/interfaces:arcslider"
375        subsystem_name = "arkui"
376        part_name = "ace_engine"
377        lib_names = [ "arcslider" ]
378      },
379      {
380        label = "//foundation/arkui/ace_engine/advanced_ui_component:chip"
381        subsystem_name = "arkui"
382        part_name = "ace_engine"
383        lib_names = [ "chip" ]
384      },
385      {
386        label = "//foundation/arkui/ace_engine/advanced_ui_component/chipgroup/interfaces:chipgroup"
387        subsystem_name = "arkui"
388        part_name = "ace_engine"
389        lib_names = [ "chipgroup" ]
390      },
391      {
392        label = "//foundation/arkui/ace_engine/advanced_ui_component/counter/interfaces:counter"
393        subsystem_name = "arkui"
394        part_name = "ace_engine"
395        lib_names = [ "counter" ]
396      },
397      {
398        label = "//foundation/arkui/ace_engine/advanced_ui_component/segmentbutton/interfaces:segmentbutton"
399        subsystem_name = "arkui"
400        part_name = "ace_engine"
401        lib_names = [ "segmentbutton" ]
402      },
403      {
404        label = "//foundation/arkui/ace_engine/advanced_ui_component:segmentbuttonv2"
405        subsystem_name = "arkui"
406        part_name = "ace_engine"
407        lib_names = [ "segmentbuttonv2" ]
408      },
409      {
410        label = "//foundation/arkui/ace_engine/advanced_ui_component/composelistitem/interfaces:composelistitem"
411        subsystem_name = "arkui"
412        part_name = "ace_engine"
413        lib_names = [ "composelistitem" ]
414      },
415      {
416        label = "//foundation/arkui/ace_engine/advanced_ui_component/composetitlebar/interfaces:composetitlebar"
417        subsystem_name = "arkui"
418        part_name = "ace_engine"
419        lib_names = [ "composetitlebar" ]
420      },
421      {
422        label = "//foundation/arkui/ace_engine/advanced_ui_component:dialog"
423        subsystem_name = "arkui"
424        part_name = "ace_engine"
425        lib_names = [ "dialog" ]
426      },
427      {
428        label = "//foundation/arkui/ace_engine/advanced_ui_component/dialogv2/interfaces:dialogv2"
429        subsystem_name = "arkui"
430        part_name = "ace_engine"
431        lib_names = [ "dialogv2" ]
432      },
433      {
434        label = "//foundation/arkui/ace_engine/advanced_ui_component/editabletitlebar/interfaces:editabletitlebar"
435        subsystem_name = "arkui"
436        part_name = "ace_engine"
437        lib_names = [ "editabletitlebar" ]
438      },
439      {
440        label = "//foundation/arkui/ace_engine/advanced_ui_component/filter/interfaces:filter"
441        subsystem_name = "arkui"
442        part_name = "ace_engine"
443        lib_names = [ "filter" ]
444      },
445      {
446        label = "//foundation/arkui/ace_engine/advanced_ui_component/progressbutton/interfaces:progressbutton"
447        subsystem_name = "arkui"
448        part_name = "ace_engine"
449        lib_names = [ "progressbutton" ]
450      },
451      {
452        label = "//foundation/arkui/ace_engine/advanced_ui_component/progressbuttonv2/interfaces:progressbuttonv2"
453        subsystem_name = "arkui"
454        part_name = "ace_engine"
455        lib_names = [ "progressbuttonv2" ]
456      },
457      {
458        label = "//foundation/arkui/ace_engine/advanced_ui_component/selecttitlebar/interfaces:selecttitlebar"
459        subsystem_name = "arkui"
460        part_name = "ace_engine"
461        lib_names = [ "selecttitlebar" ]
462      },
463      {
464        label = "//foundation/arkui/ace_engine/advanced_ui_component/splitlayout/interfaces:splitlayout"
465        subsystem_name = "arkui"
466        part_name = "ace_engine"
467        lib_names = [ "splitlayout" ]
468      },
469      {
470        label = "//foundation/arkui/ace_engine/advanced_ui_component/subheader/interfaces:subheader"
471        subsystem_name = "arkui"
472        part_name = "ace_engine"
473        lib_names = [ "subheader" ]
474      },
475      {
476        label = "//foundation/arkui/ace_engine/advanced_ui_component/subheaderv2/interfaces:subheaderv2"
477        subsystem_name = "arkui"
478        part_name = "ace_engine"
479        lib_names = [ "subheaderv2" ]
480      },
481      {
482        label = "//foundation/arkui/ace_engine/advanced_ui_component/swiperefresher/interfaces:swiperefresher"
483        subsystem_name = "arkui"
484        part_name = "ace_engine"
485        lib_names = [ "swiperefresher" ]
486      },
487      {
488        label = "//foundation/arkui/ace_engine/advanced_ui_component/tabtitlebar/interfaces:tabtitlebar"
489        subsystem_name = "arkui"
490        part_name = "ace_engine"
491        lib_names = [ "tabtitlebar" ]
492      },
493      {
494        label = "//foundation/arkui/ace_engine/advanced_ui_component/toolbar/interfaces:toolbar"
495        subsystem_name = "arkui"
496        part_name = "ace_engine"
497        lib_names = [ "toolbar" ]
498      },
499      {
500        label = "//foundation/arkui/ace_engine/advanced_ui_component/toolbarv2/interfaces:toolbarv2"
501        subsystem_name = "arkui"
502        part_name = "ace_engine"
503        lib_names = [ "toolbarv2" ]
504      },
505      {
506        label = "//foundation/arkui/ace_engine/advanced_ui_component/treeview/interfaces:treeview"
507        subsystem_name = "arkui"
508        part_name = "ace_engine"
509        lib_names = [ "treeview" ]
510      },
511      {
512        label = "//foundation/arkui/ace_engine/advanced_ui_component/selectionmenu/interfaces:selectionmenu"
513        subsystem_name = "arkui"
514        part_name = "ace_engine"
515        lib_names = [ "selectionmenu" ]
516      },
517      {
518        label = "//foundation/arkui/ace_engine/advanced_ui_component/popup/interfaces:popup"
519        subsystem_name = "arkui"
520        part_name = "ace_engine"
521        lib_names = [ "popup" ]
522      },
523      {
524        label = "//foundation/arkui/ace_engine/advanced_ui_component/gridobjectsortcomponent/interfaces:gridobjectsortcomponent"
525        subsystem_name = "arkui"
526        part_name = "ace_engine"
527        lib_names = [ "gridobjectsortcomponent" ]
528      },
529      {
530        label = "//foundation/arkui/ace_engine/advanced_ui_component/exceptionprompt/interfaces:exceptionprompt"
531        subsystem_name = "arkui"
532        part_name = "ace_engine"
533        lib_names = [ "exceptionprompt" ]
534      },
535      {
536        label = "//foundation/arkui/ace_engine/advanced_ui_component/fullscreenlaunchcomponent/interfaces:fullscreenlaunchcomponent"
537        subsystem_name = "arkui"
538        part_name = "ace_engine"
539        lib_names = [ "fullscreenlaunchcomponent" ]
540      },
541      {
542        label = "//foundation/arkui/advanced_ui_component/innerfullscreenlaunchcomponent/interfaces:innerfullscreenlaunchcomponent"
543        subsystem_name = "arkui"
544        part_name = "advanced_ui_component"
545        lib_names = [ "innerfullscreenlaunchcomponent" ]
546      },
547      {
548        label = "//foundation/arkui/ace_engine/advanced_ui_component/formmenu/interfaces:formmenu"
549        subsystem_name = "arkui"
550        part_name = "ace_engine"
551        lib_names = [ "formmenu" ]
552      },
553      {
554        label = "//foundation/arkui/ace_engine/advanced_ui_component/foldsplitcontainer/interfaces:foldsplitcontainer"
555        subsystem_name = "arkui"
556        part_name = "ace_engine"
557        lib_names = [ "foldsplitcontainer" ]
558      },
559      {
560        label = "//foundation/arkui/ace_engine/advanced_ui_component/arcbutton/interfaces:arcbutton"
561        subsystem_name = "arkui"
562        part_name = "ace_engine"
563        lib_names = [ "arcbutton" ]
564      },
565      {
566        label = "//foundation/arkui/ace_engine/advanced_ui_component/downloadfilebutton/interfaces:downloadfilebutton"
567        subsystem_name = "arkui"
568        part_name = "ace_engine"
569        lib_names = [ "downloadfilebutton" ]
570      },
571      {
572        label = "//foundation/arkui/ace_engine/advanced_ui_component/multinavigation/interfaces:multinavigation"
573        subsystem_name = "arkui"
574        part_name = "ace_engine"
575        lib_names = [ "multinavigation" ]
576      },
577    ]
578  },
579  {
580    prefix = "atomicservice"
581    shard_libs = [
582      {
583        label = "//foundation/arkui/advanced_ui_component/atomicservicenavigation/interfaces:atomicservicenavigation"
584        subsystem_name = "arkui"
585        part_name = "advanced_ui_component"
586        lib_names = [ "atomicservicenavigation" ]
587      },
588      {
589        label = "//foundation/arkui/advanced_ui_component/atomicservicetabs/interfaces:atomicservicetabs"
590        subsystem_name = "arkui"
591        part_name = "advanced_ui_component"
592        lib_names = [ "atomicservicetabs" ]
593      },
594      {
595        label = "//foundation/arkui/advanced_ui_component/atomicserviceweb/interfaces:atomicserviceweb"
596        subsystem_name = "arkui"
597        part_name = "advanced_ui_component"
598        lib_names = [ "atomicserviceweb" ]
599      },
600      {
601        label = "//foundation/arkui/advanced_ui_component/interstitialdialogaction/interfaces:interstitialdialogaction"
602        subsystem_name = "arkui"
603        part_name = "advanced_ui_component"
604        lib_names = [ "interstitialdialogaction" ]
605      },
606    ]
607  },
608]
609
610if (defined(use_rosen_drawing) && use_rosen_drawing) {
611  napi_modules += [
612    {
613      prefix = "graphics"
614      shard_libs = [
615        {
616          label = "//foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing:drawing_napi"
617          subsystem_name = "graphic"
618          part_name = "graphic_2d"
619          lib_names = [ "drawing_napi" ]
620        },
621        {
622          label = "//foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/ui_effect:uieffect_napi"
623          subsystem_name = "graphic"
624          part_name = "graphic_2d"
625          lib_names = [ "uieffect_napi" ]
626        },
627      ]
628    },
629  ]
630}
631
632if (use_mac || use_mingw_win) {
633  common_bin += [
634    {
635      label = "//foundation/distributeddatamgr/preferences/interfaces/inner_api:native_preferences"
636      subsystem_name = "distributeddatamgr"
637      part_name = "preferences"
638    },
639    {
640      label = "//foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb:native_rdb"
641      subsystem_name = "distributeddatamgr"
642      part_name = "relational_store"
643    },
644    {
645      label = "//third_party/sqlite:sqlite_sdk"
646      subsystem_name = "thirdparty"
647      part_name = "sqlite"
648    },
649    {
650      label = "//third_party/openssl:libcrypto_restool"
651      subsystem_name = "thirdparty"
652      part_name = "openssl"
653    },
654    {
655      label = "//foundation/distributeddatamgr/kv_store/kvstoremock/interfaces/innerkits/distributeddata:distributeddata_inner_mock"
656      subsystem_name = "distributeddatamgr"
657      part_name = "kv_store"
658    },
659    {
660      label = "//foundation/distributeddatamgr/kv_store/kvstoremock/distributeddb:distributeddb_mock"
661      subsystem_name = "distributeddatamgr"
662      part_name = "kv_store"
663    },
664    {
665      label = "//third_party/zlib:shared_libz"
666      subsystem_name = "thirdparty"
667      part_name = "zlib"
668      lib_names = [ "shared_libz" ]
669    },
670    {
671      label = "//foundation/filemanagement/file_api/utils/filemgmt_libhilog:filemgmt_libhilog"
672      subsystem_name = "filemanagement"
673      part_name = "file_api"
674      lib_names = [ "filemgmt_libhilog" ]
675    },
676    {
677      label = "//foundation/filemanagement/file_api/utils/filemgmt_libn:filemgmt_libn"
678      subsystem_name = "filemanagement"
679      part_name = "file_api"
680      lib_names = [ "filemgmt_libn" ]
681    },
682  ]
683
684  napi_modules += [
685    {
686      prefix = "data"
687      shard_libs = [
688        {
689          label = "//foundation/distributeddatamgr/preferences/frameworks/js/napi/preferences:preferences"
690          subsystem_name = "distributeddatamgr"
691          part_name = "preferences"
692        },
693        {
694          label = "//foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb:rdb"
695          subsystem_name = "distributeddatamgr"
696          part_name = "relational_store"
697        },
698        {
699          label = "//foundation/distributeddatamgr/kv_store/kvstoremock/interfaces/jskits/distributeddata:distributeddata"
700          subsystem_name = "distributeddatamgr"
701          part_name = "kv_store"
702        },
703        {
704          label = "//foundation/distributeddatamgr/kv_store/kvstoremock/interfaces/jskits/distributedkvstore:distributedkvstore"
705          subsystem_name = "distributeddatamgr"
706          part_name = "kv_store"
707        },
708      ]
709    },
710    {
711      prefix = "net"
712      shard_libs = [
713        {
714          label =
715              "//foundation/communication/netstack/frameworks/js/napi/http:http"
716          subsystem_name = "communication"
717          part_name = "netstack"
718        },
719      ]
720    },
721    {
722      prefix = "file"
723      shard_libs = [
724        {
725          label = "//foundation/filemanagement/file_api/interfaces/kits/js:fs"
726          subsystem_name = "filemanagement"
727          part_name = "file_api"
728        },
729      ]
730    },
731  ]
732}
733