Upload packaging folder
[platform/upstream/iotjs.git] / tools / common_py / path.py
1 # Copyright 2016-present Samsung Electronics Co., Ltd. and other contributors
2 #
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 """ common path for scripts """
16
17 from common_py.system.filesystem import FileSystem as fs
18
19 # Root directory for the project.
20 PROJECT_ROOT = fs.abspath(fs.join(fs.dirname(__file__), fs.pardir, fs.pardir))
21
22 # Source code directory.
23 SRC_ROOT = fs.join(PROJECT_ROOT, 'src')
24
25 # Root Build directory.
26 BUILD_ROOT = fs.join(PROJECT_ROOT, 'build')
27
28 # Root Build directory.
29 TOOLS_ROOT = fs.join(PROJECT_ROOT, 'tools')
30
31 # Root directory for dependencies.
32 DEPS_ROOT = fs.join(PROJECT_ROOT, 'deps')
33
34 # Root directory for test.
35 TEST_ROOT = fs.join(PROJECT_ROOT, 'test')
36
37 RUN_PASS_DIR = fs.join(TEST_ROOT, 'run_pass')
38
39 RUN_FAIL_DIR = fs.join(TEST_ROOT, 'run_fail')
40
41 RESOURCE_DIR = fs.join(TEST_ROOT, 'resources')
42
43 # Root directory for JerryScript submodule.
44 JERRY_ROOT = fs.join(DEPS_ROOT, 'jerry')
45
46 # Root directory of JerryScript profiles.
47 JERRY_PROFILE_ROOT = fs.join(JERRY_ROOT, 'jerry-core', 'profiles')
48
49 # Root directory for libtuv submodule.
50 TUV_ROOT = fs.join(DEPS_ROOT, 'libtuv')
51
52 # Root directory for http-parser submodule.
53 HTTPPARSER_ROOT = fs.join(DEPS_ROOT, 'http-parser')
54
55 # checktest
56 CHECKTEST_PATH = fs.join(TOOLS_ROOT, 'check_test.js')
57
58 # Build configuration file path.
59 BUILD_CONFIG_PATH = fs.join(PROJECT_ROOT, 'build.config')