Rework CMake options to use the new macro config format (#2933)

Updated all feature related CMake option to use JERRY_ format.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
This commit is contained in:
Péter Gál
2019-07-08 18:25:17 +02:00
committed by Dániel Bátyai
parent 2b8c428694
commit ef5dd5c698
4 changed files with 109 additions and 132 deletions
+18 -18
View File
@@ -194,27 +194,27 @@ def generate_build_options(arguments):
# jerry-core options
build_options_append('ENABLE_ALL_IN_ONE', arguments.all_in_one)
build_options_append('FEATURE_CPOINTER_32_BIT', arguments.cpointer_32bit)
build_options_append('FEATURE_ERROR_MESSAGES', arguments.error_messages)
build_options_append('FEATURE_EXTERNAL_CONTEXT', arguments.external_context)
build_options_append('FEATURE_DEBUGGER', arguments.jerry_debugger)
build_options_append('FEATURE_JS_PARSER', arguments.js_parser)
build_options_append('FEATURE_LINE_INFO', arguments.line_info)
build_options_append('FEATURE_LOGGING', arguments.logging)
build_options_append('JERRY_CPOINTER_32_BIT', arguments.cpointer_32bit)
build_options_append('JERRY_ERROR_MESSAGES', arguments.error_messages)
build_options_append('JERRY_EXTERNAL_CONTEXT', arguments.external_context)
build_options_append('JERRY_DEBUGGER', arguments.jerry_debugger)
build_options_append('JERRY_PARSER', arguments.js_parser)
build_options_append('JERRY_LINE_INFO', arguments.line_info)
build_options_append('JERRY_LOGGING', arguments.logging)
build_options_append('JERRY_GLOBAL_HEAP_SIZE', arguments.mem_heap)
build_options_append('FEATURE_MEM_STATS', arguments.mem_stats)
build_options_append('FEATURE_MEM_STRESS_TEST', arguments.mem_stress_test)
build_options_append('FEATURE_PROFILE', arguments.profile)
build_options_append('FEATURE_REGEXP_STRICT_MODE', arguments.regexp_strict_mode)
build_options_append('JERRY_MEM_STATS', arguments.mem_stats)
build_options_append('JERRY_MEM_GC_BEFORE_EACH_ALLOC', arguments.mem_stress_test)
build_options_append('JERRY_PROFILE', arguments.profile)
build_options_append('JERRY_REGEXP_STRICT_MODE', arguments.regexp_strict_mode)
build_options_append('JERRY_REGEXP_RECURSION_LIMIT', arguments.regexp_recursion_limit)
build_options_append('JERRY_CALL_STACK_LIMIT', arguments.call_stack_limit)
build_options_append('FEATURE_PARSER_DUMP', arguments.show_opcodes)
build_options_append('FEATURE_REGEXP_DUMP', arguments.show_regexp_opcodes)
build_options_append('FEATURE_SNAPSHOT_EXEC', arguments.snapshot_exec)
build_options_append('FEATURE_SNAPSHOT_SAVE', arguments.snapshot_save)
build_options_append('FEATURE_SYSTEM_ALLOCATOR', arguments.system_allocator)
build_options_append('FEATURE_VALGRIND', arguments.valgrind)
build_options_append('FEATURE_VM_EXEC_STOP', arguments.vm_exec_stop)
build_options_append('JERRY_PARSER_DUMP_BYTE_CODE', arguments.show_opcodes)
build_options_append('JERRY_REGEXP_DUMP_BYTE_CODE', arguments.show_regexp_opcodes)
build_options_append('JERRY_SNAPSHOT_EXEC', arguments.snapshot_exec)
build_options_append('JERRY_SNAPSHOT_SAVE', arguments.snapshot_save)
build_options_append('JERRY_SYSTEM_ALLOCATOR', arguments.system_allocator)
build_options_append('JERRY_VALGRIND', arguments.valgrind)
build_options_append('JERRY_VM_EXEC_STOP', arguments.vm_exec_stop)
# jerry-main options
build_options_append('ENABLE_LINK_MAP', arguments.link_map)