18e920a95Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
28e920a95Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
38e920a95Sopenharmony_ci# you may not use this file except in compliance with the License.
48e920a95Sopenharmony_ci# You may obtain a copy of the License at
58e920a95Sopenharmony_ci#
68e920a95Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
78e920a95Sopenharmony_ci#
88e920a95Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
98e920a95Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
108e920a95Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
118e920a95Sopenharmony_ci# See the License for the specific language governing permissions and
128e920a95Sopenharmony_ci# limitations under the License.
138e920a95Sopenharmony_ci
148e920a95Sopenharmony_cifuzz_module_output_path = "code_signature/code_signature"
158e920a95Sopenharmony_cicode_signature_root_dir = "//base/security/code_signature"
168e920a95Sopenharmony_cifsverity_utils_dir = "//third_party/fsverity-utils"
178e920a95Sopenharmony_ciopenssl_dir = "//third_party/openssl"
188e920a95Sopenharmony_cirust_openssl_dir = "//third_party/rust/crates/rust-openssl"
198e920a95Sopenharmony_cithird_party_securec_dir = "//third_party/bounds_checking_function"
208e920a95Sopenharmony_ciselinux_dir = "//third_party/selinux"
218e920a95Sopenharmony_ci
228e920a95Sopenharmony_cideclare_args() {
238e920a95Sopenharmony_ci  code_signature_support_openharmony_ca = true
248e920a95Sopenharmony_ci  code_signature_support_oh_code_sign = false
258e920a95Sopenharmony_ci  code_signature_enable_xpm_mode = 0
268e920a95Sopenharmony_ci  code_signature_support_oh_release_app = false
278e920a95Sopenharmony_ci  code_signature_screenlock_mgr_enable = false
288e920a95Sopenharmony_ci  if (defined(global_parts_info) &&
298e920a95Sopenharmony_ci      defined(global_parts_info.theme_screenlock_mgr)) {
308e920a95Sopenharmony_ci    code_signature_screenlock_mgr_enable = true
318e920a95Sopenharmony_ci  }
328e920a95Sopenharmony_ci  jit_code_sign_enable = false
338e920a95Sopenharmony_ci}
348e920a95Sopenharmony_ci
358e920a95Sopenharmony_ciif (defined(target_cpu) && target_cpu == "arm64" &&
368e920a95Sopenharmony_ci    code_signature_support_oh_code_sign && !is_emulator) {
378e920a95Sopenharmony_ci  jit_code_sign_enable = true
388e920a95Sopenharmony_ci}
39