derle.sh 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # bu sürüm rustup ile derlenmiştir.
  2. mkdir "$KAYNAK_DIZIN/rust" || true
  3. export CARGO_HOME="$KAYNAK_DIZIN/rust"
  4. # https://bugzilla.mozilla.org/show_bug.cgi?id=1530052
  5. #patch -Np1 -i ../0001-Use-remoting-name-for-GDK-application-names.patch
  6. cat >.mozconfig <<END
  7. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-shared
  8. unset MOZ_TELEMETRY_REPORTING
  9. ac_add_options --prefix=/usr
  10. ac_add_options --enable-default-toolkit=cairo-gtk3
  11. ac_add_options --enable-application=browser
  12. ac_add_options --with-system-jpeg
  13. ac_add_options --with-system-zlib
  14. ac_add_options --with-system-nspr
  15. ac_add_options --with-system-nss
  16. ac_add_options --enable-av1
  17. ac_add_options --enable-system-ffi
  18. ac_add_options --enable-system-pixman
  19. ac_add_options --enable-alsa
  20. ac_add_options --enable-optimize
  21. ac_add_options --enable-release
  22. ac_add_options --enable-rust-simd
  23. ac_add_options --disable-debug-symbols
  24. ac_add_options --enable-official-branding
  25. ac_add_options --with-distribution-id=org.milislinux
  26. ac_add_options --enable-linker=lld
  27. ac_add_options --disable-tests
  28. ac_add_options --disable-debug
  29. ac_add_options --disable-updater
  30. ac_add_options --disable-crashreporter
  31. ac_add_options --disable-necko-wifi
  32. ac_add_options --disable-elf-hack
  33. ac_add_options --without-wasm-sandboxed-libraries
  34. END
  35. export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib
  36. export MOZ_MAKE_FLAGS="${MAKEJOBS}"
  37. export MOZBUILD_STATE_PATH=".mozbuild"
  38. export MOZ_NOSPAM=1
  39. export MACH_USE_SYSTEM_PYTHON=1
  40. # install cbindgen with cargo way
  41. cargo install cbindgen
  42. export PATH=/root/.cargo/bin/:$PATH
  43. ./mach build