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

Sat, 03 Aug 2019 13:46:43 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 03 Aug 2019 13:46:43 +0200
changeset 7
686991ae6e2f
parent 0
38775db5fdf5
child 40
b42bfc9e9983
permissions
-rw-r--r--

add configureable make variables

/*
 * 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 java.util.List;
import java.util.LinkedList;

/**
 *
 * @author olaf
 */
public class OptionValue {
    Option option;
    
    String value;
    
    TargetData targetData = new TargetData();
    
    public OptionValue(Option opt) {
        option = opt;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public List<String> getDependencies() {
        return targetData.getDependencies();
    }

    public List<Define> getDefines() {
        return targetData.getDefines();
    }
    
    public void setTargetData(TargetData data) {
        targetData = data;
    }
    
    public String getFunc() {
        return option.getValueFunc(value);
    }
    
    public String getMake() {
        return targetData.getMake();
    }
    
    public boolean hasMake() {
        return targetData.getMake().trim().length() > 0;
    }
}

mercurial