Lines Matching +full:default +full:- +full:build
9 # http://www.apache.org/licenses/LICENSE-2.0
28 # We don't have default toolchain on Windows and os.uname() isn't supported.
40 devhelp_preparser.add_argument('--devhelp', action='store_true', default=False,
46 args.append('--devhelp')
52 This tool is a thin wrapper around cmake and make to help build the
53 project easily. All the real build logic is in the CMakeLists.txt files.
57 buildgrp = parser.add_argument_group('general build options')
58 …buildgrp.add_argument('--builddir', metavar='DIR', default=os.path.join(settings.PROJECT_DIR, 'bui…
59 help='specify build directory (default: %(default)s)')
60 buildgrp.add_argument('--clean', action='store_true', default=False,
61 help='clean build')
62 buildgrp.add_argument('--cmake-param', metavar='OPT', action='append', default=[],
64 buildgrp.add_argument('--compile-flag', metavar='OPT', action='append', default=[],
66 buildgrp.add_argument('--debug', action='store_const', const='Debug', dest='build_type',
67 default='MinSizeRel', help='debug build')
68 buildgrp.add_argument('--install', metavar='DIR', nargs='?', default=None, const=False,
69 help='install after build (default: don\'t install; '
70 'default directory if install: OS-specific)')
71 …buildgrp.add_argument('-j', '--jobs', metavar='N', type=int, default=multiprocessing.cpu_count() +…
72 help='number of parallel build jobs (default: %(default)s)')
73 buildgrp.add_argument('--link-lib', metavar='OPT', action='append', default=[],
75 buildgrp.add_argument('--linker-flag', metavar='OPT', action='append', default=[],
77 buildgrp.add_argument('--lto', metavar='X', choices=['ON', 'OFF'], type=str.upper,
78 help='enable link-time optimizations (%(choices)s)')
79 buildgrp.add_argument('--shared-libs', metavar='X', choices=['ON', 'OFF'], type=str.upper,
81 buildgrp.add_argument('--strip', metavar='X', choices=['ON', 'OFF'], type=str.upper,
83 buildgrp.add_argument('--toolchain', metavar='FILE', default=default_toolchain(),
84 help='specify toolchain file (default: %(default)s)')
85 buildgrp.add_argument('-v', '--verbose', action='store_const', const='ON',
89 compgrp.add_argument('--doctests', metavar='X', choices=['ON', 'OFF'], type=str.upper,
90 help=devhelp('build doctests (%(choices)s)'))
91 compgrp.add_argument('--jerry-cmdline', metavar='X', choices=['ON', 'OFF'], type=str.upper,
92 help='build jerry command line tool (%(choices)s)')
93 …compgrp.add_argument('--jerry-cmdline-snapshot', metavar='X', choices=['ON', 'OFF'], type=str.uppe…
94 help='build snapshot command line tool (%(choices)s)')
95 compgrp.add_argument('--jerry-cmdline-test', metavar='X', choices=['ON', 'OFF'], type=str.upper,
96 … help=devhelp('build test version of the jerry command line tool (%(choices)s)'))
97 compgrp.add_argument('--libfuzzer', metavar='X', choices=['ON', 'OFF'], type=str.upper,
98 help=devhelp('build jerry with libfuzzer support (%(choices)s)'))
99 compgrp.add_argument('--jerry-ext', metavar='X', choices=['ON', 'OFF'], type=str.upper,
100 help='build jerry-ext (%(choices)s)')
101 compgrp.add_argument('--jerry-libm', metavar='X', choices=['ON', 'OFF'], type=str.upper,
102 help='build and use jerry-libm (%(choices)s)')
103 compgrp.add_argument('--jerry-port-default', metavar='X', choices=['ON', 'OFF'], type=str.upper,
104 help='build default jerry port implementation (%(choices)s)')
105 compgrp.add_argument('--unittests', metavar='X', choices=['ON', 'OFF'], type=str.upper,
106 help=devhelp('build unittests (%(choices)s)'))
108 coregrp = parser.add_argument_group('jerry-core options')
109 coregrp.add_argument('--all-in-one', metavar='X', choices=['ON', 'OFF'], type=str.upper,
110 help='all-in-one build (%(choices)s)')
111 coregrp.add_argument('--cpointer-32bit', metavar='X', choices=['ON', 'OFF'], type=str.upper,
113 coregrp.add_argument('--error-messages', metavar='X', choices=['ON', 'OFF'], type=str.upper,
115 coregrp.add_argument('--external-context', metavar='X', choices=['ON', 'OFF'], type=str.upper,
117 coregrp.add_argument('--jerry-debugger', metavar='X', choices=['ON', 'OFF'], type=str.upper,
119 coregrp.add_argument('--js-parser', metavar='X', choices=['ON', 'OFF'], type=str.upper,
120 help='enable js-parser (%(choices)s)')
121 coregrp.add_argument('--line-info', metavar='X', choices=['ON', 'OFF'], type=str.upper,
123 coregrp.add_argument('--logging', metavar='X', choices=['ON', 'OFF'], type=str.upper,
125 coregrp.add_argument('--mem-heap', metavar='SIZE', type=int,
127 coregrp.add_argument('--gc-limit', metavar='SIZE', type=int,
129 coregrp.add_argument('--stack-limit', metavar='SIZE', type=int,
131 coregrp.add_argument('--gc-mark-limit', metavar='SIZE', type=int,
133 coregrp.add_argument('--mem-stats', metavar='X', choices=['ON', 'OFF'], type=str.upper,
135 coregrp.add_argument('--mem-stress-test', metavar='X', choices=['ON', 'OFF'], type=str.upper,
136 help=devhelp('enable mem-stress test (%(choices)s)'))
137 coregrp.add_argument('--profile', metavar='FILE',
139 coregrp.add_argument('--regexp-strict-mode', metavar='X', choices=['ON', 'OFF'], type=str.upper,
141 coregrp.add_argument('--show-opcodes', metavar='X', choices=['ON', 'OFF'], type=str.upper,
142 help=devhelp('enable parser byte-code dumps (%(choices)s)'))
143 … coregrp.add_argument('--show-regexp-opcodes', metavar='X', choices=['ON', 'OFF'], type=str.upper,
144 help=devhelp('enable regexp byte-code dumps (%(choices)s)'))
145 coregrp.add_argument('--snapshot-exec', metavar='X', choices=['ON', 'OFF'], type=str.upper,
147 coregrp.add_argument('--snapshot-save', metavar='X', choices=['ON', 'OFF'], type=str.upper,
149 coregrp.add_argument('--system-allocator', metavar='X', choices=['ON', 'OFF'], type=str.upper,
151 coregrp.add_argument('--valgrind', metavar='X', choices=['ON', 'OFF'], type=str.upper,
153 coregrp.add_argument('--vm-exec-stop', metavar='X', choices=['ON', 'OFF'], type=str.upper,
156 maingrp = parser.add_argument_group('jerry-main options')
157 maingrp.add_argument('--link-map', metavar='X', choices=['ON', 'OFF'], type=str.upper,
172 build_options.append('-D%s=%s' % (cmakeopt, cliarg))
174 # general build options
196 # jerry-core options
221 build_options.append('-D%s=%s' % ('JERRY_GC_MARK_LIMIT', arguments.gc_mark_limit))
223 # jerry-main options
226 # general build options (final step)
247 cmake_cmd = ['cmake', '-B' + arguments.builddir, '-H' + settings.PROJECT_DIR]
250 cmake_cmd.append('-DCMAKE_INSTALL_PREFIX=%s' % arguments.install)
257 make_cmd = ['cmake', '--build', arguments.builddir, '--config', arguments.build_type]
260 env['MAKEFLAGS'] = '-j%d' % (arguments.jobs) # Workaround for CMake < 3.12
268 …make_cmd = ['cmake', '--build', arguments.builddir, '--config', arguments.build_type, '--target', …
274 print('Build failed with exit code: %s' % (ret))
276 print('Build succeeded!')