disable most of everything else

This commit is contained in:
Corwin Kuiper 2021-07-03 18:30:49 +01:00
parent 08655ea9ee
commit df93af002b
2 changed files with 20 additions and 2 deletions

View file

@ -10,7 +10,26 @@ cd mgba-${MGBA_VERSION}
rm -rf build
mkdir -p build
cd build
cmake .. -DBUILD_STATIC=ON -DBUILD_SHARED=OFF -DDISABLE_FRONTENDS=ON -DBUILD_GL=OFF -DBUILD_GLES2=OFF -DUSE_DISCORD_RPC=OFF -DUSE_PNG=OFF
cmake .. \
-DBUILD_STATIC=ON \
-DBUILD_SHARED=OFF \
-DDISABLE_FRONTENDS=ON \
-DBUILD_GL=OFF \
-DBUILD_GLES2=OFF \
-DUSE_GDB_STUB=OFF \
-DUSE_FFMPEG=OFF \
-DUSE_ZLIB=OFF \
-DUSE_MINIZIP=OFF \
-DUSE_PNG=OFF \
-DUSE_LIBZIP=OFF \
-DUSE_SQLITE3=OFF \
-DUSE_ELF=ON \
-DM_CORE_GBA=ON \
-DM_CORE_GB=OFF \
-DUSE_LZMA=OFF \
-DUSE_DISCORD_RPC=OFF \
-DENABLE_SCRIPTING=OFF \
-DUSE_EPOXY=OFF
make
cp libmgba.a ../../libmgba-cycle.a

View file

@ -13,7 +13,6 @@ fn main() {
.expect("should be able to build mgba");
println!("cargo:rustc-link-search={}", out_path.to_str().unwrap());
println!("cargo:rustc-link-lib=static={}", "mgba-cycle");
println!("cargo:rustc-link-lib=z");
println!("cargo:rustc-link-lib=elf");
cc::Build::new()