Lines Matching +full:file +full:- +full:lines
5 # you may not use this file except in compliance with the License.
8 # http://www.apache.org/licenses/LICENSE-2.0
19 # The parameters are passed in a response file so we don't have to worry
20 # about command line lengths. The name of the response file is passed on the
23 # The format of the response file is:
24 # [--flags <list of one or more flag values>]
35 * you may not use this file except in compliance with the License.
38 * http://www.apache.org/licenses/LICENSE-2.0
52 parser.add_argument('--rsp', help='Input response file containing the flags.')
53 parser.add_argument('--out', help='Output path of the generated header file.')
61 marker_seen = flag == '--flags'
69 lines = []
70 lines.append('// Generated by %s' % os.path.basename(__file__))
71 lines.append('')
72 lines.append('// fix_include_guards: off')
73 lines.append('#ifndef %s' % guard)
74 lines.append('#define %s' % guard)
75 lines.append('')
76 lines.append('// clang-format off')
78 lines.append('#define PERFETTO_BUILDFLAG_DEFINE_%s() (%s)' % kv)
79 lines.append('')
80 lines.append('// clang-format on')
81 lines.append('#endif // %s' % guard)
82 lines.append('')
86 out.write('\n'.join(lines))