<?xml version="1.0" encoding="UTF-8"?>
<!--
	ANT
 
	Copyright 2022-2025 MicroEJ Corp. All rights reserved.
	MicroEJ Corp. PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
-->
<project name="vgInit">

	<dirname file="${ant.file.vgInit}" property="vgInit.dir"/>
	<import file="${vgInit.dir}/../extension-init.xml" />
	
	<!--
		The file [platform configuration project]/microvg/microvg.properties should contain 
		the property "implementation=xxx"
		
		Allowed values:
		- vglite
		- nema
		
		If the property is not set or file is not available, microvg vglite implementation 
		is used (backward compatible)
		
		This property must be set to build the firmwares and kernels (init/context) and to build 
		the features (dyninit/context).
		  
	-->
    <target name="vgInit/options">
	
		<property file="${vgInit.dir}/microvg.properties" prefix="com.microej.microvg"/>
	
		<!-- only "vglite" is available: force it by default (remove this line to use stub implementation and update comment upper) -->
		<property name="com.microej.microvg.implementation" value="vglite"/>
		
		<!-- Make the implementation name available to the image generator -->
		<addImageGeneratorProperty name="com.microej.microvg.implementation" value="${com.microej.microvg.implementation}"/>
		
		<!-- for the dynamic paths, the implementation can choose other sizes than default size -->
		<property name="com.microej.microvg.path.length" value="60" description="minimal size"/>
		<property name="com.microej.microvg.chunk.length" value="20" description="addon size"/>
	</target>
	
	<!-- Target to build the firmwares and kernels -->
    <target name="init/vg/options" extensionOf="init/context" depends="vgInit/options"/>
	
	<!-- Target to build the features -->
    <target name="dyninit/vg/options" extensionOf="dyninit/context" depends="vgInit/options"/>


</project>
