SConscript (13577:70ab75eec40b) | SConscript (13630:416abeca1e1c) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2018 ARM Limited 4# 5# The license below extends only to copyright in the software and shall 6# not be construed as granting a license to any other intellectual 7# property including but not limited to intellectual property relating 8# to a hardware implementation of the functionality of the software --- 241 unchanged lines hidden (view full) --- 250 if namespace is not None: 251 hpp_code('namespace {} {{'.format(namespace)) 252 hpp_code('extern ' + symbol_len_declaration + ';') 253 hpp_code('extern ' + symbol_declaration + ';') 254 if namespace is not None: 255 hpp_code('}') 256 if namespace is not None: 257 cpp_code('namespace {} {{'.format(namespace)) | 1# -*- mode:python -*- 2 3# Copyright (c) 2018 ARM Limited 4# 5# The license below extends only to copyright in the software and shall 6# not be construed as granting a license to any other intellectual 7# property including but not limited to intellectual property relating 8# to a hardware implementation of the functionality of the software --- 241 unchanged lines hidden (view full) --- 250 if namespace is not None: 251 hpp_code('namespace {} {{'.format(namespace)) 252 hpp_code('extern ' + symbol_len_declaration + ';') 253 hpp_code('extern ' + symbol_declaration + ';') 254 if namespace is not None: 255 hpp_code('}') 256 if namespace is not None: 257 cpp_code('namespace {} {{'.format(namespace)) |
258 cpp_code(symbol_len_declaration + ' = {};'.format(len(data))) | 258 if hpp_code is not None: 259 cpp_code(symbol_len_declaration + ' = {};'.format(len(data))) |
259 cpp_code(symbol_declaration + ' = {') 260 cpp_code.indent() 261 step = 16 262 for i in xrange(0, len(data), step): 263 x = array.array('B', data[i:i+step]) 264 cpp_code(''.join('%d,' % d for d in x)) 265 cpp_code.dedent() 266 cpp_code('};') --- 1135 unchanged lines hidden --- | 260 cpp_code(symbol_declaration + ' = {') 261 cpp_code.indent() 262 step = 16 263 for i in xrange(0, len(data), step): 264 x = array.array('B', data[i:i+step]) 265 cpp_code(''.join('%d,' % d for d in x)) 266 cpp_code.dedent() 267 cpp_code('};') --- 1135 unchanged lines hidden --- |