mirror of https://github.com/ppy/SDL3-CS.git
Reset git tree before generate/build
This commit is contained in:
parent
e207e72b6a
commit
a035dd9f99
|
|
@ -87,6 +87,7 @@ fi
|
||||||
|
|
||||||
# Build SDL
|
# Build SDL
|
||||||
pushd SDL >/dev/null
|
pushd SDL >/dev/null
|
||||||
|
git reset --hard HEAD
|
||||||
cmake -B build $FLAGS -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSDL_SHARED_ENABLED_BY_DEFAULT=ON -DSDL_STATIC_ENABLED_BY_DEFAULT=ON
|
cmake -B build $FLAGS -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSDL_SHARED_ENABLED_BY_DEFAULT=ON -DSDL_STATIC_ENABLED_BY_DEFAULT=ON
|
||||||
cmake --build build/ --config Release
|
cmake --build build/ --config Release
|
||||||
$SUDO cmake --install build/ --prefix install_output --config Release
|
$SUDO cmake --install build/ --prefix install_output --config Release
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,14 @@ headers = [
|
||||||
add("SDL3/SDL_vulkan.h"),
|
add("SDL3/SDL_vulkan.h"),
|
||||||
]
|
]
|
||||||
|
|
||||||
def patch_sdl_types():
|
def prepare_sdl_source():
|
||||||
|
subprocess.run([
|
||||||
|
"git",
|
||||||
|
"reset",
|
||||||
|
"--hard",
|
||||||
|
"HEAD"
|
||||||
|
], cwd = SDL_root)
|
||||||
|
|
||||||
subprocess.run([
|
subprocess.run([
|
||||||
"git",
|
"git",
|
||||||
"apply",
|
"apply",
|
||||||
|
|
@ -298,7 +305,7 @@ def get_string_returning_functions(sdl_api):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
patch_sdl_types()
|
prepare_sdl_source()
|
||||||
|
|
||||||
sdl_api = get_sdl_api_dump()
|
sdl_api = get_sdl_api_dump()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue