diff options
| author | Flaise <[email protected]> | 2019-07-29 19:19:39 -0500 |
|---|---|---|
| committer | Matthew Collins <[email protected]> | 2019-07-30 10:36:45 +0100 |
| commit | 9e38d919e146def64b5f535ea183db85de93b3e2 (patch) | |
| tree | 7d67114c7ab9b81887195da59c6b095b33832ec5 | |
| parent | Fixed build script on Windows (diff) | |
| download | steamworks-rs-9e38d919e146def64b5f535ea183db85de93b3e2.tar.xz steamworks-rs-9e38d919e146def64b5f535ea183db85de93b3e2.zip | |
Fixed build script on Linux
| -rwxr-xr-x | steamworks-sys/build.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/steamworks-sys/build.rs b/steamworks-sys/build.rs index 031f598..3cb5e20 100755 --- a/steamworks-sys/build.rs +++ b/steamworks-sys/build.rs @@ -9,6 +9,7 @@ struct SteamApi { structs: Vec<SteamStruct>, enums: Vec<SteamEnum>, } + #[derive(Deserialize)] struct SteamTypedef { typedef: String, @@ -246,6 +247,8 @@ pub struct {} {{"#, packing, derive, s.struct_)?; fs::copy(link_path.join(&file_name), out_path.join(file_name))?; } else if triple.contains("darwin") { fs::copy(link_path.join("libsteam_api.dylib"), out_path.join("libsteam_api.dylib"))?; + } else if triple.contains("linux") { + fs::copy(link_path.join("libsteam_api.so"), out_path.join("libsteam_api.so"))?; } let mut compiler = cc::Build::new(); @@ -253,7 +256,7 @@ pub struct {} {{"#, packing, derive, s.struct_)?; .cpp(true) .include(sdk_loc.join("public/steam")) .file("src/lib.cpp"); - if triple.contains("darwin") { + if triple.contains("darwin") || triple.contains("linux") { compiler.flag("-std=c++11"); } compiler.compile("steamrust"); |