mirror of
https://github.com/xenia-project/xenia.git
synced 2024-11-30 06:50:34 +00:00
Add premake cmake generator.
`./build/CMakeLists.txt` is generated by `./xb.bat premake --devenv=cmake` and enables use of other IDEs like `CLion` for example.
This commit is contained in:
parent
2a076c924f
commit
9dea6b3f62
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -64,3 +64,6 @@
|
|||||||
[submodule "third_party/DirectXShaderCompiler"]
|
[submodule "third_party/DirectXShaderCompiler"]
|
||||||
path = third_party/DirectXShaderCompiler
|
path = third_party/DirectXShaderCompiler
|
||||||
url = https://github.com/microsoft/DirectXShaderCompiler.git
|
url = https://github.com/microsoft/DirectXShaderCompiler.git
|
||||||
|
[submodule "third_party/premake-cmake"]
|
||||||
|
path = third_party/premake-cmake
|
||||||
|
url = https://github.com/Enhex/premake-cmake.git
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
include("tools/build")
|
include("tools/build")
|
||||||
require("third_party/premake-export-compile-commands/export-compile-commands")
|
require("third_party/premake-export-compile-commands/export-compile-commands")
|
||||||
|
require("third_party/premake-cmake/cmake")
|
||||||
|
|
||||||
location(build_root)
|
location(build_root)
|
||||||
targetdir(build_bin)
|
targetdir(build_bin)
|
||||||
|
1
third_party/premake-cmake
vendored
Submodule
1
third_party/premake-cmake
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 26fbbb9962aefcb1c24aff1e7952033ce1361190
|
@ -372,9 +372,9 @@ def run_platform_premake(cc='clang', devenv=None):
|
|||||||
if 'VSVERSION' in os.environ:
|
if 'VSVERSION' in os.environ:
|
||||||
vs_version = os.environ['VSVERSION']
|
vs_version = os.environ['VSVERSION']
|
||||||
|
|
||||||
return run_premake('windows', 'vs' + vs_version)
|
return run_premake('windows', devenv or ('vs' + vs_version))
|
||||||
else:
|
else:
|
||||||
return run_premake('linux', devenv == 'codelite' and devenv or 'gmake2', cc)
|
return run_premake('linux', devenv or 'gmake2', cc)
|
||||||
|
|
||||||
|
|
||||||
def run_premake_export_commands():
|
def run_premake_export_commands():
|
||||||
|
Loading…
Reference in New Issue
Block a user