• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
41CURRENT_ARGS_DIR = os.path.join(CURRENT_OHOS_ROOT, 'out/hb_args')
42CURRENT_BUILD_ARGS = os.path.join(
43    CURRENT_ARGS_DIR, 'buildargs.json')
44CURRENT_SET_ARGS = os.path.join(
45    CURRENT_ARGS_DIR, 'setargs.json')
46CURRENT_CLEAN_ARGS = os.path.join(
47    CURRENT_ARGS_DIR, 'cleanargs.json')
48CURRENT_ENV_ARGS = os.path.join(
49    CURRENT_ARGS_DIR, 'envargs.json')
50CURRENT_TOOL_ARGS = os.path.join(
51    CURRENT_ARGS_DIR, 'toolargs.json')
52
53BUILD_CONFIG_FILE = os.path.join(
54    CURRENT_HB_DIR, 'resources/config/config.json')
55ROOT_CONFIG_FILE = os.path.join(CURRENT_OHOS_ROOT, 'out/ohos_config.json')
56STATUS_FILE = os.path.join(CURRENT_HB_DIR, 'resources/status/status.json')
57
58ENV_SETUP_FILE = os.path.join(
59    CURRENT_BUILD_DIR, 'build_scripts', 'env_setup.sh')
60