rake-delphi 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/Gemfile +4 -0
  2. data/Gemfile.lock +19 -0
  3. data/Rakefile.rb +6 -0
  4. data/lib/rake/common/git.rb +3 -2
  5. data/lib/rake/common/logger.rb +26 -0
  6. data/lib/rake/common/sendmailtask.rb +1 -1
  7. data/lib/rake/common/ziptask.rb +3 -3
  8. data/lib/rake/delphi.rb +1 -0
  9. data/lib/rake/delphi/dcc32.rb +63 -13
  10. data/lib/rake/delphi/envvariables.rb +41 -13
  11. data/lib/rake/delphi/project.rb +0 -1
  12. data/lib/rake/delphi/projectinfo.rb +28 -7
  13. data/lib/rake/delphi/resources.rb +3 -2
  14. data/lib/rake/delphi/tool.rb +45 -13
  15. data/lib/rake/delphi/version.rb +1 -1
  16. data/lib/rake/helpers/filelist.rb +1 -0
  17. data/lib/rake/helpers/logger.rb +1 -0
  18. data/lib/rake/helpers/rake.rb +1 -0
  19. data/lib/rake/helpers/raketask.rb +1 -2
  20. data/rake-delphi.gemspec +2 -1
  21. data/test/helpers/verinfo.rb +42 -0
  22. data/test/resources/testproject/Rakefile.rb +5 -2
  23. data/test/resources/testproject/bin/test_compile/testproject.exe +0 -0
  24. data/test/resources/testproject/bin/test_compile_alter_cfg/testproject.exe +0 -0
  25. data/test/resources/testproject/bin/test_compile_consts/testproject.exe +0 -0
  26. data/test/resources/testproject/bin/test_compile_debug_info/testproject.drc +366 -0
  27. data/test/resources/testproject/bin/test_compile_debug_info/testproject.exe +0 -0
  28. data/test/resources/testproject/bin/test_compile_debug_info/testproject.map +1798 -0
  29. data/test/resources/testproject/bin/test_compile_defines/testproject.exe +0 -0
  30. data/test/resources/testproject/bin/test_compile_use_absent_config/testproject.exe +0 -0
  31. data/test/resources/testproject/bin/test_compile_use_config/testproject.exe +0 -0
  32. data/test/resources/testproject/bin/test_compile_use_library_path/testproject.exe +0 -0
  33. data/test/resources/testproject/bin/test_compile_with_explicit_and_implicit_libs/testproject.exe +0 -0
  34. data/test/resources/testproject/bin/test_compile_with_explicit_libs/testproject.exe +0 -0
  35. data/test/resources/testproject/bin/test_compile_with_libs/testproject.exe +0 -0
  36. data/test/resources/testproject/bin/test_compile_with_resources/testproject.exe +0 -0
  37. data/test/resources/testproject/bin/test_compile_with_resources_and_libs/testproject.exe +0 -0
  38. data/test/resources/testproject/dcu/ExplicitLibUnit.dcu +0 -0
  39. data/test/resources/testproject/dcu/LibUnit.dcu +0 -0
  40. data/test/resources/testproject/resources.res +0 -0
  41. data/test/resources/testproject/{testproject.bdsproj → testproject.2006.bdsproj} +0 -0
  42. data/test/resources/testproject/{testproject.dproj → testproject.2007.dproj} +0 -0
  43. data/test/resources/testproject/testproject.2010.dproj +108 -0
  44. data/test/resources/testproject/testproject.cfg.1 +8 -0
  45. data/test/resources/testproject/testproject.dproj.2007 +77 -0
  46. data/test/resources/testproject/testproject.drc +210 -0
  47. data/test/resources/testproject/testproject.exe +0 -0
  48. data/test/resources/testproject/testproject.identcache +0 -0
  49. data/test/resources/testproject/testproject.rc +60 -0
  50. data/test/resources/testproject/testproject.res +0 -0
  51. data/test/resources/testproject/testproject.xe5.dproj +179 -0
  52. data/test/test-delphi.rb +33 -5
  53. data/test/test-envvariables.rb +23 -0
  54. data/test/test-git.rb +2 -2
  55. data/test/test-hashes.rb +0 -1
  56. data/test/test-projectinfo.rb +89 -9
  57. data/test/test-zip.rb +0 -8
  58. metadata +100 -43
  59. data/.gitignore +0 -17
  60. data/test/resources/testproject/.gitignore +0 -8
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'erb'
4
4
  require 'rake/common/classes'
5
+ require 'rake/common/logger'
5
6
  require 'rake/delphi/rc'
6
7
  require 'rake/helpers/gemversion'
7
8
  require 'rake/helpers/rake'
@@ -39,7 +40,7 @@ module Rake
39
40
 
40
41
  def mainicon
41
42
  # take dcc33 task
42
- icon = main_owner_task.mainicon
43
+ return main_owner_task.mainicon
43
44
  end
44
45
 
45
46
  def version
@@ -117,7 +118,7 @@ module Rake
117
118
  opts = { :args => a }
118
119
  opts.merge!(args)
119
120
  cmd = ([Rake.quotepath('', tool)] | opts[:args]).join(' ')
120
- RakeFileUtils.verbose(trace?) do
121
+ RakeFileUtils.verbose(Logger.debug?) do
121
122
  sh cmd
122
123
  end
123
124
  end
@@ -1,7 +1,9 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'rake/common/exectask'
4
+ require 'rake/common/logger'
4
5
  require 'rake/delphi/projectinfo'
6
+ require 'rake/delphi/envvariables'
5
7
 
6
8
  module Rake
7
9
  module Delphi
@@ -9,15 +11,17 @@ module Rake
9
11
  DelphiRegRoot = 'SOFTWARE\\Borland\\Delphi'
10
12
  BDSRegRoot = 'SOFTWARE\\Borland\\BDS'
11
13
  EDSRegRoot = 'SOFTWARE\\CodeGear\\BDS'
14
+ EmbarcaderoRegRoot = 'SOFTWARE\\Embarcadero\\BDS'
12
15
 
13
16
  # used mainly in tests
14
17
  def self.reinit
15
18
  @@version, @@delphidir, @@toolpath = nil, nil, nil
16
19
  end
20
+
17
21
  reinit
18
22
 
19
- def initialize
20
- @@version, @@delphidir, @@toolpath = self.class.find unless @@version
23
+ def initialize(checkExistance = false)
24
+ @@version, @@delphidir, @@toolpath = self.class.find(checkExistance) unless @@version
21
25
  end
22
26
 
23
27
  def self.toolName
@@ -28,31 +32,35 @@ module Rake
28
32
  @@version
29
33
  end
30
34
 
31
- def delphidir
32
- @@delphidir
33
- end
34
-
35
35
  def toolpath
36
36
  @@toolpath
37
37
  end
38
38
 
39
39
  def versionInfoClass
40
- return @@version.to_f < 11 ? BDSVersionInfo : RAD2007VersionInfo
40
+ return @@version.to_f < 11 ? BDSVersionInfo : \
41
+ @@version.to_f < 13 ? RAD2007VersionInfo : \
42
+ @@version.to_f < 14 ? RAD2010VersionInfo : XEVersionInfo
41
43
  end
42
44
 
43
45
  def self.readUserOption(key, name, ver)
44
46
  begin
45
47
  require 'win32/registry'
46
48
  root = rootForVersion(ver) + '\\' + key
49
+ key_exists = false
47
50
  begin
51
+ Logger.trace(Logger::DEBUG, "Reading user option '#{name}' in '#{root}'")
48
52
  ::Win32::Registry::HKEY_CURRENT_USER.open(root) do |reg|
53
+ key_exists = true
49
54
  reg_typ, reg_val = reg.read(name)
50
55
  return reg_val.gsub('\\', '/')
51
56
  end
52
57
  rescue ::Win32::Registry::Error
58
+ Logger.trace(Logger::DEBUG, "No reg key '%s'?!" % \
59
+ (key_exists ? "#{root}\\#{name}" : root))
53
60
  return ''
54
61
  end
55
62
  rescue LoadError
63
+ Logger.trace(Logger::DEBUG, 'No `win32/registry` gem?!')
56
64
  return ''
57
65
  end
58
66
  end
@@ -73,12 +81,16 @@ module Rake
73
81
  else
74
82
  if version.to_f < 12
75
83
  regRoot = BDSRegRoot
76
- else
84
+ elsif version.to_f < 14
77
85
  regRoot = EDSRegRoot
86
+ else
87
+ regRoot = EmbarcaderoRegRoot
78
88
  end
79
89
  end
80
90
  version = version4version(version)
81
- return regRoot + '\\' + version
91
+ regRoot = regRoot + '\\' + version
92
+ Logger.trace(Logger::DEBUG, "Root for version #{version}: '#{regRoot}'")
93
+ return regRoot
82
94
  end
83
95
 
84
96
  def self.readDelphiDir(ver)
@@ -88,22 +100,26 @@ module Rake
88
100
  # for local/manual installations
89
101
  ::Win32::Registry::HKEY_CURRENT_USER].each do |regRoot|
90
102
  begin
103
+ Logger.trace(Logger::DEBUG, "Finding Delphi dir for #{ver}")
91
104
  regRoot.open(rootForVersion(ver)) do |reg|
92
105
  reg_typ, reg_val = reg.read('RootDir')
93
106
  return reg_val.gsub('\\', '/')
94
107
  end
95
108
  rescue ::Win32::Registry::Error
109
+ Logger.trace(Logger::DEBUG, "No reg key '#{regRoot}'?!")
96
110
  end
97
111
  end
98
112
  return nil
99
113
  rescue LoadError
114
+ Logger.trace(Logger::DEBUG, 'No `win32/registry` gem?!')
100
115
  return nil
101
116
  end
102
117
  end
103
118
 
104
119
  def self.find(failIfNotFound = false)
105
- v = ENV['DELPHI_VERSION']
120
+ v = EnvVariables.delphi_version
106
121
  if ENV['DELPHI_DIR']
122
+ Logger.trace(Logger::DEBUG, 'DELPHI_DIR is set: ' + ENV['DELPHI_DIR'])
107
123
  # append trailing path delimiter
108
124
  ENV['DELPHI_DIR'] = ENV['DELPHI_DIR'].gsub(/[^\/]$/, '\&/')
109
125
  tool = ENV['DELPHI_DIR'] + toolName
@@ -112,27 +128,43 @@ module Rake
112
128
  end
113
129
  if v.to_s.empty?
114
130
  v = []
115
- (4..14).each { |n| v << n.to_s }
131
+ (4..20).each { |n| v << n.to_s }
116
132
  v.reverse!
117
133
  else
134
+ Logger.trace(Logger::DEBUG, 'DELPHI_VERSION is set: ' + v)
118
135
  v = [v]
119
136
  end
137
+ tool_was_found = false
120
138
  v.each do |ver|
121
139
  path = readDelphiDir(ver)
122
140
  next unless path
123
141
  tool = path + toolName
142
+ tool_was_found = true
143
+ Logger.trace(Logger::DEBUG, "Got tool: '#{tool}'")
124
144
  if File.exists?(tool) # found it !
125
145
  ENV['DELPHI_VERSION'] = ver
126
146
  ENV['DELPHI_DIR'] = path
147
+ Logger.trace(Logger::DEBUG, "Set: DELPHI_VERSION=#{ver}; DELPHI_DIR='#{path}'")
127
148
  return ver, path, tool
149
+ else
150
+ Logger.trace(Logger::DEBUG, 'But file does not exist!')
128
151
  end
129
152
  end
130
- checkToolFailure(nil) if failIfNotFound
153
+ checkToolFailure(tool_was_found) if failIfNotFound
131
154
  return nil
132
155
  end
133
156
 
134
157
  def self.checkToolFailure(toolpath)
135
- fail 'Could not find %s: (%s)' % [toolName, toolpath.to_s] unless File.exists?(toolpath.to_s)
158
+ if toolpath.kind_of?(TrueClass) || toolpath.kind_of?(FalseClass)
159
+ unless toolpath
160
+ fail 'Could not detect path for %s! Check your registry and DELPHI_VERSION environment variable.' % [toolName]
161
+ end
162
+ cond = ! toolpath
163
+ toolpath = ''
164
+ else
165
+ cond = File.exists?(toolpath)
166
+ end
167
+ fail 'Could not find %s: (%s)' % [toolName, toolpath] unless cond
136
168
  end
137
169
 
138
170
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rake
4
4
  module Delphi
5
- VERSION = '0.0.4'
5
+ VERSION = '0.0.5'
6
6
  end
7
7
  end
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ require 'rake'
2
3
 
3
4
  module Rake
4
5
  class FileList
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ require 'logger'
2
3
 
3
4
  class Logger
4
5
  class Formatter
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ require 'rake'
2
3
 
3
4
  # extend Rake task with a `set_non_standard_vars` method
4
5
  module Rake
@@ -1,6 +1,5 @@
1
1
  # encoding: utf-8
2
-
3
- require 'logger'
2
+ require 'rake'
4
3
  require 'rake/helpers/logger'
5
4
 
6
5
  # extend Rake task with a logger
data/rake-delphi.gemspec CHANGED
@@ -13,7 +13,8 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = 'http://github.com/ashumkin/rake-delphi.gem'
14
14
  spec.license = 'MIT'
15
15
 
16
- spec.files = `git ls-files`.split($/)
16
+ spec.files = Dir['*', 'lib/**/*.*rb',
17
+ 'test/*', 'test/helpers/*', 'test/resources/**/*', 'test/resources/**/.gitkeep']
17
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
20
  spec.require_paths = ["lib"]
@@ -0,0 +1,42 @@
1
+ require 'fileutils'
2
+ require 'test/unit'
3
+ require 'helpers/consts'
4
+ require 'rake/delphi/envvariables'
5
+
6
+ module DelphiTests
7
+
8
+ class TestVerInfo < Test::Unit::TestCase
9
+ DPROJ_VERSIONS = { '10' => '2006.bdsproj', '11' => '2007.dproj', \
10
+ '13' => '2010.dproj', '18' => 'xe5.dproj' }
11
+
12
+ protected
13
+ def delphi_version
14
+ return Rake::Delphi::EnvVariables.delphi_version
15
+ end
16
+
17
+ def prepare_ver_info_file?
18
+ return true
19
+ end
20
+
21
+ public
22
+ def setup
23
+ @saved_delphi_version = Rake::Delphi::EnvVariables.delphi_version
24
+ ENV['DELPHI_VERSION'] = delphi_version
25
+
26
+ template_ext = DPROJ_VERSIONS[delphi_version]
27
+ raise 'DELPHI_VERSION unknown (%s). Please update tests' \
28
+ % delphi_version \
29
+ unless template_ext
30
+ @ver_info_source = PROJECT_PATH.pathmap('%X%s%n.' + template_ext)
31
+ @ver_info_file = PROJECT_PATH.pathmap('%X%s%n') + template_ext.pathmap('%x')
32
+
33
+ FileUtils.cp(@ver_info_source, @ver_info_file) if prepare_ver_info_file?
34
+ end
35
+
36
+ def teardown
37
+ File.unlink(@ver_info_file) if @ver_info_file && prepare_ver_info_file?
38
+ ENV['DELPHI_VERSION'] = @saved_delphi_version
39
+ end
40
+ end
41
+
42
+ end
@@ -31,7 +31,10 @@ namespace :test do
31
31
  task :prepare, :useresources, :options do |t, opts|
32
32
  _task = Rake::Task['test:compile']
33
33
  dpr = Rake.application.define_task(Rake::Delphi::Project, (_task.shortname + ':delphi').to_sym)
34
- dpr[:resources_additional] = 'resources' unless opts[:useresources]
34
+ dpr[:resources_additional] = 'resources' if opts[:useresources]
35
+ if ENV['DELPHI_VERSION'].to_i >= 14
36
+ dpr[:platform] = 'Win32'
37
+ end
35
38
  options = opts[:options] || {}
36
39
  if options.kind_of?(String)
37
40
  options = eval(options)
@@ -51,4 +54,4 @@ namespace :test do
51
54
 
52
55
  end
53
56
 
54
- end
57
+ end
@@ -0,0 +1,366 @@
1
+ /* VER260
2
+ Generated by the Embarcadero Delphi Pascal Compiler
3
+ because -GD or --drc was supplied to the compiler.
4
+
5
+ This file contains compiler-generated resources that
6
+ were bound to the executable.
7
+ If this file is empty, then no compiler-generated
8
+ resources were bound to the produced executable.
9
+ */
10
+
11
+ #define System_RTLConsts_SWindowsVista 65360
12
+ #define System_RTLConsts_SWindowsServer2008 65361
13
+ #define System_RTLConsts_SWindows7 65362
14
+ #define System_RTLConsts_SWindowsServer2008R2 65363
15
+ #define System_RTLConsts_SWindows2000 65364
16
+ #define System_RTLConsts_SWindowsXP 65365
17
+ #define System_RTLConsts_SWindowsServer2003 65366
18
+ #define System_RTLConsts_SWindowsServer2003R2 65367
19
+ #define System_RTLConsts_SWindowsServer2012 65368
20
+ #define System_RTLConsts_SWindows8 65369
21
+ #define System_RTLConsts_sObserverUnsupported 65370
22
+ #define System_RTLConsts_sObserverMultipleSingleCast 65371
23
+ #define System_RTLConsts_sObserverNoInterface 65372
24
+ #define System_RTLConsts_sObserverNoSinglecastFound 65373
25
+ #define System_RTLConsts_sObserverNoMulticastFound 65374
26
+ #define System_RTLConsts_sTimespanValueCannotBeNan 65376
27
+ #define System_RTLConsts_sCannotNegateTimespan 65377
28
+ #define System_RTLConsts_sInvalidTimespanFormat 65378
29
+ #define System_RTLConsts_sTimespanElementTooLong 65379
30
+ #define System_RTLConsts_SArgumentOutOfRange 65380
31
+ #define System_RTLConsts_SGenericItemNotFound 65381
32
+ #define System_RTLConsts_SGenericDuplicateItem 65382
33
+ #define System_RTLConsts_SInsufficientRtti 65383
34
+ #define System_RTLConsts_SParameterCountMismatch 65384
35
+ #define System_RTLConsts_SNonPublicType 65385
36
+ #define System_RTLConsts_SByRefArgMismatch 65386
37
+ #define System_RTLConsts_SVersionStr 65387
38
+ #define System_RTLConsts_SSPVersionStr 65388
39
+ #define System_RTLConsts_SVersion32 65389
40
+ #define System_RTLConsts_SVersion64 65390
41
+ #define System_RTLConsts_SWindows 65391
42
+ #define System_RTLConsts_SMemoryStreamError 65392
43
+ #define System_RTLConsts_SNoComSupport 65393
44
+ #define System_RTLConsts_SPropertyException 65394
45
+ #define System_RTLConsts_SReadError 65395
46
+ #define System_RTLConsts_SReadOnlyProperty 65396
47
+ #define System_RTLConsts_SResNotFound 65397
48
+ #define System_RTLConsts_SSeekNotImplemented 65398
49
+ #define System_RTLConsts_SUnknownGroup 65399
50
+ #define System_RTLConsts_SUnknownProperty 65400
51
+ #define System_RTLConsts_SWriteError 65401
52
+ #define System_RTLConsts_SParamIsNegative 65402
53
+ #define System_RTLConsts_SInputBufferExceed 65403
54
+ #define System_RTLConsts_SFileNotFound 65404
55
+ #define System_RTLConsts_sInvalidTimeoutValue 65405
56
+ #define System_RTLConsts_sTimespanTooLong 65406
57
+ #define System_RTLConsts_sInvalidTimespanDuration 65407
58
+ #define System_RTLConsts_SCantWriteResourceStreamError 65408
59
+ #define System_RTLConsts_SClassNotFound 65409
60
+ #define System_RTLConsts_SDuplicateClass 65410
61
+ #define System_RTLConsts_SDuplicateItem 65411
62
+ #define System_RTLConsts_SDuplicateName 65412
63
+ #define System_RTLConsts_SFCreateErrorEx 65413
64
+ #define System_RTLConsts_SFOpenErrorEx 65414
65
+ #define System_RTLConsts_SInvalidFileName 65415
66
+ #define System_RTLConsts_SInvalidImage 65416
67
+ #define System_RTLConsts_SInvalidName 65417
68
+ #define System_RTLConsts_SInvalidProperty 65418
69
+ #define System_RTLConsts_SInvalidPropertyPath 65419
70
+ #define System_RTLConsts_SInvalidPropertyValue 65420
71
+ #define System_RTLConsts_SListCapacityError 65421
72
+ #define System_RTLConsts_SListCountError 65422
73
+ #define System_RTLConsts_SListIndexError 65423
74
+ #define System_SysConst_SLongDayNameMon 65424
75
+ #define System_SysConst_SLongDayNameTue 65425
76
+ #define System_SysConst_SLongDayNameWed 65426
77
+ #define System_SysConst_SLongDayNameThu 65427
78
+ #define System_SysConst_SLongDayNameFri 65428
79
+ #define System_SysConst_SLongDayNameSat 65429
80
+ #define System_SysConst_SInvalidSourceArray 65430
81
+ #define System_SysConst_SInvalidDestinationArray 65431
82
+ #define System_SysConst_SCharIndexOutOfBounds 65432
83
+ #define System_SysConst_SByteIndexOutOfBounds 65433
84
+ #define System_SysConst_SInvalidCharCount 65434
85
+ #define System_SysConst_SInvalidDestinationIndex 65435
86
+ #define System_SysConst_SInvalidCodePage 65436
87
+ #define System_SysConst_SInvalidEncodingName 65437
88
+ #define System_RTLConsts_SAncestorNotFound 65438
89
+ #define System_RTLConsts_SAssignError 65439
90
+ #define System_SysConst_SLongMonthNameMay 65440
91
+ #define System_SysConst_SLongMonthNameJun 65441
92
+ #define System_SysConst_SLongMonthNameJul 65442
93
+ #define System_SysConst_SLongMonthNameAug 65443
94
+ #define System_SysConst_SLongMonthNameSep 65444
95
+ #define System_SysConst_SLongMonthNameOct 65445
96
+ #define System_SysConst_SLongMonthNameNov 65446
97
+ #define System_SysConst_SLongMonthNameDec 65447
98
+ #define System_SysConst_SShortDayNameSun 65448
99
+ #define System_SysConst_SShortDayNameMon 65449
100
+ #define System_SysConst_SShortDayNameTue 65450
101
+ #define System_SysConst_SShortDayNameWed 65451
102
+ #define System_SysConst_SShortDayNameThu 65452
103
+ #define System_SysConst_SShortDayNameFri 65453
104
+ #define System_SysConst_SShortDayNameSat 65454
105
+ #define System_SysConst_SLongDayNameSun 65455
106
+ #define System_SysConst_SShortMonthNameJan 65456
107
+ #define System_SysConst_SShortMonthNameFeb 65457
108
+ #define System_SysConst_SShortMonthNameMar 65458
109
+ #define System_SysConst_SShortMonthNameApr 65459
110
+ #define System_SysConst_SShortMonthNameMay 65460
111
+ #define System_SysConst_SShortMonthNameJun 65461
112
+ #define System_SysConst_SShortMonthNameJul 65462
113
+ #define System_SysConst_SShortMonthNameAug 65463
114
+ #define System_SysConst_SShortMonthNameSep 65464
115
+ #define System_SysConst_SShortMonthNameOct 65465
116
+ #define System_SysConst_SShortMonthNameNov 65466
117
+ #define System_SysConst_SShortMonthNameDec 65467
118
+ #define System_SysConst_SLongMonthNameJan 65468
119
+ #define System_SysConst_SLongMonthNameFeb 65469
120
+ #define System_SysConst_SLongMonthNameMar 65470
121
+ #define System_SysConst_SLongMonthNameApr 65471
122
+ #define System_SysConst_SVarBadType 65472
123
+ #define System_SysConst_SVarNotImplemented 65473
124
+ #define System_SysConst_SVarUnexpected 65474
125
+ #define System_SysConst_SExternalException 65475
126
+ #define System_SysConst_SAssertionFailed 65476
127
+ #define System_SysConst_SIntfCastError 65477
128
+ #define System_SysConst_SSafecallException 65478
129
+ #define System_SysConst_SMonitorLockException 65479
130
+ #define System_SysConst_SNoMonitorSupportException 65480
131
+ #define System_SysConst_SNotImplemented 65481
132
+ #define System_SysConst_SObjectDisposed 65482
133
+ #define System_SysConst_SAssertError 65483
134
+ #define System_SysConst_SAbstractError 65484
135
+ #define System_SysConst_SModuleAccessViolation 65485
136
+ #define System_SysConst_SOSError 65486
137
+ #define System_SysConst_SUnkOSError 65487
138
+ #define System_SysConst_SWriteAccess 65488
139
+ #define System_SysConst_SVarArrayCreate 65489
140
+ #define System_SysConst_SVarArrayBounds 65490
141
+ #define System_SysConst_SVarArrayLocked 65491
142
+ #define System_SysConst_SInvalidVarCast 65492
143
+ #define System_SysConst_SInvalidVarOp 65493
144
+ #define System_SysConst_SInvalidVarNullOp 65494
145
+ #define System_SysConst_SInvalidVarOpWithHResultWithPrefix 65495
146
+ #define System_SysConst_SVarTypeOutOfRangeWithPrefix 65496
147
+ #define System_SysConst_SVarTypeAlreadyUsedWithPrefix 65497
148
+ #define System_SysConst_SVarTypeNotUsableWithPrefix 65498
149
+ #define System_SysConst_SVarTypeTooManyCustom 65499
150
+ #define System_SysConst_SVarTypeCouldNotConvert 65500
151
+ #define System_SysConst_SVarTypeConvertOverflow 65501
152
+ #define System_SysConst_SVarOverflow 65502
153
+ #define System_SysConst_SVarInvalid 65503
154
+ #define System_SysConst_SZeroDivide 65504
155
+ #define System_SysConst_SOverflow 65505
156
+ #define System_SysConst_SUnderflow 65506
157
+ #define System_SysConst_SInvalidPointer 65507
158
+ #define System_SysConst_SInvalidCast 65508
159
+ #define System_SysConst_SAccessViolationArg3 65509
160
+ #define System_SysConst_SAccessViolationNoArg 65510
161
+ #define System_SysConst_SStackOverflow 65511
162
+ #define System_SysConst_SControlC 65512
163
+ #define System_SysConst_SPrivilege 65513
164
+ #define System_SysConst_SException 65514
165
+ #define System_SysConst_SExceptTitle 65515
166
+ #define System_SysConst_SInvalidFormat 65516
167
+ #define System_SysConst_SArgumentMissing 65517
168
+ #define System_SysConst_SDispatchError 65518
169
+ #define System_SysConst_SReadAccess 65519
170
+ #define System_SysConst_SUnknown 65520
171
+ #define System_SysConst_SInvalidInteger 65521
172
+ #define System_SysConst_SInvalidTimeStamp 65522
173
+ #define System_SysConst_STimeEncodeError 65523
174
+ #define System_SysConst_SDateEncodeError 65524
175
+ #define System_SysConst_SOutOfMemory 65525
176
+ #define System_SysConst_SInOutError 65526
177
+ #define System_SysConst_STooManyOpenFiles 65527
178
+ #define System_SysConst_SAccessDenied 65528
179
+ #define System_SysConst_SEndOfFile 65529
180
+ #define System_SysConst_SDiskFull 65530
181
+ #define System_SysConst_SInvalidInput 65531
182
+ #define System_SysConst_SDivByZero 65532
183
+ #define System_SysConst_SRangeError 65533
184
+ #define System_SysConst_SIntOverflow 65534
185
+ #define System_SysConst_SInvalidOp 65535
186
+ STRINGTABLE
187
+ BEGIN
188
+ System_RTLConsts_SWindowsVista, L"Windows Vista"
189
+ System_RTLConsts_SWindowsServer2008, L"Windows Server 2008"
190
+ System_RTLConsts_SWindows7, L"Windows 7"
191
+ System_RTLConsts_SWindowsServer2008R2, L"Windows Server 2008 R2"
192
+ System_RTLConsts_SWindows2000, L"Windows 2000"
193
+ System_RTLConsts_SWindowsXP, L"Windows XP"
194
+ System_RTLConsts_SWindowsServer2003, L"Windows Server 2003"
195
+ System_RTLConsts_SWindowsServer2003R2, L"Windows Server 2003 R2"
196
+ System_RTLConsts_SWindowsServer2012, L"Windows Server 2012"
197
+ System_RTLConsts_SWindows8, L"Windows 8"
198
+ System_RTLConsts_sObserverUnsupported, L"Observer is not supported"
199
+ System_RTLConsts_sObserverMultipleSingleCast, L"Cannot have multiple single cast observers added to the observers collection"
200
+ System_RTLConsts_sObserverNoInterface, L"The object does not implement the observer interface"
201
+ System_RTLConsts_sObserverNoSinglecastFound, L"No single cast observer with ID %d was added to the observer collection"
202
+ System_RTLConsts_sObserverNoMulticastFound, L"No multi cast observer with ID %d was added to the observer collection"
203
+ System_RTLConsts_sTimespanValueCannotBeNan, L"Value cannot be NaN"
204
+ System_RTLConsts_sCannotNegateTimespan, L"Negating the minimum value of a Timespan is invalid"
205
+ System_RTLConsts_sInvalidTimespanFormat, L"Invalid Timespan format"
206
+ System_RTLConsts_sTimespanElementTooLong, L"Timespan element too long"
207
+ System_RTLConsts_SArgumentOutOfRange, L"Argument out of range"
208
+ System_RTLConsts_SGenericItemNotFound, L"Item not found"
209
+ System_RTLConsts_SGenericDuplicateItem, L"Duplicates not allowed"
210
+ System_RTLConsts_SInsufficientRtti, L"Insufficient RTTI available to support this operation"
211
+ System_RTLConsts_SParameterCountMismatch, L"Parameter count mismatch"
212
+ System_RTLConsts_SNonPublicType, L"Type '%s' is not declared in the interface section of a unit"
213
+ System_RTLConsts_SByRefArgMismatch, L"VAR and OUT arguments must match parameter type exactly"
214
+ System_RTLConsts_SVersionStr, L"%s (Version %d.%d, Build %d, %5:s)"
215
+ System_RTLConsts_SSPVersionStr, L"%s Service Pack %4:d (Version %1:d.%2:d, Build %3:d, %5:s)"
216
+ System_RTLConsts_SVersion32, L"32-bit Edition"
217
+ System_RTLConsts_SVersion64, L"64-bit Edition"
218
+ System_RTLConsts_SWindows, L"Windows"
219
+ System_RTLConsts_SMemoryStreamError, L"Out of memory while expanding memory stream"
220
+ System_RTLConsts_SNoComSupport, L"%s has not been registered as a COM class"
221
+ System_RTLConsts_SPropertyException, L"Error reading %s%s%s: %s"
222
+ System_RTLConsts_SReadError, L"Stream read error"
223
+ System_RTLConsts_SReadOnlyProperty, L"Property is read-only"
224
+ System_RTLConsts_SResNotFound, L"Resource %s not found"
225
+ System_RTLConsts_SSeekNotImplemented, L"%s.Seek not implemented"
226
+ System_RTLConsts_SUnknownGroup, L"%s not in a class registration group"
227
+ System_RTLConsts_SUnknownProperty, L"Property %s does not exist"
228
+ System_RTLConsts_SWriteError, L"Stream write error"
229
+ System_RTLConsts_SParamIsNegative, L"Parameter %s cannot be a negative value"
230
+ System_RTLConsts_SInputBufferExceed, L"Input buffer exceeded for %s = %d, %s = %d"
231
+ System_RTLConsts_SFileNotFound, L"The specified file was not found"
232
+ System_RTLConsts_sInvalidTimeoutValue, L"Invalid Timeout value: %s"
233
+ System_RTLConsts_sTimespanTooLong, L"Timespan too long"
234
+ System_RTLConsts_sInvalidTimespanDuration, L"The duration cannot be returned because the absolute value exceeds the value of TTimeSpan.MaxValue"
235
+ System_RTLConsts_SCantWriteResourceStreamError, L"Can't write to a read-only resource stream"
236
+ System_RTLConsts_SClassNotFound, L"Class %s not found"
237
+ System_RTLConsts_SDuplicateClass, L"A class named %s already exists"
238
+ System_RTLConsts_SDuplicateItem, L"List does not allow duplicates ($0%x)"
239
+ System_RTLConsts_SDuplicateName, L"A component named %s already exists"
240
+ System_RTLConsts_SFCreateErrorEx, L"Cannot create file \"%s\". %s"
241
+ System_RTLConsts_SFOpenErrorEx, L"Cannot open file \"%s\". %s"
242
+ System_RTLConsts_SInvalidFileName, L"Invalid file name - %s"
243
+ System_RTLConsts_SInvalidImage, L"Invalid stream format"
244
+ System_RTLConsts_SInvalidName, L"''%s'' is not a valid component name"
245
+ System_RTLConsts_SInvalidProperty, L"Invalid property value"
246
+ System_RTLConsts_SInvalidPropertyPath, L"Invalid property path"
247
+ System_RTLConsts_SInvalidPropertyValue, L"Invalid property value"
248
+ System_RTLConsts_SListCapacityError, L"List capacity out of bounds (%d)"
249
+ System_RTLConsts_SListCountError, L"List count out of bounds (%d)"
250
+ System_RTLConsts_SListIndexError, L"List index out of bounds (%d)"
251
+ System_SysConst_SLongDayNameMon, L"Monday"
252
+ System_SysConst_SLongDayNameTue, L"Tuesday"
253
+ System_SysConst_SLongDayNameWed, L"Wednesday"
254
+ System_SysConst_SLongDayNameThu, L"Thursday"
255
+ System_SysConst_SLongDayNameFri, L"Friday"
256
+ System_SysConst_SLongDayNameSat, L"Saturday"
257
+ System_SysConst_SInvalidSourceArray, L"Invalid source array"
258
+ System_SysConst_SInvalidDestinationArray, L"Invalid destination array"
259
+ System_SysConst_SCharIndexOutOfBounds, L"Character index out of bounds (%d)"
260
+ System_SysConst_SByteIndexOutOfBounds, L"Start index out of bounds (%d)"
261
+ System_SysConst_SInvalidCharCount, L"Invalid count (%d)"
262
+ System_SysConst_SInvalidDestinationIndex, L"Invalid destination index (%d)"
263
+ System_SysConst_SInvalidCodePage, L"Invalid code page"
264
+ System_SysConst_SInvalidEncodingName, L"Invalid encoding name"
265
+ System_RTLConsts_SAncestorNotFound, L"Ancestor for '%s' not found"
266
+ System_RTLConsts_SAssignError, L"Cannot assign a %s to a %s"
267
+ System_SysConst_SLongMonthNameMay, L"May"
268
+ System_SysConst_SLongMonthNameJun, L"June"
269
+ System_SysConst_SLongMonthNameJul, L"July"
270
+ System_SysConst_SLongMonthNameAug, L"August"
271
+ System_SysConst_SLongMonthNameSep, L"September"
272
+ System_SysConst_SLongMonthNameOct, L"October"
273
+ System_SysConst_SLongMonthNameNov, L"November"
274
+ System_SysConst_SLongMonthNameDec, L"December"
275
+ System_SysConst_SShortDayNameSun, L"Sun"
276
+ System_SysConst_SShortDayNameMon, L"Mon"
277
+ System_SysConst_SShortDayNameTue, L"Tue"
278
+ System_SysConst_SShortDayNameWed, L"Wed"
279
+ System_SysConst_SShortDayNameThu, L"Thu"
280
+ System_SysConst_SShortDayNameFri, L"Fri"
281
+ System_SysConst_SShortDayNameSat, L"Sat"
282
+ System_SysConst_SLongDayNameSun, L"Sunday"
283
+ System_SysConst_SShortMonthNameJan, L"Jan"
284
+ System_SysConst_SShortMonthNameFeb, L"Feb"
285
+ System_SysConst_SShortMonthNameMar, L"Mar"
286
+ System_SysConst_SShortMonthNameApr, L"Apr"
287
+ System_SysConst_SShortMonthNameMay, L"May"
288
+ System_SysConst_SShortMonthNameJun, L"Jun"
289
+ System_SysConst_SShortMonthNameJul, L"Jul"
290
+ System_SysConst_SShortMonthNameAug, L"Aug"
291
+ System_SysConst_SShortMonthNameSep, L"Sep"
292
+ System_SysConst_SShortMonthNameOct, L"Oct"
293
+ System_SysConst_SShortMonthNameNov, L"Nov"
294
+ System_SysConst_SShortMonthNameDec, L"Dec"
295
+ System_SysConst_SLongMonthNameJan, L"January"
296
+ System_SysConst_SLongMonthNameFeb, L"February"
297
+ System_SysConst_SLongMonthNameMar, L"March"
298
+ System_SysConst_SLongMonthNameApr, L"April"
299
+ System_SysConst_SVarBadType, L"Invalid variant type"
300
+ System_SysConst_SVarNotImplemented, L"Operation not supported"
301
+ System_SysConst_SVarUnexpected, L"Unexpected variant error"
302
+ System_SysConst_SExternalException, L"External exception %x"
303
+ System_SysConst_SAssertionFailed, L"Assertion failed"
304
+ System_SysConst_SIntfCastError, L"Interface not supported"
305
+ System_SysConst_SSafecallException, L"Exception in safecall method"
306
+ System_SysConst_SMonitorLockException, L"Object lock not owned"
307
+ System_SysConst_SNoMonitorSupportException, L"Monitor support function not initialized"
308
+ System_SysConst_SNotImplemented, L"Feature not implemented"
309
+ System_SysConst_SObjectDisposed, L"Method called on disposed object"
310
+ System_SysConst_SAssertError, L"%s (%s, line %d)"
311
+ System_SysConst_SAbstractError, L"Abstract Error"
312
+ System_SysConst_SModuleAccessViolation, L"Access violation at address %p in module '%s'. %s of address %p"
313
+ System_SysConst_SOSError, L"System Error. Code: %d.\r\n%s%s"
314
+ System_SysConst_SUnkOSError, L"A call to an OS function failed"
315
+ System_SysConst_SWriteAccess, L"Write"
316
+ System_SysConst_SVarArrayCreate, L"Error creating variant or safe array"
317
+ System_SysConst_SVarArrayBounds, L"Variant or safe array index out of bounds"
318
+ System_SysConst_SVarArrayLocked, L"Variant or safe array is locked"
319
+ System_SysConst_SInvalidVarCast, L"Invalid variant type conversion"
320
+ System_SysConst_SInvalidVarOp, L"Invalid variant operation"
321
+ System_SysConst_SInvalidVarNullOp, L"Invalid NULL variant operation"
322
+ System_SysConst_SInvalidVarOpWithHResultWithPrefix, L"Invalid variant operation (%s%.8x)\n%s"
323
+ System_SysConst_SVarTypeOutOfRangeWithPrefix, L"Custom variant type (%s%.4x) is out of range"
324
+ System_SysConst_SVarTypeAlreadyUsedWithPrefix, L"Custom variant type (%s%.4x) already used by %s"
325
+ System_SysConst_SVarTypeNotUsableWithPrefix, L"Custom variant type (%s%.4x) is not usable"
326
+ System_SysConst_SVarTypeTooManyCustom, L"Too many custom variant types have been registered"
327
+ System_SysConst_SVarTypeCouldNotConvert, L"Could not convert variant of type (%s) into type (%s)"
328
+ System_SysConst_SVarTypeConvertOverflow, L"Overflow while converting variant of type (%s) into type (%s)"
329
+ System_SysConst_SVarOverflow, L"Variant overflow"
330
+ System_SysConst_SVarInvalid, L"Invalid argument"
331
+ System_SysConst_SZeroDivide, L"Floating point division by zero"
332
+ System_SysConst_SOverflow, L"Floating point overflow"
333
+ System_SysConst_SUnderflow, L"Floating point underflow"
334
+ System_SysConst_SInvalidPointer, L"Invalid pointer operation"
335
+ System_SysConst_SInvalidCast, L"Invalid class typecast"
336
+ System_SysConst_SAccessViolationArg3, L"Access violation at address %p. %s of address %p"
337
+ System_SysConst_SAccessViolationNoArg, L"Access violation"
338
+ System_SysConst_SStackOverflow, L"Stack overflow"
339
+ System_SysConst_SControlC, L"Control-C hit"
340
+ System_SysConst_SPrivilege, L"Privileged instruction"
341
+ System_SysConst_SException, L"Exception %s in module %s at %p.\r\n%s%s\r\n"
342
+ System_SysConst_SExceptTitle, L"Application Error"
343
+ System_SysConst_SInvalidFormat, L"Format '%s' invalid or incompatible with argument"
344
+ System_SysConst_SArgumentMissing, L"No argument for format '%s'"
345
+ System_SysConst_SDispatchError, L"Variant method calls not supported"
346
+ System_SysConst_SReadAccess, L"Read"
347
+ System_SysConst_SUnknown, L"<unknown>"
348
+ System_SysConst_SInvalidInteger, L"'%s' is not a valid integer value"
349
+ System_SysConst_SInvalidTimeStamp, L"'%d.%d' is not a valid timestamp"
350
+ System_SysConst_STimeEncodeError, L"Invalid argument to time encode"
351
+ System_SysConst_SDateEncodeError, L"Invalid argument to date encode"
352
+ System_SysConst_SOutOfMemory, L"Out of memory"
353
+ System_SysConst_SInOutError, L"I/O error %d"
354
+ System_SysConst_STooManyOpenFiles, L"Too many open files"
355
+ System_SysConst_SAccessDenied, L"File access denied"
356
+ System_SysConst_SEndOfFile, L"Read beyond end of file"
357
+ System_SysConst_SDiskFull, L"Disk full"
358
+ System_SysConst_SInvalidInput, L"Invalid numeric input"
359
+ System_SysConst_SDivByZero, L"Division by zero"
360
+ System_SysConst_SRangeError, L"Range check error"
361
+ System_SysConst_SIntOverflow, L"Integer overflow"
362
+ System_SysConst_SInvalidOp, L"Invalid floating point operation"
363
+ END
364
+
365
+ /* C:\cygwin\home\ashu\v3_0\lib\rake-delphi\test\resources\testproject\testproject.res */
366
+ /* C:\cygwin\tmp\dtfEEBA.tmp */