Skip to content

Commit

Permalink
Native Image Resources Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jchalou authored and john-heinnickel committed Aug 16, 2023
1 parent 0e8c351 commit 6d135e6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 25 deletions.
1 change: 1 addition & 0 deletions mx.truffleruby/mx_truffleruby.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def verify_ci(args):
],
support_distributions=[
'truffleruby:TRUFFLERUBY_GRAALVM_SUPPORT',
'truffleruby:TRUFFLERUBY_GRAALVM_SUPPORT_NO_NI_RESOURCES',
],
provided_executables=[
'bin/bundle',
Expand Down
60 changes: 35 additions & 25 deletions mx.truffleruby/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,29 +440,11 @@
},

"TRUFFLERUBY_GRAALVM_SUPPORT": {
"fileListPurpose": 'native-image-resources',
"native": True,
"platformDependent": True,
"description": "TruffleRuby support distribution for the GraalVM",
"layout": {
"./": [
"file:CHANGELOG.md",
"file:README.md",
"file:mx.truffleruby/native-image.properties",
],
"bin/": [
"file:exe/*",
],
"doc/": [
"file:doc/user",
"file:doc/legal",
],
"logo/": [
"file:logo/ATTRIBUTION.md",
"file:logo/LICENSE.txt",
],
"logo/png/": [
"file:logo/png/truffleruby_logo_horizontal_medium.png",
],
"lib/": [
"file:lib/json",
"file:lib/mri",
Expand Down Expand Up @@ -509,6 +491,39 @@
"lib/truffle/": [
"dependency:org.truffleruby.cext/src/main/c/spawn-helper/spawn-helper",
],
},
"license": [
"EPL-2.0", # JRuby (we're choosing EPL out of EPL,GPL,LGPL)
"MIT", # minitest, did_you_mean, rake
"BSD-simplified", # MRI
"BSD-new", # Rubinius, FFI
],
},

"TRUFFLERUBY_GRAALVM_SUPPORT_NO_NI_RESOURCES": {
"native": True,
"platformDependent": True,
"description": "TruffleRuby support distribution for the GraalVM, the contents is not included as native image resources.",
"layout": {
"./": [
"file:CHANGELOG.md",
"file:README.md",
"file:mx.truffleruby/native-image.properties",
],
"bin/": [
"file:exe/*",
],
"doc/": [
"file:doc/user",
"file:doc/legal",
],
"logo/": [
"file:logo/ATTRIBUTION.md",
"file:logo/LICENSE.txt",
],
"logo/png/": [
"file:logo/png/truffleruby_logo_horizontal_medium.png",
],
"src/main/c/openssl/": [
"file:src/main/c/openssl/extconf.rb",
"file:src/main/c/openssl/*.c",
Expand All @@ -519,15 +534,10 @@
},
],
},
"license": [
"EPL-2.0", # JRuby (we're choosing EPL out of EPL,GPL,LGPL)
"MIT", # minitest, did_you_mean, rake
"BSD-simplified", # MRI
"BSD-new", # Rubinius, FFI
],
},

"TRUFFLERUBY_GRAALVM_LICENSES": {
"fileListPurpose": 'native-image-resources',
"native": True,
"platformDependent": True,
"description": "TruffleRuby support distribution for the GraalVM license files",
Expand Down

0 comments on commit 6d135e6

Please sign in to comment.