You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Merge pull request #88244 from shana/vs-improve-settings
Visual Studio: Don't override user options. Add additional vs hint information
This commit is contained in:
20
methods.py
20
methods.py
@@ -1452,14 +1452,18 @@ def generate_vs_project(env, original_args, project_name="godot"):
|
||||
|
||||
props_template = props_template.replace("%%OUTPUT%%", output)
|
||||
|
||||
props_template = props_template.replace(
|
||||
"%%DEFINES%%", ";".join([format_key_value(v) for v in list(env["CPPDEFINES"])])
|
||||
)
|
||||
props_template = props_template.replace("%%INCLUDES%%", ";".join([str(j) for j in env["CPPPATH"]]))
|
||||
props_template = props_template.replace(
|
||||
"%%OPTIONS%%",
|
||||
" ".join(env["CCFLAGS"]) + " " + " ".join([x for x in env["CXXFLAGS"] if not x.startswith("$")]),
|
||||
)
|
||||
proplist = [format_key_value(v) for v in list(env["CPPDEFINES"])]
|
||||
proplist += [format_key_value(j) for j in env.get("VSHINT_DEFINES", [])]
|
||||
props_template = props_template.replace("%%DEFINES%%", ";".join(proplist))
|
||||
|
||||
proplist = [str(j) for j in env["CPPPATH"]]
|
||||
proplist += [str(j) for j in env.get("VSHINT_INCLUDES", [])]
|
||||
props_template = props_template.replace("%%INCLUDES%%", ";".join(proplist))
|
||||
|
||||
proplist = env["CCFLAGS"]
|
||||
proplist += [x for x in env["CXXFLAGS"] if not x.startswith("$")]
|
||||
proplist += [str(j) for j in env.get("VSHINT_OPTIONS", [])]
|
||||
props_template = props_template.replace("%%OPTIONS%%", " ".join(proplist))
|
||||
|
||||
# Windows allows us to have spaces in paths, so we need
|
||||
# to double quote off the directory. However, the path ends
|
||||
|
||||
Reference in New Issue
Block a user