Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/05/10 17:19:07 (15 years ago)
Author:
gkronber
Message:

Changed configuration so that file lists are not copied to output directory and added script to create a console application. #799

Location:
trunk/sources/HeuristicLab
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab/CopyAssemblies.cmd

    r2598 r2601  
    1 FOR /F "skip=1 tokens=1-2 delims=:" %%G IN (Files.txt) DO copy "%SolutionDir%\%%G\%Outdir%\%%H" .\
     1FOR /F "skip=1 tokens=1-2 delims=:" %%G IN (%ProjectDir%\Files.txt) DO copy "%SolutionDir%\%%G\%Outdir%\%%H" .\
    22
    33
    44echo "Platform: %Platform%, architecture: %PROCESSOR_ARCHITECTURE%"
    55if "%Platform%" == "x86" (   
    6   FOR /F "skip=1 tokens=*" %%G IN (Files.x86.txt) DO copy "%SolutionDir%\%%G" .\
     6  FOR /F "skip=1 tokens=*" %%G IN (%ProjectDir%\Files.x86.txt) DO copy "%SolutionDir%\%%G" .\
    77) else if "%Platform%" == "x64" (
    8   FOR /F "skip=1 tokens=*" %%G IN (Files.x64.txt) DO copy "%SolutionDir%\%%G" .\
     8  FOR /F "skip=1 tokens=*" %%G IN (%ProjectDir%\Files.x64.txt) DO copy "%SolutionDir%\%%G" .\
    99) else if "%Platform%" == "AnyCPU" (
    1010  if "%PROCESSOR_ARCHITECTURE%" == "x64" (
    11   FOR /F "skip=1 tokens=*" %%G IN (Files.x64.txt) DO copy "%SolutionDir%\%%G" .\
     11  FOR /F "skip=1 tokens=*" %%G IN (%ProjectDir%\Files.x64.txt) DO copy "%SolutionDir%\%%G" .\
    1212  ) else if "%PROCESSOR_ARCHITECTURE%" == "x86" (
    13   FOR /F "skip=1 tokens=*" %%G IN (Files.x86.txt) DO copy "%SolutionDir%\%%G" .\
     13  FOR /F "skip=1 tokens=*" %%G IN (%ProjectDir%\Files.x86.txt) DO copy "%SolutionDir%\%%G" .\
    1414  ) else (
    1515    echo "ERROR: unknown architecture: "%PROCESSOR_ARCHITECTURE%"
     
    1818  echo "ERROR: unknown platform: %Platform%"
    1919)
     20
     21echo "CopyAssemblies done"
  • trunk/sources/HeuristicLab/CustomPostBuildTemplate_UpdateLocalInstallation.cmd

    r2598 r2601  
    55copy HeuristicLab.PluginInfrastructure.dll "%target%"
    66
    7 FOR /F "skip=1 tokens=1-2 delims=:" %%G IN (Files.txt) DO copy "%SolutionDir%\%%G\%Outdir%\%%H" "%target%"
     7FOR /F "skip=1 tokens=1-2 delims=:" %%G IN (%ProjectDir%\Files.txt) DO copy "%SolutionDir%\%%G\%Outdir%\%%H" "%target%"
    88
    99
    1010echo "Platform: %Platform%, architecture: %PROCESSOR_ARCHITECTURE%"
    1111if "%Platform%" == "x86" (   
    12   FOR /F "skip=1 tokens=*" %%G IN (Files.x86.txt) DO copy "%SolutionDir%\%%G" "%target%"
     12  FOR /F "skip=1 tokens=*" %%G IN (%ProjectDir%\Files.x86.txt) DO copy "%SolutionDir%\%%G" "%target%"
    1313) else if "%Platform%" == "x64" (
    14   FOR /F "skip=1 tokens=*" %%G IN (Files.x64.txt) DO copy "%SolutionDir%\%%G" "%target%"
     14  FOR /F "skip=1 tokens=*" %%G IN (%ProjectDir%\Files.x64.txt) DO copy "%SolutionDir%\%%G" "%target%"
    1515) else if "%Platform%" == "AnyCPU" (
    1616  if "%PROCESSOR_ARCHITECTURE%" == "x64" (
    17   FOR /F "skip=1 tokens=*" %%G IN (Files.x64.txt) DO copy "%SolutionDir%\%%G" "%target%"
     17  FOR /F "skip=1 tokens=*" %%G IN (%ProjectDir%\Files.x64.txt) DO copy "%SolutionDir%\%%G" "%target%"
    1818  ) else if "%PROCESSOR_ARCHITECTURE%" == "x86" (
    19   FOR /F "skip=1 tokens=*" %%G IN (Files.x86.txt) DO copy "%SolutionDir%\%%G" "%target%"
     19  FOR /F "skip=1 tokens=*" %%G IN (%ProjectDir%\Files.x86.txt) DO copy "%SolutionDir%\%%G" "%target%"
    2020  ) else (
    2121    echo "ERROR: unknown architecture: "%PROCESSOR_ARCHITECTURE%"
     
    2424  echo "ERROR: unknown platform: %Platform%"
    2525)
     26
     27echo "CustomPostBuild done"
  • trunk/sources/HeuristicLab/HeuristicLab.csproj

    r2598 r2601  
    114114  <ItemGroup>
    115115    <Content Include="Files.x86.txt">
    116       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    117116    </Content>
    118117    <Content Include="Files.x64.txt">
    119       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    120118    </Content>
    121119    <Content Include="Files.txt">
    122       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    123120    </Content>
    124121    <Content Include="HeuristicLab.ico" />
    125122    <Content Include="Resources\HeuristicLab.ico" />
    126123    <None Include="app.config" />
     124    <None Include="CreateConsoleApplication.cmd" />
    127125    <None Include="CustomPostBuild.cmd" />
    128126    <None Include="CopyAssemblies.cmd" />
     
    144142  -->
    145143  <PropertyGroup>
    146     <PostBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
     144    <PostBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir);
    147145set ProjectDir=$(ProjectDir)
    148146set SolutionDir=$(SolutionDir)
     
    151149set Configuration=$(ConfigurationName)
    152150
     151call CreateConsoleApplication.cmd
    153152call MergeConfigs.cmd
    154153call CopyAssemblies.cmd
Note: See TracChangeset for help on using the changeset viewer.