You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
SCons: Generate all scripts natively
This commit is contained in:
@@ -43,33 +43,6 @@ def detect_arch():
|
||||
return "x86_64"
|
||||
|
||||
|
||||
def generate_export_icons(platform_path, platform_name):
|
||||
"""
|
||||
Generate headers for logo and run icon for the export plugin.
|
||||
"""
|
||||
export_path = platform_path + "/export"
|
||||
svg_names = []
|
||||
if os.path.isfile(export_path + "/logo.svg"):
|
||||
svg_names.append("logo")
|
||||
if os.path.isfile(export_path + "/run_icon.svg"):
|
||||
svg_names.append("run_icon")
|
||||
|
||||
for name in svg_names:
|
||||
with open(export_path + "/" + name + ".svg", "rb") as svgf:
|
||||
b = svgf.read(1)
|
||||
svg_str = " /* AUTOGENERATED FILE, DO NOT EDIT */ \n"
|
||||
svg_str += " static const char *_" + platform_name + "_" + name + '_svg = "'
|
||||
while len(b) == 1:
|
||||
svg_str += "\\" + hex(ord(b))[1:]
|
||||
b = svgf.read(1)
|
||||
|
||||
svg_str += '";\n'
|
||||
|
||||
wf = export_path + "/" + name + "_svg.gen.h"
|
||||
|
||||
methods.write_file_if_needed(wf, svg_str)
|
||||
|
||||
|
||||
def get_build_version(short):
|
||||
import version
|
||||
|
||||
|
||||
Reference in New Issue
Block a user