examples/win32test/win32test.vc10.vcxproj
author gabriele at naustech dot com
Thu, 12 Jun 2014 14:07:16 +0200
changeset 791 7740ac6fdedc
parent 731 c4793e10e04f
permissions -rw-r--r--
Fix : libcanfestival_unix.a not built if examples are not compiled

Problem: when building Canfestival with unix timers 'libcanfestiva_unix.a'
is built only if you build examples too.

Test case:

$ ./configure --timers=unix --can=socket --target=unix
$ make canfestival

...

no errors but 'libcanfestival_unix.a' is not built:
$ find . -name "*.a"
./src/libcanfestival.a

Changing line 90 of 'drivers/unix/Makefile.in' to:
#driver: $(OBJS)
driver: libcanfestival_$(TARGET).a

solves the problem:

$ ./configure --timers=unix --can=socket --target=unix
$ make canfestival

...

$ find . -name "*.a"
./drivers/unix/libcanfestival_unix.a
./src/libcanfestival.a
709
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
     2
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
     3
  <ItemGroup Label="ProjectConfigurations">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
     4
    <ProjectConfiguration Include="Debug|Win32">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
     5
      <Configuration>Debug</Configuration>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
     6
      <Platform>Win32</Platform>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
     7
    </ProjectConfiguration>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
     8
    <ProjectConfiguration Include="Release|Win32">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
     9
      <Configuration>Release</Configuration>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    10
      <Platform>Win32</Platform>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    11
    </ProjectConfiguration>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    12
  </ItemGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    13
  <PropertyGroup Label="Globals">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    14
    <ProjectName>win32test</ProjectName>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    15
    <ProjectGuid>{BD8B1FE1-89CD-4F89-8275-0F553FA71059}</ProjectGuid>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    16
    <Keyword>Win32Proj</Keyword>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    17
  </PropertyGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    18
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    19
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    20
    <ConfigurationType>Application</ConfigurationType>
725
54b0c6de4e15 Win32 VS2010 project files:
Christian Taedcke <hacking@taedcke.com>
parents: 709
diff changeset
    21
    <CharacterSet>Unicode</CharacterSet>
709
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    22
  </PropertyGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    23
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    24
    <ConfigurationType>Application</ConfigurationType>
731
c4793e10e04f VS2010 project files:
Christian Taedcke <hacking@taedcke.com>
parents: 725
diff changeset
    25
    <CharacterSet>MultiByte</CharacterSet>
709
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    26
  </PropertyGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    27
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    28
  <ImportGroup Label="ExtensionSettings">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    29
  </ImportGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    30
  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    31
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    32
    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    33
  </ImportGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    34
  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    35
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    36
    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    37
  </ImportGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    38
  <PropertyGroup Label="UserMacros" />
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    39
  <PropertyGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    40
    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    41
    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../Debug\</OutDir>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    42
    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Debug\</IntDir>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    43
    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    44
    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../Release\</OutDir>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    45
    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Release\</IntDir>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    46
    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    47
  </PropertyGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    48
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    49
    <ClCompile>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    50
      <Optimization>Disabled</Optimization>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    51
      <AdditionalIncludeDirectories>../../include;../../include/win32;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    52
      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    53
      <MinimalRebuild>true</MinimalRebuild>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    54
      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    55
      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    56
      <PrecompiledHeader>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    57
      </PrecompiledHeader>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    58
      <WarningLevel>Level3</WarningLevel>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    59
      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
725
54b0c6de4e15 Win32 VS2010 project files:
Christian Taedcke <hacking@taedcke.com>
parents: 709
diff changeset
    60
      <ProgramDataBaseFileName>$(OutDir)$(ProjectName).pdb</ProgramDataBaseFileName>
709
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    61
    </ClCompile>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    62
    <Link>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    63
      <OutputFile>$(OutDir)win32test.exe</OutputFile>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    64
      <AdditionalLibraryDirectories>../../Debug UNICODE;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    65
      <GenerateDebugInformation>true</GenerateDebugInformation>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    66
      <ProgramDatabaseFile>$(OutDir)win32test.pdb</ProgramDatabaseFile>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    67
      <SubSystem>Console</SubSystem>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    68
      <RandomizedBaseAddress>false</RandomizedBaseAddress>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    69
      <DataExecutionPrevention>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    70
      </DataExecutionPrevention>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    71
      <TargetMachine>MachineX86</TargetMachine>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    72
    </Link>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    73
  </ItemDefinitionGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    74
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    75
    <ClCompile>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    76
      <AdditionalIncludeDirectories>../../include;../../include/win32;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    77
      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    78
      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    79
      <PrecompiledHeader>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    80
      </PrecompiledHeader>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    81
      <WarningLevel>Level3</WarningLevel>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    82
      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    83
    </ClCompile>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    84
    <Link>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    85
      <OutputFile>$(OutDir)win32test.exe</OutputFile>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    86
      <AdditionalLibraryDirectories>../../Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    87
      <GenerateDebugInformation>true</GenerateDebugInformation>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    88
      <SubSystem>Console</SubSystem>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    89
      <OptimizeReferences>true</OptimizeReferences>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    90
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    91
      <RandomizedBaseAddress>false</RandomizedBaseAddress>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    92
      <DataExecutionPrevention>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    93
      </DataExecutionPrevention>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    94
      <TargetMachine>MachineX86</TargetMachine>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    95
    </Link>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    96
  </ItemDefinitionGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    97
  <ItemGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    98
    <ClCompile Include="main.c" />
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
    99
    <ClCompile Include="win32test.c" />
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   100
  </ItemGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   101
  <ItemGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   102
    <ClInclude Include="win32test.h" />
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   103
  </ItemGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   104
  <ItemGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   105
    <ProjectReference Include="..\..\CanFestival-3.vc10.vcxproj">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   106
      <Project>{50ef2507-9b87-4525-8b19-80eb42e67079}</Project>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   107
      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   108
    </ProjectReference>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   109
  </ItemGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   110
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   111
  <ImportGroup Label="ExtensionTargets">
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   112
  </ImportGroup>
Christian Taedcke <hacking@taedcke.com>
parents:
diff changeset
   113
</Project>