14e56987cSopenharmony_ci# Copyright (C) 2022-2023 Huawei Device Co., Ltd.
24e56987cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
34e56987cSopenharmony_ci# you may not use this file except in compliance with the License.
44e56987cSopenharmony_ci# You may obtain a copy of the License at
54e56987cSopenharmony_ci#
64e56987cSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
74e56987cSopenharmony_ci#
84e56987cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
94e56987cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
104e56987cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114e56987cSopenharmony_ci# See the License for the specific language governing permissions and
124e56987cSopenharmony_ci# limitations under the License.
134e56987cSopenharmony_ci
144e56987cSopenharmony_cigroup("cert_manager_sdk_test") {
154e56987cSopenharmony_ci  testonly = true
164e56987cSopenharmony_ci  if (os_level == "standard") {
174e56987cSopenharmony_ci    deps = [
184e56987cSopenharmony_ci      "./test:module_test",
194e56987cSopenharmony_ci      "./test:multi_thread_test",
204e56987cSopenharmony_ci      "./test:permission_test",
214e56987cSopenharmony_ci      "./test:unittest",
224e56987cSopenharmony_ci    ]
234e56987cSopenharmony_ci  } else {
244e56987cSopenharmony_ci  }
254e56987cSopenharmony_ci}
264e56987cSopenharmony_ci
274e56987cSopenharmony_cigroup("cert_manager_napi") {
284e56987cSopenharmony_ci  if (os_level == "standard") {
294e56987cSopenharmony_ci    if (support_jsapi) {
304e56987cSopenharmony_ci      deps = [
314e56987cSopenharmony_ci        "./interfaces/kits/napi:certmanager",
324e56987cSopenharmony_ci        "./interfaces/kits/napi:certmanagerdialog",
334e56987cSopenharmony_ci      ]
344e56987cSopenharmony_ci    }
354e56987cSopenharmony_ci  }
364e56987cSopenharmony_ci}
374e56987cSopenharmony_ci
384e56987cSopenharmony_cigroup("cert_manager_cjapi") {
394e56987cSopenharmony_ci  if (os_level == "standard") {
404e56987cSopenharmony_ci    deps = [ "./interfaces/kits/cj:cj_cert_manager_ffi" ]
414e56987cSopenharmony_ci  }
424e56987cSopenharmony_ci}
434e56987cSopenharmony_ci
444e56987cSopenharmony_cigroup("cipher_napi") {
454e56987cSopenharmony_ci  if (os_level == "standard") {
464e56987cSopenharmony_ci    if (support_jsapi) {
474e56987cSopenharmony_ci      deps = []
484e56987cSopenharmony_ci    }
494e56987cSopenharmony_ci  }
504e56987cSopenharmony_ci}
514e56987cSopenharmony_ci
524e56987cSopenharmony_cigroup("cert_manager_type_base") {
534e56987cSopenharmony_ci  if (os_level == "standard") {
544e56987cSopenharmony_ci    deps = [
554e56987cSopenharmony_ci      ":cert_manager_cjapi",
564e56987cSopenharmony_ci      ":cert_manager_napi",
574e56987cSopenharmony_ci      "./config:trusted_system_certificate0",
584e56987cSopenharmony_ci      "./config:trusted_system_certificate1",
594e56987cSopenharmony_ci      "./config:trusted_system_certificate10",
604e56987cSopenharmony_ci      "./config:trusted_system_certificate11",
614e56987cSopenharmony_ci      "./config:trusted_system_certificate12",
624e56987cSopenharmony_ci      "./config:trusted_system_certificate13",
634e56987cSopenharmony_ci      "./config:trusted_system_certificate14",
644e56987cSopenharmony_ci      "./config:trusted_system_certificate15",
654e56987cSopenharmony_ci      "./config:trusted_system_certificate16",
664e56987cSopenharmony_ci      "./config:trusted_system_certificate17",
674e56987cSopenharmony_ci      "./config:trusted_system_certificate18",
684e56987cSopenharmony_ci      "./config:trusted_system_certificate19",
694e56987cSopenharmony_ci      "./config:trusted_system_certificate2",
704e56987cSopenharmony_ci      "./config:trusted_system_certificate20",
714e56987cSopenharmony_ci      "./config:trusted_system_certificate21",
724e56987cSopenharmony_ci      "./config:trusted_system_certificate22",
734e56987cSopenharmony_ci      "./config:trusted_system_certificate23",
744e56987cSopenharmony_ci      "./config:trusted_system_certificate24",
754e56987cSopenharmony_ci      "./config:trusted_system_certificate25",
764e56987cSopenharmony_ci      "./config:trusted_system_certificate26",
774e56987cSopenharmony_ci      "./config:trusted_system_certificate27",
784e56987cSopenharmony_ci      "./config:trusted_system_certificate28",
794e56987cSopenharmony_ci      "./config:trusted_system_certificate29",
804e56987cSopenharmony_ci      "./config:trusted_system_certificate3",
814e56987cSopenharmony_ci      "./config:trusted_system_certificate30",
824e56987cSopenharmony_ci      "./config:trusted_system_certificate31",
834e56987cSopenharmony_ci      "./config:trusted_system_certificate32",
844e56987cSopenharmony_ci      "./config:trusted_system_certificate33",
854e56987cSopenharmony_ci      "./config:trusted_system_certificate34",
864e56987cSopenharmony_ci      "./config:trusted_system_certificate35",
874e56987cSopenharmony_ci      "./config:trusted_system_certificate36",
884e56987cSopenharmony_ci      "./config:trusted_system_certificate37",
894e56987cSopenharmony_ci      "./config:trusted_system_certificate38",
904e56987cSopenharmony_ci      "./config:trusted_system_certificate39",
914e56987cSopenharmony_ci      "./config:trusted_system_certificate4",
924e56987cSopenharmony_ci      "./config:trusted_system_certificate40",
934e56987cSopenharmony_ci      "./config:trusted_system_certificate41",
944e56987cSopenharmony_ci      "./config:trusted_system_certificate42",
954e56987cSopenharmony_ci      "./config:trusted_system_certificate43",
964e56987cSopenharmony_ci      "./config:trusted_system_certificate44",
974e56987cSopenharmony_ci      "./config:trusted_system_certificate45",
984e56987cSopenharmony_ci      "./config:trusted_system_certificate46",
994e56987cSopenharmony_ci      "./config:trusted_system_certificate47",
1004e56987cSopenharmony_ci      "./config:trusted_system_certificate48",
1014e56987cSopenharmony_ci      "./config:trusted_system_certificate49",
1024e56987cSopenharmony_ci      "./config:trusted_system_certificate5",
1034e56987cSopenharmony_ci      "./config:trusted_system_certificate50",
1044e56987cSopenharmony_ci      "./config:trusted_system_certificate51",
1054e56987cSopenharmony_ci      "./config:trusted_system_certificate52",
1064e56987cSopenharmony_ci      "./config:trusted_system_certificate53",
1074e56987cSopenharmony_ci      "./config:trusted_system_certificate54",
1084e56987cSopenharmony_ci      "./config:trusted_system_certificate55",
1094e56987cSopenharmony_ci      "./config:trusted_system_certificate56",
1104e56987cSopenharmony_ci      "./config:trusted_system_certificate57",
1114e56987cSopenharmony_ci      "./config:trusted_system_certificate58",
1124e56987cSopenharmony_ci      "./config:trusted_system_certificate59",
1134e56987cSopenharmony_ci      "./config:trusted_system_certificate6",
1144e56987cSopenharmony_ci      "./config:trusted_system_certificate60",
1154e56987cSopenharmony_ci      "./config:trusted_system_certificate61",
1164e56987cSopenharmony_ci      "./config:trusted_system_certificate62",
1174e56987cSopenharmony_ci      "./config:trusted_system_certificate63",
1184e56987cSopenharmony_ci      "./config:trusted_system_certificate64",
1194e56987cSopenharmony_ci      "./config:trusted_system_certificate65",
1204e56987cSopenharmony_ci      "./config:trusted_system_certificate66",
1214e56987cSopenharmony_ci      "./config:trusted_system_certificate67",
1224e56987cSopenharmony_ci      "./config:trusted_system_certificate7",
1234e56987cSopenharmony_ci      "./config:trusted_system_certificate8",
1244e56987cSopenharmony_ci      "./config:trusted_system_certificate9",
1254e56987cSopenharmony_ci    ]
1264e56987cSopenharmony_ci  } else if (os_level == "small") {
1274e56987cSopenharmony_ci    deps = []
1284e56987cSopenharmony_ci  } else {
1294e56987cSopenharmony_ci    deps = []
1304e56987cSopenharmony_ci  }
1314e56987cSopenharmony_ci}
1324e56987cSopenharmony_ci
1334e56987cSopenharmony_cigroup("cert_manager_type_fwk") {
1344e56987cSopenharmony_ci  if (os_level == "standard") {
1354e56987cSopenharmony_ci    deps =
1364e56987cSopenharmony_ci        [ "./interfaces/innerkits/cert_manager_standard/main:cert_manager_sdk" ]
1374e56987cSopenharmony_ci  } else if (os_level == "small") {
1384e56987cSopenharmony_ci    deps = []
1394e56987cSopenharmony_ci  } else {
1404e56987cSopenharmony_ci    deps = []
1414e56987cSopenharmony_ci  }
1424e56987cSopenharmony_ci}
1434e56987cSopenharmony_ci
1444e56987cSopenharmony_cigroup("cert_manager_typer_services") {
1454e56987cSopenharmony_ci  if (os_level == "standard") {
1464e56987cSopenharmony_ci    deps = [
1474e56987cSopenharmony_ci      "./services/cert_manager_standard:cert_manager_service",
1484e56987cSopenharmony_ci      "./services/cert_manager_standard/cert_manager_service/main/os_dependency/sa/sa_profile:cert_manager_sa_profile",
1494e56987cSopenharmony_ci    ]
1504e56987cSopenharmony_ci  } else if (os_level == "small") {
1514e56987cSopenharmony_ci    deps = []
1524e56987cSopenharmony_ci  } else {
1534e56987cSopenharmony_ci    deps = []
1544e56987cSopenharmony_ci  }
1554e56987cSopenharmony_ci}
1564e56987cSopenharmony_ci
1574e56987cSopenharmony_cigroup("cert_manager_components") {
1584e56987cSopenharmony_ci  deps = [
1594e56987cSopenharmony_ci    ":cert_manager_type_base",
1604e56987cSopenharmony_ci    ":cert_manager_typer_services",
1614e56987cSopenharmony_ci  ]
1624e56987cSopenharmony_ci}
163