Login
gpcr/examples/toolchain_packages.cr
Login

[edit]

examples/toolchain_packages.cr @ trunk

PACKAGES

name: String version: String configure_flags: Str.. profile: String enabled: Bool binutils 2.42 --disable-nls --with.. cross true gcc 13.3.0 --enable-languages=c.. cross true linux-headers 6.6 sysroot true glibc 2.39 --enable-kernel=5.15.. sysroot true gcc-final 13.3.0 --enable-languages=c.. final true musl 1.2.5 --enable-shared --en.. final false
scale = 0.75
fontscale = 1.500
H0: box wid 1.136 ht 0.340 fill 0x4C97FF color 0x4C97FF
text "name: String" color white at H0
H1: box wid 1.280 ht 0.340 fill 0x4C97FF color 0x4C97FF with .nw at H0.ne
text "version: String" color white at H1
H2: box wid 2.500 ht 0.340 fill 0x4C97FF color 0x4C97FF with .nw at H1.ne
text "configure_flags: Str.." color white at H2
H3: box wid 1.280 ht 0.340 fill 0x4C97FF color 0x4C97FF with .nw at H2.ne
text "profile: String" color white at H3
H4: box wid 1.136 ht 0.340 fill 0x4C97FF color 0x4C97FF with .nw at H3.ne
text "enabled: Bool" color white at H4
R0C0: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at H0.sw
text "binutils" at R0C0
R0C1: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R0C0.ne
text "2.42" at R0C1
R0C2: box wid 2.500 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R0C1.ne
text "--disable-nls --with.." at R0C2
R0C3: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R0C2.ne
text "cross" at R0C3
R0C4: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R0C3.ne
text "true" at R0C4
R1C0: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R0C0.sw
text "gcc" at R1C0
R1C1: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R1C0.ne
text "13.3.0" at R1C1
R1C2: box wid 2.500 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R1C1.ne
text "--enable-languages=c.." at R1C2
R1C3: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R1C2.ne
text "cross" at R1C3
R1C4: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R1C3.ne
text "true" at R1C4
R2C0: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R1C0.sw
text "linux-headers" at R2C0
R2C1: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R2C0.ne
text "6.6" at R2C1
R2C2: box wid 2.500 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R2C1.ne
text "" at R2C2
R2C3: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R2C2.ne
text "sysroot" at R2C3
R2C4: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R2C3.ne
text "true" at R2C4
R3C0: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R2C0.sw
text "glibc" at R3C0
R3C1: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R3C0.ne
text "2.39" at R3C1
R3C2: box wid 2.500 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R3C1.ne
text "--enable-kernel=5.15.." at R3C2
R3C3: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R3C2.ne
text "sysroot" at R3C3
R3C4: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R3C3.ne
text "true" at R3C4
R4C0: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R3C0.sw
text "gcc-final" at R4C0
R4C1: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R4C0.ne
text "13.3.0" at R4C1
R4C2: box wid 2.500 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R4C1.ne
text "--enable-languages=c.." at R4C2
R4C3: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R4C2.ne
text "final" at R4C3
R4C4: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R4C3.ne
text "true" at R4C4
R5C0: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R4C0.sw
text "musl" at R5C0
R5C1: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R5C0.ne
text "1.2.5" at R5C1
R5C2: box wid 2.500 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R5C1.ne
text "--enable-shared --en.." at R5C2
R5C3: box wid 1.280 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R5C2.ne
text "final" at R5C3
R5C4: box wid 1.136 ht 0.340 fill 0xF5F5F5 color 0xCCCCCC with .nw at R5C3.ne
text "false" at R5C4

crystal source

@[GPCR::TableSchema]
struct Package
  property name : String
  property version : String
  property configure_flags : String
  property profile : String
  property enabled : Bool

  def initialize(@name, @version, @configure_flags, @profile, @enabled)
  end
end

PACKAGES = [
  Package.new("binutils", "2.42", "--disable-nls --with-sysroot", "cross", true),
  Package.new("gcc", "13.3.0", "--enable-languages=c,c++ --disable-multilib", "cross", true),
  Package.new("linux-headers", "6.6", "", "sysroot", true),
  Package.new("glibc", "2.39", "--enable-kernel=5.15 --with-headers", "sysroot", true),
  Package.new("gcc-final", "13.3.0", "--enable-languages=c,c++ --enable-threads=posix", "final", true),
  Package.new("musl", "1.2.5", "--enable-shared --enable-static", "final", false),
]

json block

{
  "kind": "table",
  "name": "PACKAGES",
  "doc": null,
  "headers": [
    "name: String",
    "version: String",
    "configure_flags: String",
    "profile: String",
    "enabled: Bool"
  ],
  "rows": [
    [
      "binutils",
      "2.42",
      "--disable-nls --with-sysroot",
      "cross",
      "true"
    ],
    [
      "gcc",
      "13.3.0",
      "--enable-languages=c,c++ --disable-multilib",
      "cross",
      "true"
    ],
    [
      "linux-headers",
      "6.6",
      "",
      "sysroot",
      "true"
    ],
    [
      "glibc",
      "2.39",
      "--enable-kernel=5.15 --with-headers",
      "sysroot",
      "true"
    ],
    [
      "gcc-final",
      "13.3.0",
      "--enable-languages=c,c++ --enable-threads=posix",
      "final",
      "true"
    ],
    [
      "musl",
      "1.2.5",
      "--enable-shared --enable-static",
      "final",
      "false"
    ]
  ],
  "type_name": "Package"
}