• Home
  • Raw
  • Download

Lines Matching +full:python +full:- +full:format

1 #!/usr/bin/env python
9 # http://www.apache.org/licenses/LICENSE-2.0
28 JERRY_CORE = os.path.join(ROOT_DIR, 'jerry-core')
29 JERRY_PORT = os.path.join(ROOT_DIR, 'jerry-port', 'default')
30 JERRY_LIBM = os.path.join(ROOT_DIR, 'jerry-libm')
39 cmd.append('--verbose')
46 'python', SRCMERGER,
47 '--base-dir', JERRY_CORE,
48 '--input={}/api/jerry.c'.format(JERRY_CORE),
49 '--output={}/jerryscript.c'.format(output_dir),
50 '--append-c-files',
51 # Add the global built-in by default to include some common items
52 # to avoid problems with common built-in headers
53 '--input={}/ecma/builtin-objects/ecma-builtins.c'.format(JERRY_CORE),
54 '--remove-include=jerryscript.h',
55 '--remove-include=jerryscript-port.h',
56 '--remove-include=jerryscript-compiler.h',
57 '--remove-include=jerryscript-core.h',
58 '--remove-include=jerryscript-debugger.h',
59 '--remove-include=jerryscript-debugger-transport.h',
60 '--remove-include=jerryscript-port.h',
61 '--remove-include=jerryscript-snapshot.h',
62 '--remove-include=config.h',
63 '--push-include=jerryscript.h',
67 'python', SRCMERGER,
68 '--base-dir', JERRY_CORE,
69 '--input={}/include/jerryscript.h'.format(JERRY_CORE),
70 '--output={}/jerryscript.h'.format(output_dir),
71 '--remove-include=config.h',
72 '--push-include=jerryscript-config.h',
77 shutil.copyfile('{}/config.h'.format(JERRY_CORE),
78 '{}/jerryscript-config.h'.format(output_dir))
83 'python', SRCMERGER,
84 '--base-dir', JERRY_PORT,
85 '--output={}/jerryscript-port-default.c'.format(output_dir),
86 '--append-c-files',
87 '--remove-include=jerryscript-port.h',
88 '--remove-include=jerryscript-port-default.h',
89 '--remove-include=jerryscript-debugger.h',
90 '--push-include=jerryscript.h',
91 '--push-include=jerryscript-port-default.h',
95 'python', SRCMERGER,
96 '--base-dir', JERRY_PORT,
97 '--input={}/include/jerryscript-port-default.h'.format(JERRY_PORT),
98 '--output={}/jerryscript-port-default.h'.format(output_dir),
99 '--remove-include=jerryscript-port.h',
100 '--remove-include=jerryscript.h',
101 '--push-include=jerryscript.h',
109 'python', SRCMERGER,
110 '--base-dir', JERRY_LIBM,
111 '--output={}/jerryscript-libm.c'.format(output_dir),
112 '--append-c-files',
117 shutil.copyfile('{}/include/math.h'.format(JERRY_LIBM),
118 '{}/math.h'.format(output_dir))
122 parser.add_argument('--jerry-core', action='store_true', dest='jerry_core',
123 help='Generate jerry-core files', default=False)
124 parser.add_argument('--jerry-port-default', action='store_true', dest='jerry_port_default',
125 help='Generate jerry-port-default files', default=False)
126 parser.add_argument('--jerry-libm', action='store_true', dest='jerry_libm',
127 help='Generate jerry-libm files', default=False)
128 parser.add_argument('--output-dir', metavar='DIR', type=str, dest='output_dir',
130 parser.add_argument('--verbose', '-v', action='store_true', default=False)