rake-delphi 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
data/lib/rake/delphi/dcc32.rb
CHANGED
@@ -159,15 +159,15 @@ module Rake
|
|
159
159
|
return @quiet ? '-Q' : ''
|
160
160
|
end
|
161
161
|
|
162
|
-
def
|
162
|
+
def _aliases
|
163
163
|
return @aliases ? Rake.quotepath('-A', @aliases) : ''
|
164
164
|
end
|
165
165
|
|
166
|
-
def
|
166
|
+
def _namespaces
|
167
167
|
return @namespaces ? Rake.quotepath('-NS', @namespaces) : ''
|
168
168
|
end
|
169
169
|
|
170
|
-
def
|
170
|
+
def _dcuoutput
|
171
171
|
return @dcuoutput || @dcu || @_source.pathmap('%d%sdcu')
|
172
172
|
end
|
173
173
|
|
@@ -175,7 +175,7 @@ module Rake
|
|
175
175
|
return @console.nil? ? '' : (@console ? '-CC' : '-CG')
|
176
176
|
end
|
177
177
|
|
178
|
-
def
|
178
|
+
def _map
|
179
179
|
# segments -> -GS
|
180
180
|
# publics -> -GP
|
181
181
|
# detailed -> -GD
|
@@ -184,14 +184,14 @@ module Rake
|
|
184
184
|
return '-G' + segments
|
185
185
|
end
|
186
186
|
|
187
|
-
def
|
187
|
+
def _alldebuginfo
|
188
188
|
return @debuginfo ? '-$D+ -$L+ -$YD' : '-$D- -$L- -$Y-'
|
189
189
|
end
|
190
190
|
|
191
191
|
def outputs
|
192
192
|
os = []
|
193
193
|
os << Rake.quotepath('-E', exeoutput)
|
194
|
-
os << Rake.quotepath('-N',
|
194
|
+
os << Rake.quotepath('-N', _dcuoutput)
|
195
195
|
os << Rake.quotepath('-LE', @bploutput)
|
196
196
|
return os
|
197
197
|
end
|
@@ -200,18 +200,18 @@ module Rake
|
|
200
200
|
return Rake.quotepath('', @_source.pathmap('%f'))
|
201
201
|
end
|
202
202
|
|
203
|
-
def
|
203
|
+
def _defines
|
204
204
|
'-D' + @defines if @defines
|
205
205
|
end
|
206
206
|
|
207
|
-
def
|
207
|
+
def _writeableconst
|
208
208
|
return '-$J' + (@writeableconst ? '+' : '-')
|
209
209
|
end
|
210
210
|
|
211
211
|
def build_args
|
212
212
|
args = []
|
213
|
-
args << @dccTool.options << dcc_options << build? << console? << warnings? << hints? << quiet? << debug? <<
|
214
|
-
args <<
|
213
|
+
args << @dccTool.options << dcc_options << build? << console? << warnings? << hints? << quiet? << debug? << _alldebuginfo << _map
|
214
|
+
args << _defines << _writeableconst << _aliases << _namespaces
|
215
215
|
args << _source << outputs << implicitpaths
|
216
216
|
args.flatten
|
217
217
|
end
|
data/lib/rake/delphi/version.rb
CHANGED
@@ -45,6 +45,7 @@ module TestAndroidModule
|
|
45
45
|
|
46
46
|
dpr_vars[:bin] = File.expand_path2(dpr_vars[:bin_path])
|
47
47
|
dpr.init(Module.nesting, File.expand_path(__FILE__), dpr_vars, 0)
|
48
|
+
dpr.application[dpr.name + ':dcc32'].namespaces << ';FMX'
|
48
49
|
|
49
50
|
directory dpr_vars[:bin_path]
|
50
51
|
_task.enhance [dpr_vars[:bin_path], dpr]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-delphi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -191,7 +191,6 @@ files:
|
|
191
191
|
- test/resources/testproject-android/Rakefile.rb
|
192
192
|
- test/resources/testproject-android/release.dcc.cfg
|
193
193
|
- test/resources/testproject-android/resources.rc
|
194
|
-
- test/resources/testproject-android/resources.res
|
195
194
|
- test/resources/testproject-android/TestProject.cfg
|
196
195
|
- test/resources/testproject-android/TestProject.dpr
|
197
196
|
- test/resources/testproject-android/TestProject.rc
|
@@ -272,7 +271,6 @@ test_files:
|
|
272
271
|
- test/resources/testproject-android/Rakefile.rb
|
273
272
|
- test/resources/testproject-android/release.dcc.cfg
|
274
273
|
- test/resources/testproject-android/resources.rc
|
275
|
-
- test/resources/testproject-android/resources.res
|
276
274
|
- test/resources/testproject-android/TestProject.cfg
|
277
275
|
- test/resources/testproject-android/TestProject.dpr
|
278
276
|
- test/resources/testproject-android/TestProject.rc
|
Binary file
|