Eliminate lpx-paths.hpp, which contains hardwired paths.
This commit is contained in:
14
build.py
14
build.py
@@ -247,19 +247,6 @@ def generate_buildconfiguration_xml():
|
||||
target2.write_text(template)
|
||||
|
||||
|
||||
def generate_lpx_paths():
|
||||
"""
|
||||
Unreal needs to be able to find the Luprex DLL, and it also needs to find the
|
||||
Lua source code. For now, we just compile some hardwired paths into the
|
||||
binary. Someday we'll do something more sophisticated.
|
||||
"""
|
||||
target = Path(f"{INTEGRATION}/Source/Integration/lpx-paths.hpp")
|
||||
line1 = f'#define LUPREX_DLL_PATH "{INTEGRATION}/luprex/build/{OS}/luprexlib.{DLL}"'
|
||||
line2 = f'#define LUPREX_ROOT_PATH "{INTEGRATION}/luprex"'
|
||||
code = line1 + "\n" + line2 + "\n"
|
||||
target.unlink(missing_ok=True)
|
||||
target.write_text(code)
|
||||
|
||||
|
||||
def generate_integration_uproject():
|
||||
"""
|
||||
@@ -406,7 +393,6 @@ if MODE == "code-workspace":
|
||||
if MODE == "all":
|
||||
unzip_unreal_engine_and_apply_patch()
|
||||
generate_buildconfiguration_xml()
|
||||
generate_lpx_paths()
|
||||
generate_integration_uproject()
|
||||
run_unrealengine_setup_bat_replacement()
|
||||
run_generateprojectfiles_in_sandbox()
|
||||
|
||||
Reference in New Issue
Block a user