1#!/usr/bin/env python 2# -*- coding: utf-8 -*- 3 4# 5# Copyright (c) 2023 Huawei Device Co., Ltd. 6# Licensed under the Apache License, Version 2.0 (the "License"); 7# you may not use this file except in compliance with the License. 8# You may obtain a copy of the License at 9# 10# http://www.apache.org/licenses/LICENSE-2.0 11# 12# Unless required by applicable law or agreed to in writing, software 13# distributed under the License is distributed on an "AS IS" BASIS, 14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15# See the License for the specific language governing permissions and 16# limitations under the License. 17 18 19import os 20 21VERSION = "1.0.0" 22CURRENT_OHOS_ROOT = os.path.dirname(os.path.dirname( 23 os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) 24CURRENT_BUILD_DIR = os.path.join(CURRENT_OHOS_ROOT, 'build') 25CURRENT_HB_DIR = os.path.join(CURRENT_BUILD_DIR, 'hb') 26DEFAULT_CCACHE_DIR = os.path.join(CURRENT_OHOS_ROOT, '.ccache') 27 28ARGS_DIR = os.path.join(CURRENT_HB_DIR, 'resources/args') 29 30DEFAULT_BUILD_ARGS = os.path.join( 31 CURRENT_HB_DIR, 'resources/args/default/buildargs.json') 32DEFAULT_SET_ARGS = os.path.join( 33 CURRENT_HB_DIR, 'resources/args/default/setargs.json') 34DEFAULT_CLEAN_ARGS = os.path.join( 35 CURRENT_HB_DIR, 'resources/args/default/cleanargs.json') 36DEFAULT_ENV_ARGS = os.path.join( 37 CURRENT_HB_DIR, 'resources/args/default/envargs.json') 38DEFAULT_TOOL_ARGS = os.path.join( 39 CURRENT_HB_DIR, 'resources/args/default/toolargs.json') 40 41DEFAULT_INDEP_BUILD_ARGS = os.path.join( 42 CURRENT_HB_DIR, 'resources/args/default/indepbuildargs.json') 43 44DEFAULT_INSTALL_ARGS = os.path.join( 45 CURRENT_HB_DIR, 'resources/args/default/installargs.json') 46 47DEFAULT_PACKAGE_ARGS = os.path.join( 48 CURRENT_HB_DIR, 'resources/args/default/packageargs.json') 49 50DEFAULT_PUBLISH_ARGS = os.path.join( 51 CURRENT_HB_DIR, 'resources/args/default/publishargs.json') 52 53DEFAULT_UPDATE_ARGS = os.path.join( 54 CURRENT_HB_DIR, 'resources/args/default/updateargs.json') 55 56DEFAULT_PUSH_ARGS = os.path.join( 57 CURRENT_HB_DIR, 'resources/args/default/pushargs.json') 58 59CURRENT_ARGS_DIR = os.path.join(CURRENT_OHOS_ROOT, 'out/hb_args') 60CURRENT_BUILD_ARGS = os.path.join( 61 CURRENT_ARGS_DIR, 'buildargs.json') 62CURRENT_SET_ARGS = os.path.join( 63 CURRENT_ARGS_DIR, 'setargs.json') 64CURRENT_CLEAN_ARGS = os.path.join( 65 CURRENT_ARGS_DIR, 'cleanargs.json') 66CURRENT_ENV_ARGS = os.path.join( 67 CURRENT_ARGS_DIR, 'envargs.json') 68CURRENT_TOOL_ARGS = os.path.join( 69 CURRENT_ARGS_DIR, 'toolargs.json') 70CURRENT_INDEP_BUILD_ARGS = os.path.join( 71 CURRENT_ARGS_DIR, 'indepbuildargs.json') 72CURRENT_INSTALL_ARGS = os.path.join( 73 CURRENT_ARGS_DIR, 'installargs.json') 74CURRENT_PACKAGE_ARGS = os.path.join( 75 CURRENT_ARGS_DIR, 'packageargs.json') 76CURRENT_PUBLISH_ARGS = os.path.join( 77 CURRENT_ARGS_DIR, 'publishargs.json') 78CURRENT_UPDATE_ARGS = os.path.join( 79 CURRENT_ARGS_DIR, 'updateargs.json') 80CURRENT_PUSH_ARGS = os.path.join( 81 CURRENT_ARGS_DIR, 'pushargs.json') 82 83BUILD_CONFIG_FILE = os.path.join( 84 CURRENT_HB_DIR, 'resources/config/config.json') 85ROOT_CONFIG_FILE = os.path.join(CURRENT_OHOS_ROOT, 'out/ohos_config.json') 86STATUS_FILE = os.path.join(CURRENT_HB_DIR, 'resources/status/status.json') 87 88ENV_SETUP_FILE = os.path.join( 89 CURRENT_BUILD_DIR, 'build_scripts', 'env_setup.sh') 90 91COMPONENTS_PATH_DIR = os.path.join(CURRENT_OHOS_ROOT, 'out/components_path.json')