1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14declare_args() { 15 jerryscript_enable_external_context = true 16 jerryscript_inputjs_buffer_size = 32768 17 jerryscript_snapshot_buffer_size = 24576 18 jerryscript_bms_task_heap_size = 64 19 jerryscript_js_task_heap_size = 64 20 jerryscript_jerry_cpointer_32_bit = 0 21 jerryscript_jerry_debugger = 1 22 jerryscript_jerry_gc_limit = 0 23 jerryscript_jerry_line_info = 1 24 jerryscript_jerry_mem_gc_before_each_alloc = 0 25 jerryscript_jerry_parser = 1 26 jerryscript_jerry_parser_dump_byte_code = 0 27 jerryscript_jerry_regexp_dump_byte_code = 0 28 jerryscript_jerry_regexp_strict_mode = 0 29 jerryscript_jerry_stack_limit = 0 30 jerryscript_jerry_system_allocator = 0 31 jerryscript_jerry_valgrind = 0 32 jerryscript_jerry_vm_exec_stop = 0 33 34 # support es6 with limitation 35 jerryscript_jerry_es2015 = 1 36 jerryscript_jerry_es2015_builtin_typedarray = 1 37 jerryscript_jerry_es2015_builtin_set = 1 38 jerryscript_jerry_es2015_builtin_promise = 1 39 jerryscript_jerry_es2015_builtin_proxy = 1 40 jerryscript_jerry_es2015_module_system = 1 41 jerryscript_jerry_es2015_builtin_map = 1 42 jerryscript_jerry_es2015_builtin_weakmap = 0 43 jerryscript_jerry_es2015_builtin_weakset = 0 44 jerryscript_jerry_es2015_builtin_dataview = 0 45 jerryscript_jerry_es2015_builtin_reflect = 0 46 47 jerryscript_jerry_error_messages = 1 48 jerryscript_jerry_logging = 0 49 jerryscript_jerry_snapshot_exec = 1 50 jerryscript_jerry_snapshot_save = 1 51} 52 53engine_path = "//third_party/jerryscript" 54 55core_path = "${engine_path}/jerry-core" 56 57debugger_path = "${engine_path}/jerry-debugger" 58 59ext_path = "${engine_path}/jerry-ext" 60 61libm_path = "${engine_path}/jerry-libm" 62 63port_path = "${engine_path}/jerry-port" 64