🐛 Fixed OGRE 1.12.13 build on Windows
This commit is contained in:
parent
fafacf76f3
commit
4e871901dc
4
build.py
Normal file → Executable file
4
build.py
Normal file → Executable file
@ -1,7 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
import platform
|
||||
from glob import glob
|
||||
import yaml
|
||||
import subprocess
|
||||
@ -40,4 +38,4 @@ data = list(filter(lambda k: 'anotherfoxguy' in k, subprocess.run(
|
||||
['conan', 'search', '*', '--raw'], stdout=subprocess.PIPE).stdout.decode("utf-8").split()))
|
||||
|
||||
for d in data:
|
||||
system(f"conan upload {d} -r ror-v2 --all --force")
|
||||
system(f"conan upload {d} -r ror-v2 --all")
|
||||
|
@ -36,6 +36,8 @@ class OGREConan(ConanFile):
|
||||
def build(self):
|
||||
cmake = CMake(self)
|
||||
cmake.definitions["OGRE_BUILD_DEPENDENCIES"] = "OFF"
|
||||
cmake.definitions["OGRE_COPY_DEPENDENCIES"] = "OFF"
|
||||
cmake.definitions["OGRE_INSTALL_DEPENDENCIES"] = "OFF"
|
||||
cmake.definitions["OGRE_BUILD_COMPONENT_OVERLAY_IMGUI"] = "ON"
|
||||
cmake.definitions["OGRE_BUILD_COMPONENT_CSHARP"] = "OFF"
|
||||
cmake.definitions["OGRE_BUILD_COMPONENT_JAVA"] = "OFF"
|
||||
@ -46,9 +48,9 @@ class OGREConan(ConanFile):
|
||||
cmake.definitions["OGRE_BUILD_RENDERSYSTEM_D3D9"] = "ON"
|
||||
cmake.definitions["OGRE_BUILD_RENDERSYSTEM_D3D11"] = "ON"
|
||||
cmake.definitions["OGRE_BUILD_RENDERSYSTEM_GL3PLUS"] = "OFF"
|
||||
cmake.definitions["OGRE_RESOURCEMANAGER_STRICT"] = self.options.resourcemanager_strict
|
||||
cmake.definitions["OGRE_INSTALL_SAMPLES"] = "OFF"
|
||||
cmake.definitions["OGRE_BUILD_PLUGIN_DOT_SCENE"] = "OFF"
|
||||
cmake.definitions["OGRE_RESOURCEMANAGER_STRICT"] = self.options.resourcemanager_strict
|
||||
if os_info.is_windows:
|
||||
cmake.definitions["CMAKE_CXX_FLAGS"] = "-D_OGRE_FILESYSTEM_ARCHIVE_UNICODE"
|
||||
cmake.configure()
|
||||
|
Loading…
x
Reference in New Issue
Block a user