-
Notifications
You must be signed in to change notification settings - Fork 50
/
ant_generator.xml
92 lines (86 loc) · 3.83 KB
/
ant_generator.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="ISO-8859-1"?> <project name="tresos" default="all" basedir=".">
<!--
* @file ant_generator.xml
* @version 1.0.1
*
* @brief AUTOSAR IntegrationFramework_TS_T40D2M10I1R0 - Tresos Studio plugin documentation configuration file.
* @details This file contains the links to the plugin documents for IntegrationFramework Tresos Studio plugin.
-->
<!--
====================================================================================================
* Project : AUTOSAR 4.2 MCAL
* Platform : ARM
* Peripheral : LPit
* Dependencies : none
*
* Autosar Version : 4.2.2
* Autosar Revision : ASR_REL_4_2_REV_0002
* Autosar Conf.Variant :
* SW Version : 1.0.1
* Build Version : S32K14x_MCAL_1_0_1_RTM_ASR_REL_4_2_REV_0002_20170831
*
* Copyright 2006-2016 Freescale Semiconductor, Inc. Copyright 2017-2018 NXP
* All Rights Reserved.
====================================================================================================
====================================================================================================
====================================================================================================
-->
<ng.getgeneratorvar name="outputDir" property="outputDirProp" />
<ng.getgeneratorvar name="postBuildVariant" property="postBuildVariantProp"/>
<target name="test.if.src.files.should.be.renamed">
<condition property="shouldSrcFilesBeRenamed" value="true" else="false">
<and>
<available file="${outputDirProp}\src" type="dir"/>
<isset property="postBuildVariantProp"/>
<not>
<equals arg1="${postBuildVariantProp}" arg2=""/>
</not>
</and>
</condition>
</target>
<target name="test.if.include.files.should.be.renamed">
<condition property="shouldIncludeFilesBeRenamed" value="true" else="false">
<and>
<available file="${outputDirProp}\include" type="dir"/>
<isset property="postBuildVariantProp"/>
<not>
<equals arg1="${postBuildVariantProp}" arg2=""/>
</not>
</and>
</condition>
</target>
<target name="renameSrcFiles" if="${shouldSrcFilesBeRenamed}" depends="test.if.src.files.should.be.renamed">
<move todir="${outputDirProp}\src">
<fileset dir="${outputDirProp}\src">
<include name="IntegrationFramework_*PBcfg.c"/>
<exclude name="IntegrationFramework_*_PBcfg.c"/>
</fileset>
<mapper type="glob" from="*PBcfg.c" to="*${postBuildVariantProp}_PBcfg.c"/>
</move>
<move todir="${outputDirProp}\src">
<fileset dir="${outputDirProp}\src">
<include name="IntegrationFramework_43_*PBcfg.c"/>
<exclude name="IntegrationFramework_43_*_*_PBcfg.c"/>
</fileset>
<mapper type="glob" from="*PBcfg.c" to="*${postBuildVariantProp}_PBcfg.c"/>
</move>
</target>
<target name="renameIncludeFiles" if="${shouldIncludeFilesBeRenamed}" depends="test.if.include.files.should.be.renamed">
<move todir="${outputDirProp}\include">
<fileset dir="${outputDirProp}\include">
<include name="IntegrationFramework_*PBcfg.h"/>
<exclude name="IntegrationFramework_*_PBcfg.h"/>
</fileset>
<mapper type="glob" from="*PBcfg.h" to="*${postBuildVariantProp}_PBcfg.h"/>
</move>
<move todir="${outputDirProp}\include">
<fileset dir="${outputDirProp}\include">
<include name="IntegrationFramework_43_*PBcfg.h"/>
<exclude name="IntegrationFramework_43_*_*_PBcfg.h"/>
</fileset>
<mapper type="glob" from="*PBcfg.h" to="*${postBuildVariantProp}_PBcfg.h"/>
</move>
</target>
<target name="all" depends="renameSrcFiles,renameIncludeFiles ">
</target>
</project>