Skip to content

Commit

Permalink
[Gate] Allow user to put custom conversion on project lib
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault committed Sep 5, 2023
1 parent ae8cc27 commit d906f7e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tool_services/gate/select_format_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@
if (path.exists(item[1])):
click.secho("\t* %s translation format selected." %
item[1], fg="green")
env.Append(CPPPATH=[realpath(item[1])])
env.Replace(SRC_FILTER=["+<*.c>, +<%s>" % item[1]])
elif (path.exists(env.get("PROJECT_DIR")+"/lib/"+item[1])):
click.secho("\t* %s translation format selected." %
item[1], fg="green")
env.Append(
CPPPATH=[realpath(env.get("PROJECT_DIR")+"/lib/"+item[1])])
env.Replace(SRC_FILTER=["+<*.c>, +<%s>" %
env.get("PROJECT_DIR")+"/lib/"+item[1]])
else:
click.secho("\t* %s translation format not found." %
item[1], fg="red")
env.Append(CPPPATH=[realpath(item[1])])
env.Replace(SRC_FILTER=["+<*.c>, +<%s>" % item[1]])
break

if find_format == False:
Expand Down

0 comments on commit d906f7e

Please sign in to comment.