blob: cd75cec638535395ff53fbbb745ede7939cf63ac [file] [log] [blame]
[comment encoding = UTF-8 /]
[comment]
/*****************************************************************************
* Copyright (c) 2013 INTEMPORA S.A.
*
* This software is a computer program whose purpose is to transform RobotML models
* into RTMaps diagrams and RTMaps components via source code generation techniques.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Nicolas DU LAC (INTEMPORA) - Initial API and implementation
*
*****************************************************************************/
[/comment]
[module generate_rtmaps_vc2010_project_vcxproj('http://www.eclipse.org/uml2/3.0.0/UML', 'http://Papyrus/RobotML/1')]
[import org::eclipse::papyrus::robotml::generators::common::mmqueries::GeneralQueries /]
[import org::eclipse::papyrus::robotml::generators::common::mmqueries::ArchitectureQueries /]
[template public generateRTMapsVC2010ProjectVCXPROJ(model : Model)]
[file ('user_sdk/'+ model.name + '.u/rtmaps_' + model.name + '_vc2010.vcxproj', false, 'UTF-8')]
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectName>rtmaps_[model.name/]</ProjectName>
<ProjectGuid>{A36E0705-729F-4AFD-8DE7-EF205F5FBCEE}</ProjectGuid>
<RootNamespace>rtmaps_[model.name/]</RootNamespace>
<SccLocalPath>.</SccLocalPath>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(RTMAPS_SDKDIR)\templates.u\RTMaps_x86_Debug_vc2010.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(RTMAPS_SDKDIR)\templates.u\RTMaps_x86_Release_vc2010.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<!-- [protected ('Additional libs - Release Win32')]
-->
<Link>
<DataExecutionPrevention>
</DataExecutionPrevention>
<AdditionalDependencies>msvcprt.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<!-- [/protected]
-->
<!-- [protected ('Additional includes - Release Win32')]
-->
<ClCompile>
<AdditionalIncludeDirectories>..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<!-- [/protected]
-->
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<!-- [protected ('Additional libs - Debug Win32')]
-->
<Link>
<DataExecutionPrevention>
</DataExecutionPrevention>
<AdditionalDependencies>msvcprt.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<!-- [/protected]
-->
<!-- [protected ('Additional includes - Debug Win32')]
-->
<ClCompile>
<AdditionalIncludeDirectories>..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<!-- [/protected]
-->
</ItemDefinitionGroup>
<ItemGroup Label="RTMaps_sources">
<None Include="rtmaps_[model.name/].pckinfo" />
</ItemGroup>
<ItemGroup Label="RTMaps_headers">
[for (elt: NamedElement | getComponentModels(model))]
[if (isMacroComponent(elt.oclAsType(Class)) = false)]
<ClCompile Include="src\maps_[elt.name/].cpp"/>
[/if]
[/for]
</ItemGroup>
<ItemGroup>
[for (elt: NamedElement | getComponentModels(model))]
[if (isMacroComponent(elt.oclAsType(Class)) = false)]
<ClInclude Include="local_interfaces\maps_[elt.name/].h"/>
[/if]
[/for]
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
[/file]
[/template]