src/main/java/de/unixwork/uwproj/PkgConfigPackage.java

Sun, 03 Sep 2023 12:43:44 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 03 Sep 2023 12:43:44 +0200
changeset 38
02b000e40e5e
parent 0
38775db5fdf5
child 40
b42bfc9e9983
permissions
-rw-r--r--

fix missing initialization of CFLAGS and LDFLAGS when toolchain is unknown - fixes #288

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package de.unixwork.uwproj;

import org.w3c.dom.Element;

/**
 *
 * @author olaf
 */
public class PkgConfigPackage {
    private String name;
    private String atleast;
    private String maxVersion;

    public static PkgConfigPackage parse(Element e) throws Exception {
        PkgConfigPackage p = new PkgConfigPackage();
        String name = Xml.getContent(e);
        if(name != null) {
            p.setName(name);
        } else {
            throw new Exception("pkgconfig element: value required");
        }
        return p;
    }
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAtleast() {
        return atleast;
    }

    public void setAtleast(String atleast) {
        this.atleast = atleast;
    }

    public String getMaxVersion() {
        return maxVersion;
    }

    public void setMaxVersion(String maxVersion) {
        this.maxVersion = maxVersion;
    }
    
    public String getPkgConfigParam() {
        return name;
    }
}

mercurial