1 # Copyright 2016-present Samsung Electronics Co., Ltd. and other contributors
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 """ common path for scripts """
17 from common_py.system.filesystem import FileSystem as fs
19 # Root directory for the project.
20 PROJECT_ROOT = fs.abspath(fs.join(fs.dirname(__file__), fs.pardir, fs.pardir))
22 # Source code directory.
23 SRC_ROOT = fs.join(PROJECT_ROOT, 'src')
25 # Root Build directory.
26 BUILD_ROOT = fs.join(PROJECT_ROOT, 'build')
28 # Root Build directory.
29 TOOLS_ROOT = fs.join(PROJECT_ROOT, 'tools')
31 # Root directory for dependencies.
32 DEPS_ROOT = fs.join(PROJECT_ROOT, 'deps')
34 # Root directory for test.
35 TEST_ROOT = fs.join(PROJECT_ROOT, 'test')
37 RUN_PASS_DIR = fs.join(TEST_ROOT, 'run_pass')
39 RUN_FAIL_DIR = fs.join(TEST_ROOT, 'run_fail')
41 RESOURCE_DIR = fs.join(TEST_ROOT, 'resources')
43 # Root directory for JerryScript submodule.
44 JERRY_ROOT = fs.join(DEPS_ROOT, 'jerry')
46 # Root directory of JerryScript profiles.
47 JERRY_PROFILE_ROOT = fs.join(JERRY_ROOT, 'jerry-core', 'profiles')
49 # Root directory for libtuv submodule.
50 TUV_ROOT = fs.join(DEPS_ROOT, 'libtuv')
52 # Root directory for http-parser submodule.
53 HTTPPARSER_ROOT = fs.join(DEPS_ROOT, 'http-parser')
56 CHECKTEST_PATH = fs.join(TOOLS_ROOT, 'check_test.js')
58 # Build configuration file path.
59 BUILD_CONFIG_PATH = fs.join(PROJECT_ROOT, 'build.config')