
org.robovm.compiler.config.SwiftSupport Maven / Gradle / Ivy
package org.robovm.compiler.config;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Configuration entry for Swift language related configurations
*/
public class SwiftSupport {
/**
* specifies if swift support is enabled, allows to disable it if required
*/
@Element(required = false)
private boolean enable = true;
/**
* path where swift library to be looked at
* also these libraries will be added to linker library search path
*/
@ElementList(required = false, entry = "path")
private ArrayList swiftLibPaths;
/**
* specifies if swift runtime libraries to be copied
*/
@Element(required = false)
private boolean copySwiftLibs = true;
public boolean isEnabled() {
return enable;
}
public List getSwiftLibPaths() {
return swiftLibPaths == null ? Collections.emptyList()
: Collections.unmodifiableList(swiftLibPaths);
}
public boolean shouldCopySwiftLibs() {
return copySwiftLibs;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy