• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16export const ARKTSCONFIG_JSON_FILE: string = 'arktsconfig.json';
17export const MERGED_ABC_FILE: string = 'modules_static.abc';
18export const LINKER_INPUT_FILE: string = 'fileInfo.txt';
19export const DEPENDENCY_INPUT_FILE: string = 'dependencyFileInfo.txt';
20export const DEPENDENCY_JSON_FILE: string = 'dependency.json';
21export const PROJECT_BUILD_CONFIG_FILE: string = 'projectionConfig.json';
22export const STATIC_RECORD_FILE: string = 'static.Record.d.ts';
23
24export const DECL_ETS_SUFFIX: string = '.d.ets';
25export const DECL_TS_SUFFIX: string = '.d.ts';
26export const ETS_SUFFIX: string = '.ets';
27export const TS_SUFFIX: string = '.ts';
28export const ABC_SUFFIX: string = '.abc';
29
30export const BUILD_TYPE_BUILD: string = 'build';
31export enum BUILD_MODE {
32  DEBUG = 'Debug',
33  RELEASE = 'Release'
34};
35
36export enum LANGUAGE_VERSION {
37  ARKTS_1_2 = '1.2',
38  ARKTS_1_1 = '1.1',
39  ARKTS_HYBRID = 'hybrid',
40};
41
42export const PANDA_SDK_PATH_FROM_SDK: string = './build-tools/ets2panda';
43export const SYSTEM_SDK_PATH_FROM_SDK: string = './';
44export const KOALA_WRAPPER_PATH_FROM_SDK: string = './build-tools/koala-wrapper/build/lib/es2panda';
45
46export const DEFAULT_WOKER_NUMS: number = 4;
47
48export const ETS_1_1 = 'ets1.1';
49export const ETS_1_1_INTEROP = 'ets1.1interop';
50
51export const STATIC_RECORD_FILE_CONTENT: string = `// generated for static Record
52export type Record<K extends keyof any, T> = {
53  [P in K]: T;
54};
55`;
56