@@ -887,8 +887,8 @@ def EndBuilding(target, program = None, is_rtt = False):
|
||||
Clean(target, 'rtua.py')
|
||||
Clean(target, 'rtua.pyc')
|
||||
if is_rtt:
|
||||
Clean(target, 'gen_ports/gen_ports.c')
|
||||
Clean(target, 'gen_ports/gen_ports.cpp')
|
||||
Clean(target, 'gen_ports/gen_ports_c.c')
|
||||
Clean(target, 'gen_ports/gen_ports_cpp.cpp')
|
||||
|
||||
if GetOption('target'):
|
||||
GenTargetProject(program)
|
||||
|
@@ -122,8 +122,8 @@ class SharelibHandler:
|
||||
|
||||
import json
|
||||
|
||||
init_c_path = os.path.join(os.getcwd(), "gen_ports/gen_ports.c")
|
||||
init_cpp_path = init_c_path + "pp"
|
||||
init_c_path = os.path.join(os.getcwd(), "gen_ports/gen_ports_c.c")
|
||||
init_cpp_path = os.path.join(os.getcwd(), "gen_ports/gen_ports_cpp.cpp")
|
||||
|
||||
finit_c = open(init_c_path, 'w+')
|
||||
finit_cpp = open(init_cpp_path, 'w+')
|
||||
@@ -132,7 +132,7 @@ class SharelibHandler:
|
||||
exit(1)
|
||||
|
||||
file_head = ['/**\n',
|
||||
' * @file: gen_ports.c/cpp\n',
|
||||
' * @file: gen_ports_c.c/_cpp.cpp\n',
|
||||
' * \n',
|
||||
' * @warn: auto generated init ports file; DO NOT EDIT.',
|
||||
' */\n\n',
|
||||
|
Reference in New Issue
Block a user