ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
27 lines
954 B
Ruby
27 lines
954 B
Ruby
# Cross compiling configuration for SerenityOS
|
|
# Graphical Unix-like operating system for x86 computers.
|
|
# https://github.com/SerenityOS/serenity
|
|
#
|
|
# Should be built using the SerenityOS Ports system
|
|
# https://github.com/SerenityOS/serenity/tree/master/Ports
|
|
#
|
|
# As of 2021/08/20, SERENITY_ARCH is defined in the SerenityOS Ports
|
|
# build script to always be either "i686" or "x86_64"
|
|
|
|
MRuby::CrossBuild.new('serenity') do |conf|
|
|
conf.toolchain :gcc
|
|
|
|
conf.archiver.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-ar"
|
|
conf.linker.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-g++"
|
|
|
|
conf.cxx.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-g++"
|
|
conf.cxx.defines << (ENV['SERENITY_ARCH'].include?('64') ? 'MRB_64BIT' : 'MRB_32BIT')
|
|
|
|
conf.cc.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-gcc"
|
|
conf.cc.defines << (ENV['SERENITY_ARCH'].include?('64') ? 'MRB_64BIT' : 'MRB_32BIT')
|
|
|
|
conf.gembox 'full-core'
|
|
|
|
conf.test_runner.command = 'env'
|
|
end
|