diff --git a/building.py b/building.py index a1ba79d..018e86e 100644 --- a/building.py +++ b/building.py @@ -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) diff --git a/sharelib.py b/sharelib.py index da68285..beb7918 100644 --- a/sharelib.py +++ b/sharelib.py @@ -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',