mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 10:36:02 +00:00
Ports: Add port for mruby
This commit is contained in:
parent
16ad297078
commit
0f3f814945
Notes:
sideshowbarker
2024-07-18 05:19:04 +09:00
Author: https://github.com/dantecatalfamo 🔰
Commit: 0f3f814945
Pull-request: https://github.com/SerenityOS/serenity/pull/9525
Reviewed-by: https://github.com/kennethmyhra ✅
4 changed files with 55 additions and 0 deletions
19
Ports/mruby/patches/serenity-build-conf.patch
Normal file
19
Ports/mruby/patches/serenity-build-conf.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- /dev/null 2021-08-20 13:32:02.136545596 -0400
|
||||
+++ mruby-3.0.0/build_config/serenity.rb 2021-08-20 14:18:09.673875364 -0400
|
||||
@@ -0,0 +1,16 @@
|
||||
+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
|
Loading…
Add table
Add a link
Reference in a new issue