I hate new DUB config format

Matt Soucy via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 2 18:27:47 PST 2015


On 11/30/2015 01:07 PM, Luis wrote:
> name "dedcpu"
> authors "Luis Panadero Guardeño"
> targetType "none"
> license "BSD 3-clause"
> description "DCPU-16 tools"
> 
> subPackage {
>    name "lem1802"
>    description "Visual LEM1802 font editor"
>    targetType "executable"
>    targetName "lem1802"
>    excludedSourceFiles "src/bconv.d"
>    excludedSourceFiles "src/ddis.d"
>    libs "gtkd" platform="windows"
> 
>    configuration "nogtk" {
>       platforms "windows"
>    }
> 
>    configuration "gtk" {
>       platforms "posix"
>       dependency "gtk-d:gtkd" version="~>3.2.0"
>    }
> }

name: "dedcpu"
authors: "Luis Panadero Guardeño"
targetType: "none"
license: "BSD 3-clause"
description: "DCPU-16 tools"

subPackages:
  - name: "lem1802"
    description: "Visual LEM1802 font editor"
    targetType: "executable"
    targetName: "lem1802"
    excludedSourceFiles:
      - "src/bconv.d"
      - "src/ddis.d"
    libs:
      "gtkd": {"platform": "windows"}
    configurations:
      - name: "nogtk"
        platforms: ["windows"]
      - name: "gtk"
        platforms: ["posix"]
        dependencies:
          "gtk-d:gtkd": {"version": "~>3.2.0"}

One important thing to note is that any valid JSON object is also valid YAML. This would have allowed a much cleaner upgrade path.

I have to argue this point nearly every semester - the courseware for certain courses here (disclaimer: I'm one of the maintainers) is open source and relies on students submitting assignment links into a YAML file.

-- 
Matt Soucy
http://msoucy.me/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20151202/15074a67/attachment.sig>


More information about the Digitalmars-d mailing list