mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 13:15:47 -06:00
fix: emscripten libc, dynamic feature targets for emscripten, vcpkg triplets for linux
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -89,6 +89,7 @@ name = "pacman"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
|
"libc",
|
||||||
"sdl2",
|
"sdl2",
|
||||||
"spin_sleep",
|
"spin_sleep",
|
||||||
"tracing",
|
"tracing",
|
||||||
|
|||||||
14
Cargo.toml
14
Cargo.toml
@@ -13,7 +13,13 @@ tracing-error = "0.2.0"
|
|||||||
tracing-subscriber = {version = "0.3.17", features = ["env-filter"]}
|
tracing-subscriber = {version = "0.3.17", features = ["env-filter"]}
|
||||||
winapi = { version = "0.3", features = ["consoleapi", "fileapi", "handleapi", "processenv", "winbase", "wincon", "winnt", "winuser", "windef", "minwindef"] }
|
winapi = { version = "0.3", features = ["consoleapi", "fileapi", "handleapi", "processenv", "winbase", "wincon", "winnt", "winuser", "windef", "minwindef"] }
|
||||||
|
|
||||||
[dependencies.sdl2]
|
|
||||||
|
[target.'cfg(target_os = "emscripten")'.dependencies.sdl2]
|
||||||
|
version = "0.38"
|
||||||
|
default-features = false
|
||||||
|
features = ["ttf","image","gfx","mixer"]
|
||||||
|
|
||||||
|
[target.'cfg(not(target_os = "emscripten"))'.dependencies.sdl2]
|
||||||
version = "0.38"
|
version = "0.38"
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ["ttf","image","gfx","mixer","static-link","use-vcpkg"]
|
features = ["ttf","image","gfx","mixer","static-link","use-vcpkg"]
|
||||||
@@ -24,4 +30,8 @@ git = "https://github.com/microsoft/vcpkg"
|
|||||||
rev = "2024.05.24" # release 2024.05.24 # to check for a new one, check https://github.com/microsoft/vcpkg/releases
|
rev = "2024.05.24" # release 2024.05.24 # to check for a new one, check https://github.com/microsoft/vcpkg/releases
|
||||||
|
|
||||||
[package.metadata.vcpkg.target]
|
[package.metadata.vcpkg.target]
|
||||||
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-md" }
|
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-md" }
|
||||||
|
stable-x86_64-unknown-linux-gnu = { triplet = "x86_64-unknown-linux-gnu" }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "emscripten")'.dependencies]
|
||||||
|
libc = "0.2.16"
|
||||||
Reference in New Issue
Block a user