~ubuntu-branches/debian/sid/botan/sid

« back to all changes in this revision

Viewing changes to src/build-data/innosetup.in

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2018-03-01 22:23:25 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20180301222325-7p7vc45gu3hta34d
Tags: 2.4.0-2
* Don't remove .doctrees from the manual if it doesn't exist.
* Don't specify parallel to debhelper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; A script for packaging botan with InnoSetup
 
2
 
 
3
[Setup]
 
4
AppName=Botan
 
5
AppVerName=Botan %{version}
 
6
 
 
7
AppPublisher=Jack Lloyd
 
8
AppPublisherURL=https://botan.randombit.net/
 
9
AppVersion=%{version}
 
10
 
 
11
VersionInfoCopyright=Copyright (C) 1999-2012 Jack Lloyd and others
 
12
VersionInfoVersion=%{version_major}.%{version_minor}.%{version_patch}.0
 
13
 
 
14
; Require at least Windows XP
 
15
MinVersion=5.1
 
16
 
 
17
ArchitecturesAllowed=%{innosetup_arch}
 
18
ArchitecturesInstallIn64BitMode=%{innosetup_arch}
 
19
 
 
20
DefaultDirName={pf}\botan
 
21
DefaultGroupName=botan
 
22
 
 
23
SolidCompression=yes
 
24
 
 
25
OutputDir=.
 
26
OutputBaseFilename=botan-%{version}-%{arch}
 
27
 
 
28
[Types]
 
29
Name: "user"; Description: "User"
 
30
Name: "devel"; Description: "Developer"
 
31
Name: "custom"; Description: "Custom"; Flags: iscustom
 
32
 
 
33
[Components]
 
34
name: "dll"; Description: "Runtime DLLs"; Types: user devel custom; Flags: fixed
 
35
name: "implib"; Description: "Import Library"; Types: devel
 
36
name: "includes"; Description: "Include Files"; Types: devel
 
37
name: "docs"; Description: "Developer Documentation"; Types: devel
 
38
 
 
39
[Files]
 
40
; DLL and license file is always included
 
41
Source: "..\doc\license.rst"; DestDir: "{app}"; Components: dll; AfterInstall: ConvertLineEndings
 
42
Source: "..\botan.dll"; DestDir: "{app}"; Components: dll
 
43
Source: "..\botan.dll.manifest"; DestDir: "{app}"; Components: dll; Flags: skipifsourcedoesntexist
 
44
 
 
45
Source: "include\botan\*"; DestDir: "{app}\include\botan"; Components: includes; AfterInstall: ConvertLineEndings
 
46
 
 
47
Source: "..\doc\*.rst"; DestDir: "{app}\doc"; Excludes: "license.rst"; Components: docs; AfterInstall: ConvertLineEndings
 
48
 
 
49
Source: "..\doc\examples\*.cpp"; DestDir: "{app}\doc\examples"; Components: docs; AfterInstall: ConvertLineEndings
 
50
 
 
51
Source: "..\botan.exp"; DestDir: "{app}"; Components: implib
 
52
Source: "..\botan.lib"; DestDir: "{app}"; Components: implib
 
53
 
 
54
[Code]
 
55
const
 
56
   LF = #10;
 
57
   CR = #13;
 
58
   CRLF = CR + LF;
 
59
 
 
60
procedure ConvertLineEndings();
 
61
  var
 
62
     FilePath : String;
 
63
     FileContents : String;
 
64
begin
 
65
   FilePath := ExpandConstant(CurrentFileName)
 
66
 
 
67
   if ExtractFileName(CurrentFileName) <> 'build.h' then
 
68
   begin
 
69
      LoadStringFromFile(FilePath, FileContents);
 
70
      StringChangeEx(FileContents, LF, CRLF, False);
 
71
      SaveStringToFile(FilePath, FileContents, False);
 
72
   end;
 
73
end;