diff options
| author | Matthias Hoelzl | 2017-11-18 18:09:18 +0100 |
|---|---|---|
| committer | Matthias Hoelzl | 2017-11-19 21:01:05 +0100 |
| commit | 589976321c8210a586d4c278c9bbf2b4d480ee19 (patch) | |
| tree | 809073ca1483034f9faf679c07f2e0779d922a28 /methods.py | |
| parent | bea607d53e4adff19956adbe09ace170d8cc40b8 (diff) | |
| download | godot-589976321c8210a586d4c278c9bbf2b4d480ee19.tar.gz godot-589976321c8210a586d4c278c9bbf2b4d480ee19.tar.zst godot-589976321c8210a586d4c278c9bbf2b4d480ee19.zip | |
Diffstat (limited to 'methods.py')
| -rw-r--r-- | methods.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/methods.py b/methods.py index 8fc7f87a4..c8cc84eb4 100644 --- a/methods.py +++ b/methods.py @@ -1686,6 +1686,17 @@ def find_visual_c_batch_file(env): (host_platform, target_platform,req_target_platform) = get_host_target(env) return find_batch_file(env, version, host_platform, target_platform)[0] +def generate_cpp_hint_file(filename): + import os.path + if os.path.isfile(filename): + # Don't overwrite an existing hint file since the user may have customized it. + pass + else: + try: + fd = open(filename, "w") + fd.write("#define GDCLASS(m_class, m_inherits)\n") + except IOError: + print("Could not write cpp.hint file.") def generate_vs_project(env, num_jobs): batch_file = find_visual_c_batch_file(env) |
