Debian Codegraph @

vendor/mruby-source/build_config/serenity.rb

raw
1 # Cross compiling configuration for SerenityOS
2 # Graphical Unix-like operating system for x86 computers.
3 # https://github.com/SerenityOS/serenity
4 #
5 # Should be built using the SerenityOS Ports system
6 # https://github.com/SerenityOS/serenity/tree/master/Ports
7 #
8 # As of 2021/08/20, SERENITY_ARCH is defined in the SerenityOS Ports
9 # build script to always be either "i686" or "x86_64"
10
11 MRuby::CrossBuild.new('serenity') do |conf|
12 conf.toolchain :gcc
13
14 conf.archiver.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-ar"
15 conf.linker.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-g++"
16
17 conf.cxx.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-g++"
18 conf.cxx.defines << (ENV['SERENITY_ARCH'].include?('64') ? 'MRB_64BIT' : 'MRB_32BIT')
19
20 conf.cc.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-gcc"
21 conf.cc.defines << (ENV['SERENITY_ARCH'].include?('64') ? 'MRB_64BIT' : 'MRB_32BIT')
22
23 conf.gembox 'full-core'
24
25 conf.test_runner.command = 'env'
26 end