All Downloads are FREE. Search and download functionalities are using the official Maven repository.

flair.gradle.dependencies.Config.groovy Maven / Gradle / Ivy

package flair.gradle.dependencies

/**
 * @author SamYStudiO ( [email protected] )
 */
public enum Config {
	SOURCE( "source" , [ "src/main/actionscript" , "src/main/fonts" , "src/main/generated" ] ) ,
	LIBRARY( "library" , null , [ dir: "libs_swc" , include: "**/*.swc" ] ) ,
	AS_LIBRARY( "asLibrary" , [ "libs_as" ] ) ,
	NATIVE_LIBRARY( "nativeLibrary" , null , [ dir: "libs_ane" , include: "**/*.ane" ] ) ,
	PACKAGE( "pack" , [ "src/main/assets" ] ) ,

	IOS_COMPILE( "iosSource" , [ "src/ios/actionscript" , "src/ios/fonts" ] ) ,
	IOS_LIBRARY_COMPILE( "iosLibrary" ) ,
	IOS_AS_LIBRARY_COMPILE( "iosAsLibrary" ) ,
	IOS_NATIVE_COMPILE( "iosNativeLibrary" ) ,
	IOS_PACKAGE( "iosPack" , [ "src/ios/assets" ] ) ,

	ANDROID_COMPILE( "androidSource" , [ "src/android/actionscript" , "src/android/fonts" ] ) ,
	ANDROID_LIBRARY_COMPILE( "androidLibrary" ) ,
	ANDROID_AS_LIBRARY_COMPILE( "androidAsLibrary" ) ,
	ANDROID_NATIVE_COMPILE( "androidNativeLibrary" ) ,
	ANDROID_PACKAGE( "androidPack" , [ "src/android/assets" ] ) ,

	DESKTOP_COMPILE( "desktopSource" , [ "src/desktop/actionscript" , "src/desktop/fonts" ] ) ,
	DESKTOP_LIBRARY_COMPILE( "desktopLibrary" ) ,
	DESKTOP_AS_LIBRARY_COMPILE( "desktopAsLibrary" ) ,
	DESKTOP_NATIVE_COMPILE( "desktopNativeLibrary" ) ,
	DESKTOP_PACKAGE( "desktopPack" , [ "src/desktop/assets" ] ) ,

	public static final List DEFAULTS = [ SOURCE ,
												  LIBRARY ,
												  AS_LIBRARY ,
												  NATIVE_LIBRARY ,
												  PACKAGE ]

	private String name

	private List files

	private Map fileTree

	public Config( String name )
	{
		this.name = name
	}

	public Config( String name , List files , Map fileTree = null )
	{
		this.name = name
		this.files = files
		this.fileTree = fileTree
	}

	public String getName()
	{
		return name
	}

	public List getFiles()
	{
		return files
	}

	public Map getFileTree()
	{
		return fileTree
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy