@@ -33,8 +33,7 @@ gen_semantics = executable(
33
33
semantics_generated = custom_target (
34
34
' semantics_generated.pyinc' ,
35
35
output : ' semantics_generated.pyinc' ,
36
- input : gen_semantics,
37
- command : [' @INPUT@' , ' @OUTPUT@' ],
36
+ command : [gen_semantics, ' @OUTPUT@' ],
38
37
)
39
38
hexagon_ss.add(semantics_generated)
40
39
@@ -54,90 +53,81 @@ hexagon_ss.add(semantics_generated)
54
53
shortcode_generated = custom_target (
55
54
' shortcode_generated.h.inc' ,
56
55
output : ' shortcode_generated.h.inc' ,
57
- input : ' gen_shortcode.py' ,
58
56
depends : [semantics_generated],
59
57
depend_files : [hex_common_py, attribs_def],
60
- command : [python, ' @INPUT@ ' , semantics_generated, attribs_def, ' @OUTPUT@' ],
58
+ command : [python, files ( ' gen_shortcode.py ' ) , semantics_generated, attribs_def, ' @OUTPUT@' ],
61
59
)
62
60
hexagon_ss.add(shortcode_generated)
63
61
64
62
helper_protos_generated = custom_target (
65
63
' helper_protos_generated.h.inc' ,
66
64
output : ' helper_protos_generated.h.inc' ,
67
- input : ' gen_helper_protos.py' ,
68
65
depends : [semantics_generated],
69
66
depend_files : [hex_common_py, attribs_def, gen_tcg_h],
70
- command : [python, ' @INPUT@ ' , semantics_generated, attribs_def, gen_tcg_h, ' @OUTPUT@' ],
67
+ command : [python, files ( ' gen_helper_protos.py ' ) , semantics_generated, attribs_def, gen_tcg_h, ' @OUTPUT@' ],
71
68
)
72
69
hexagon_ss.add(helper_protos_generated)
73
70
74
71
tcg_funcs_generated = custom_target (
75
72
' tcg_funcs_generated.c.inc' ,
76
73
output : ' tcg_funcs_generated.c.inc' ,
77
- input : ' gen_tcg_funcs.py' ,
78
74
depends : [semantics_generated],
79
75
depend_files : [hex_common_py, attribs_def, gen_tcg_h],
80
- command : [python, ' @INPUT@ ' , semantics_generated, attribs_def, gen_tcg_h, ' @OUTPUT@' ],
76
+ command : [python, files ( ' gen_tcg_funcs.py ' ) , semantics_generated, attribs_def, gen_tcg_h, ' @OUTPUT@' ],
81
77
)
82
78
hexagon_ss.add(tcg_funcs_generated)
83
79
84
80
tcg_func_table_generated = custom_target (
85
81
' tcg_func_table_generated.c.inc' ,
86
82
output : ' tcg_func_table_generated.c.inc' ,
87
- input : ' gen_tcg_func_table.py' ,
88
83
depends : [semantics_generated],
89
84
depend_files : [hex_common_py, attribs_def],
90
- command : [python, ' @INPUT@ ' , semantics_generated, attribs_def, ' @OUTPUT@' ],
85
+ command : [python, files ( ' gen_tcg_func_table.py ' ) , semantics_generated, attribs_def, ' @OUTPUT@' ],
91
86
)
92
87
hexagon_ss.add(tcg_func_table_generated)
93
88
94
89
helper_funcs_generated = custom_target (
95
90
' helper_funcs_generated.c.inc' ,
96
91
output : ' helper_funcs_generated.c.inc' ,
97
- input : ' gen_helper_funcs.py' ,
98
92
depends : [semantics_generated],
99
93
depend_files : [hex_common_py, attribs_def, gen_tcg_h],
100
- command : [python, ' @INPUT@ ' , semantics_generated, attribs_def, gen_tcg_h, ' @OUTPUT@' ],
94
+ command : [python, files ( ' gen_helper_funcs.py ' ) , semantics_generated, attribs_def, gen_tcg_h, ' @OUTPUT@' ],
101
95
)
102
96
hexagon_ss.add(helper_funcs_generated)
103
97
104
98
printinsn_generated = custom_target (
105
99
' printinsn_generated.h.inc' ,
106
100
output : ' printinsn_generated.h.inc' ,
107
- input : ' gen_printinsn.py' ,
108
101
depends : [semantics_generated],
109
102
depend_files : [hex_common_py, attribs_def],
110
- command : [python, ' @INPUT@ ' , semantics_generated, attribs_def, ' @OUTPUT@' ],
103
+ command : [python, files ( ' gen_printinsn.py ' ) , semantics_generated, attribs_def, ' @OUTPUT@' ],
111
104
)
112
105
hexagon_ss.add(printinsn_generated)
113
106
114
107
op_regs_generated = custom_target (
115
108
' op_regs_generated.h.inc' ,
116
109
output : ' op_regs_generated.h.inc' ,
117
- input : ' gen_op_regs.py' ,
118
110
depends : [semantics_generated],
119
111
depend_files : [hex_common_py, attribs_def],
120
- command : [python, ' @INPUT@ ' , semantics_generated, attribs_def, ' @OUTPUT@' ],
112
+ command : [python, files ( ' gen_op_regs.py ' ) , semantics_generated, attribs_def, ' @OUTPUT@' ],
121
113
)
122
114
hexagon_ss.add(op_regs_generated)
123
115
124
116
op_attribs_generated = custom_target (
125
117
' op_attribs_generated.h.inc' ,
126
118
output : ' op_attribs_generated.h.inc' ,
127
- input : ' gen_op_attribs.py' ,
128
119
depends : [semantics_generated],
129
120
depend_files : [hex_common_py, attribs_def],
130
- command : [python, ' @INPUT@ ' , semantics_generated, attribs_def, ' @OUTPUT@' ],
121
+ command : [python, files ( ' gen_op_attribs.py ' ) , semantics_generated, attribs_def, ' @OUTPUT@' ],
131
122
)
132
123
hexagon_ss.add(op_attribs_generated)
133
124
134
125
opcodes_def_generated = custom_target (
135
126
' opcodes_def_generated.h.inc' ,
136
127
output : ' opcodes_def_generated.h.inc' ,
137
- input : ' gen_opcodes_def.py' ,
138
128
depends : [semantics_generated],
139
129
depend_files : [hex_common_py, attribs_def],
140
- command : [python, ' @INPUT@ ' , semantics_generated, attribs_def, ' @OUTPUT@' ],
130
+ command : [python, files ( ' gen_opcodes_def.py ' ) , semantics_generated, attribs_def, ' @OUTPUT@' ],
141
131
)
142
132
hexagon_ss.add(opcodes_def_generated)
143
133
@@ -154,8 +144,7 @@ gen_dectree_import = executable(
154
144
iset_py = custom_target (
155
145
' iset.py' ,
156
146
output : ' iset.py' ,
157
- input : gen_dectree_import,
158
- command : [' @INPUT@' , ' @OUTPUT@' ],
147
+ command : [gen_dectree_import, ' @OUTPUT@' ],
159
148
)
160
149
hexagon_ss.add(iset_py)
161
150
@@ -166,9 +155,8 @@ hexagon_ss.add(iset_py)
166
155
dectree_generated = custom_target (
167
156
' dectree_generated.h.inc' ,
168
157
output : ' dectree_generated.h.inc' ,
169
- input : ' dectree.py' ,
170
158
depends : [iset_py],
171
- command : [' PYTHONPATH=' + meson .current_build_dir(), ' @INPUT@ ' , ' @OUTPUT@' ],
159
+ command : [' env ' , ' PYTHONPATH=' + meson .current_build_dir(), files ( ' dectree.py ' ) , ' @OUTPUT@' ],
172
160
)
173
161
hexagon_ss.add(dectree_generated)
174
162
0 commit comments