gbuild-to-ide: fix testide problem
this patch fix some problem in the class testVS2013Ide: fix some tag xml bad generated, i test the project pocheck and it compiles. Change-Id: I5a4e3e71286a486e03ecbe936fb848e589ff71c9 Reviewed-on: https://gerrit.libreoffice.org/34739 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@libreoffice.org>
This commit is contained in:
committed by
jan iversen
parent
6f3bb068cc
commit
d0cc5fcd5b
+12
-16
@@ -197,20 +197,15 @@ class testVS2013Ide(IdeIntegrationGenerator):
|
||||
self.toolset = self.retrieve_toolset()
|
||||
self.solution_directory = './windows'
|
||||
self.configurations = {
|
||||
'Build': {
|
||||
'Release': {
|
||||
'build': self.module_make_command('%(target)s'),
|
||||
'clean': self.module_make_command('%(target)s.clean'),
|
||||
'rebuild': self.module_make_command('%(target)s.clean %(target)s')
|
||||
},
|
||||
'Unit Tests': {
|
||||
'Debug': {
|
||||
'build': self.module_make_command('unitcheck'),
|
||||
'clean': self.module_make_command('clean'),
|
||||
'rebuild': self.module_make_command('clean unitcheck'),
|
||||
},
|
||||
'Integration tests': {
|
||||
'build': self.module_make_command('unitcheck slowcheck screenshot subsequentcheck'),
|
||||
'clean': self.module_make_command('clean'),
|
||||
'rebuild': self.module_make_command('clean unitcheck slowcheck screenshot subsequentcheck')
|
||||
}
|
||||
}
|
||||
srcdir=self.gbuildparser.get_json_srcdir()
|
||||
@@ -221,7 +216,7 @@ class testVS2013Ide(IdeIntegrationGenerator):
|
||||
pass
|
||||
|
||||
def retrieve_toolset(self):
|
||||
return {'vs2013': 'v120', 'vs2015': 'v140'}.get(self.ide, None)
|
||||
return {'vs2013': 'v120', 'vs2015': 'v140', 'testIde':'v120'}.get(self.ide, None)
|
||||
|
||||
def module_make_command(self, targets):
|
||||
return '%(sh)s -c "PATH=\\"/bin:$PATH\\";BUILDDIR=\\"%(builddir)s\\" %(makecmd)s -rsC %(location)s ' + targets + '"'
|
||||
@@ -442,12 +437,12 @@ class testVS2013Ide(IdeIntegrationGenerator):
|
||||
conf_node.text = configuration
|
||||
platform_node = ET.SubElement(proj_conf_node, '{%s}Platform' % ns)
|
||||
platform_node.text = platform
|
||||
#globals
|
||||
globals_node = ET.SubElement(proj_node, '{%s}PropertyGroup' % ns, Label='Globals')
|
||||
proj_guid_node = ET.SubElement(globals_node, '{%s}ProjectGuid' % ns)
|
||||
proj_guid_node.text = '{%s}' % project_guid
|
||||
proj_root_namespace=ET.SubElement(globals_node, '{%s}RootNamespace' % ns)
|
||||
proj_root_namespace.text = target['target_name']
|
||||
#globals
|
||||
globals_node = ET.SubElement(proj_node, '{%s}PropertyGroup' % ns, Label='Globals')
|
||||
proj_guid_node = ET.SubElement(globals_node, '{%s}ProjectGuid' % ns)
|
||||
proj_guid_node.text = '{%s}' % project_guid
|
||||
proj_root_namespace=ET.SubElement(globals_node, '{%s}RootNamespace' % ns)
|
||||
proj_root_namespace.text = target['target_name']
|
||||
|
||||
|
||||
ET.SubElement(proj_node, '{%s}Import' % ns, Project='$(VCTargetsPath)\Microsoft.Cpp.Default.props')
|
||||
@@ -475,7 +470,7 @@ class testVS2013Ide(IdeIntegrationGenerator):
|
||||
#compiler options
|
||||
cl_compile=ET.SubElement(item_def_group,'{%s}ClCompile' % ns)
|
||||
warn_lvl=ET.SubElement(cl_compile,'{%s}WarningLevel' % ns)
|
||||
warn_lvl.text='Level 4'
|
||||
warn_lvl.text='Level4'
|
||||
opt_node=ET.SubElement(cl_compile,'{%s}Optimization' % ns)
|
||||
opt_node.text='Disabled'
|
||||
sdl_check=ET.SubElement(cl_compile,'{%s}SDLCheck' % ns)
|
||||
@@ -510,7 +505,8 @@ class testVS2013Ide(IdeIntegrationGenerator):
|
||||
#cxx files
|
||||
cxx_node=ET.SubElement(proj_node,'{%s}ItemGroup' % ns)
|
||||
for cxx_elem in target['CXXOBJECTS']:
|
||||
cxx_cl_node=ET.SubElement(cxx_node,'{%s}ClCompile' % ns,Include='../../' + cxx_elem)
|
||||
modulename=target['module']
|
||||
cxx_cl_node=ET.SubElement(cxx_node,'{%s}ClCompile' % ns,Include=os.path.join('../..', modulename, cxx_elem))
|
||||
#miss headers
|
||||
ET.SubElement(proj_node, '{%s}Import' % ns, Project='$(VCTargetsPath)\Microsoft.Cpp.targets')
|
||||
ET.SubElement(proj_node, '{%s}ImportGroup' % ns, Label='ExtensionTargets')
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
This is not supposed to work the way you might think. You can not
|
||||
build LibreOffice using this solution (or project), and you can not
|
||||
see all the source code using it.
|
||||
@@ -1,18 +0,0 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.40629.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "soffice", "soffice.vcxproj", "{4A0AC252-760E-4C2B-A408-C79CBA182370}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{4A0AC252-760E-4C2B-A408-C79CBA182370}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -1,84 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.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">
|
||||
<ProjectGuid>{4A0AC252-760E-4C2B-A408-C79CBA182370}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>soffice</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>..\instdir\program</OutDir>
|
||||
<IntDir />
|
||||
<TargetExt>.bin</TargetExt>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user