17777dab0Sopenharmony_ci#!/usr/bin/env python 27777dab0Sopenharmony_ci# coding=utf-8 37777dab0Sopenharmony_ci############################################## 47777dab0Sopenharmony_ci# Copyright (c) 2021-2022 Huawei Device Co., Ltd. 57777dab0Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 67777dab0Sopenharmony_ci# you may not use this file except in compliance with the License. 77777dab0Sopenharmony_ci# You may obtain a copy of the License at 87777dab0Sopenharmony_ci# 97777dab0Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 107777dab0Sopenharmony_ci# 117777dab0Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 127777dab0Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 137777dab0Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 147777dab0Sopenharmony_ci# See the License for the specific language governing permissions and 157777dab0Sopenharmony_ci# limitations under the License. 167777dab0Sopenharmony_ci############################################## 177777dab0Sopenharmony_ci 187777dab0Sopenharmony_ciimport enum 197777dab0Sopenharmony_ci 207777dab0Sopenharmony_ci 217777dab0Sopenharmony_ciclass StringConstant(enum.Enum): 227777dab0Sopenharmony_ci LIB_CLG_PATH = r'./prebuilts/clang/ohos/linux-x86_64/llvm/lib/libclang.so' # 共享库 237777dab0Sopenharmony_ci FUNK_NAME = "ohos_ndk_headers" 247777dab0Sopenharmony_ci REPLACE_WAREHOUSE = '\\interface_sdk_c\\interface_sdk_c' # 拉到本地仓路径(去掉磁盘) 257777dab0Sopenharmony_ci # 拉到本地仓的三方库绝对路径 267777dab0Sopenharmony_ci INCLUDE_LIB = r'.\third_party\musl\ndk_musl_include' 277777dab0Sopenharmony_ci STD_INCLUDE = r'./sysroot_myself/std_include_files' 287777dab0Sopenharmony_ci CREATE_LIB_PATH = r'./sysroot_myself/$is_headers_out_dir' 297777dab0Sopenharmony_ci SELF_INCLUDE = r'./sysroot_myself/self_include_files' 307777dab0Sopenharmony_ci SELF_INCLUDE_OLD = r'./sysroot_myself/self_include_files_old' 317777dab0Sopenharmony_ci SELF_INCLUDE_NEW = r'./sysroot_myself/self_include_files_new' 327777dab0Sopenharmony_ci SYSROOT = r'./sysroot_myself' 337777dab0Sopenharmony_ci RESULT_HEAD_NAME = "result_total.xlsx" 347777dab0Sopenharmony_ci PARSER_DIRECT_EXCEL_NAME = 'parser_direct_data.xlsx' 357777dab0Sopenharmony_ci FILE_LEVEL_API_DATA = r'./api_kit_c.json' 367777dab0Sopenharmony_ci 377777dab0Sopenharmony_ci 387777dab0Sopenharmony_ciclass RegularExpressions(enum.Enum): 397777dab0Sopenharmony_ci START_COMMENT = r'/\*\*(.*?)\*/' 407777dab0Sopenharmony_ci END_COMMENT = r'/\*\* @} \*/' 417777dab0Sopenharmony_ci SOURCES = r'sources\s*=\s*\[[^\]]*\]' 427777dab0Sopenharmony_ci DEST_DIR = r'dest_dir\s*=\s*"([^"]*)"' 437777dab0Sopenharmony_ci INCLUDE_H = r'"([^"]+h)"' 447777dab0Sopenharmony_ci DEFINE_COMMENT = r'/\*[^/]*\*/\s*(?=#define' 45