1#!/usr/bin/env python 2# coding=utf-8 3############################################## 4# Copyright (c) 2021-2022 Huawei Device Co., Ltd. 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16############################################## 17 18import enum 19 20 21class StringConstant(enum.Enum): 22 LIB_CLG_PATH = r'home/tools/llvm/lib/libclang.so' # 共享库 23 FUNK_NAME = "ohos_ndk_headers" 24 REPLACE_WAREHOUSE = '\\interface_sdk_c\\interface_sdk_c' # 拉到本地仓路径(去掉磁盘) 25 # 拉到本地仓的三方库绝对路径 26 INCLUDE_LIB = r'.\third_party\musl\ndk_musl_include' 27 STD_INCLUDE = r'.\sysroot\ndk_musl_include_files' 28 CREATE_LIB_PATH = r'.\sysroot\$ndk_headers_out_dir' 29 SELF_INCLUDE = r'.\sysroot\self_include_files' 30 SELF_INCLUDE_OLD = r'.\sysroot\self_include_files_old' 31 SELF_INCLUDE_NEW = r'.\sysroot\self_include_files_new' 32 SYSROOT = r'.\sysroot' 33 RESULT_HEAD_NAME = "result_total.xlsx" 34 35 36class RegularExpressions(enum.Enum): 37 START_COMMENT = r'/\*\*(.*?)\*/' 38 END_COMMENT = r'/\*\* @} \*/' 39 SOURCES = r'sources\s*=\s*\[[^\]]*\]' 40 DEST_DIR = r'dest_dir\s*=\s*"([^"]*)"' 41 INCLUDE_H = r'"([^"]+h)"' 42