sprout-as3-bundle 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sprout/as3/version.rb +1 -1
- data/lib/sprout/as3_tasks.rb +1 -0
- data/lib/sprout/tasks/asdoc_task.rb +1 -0
- data/lib/sprout/tasks/compc_rdoc.rb +71 -8
- data/lib/sprout/tasks/compc_task.rb +0 -4
- data/lib/sprout/tasks/mxmlc_rdoc.rb +71 -8
- data/lib/sprout/tasks/mxmlc_swc.rb +28 -0
- data/lib/sprout/tasks/mxmlc_task.rb +85 -19
- data/mxmlc.params +116 -0
- metadata +4 -2
data/lib/sprout/as3/version.rb
CHANGED
data/lib/sprout/as3_tasks.rb
CHANGED
@@ -242,6 +242,7 @@ EOF
|
|
242
242
|
def validate_templates
|
243
243
|
if(templates_path.size == 0)
|
244
244
|
templates_dir = Sprout.get_executable(gem_name, 'asdoc/templates', gem_version)
|
245
|
+
templates_dir = templates_dir.split('.exe').join('')
|
245
246
|
templates_path << templates_dir
|
246
247
|
end
|
247
248
|
end
|
@@ -85,6 +85,24 @@ def default_frame_rate=(number)
|
|
85
85
|
@default_frame_rate = number
|
86
86
|
end
|
87
87
|
|
88
|
+
# Defines the application's script execution limits.
|
89
|
+
# The max-recursion-depth value specifies the maximum depth of Adobe Flash Player call stack before Flash Player stops. This is essentially the stack overflow limit. The default value is 1000.
|
90
|
+
#
|
91
|
+
# The max-execution-time value specifies the maximum duration, in seconds, that an ActionScript event handler can execute before Flash Player assumes that it is hung, and aborts it. The default value is 60 seconds. You cannot set this value above 60 seconds.
|
92
|
+
#
|
93
|
+
# Example:
|
94
|
+
#
|
95
|
+
# # 900 is new max-recursion-depth
|
96
|
+
# # 20 is new max-execution-time
|
97
|
+
# t.default_script_limits = '900 20'
|
98
|
+
#
|
99
|
+
# You can override these settings in the application.
|
100
|
+
#
|
101
|
+
# This is an advanced option.
|
102
|
+
def default_script_limits=(string)
|
103
|
+
@default_script_limits = string
|
104
|
+
end
|
105
|
+
|
88
106
|
# Defines the default application size, in pixels for example: default_size = '950 550'. This is an advanced option.
|
89
107
|
def default_size=(string)
|
90
108
|
@default_size = string
|
@@ -99,6 +117,11 @@ def default_css_url=(url)
|
|
99
117
|
@default_css_url = url
|
100
118
|
end
|
101
119
|
|
120
|
+
# Define a global AS3 conditional compilation definition, e.g. -define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to append to existing definitions in flex-config.xml) (advanced, repeatable)
|
121
|
+
def define=(string)
|
122
|
+
@define = string
|
123
|
+
end
|
124
|
+
|
102
125
|
# Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380).
|
103
126
|
def description=(string)
|
104
127
|
@description = string
|
@@ -259,6 +282,15 @@ def lazy_init=(boolean)
|
|
259
282
|
@lazy_init = boolean
|
260
283
|
end
|
261
284
|
|
285
|
+
# <product> <serial-number>
|
286
|
+
#
|
287
|
+
# Specifies a product and a serial number. (repeatable)
|
288
|
+
#
|
289
|
+
# This is an advanced option.
|
290
|
+
def license=(string)
|
291
|
+
@license = string
|
292
|
+
end
|
293
|
+
|
262
294
|
# Links SWC files to the resulting application SWF file. The compiler only links in those classes for the SWC file that are required.
|
263
295
|
#
|
264
296
|
# The default value of the library-path option includes all SWC files in the libs directory and the current locale. These are required.
|
@@ -362,6 +394,11 @@ def publisher=(string)
|
|
362
394
|
@publisher = string
|
363
395
|
end
|
364
396
|
|
397
|
+
# XML text to store in the SWF metadata (overrides metadata.* configuration) (advanced)
|
398
|
+
def raw_metadata=(string)
|
399
|
+
@raw_metadata = string
|
400
|
+
end
|
401
|
+
|
365
402
|
# Prints a list of resource bundles to input to the compc compiler to create a resource bundle SWC file. The filename argument is the name of the file that contains the list of bundles.
|
366
403
|
#
|
367
404
|
# For more information, see Localizing Flex Applications (http://livedocs.adobe.com/flex/2/docs/00000898.html#129288) in Flex 2 Developer's Guide.
|
@@ -378,27 +415,34 @@ def runtime_shared_libraries=(urls)
|
|
378
415
|
@runtime_shared_libraries = urls
|
379
416
|
end
|
380
417
|
|
418
|
+
# [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
|
419
|
+
# alias -rslp
|
420
|
+
# (repeatable)
|
421
|
+
def runtime_shared_library_path=(string)
|
422
|
+
@runtime_shared_library_path = string
|
423
|
+
end
|
424
|
+
|
381
425
|
# Specifies the location of the services-config.xml file. This file is used by Flex Data Services.
|
382
426
|
def services=(file)
|
383
427
|
@services = file
|
384
428
|
end
|
385
429
|
|
386
|
-
# Shows
|
430
|
+
# Shows warnings for ActionScript classes.
|
387
431
|
#
|
388
432
|
# The default value is true.
|
389
433
|
#
|
390
|
-
# For more information about
|
391
|
-
def
|
392
|
-
@
|
434
|
+
# For more information about viewing warnings and errors, see Viewing warnings and errors (http://livedocs.adobe.com/flex/2/docs/00001517.html#182413).
|
435
|
+
def show_actionscript_warnings=(boolean)
|
436
|
+
@show_actionscript_warnings = boolean
|
393
437
|
end
|
394
438
|
|
395
|
-
# Shows
|
439
|
+
# Shows a warning when Flash Player cannot detect changes to a bound property.
|
396
440
|
#
|
397
441
|
# The default value is true.
|
398
442
|
#
|
399
|
-
# For more information about
|
400
|
-
def
|
401
|
-
@
|
443
|
+
# For more information about compiler warnings, see Using SWC files (http://livedocs.adobe.com/flex/2/docs/00001505.html#158337).
|
444
|
+
def show_binding_warnings=(boolean)
|
445
|
+
@show_binding_warnings = boolean
|
402
446
|
end
|
403
447
|
|
404
448
|
# Shows deprecation warnings for Flex components. To see warnings for ActionScript classes, use the show-actionscript-warnings option.
|
@@ -423,6 +467,13 @@ def source_path=(paths)
|
|
423
467
|
@source_path = paths
|
424
468
|
end
|
425
469
|
|
470
|
+
# Statically link the libraries specified by the -runtime-shared-libraries-path option.
|
471
|
+
#
|
472
|
+
# alias -static-rsls
|
473
|
+
def static_link_runtime_shared_libraries=(boolean)
|
474
|
+
@static_link_runtime_shared_libraries = boolean
|
475
|
+
end
|
476
|
+
|
426
477
|
# Prints undefined property and function calls; also performs compile-time type checking on assignments and options supplied to method calls.
|
427
478
|
#
|
428
479
|
# The default value is true.
|
@@ -432,6 +483,13 @@ def strict=(boolean)
|
|
432
483
|
@strict = boolean
|
433
484
|
end
|
434
485
|
|
486
|
+
# Specifies the version of the player the application is targeting.
|
487
|
+
#
|
488
|
+
# Features requiring a later version will not be compiled into the application. The minimum value supported is "9.0.0".
|
489
|
+
def target_player=(string)
|
490
|
+
@target_player = string
|
491
|
+
end
|
492
|
+
|
435
493
|
# Specifies a list of theme files to use with this application. Theme files can be SWC files with CSS files inside them or CSS files.
|
436
494
|
#
|
437
495
|
# For information on compiling a SWC theme file, see Using Styles and Themes (http://livedocs.adobe.com/flex/2/docs/00000751.html#241755) in Flex 2 Developer's Guide.
|
@@ -463,6 +521,11 @@ def verbose_stacktraces=(boolean)
|
|
463
521
|
@verbose_stacktraces = boolean
|
464
522
|
end
|
465
523
|
|
524
|
+
# Verifies the libraries loaded at runtime are the correct ones.
|
525
|
+
def verify_digests=(boolean)
|
526
|
+
@verify_digests = boolean
|
527
|
+
end
|
528
|
+
|
466
529
|
# Enables specified warnings. For more information, see Viewing warnings and errors (http://livedocs.adobe.com/flex/2/docs/00001517.html#182413).
|
467
530
|
def warn_warning_type=(boolean)
|
468
531
|
@warn_warning_type = boolean
|
@@ -85,6 +85,24 @@ def default_frame_rate=(number)
|
|
85
85
|
@default_frame_rate = number
|
86
86
|
end
|
87
87
|
|
88
|
+
# Defines the application's script execution limits.
|
89
|
+
# The max-recursion-depth value specifies the maximum depth of Adobe Flash Player call stack before Flash Player stops. This is essentially the stack overflow limit. The default value is 1000.
|
90
|
+
#
|
91
|
+
# The max-execution-time value specifies the maximum duration, in seconds, that an ActionScript event handler can execute before Flash Player assumes that it is hung, and aborts it. The default value is 60 seconds. You cannot set this value above 60 seconds.
|
92
|
+
#
|
93
|
+
# Example:
|
94
|
+
#
|
95
|
+
# # 900 is new max-recursion-depth
|
96
|
+
# # 20 is new max-execution-time
|
97
|
+
# t.default_script_limits = '900 20'
|
98
|
+
#
|
99
|
+
# You can override these settings in the application.
|
100
|
+
#
|
101
|
+
# This is an advanced option.
|
102
|
+
def default_script_limits=(string)
|
103
|
+
@default_script_limits = string
|
104
|
+
end
|
105
|
+
|
88
106
|
# Defines the default application size, in pixels for example: default_size = '950 550'. This is an advanced option.
|
89
107
|
def default_size=(string)
|
90
108
|
@default_size = string
|
@@ -99,6 +117,11 @@ def default_css_url=(url)
|
|
99
117
|
@default_css_url = url
|
100
118
|
end
|
101
119
|
|
120
|
+
# Define a global AS3 conditional compilation definition, e.g. -define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to append to existing definitions in flex-config.xml) (advanced, repeatable)
|
121
|
+
def define=(string)
|
122
|
+
@define = string
|
123
|
+
end
|
124
|
+
|
102
125
|
# Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380).
|
103
126
|
def description=(string)
|
104
127
|
@description = string
|
@@ -259,6 +282,15 @@ def lazy_init=(boolean)
|
|
259
282
|
@lazy_init = boolean
|
260
283
|
end
|
261
284
|
|
285
|
+
# <product> <serial-number>
|
286
|
+
#
|
287
|
+
# Specifies a product and a serial number. (repeatable)
|
288
|
+
#
|
289
|
+
# This is an advanced option.
|
290
|
+
def license=(string)
|
291
|
+
@license = string
|
292
|
+
end
|
293
|
+
|
262
294
|
# Links SWC files to the resulting application SWF file. The compiler only links in those classes for the SWC file that are required.
|
263
295
|
#
|
264
296
|
# The default value of the library-path option includes all SWC files in the libs directory and the current locale. These are required.
|
@@ -362,6 +394,11 @@ def publisher=(string)
|
|
362
394
|
@publisher = string
|
363
395
|
end
|
364
396
|
|
397
|
+
# XML text to store in the SWF metadata (overrides metadata.* configuration) (advanced)
|
398
|
+
def raw_metadata=(string)
|
399
|
+
@raw_metadata = string
|
400
|
+
end
|
401
|
+
|
365
402
|
# Prints a list of resource bundles to input to the compc compiler to create a resource bundle SWC file. The filename argument is the name of the file that contains the list of bundles.
|
366
403
|
#
|
367
404
|
# For more information, see Localizing Flex Applications (http://livedocs.adobe.com/flex/2/docs/00000898.html#129288) in Flex 2 Developer's Guide.
|
@@ -378,27 +415,34 @@ def runtime_shared_libraries=(urls)
|
|
378
415
|
@runtime_shared_libraries = urls
|
379
416
|
end
|
380
417
|
|
418
|
+
# [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
|
419
|
+
# alias -rslp
|
420
|
+
# (repeatable)
|
421
|
+
def runtime_shared_library_path=(string)
|
422
|
+
@runtime_shared_library_path = string
|
423
|
+
end
|
424
|
+
|
381
425
|
# Specifies the location of the services-config.xml file. This file is used by Flex Data Services.
|
382
426
|
def services=(file)
|
383
427
|
@services = file
|
384
428
|
end
|
385
429
|
|
386
|
-
# Shows
|
430
|
+
# Shows warnings for ActionScript classes.
|
387
431
|
#
|
388
432
|
# The default value is true.
|
389
433
|
#
|
390
|
-
# For more information about
|
391
|
-
def
|
392
|
-
@
|
434
|
+
# For more information about viewing warnings and errors, see Viewing warnings and errors (http://livedocs.adobe.com/flex/2/docs/00001517.html#182413).
|
435
|
+
def show_actionscript_warnings=(boolean)
|
436
|
+
@show_actionscript_warnings = boolean
|
393
437
|
end
|
394
438
|
|
395
|
-
# Shows
|
439
|
+
# Shows a warning when Flash Player cannot detect changes to a bound property.
|
396
440
|
#
|
397
441
|
# The default value is true.
|
398
442
|
#
|
399
|
-
# For more information about
|
400
|
-
def
|
401
|
-
@
|
443
|
+
# For more information about compiler warnings, see Using SWC files (http://livedocs.adobe.com/flex/2/docs/00001505.html#158337).
|
444
|
+
def show_binding_warnings=(boolean)
|
445
|
+
@show_binding_warnings = boolean
|
402
446
|
end
|
403
447
|
|
404
448
|
# Shows deprecation warnings for Flex components. To see warnings for ActionScript classes, use the show-actionscript-warnings option.
|
@@ -423,6 +467,13 @@ def source_path=(paths)
|
|
423
467
|
@source_path = paths
|
424
468
|
end
|
425
469
|
|
470
|
+
# Statically link the libraries specified by the -runtime-shared-libraries-path option.
|
471
|
+
#
|
472
|
+
# alias -static-rsls
|
473
|
+
def static_link_runtime_shared_libraries=(boolean)
|
474
|
+
@static_link_runtime_shared_libraries = boolean
|
475
|
+
end
|
476
|
+
|
426
477
|
# Prints undefined property and function calls; also performs compile-time type checking on assignments and options supplied to method calls.
|
427
478
|
#
|
428
479
|
# The default value is true.
|
@@ -432,6 +483,13 @@ def strict=(boolean)
|
|
432
483
|
@strict = boolean
|
433
484
|
end
|
434
485
|
|
486
|
+
# Specifies the version of the player the application is targeting.
|
487
|
+
#
|
488
|
+
# Features requiring a later version will not be compiled into the application. The minimum value supported is "9.0.0".
|
489
|
+
def target_player=(string)
|
490
|
+
@target_player = string
|
491
|
+
end
|
492
|
+
|
435
493
|
# Specifies a list of theme files to use with this application. Theme files can be SWC files with CSS files inside them or CSS files.
|
436
494
|
#
|
437
495
|
# For information on compiling a SWC theme file, see Using Styles and Themes (http://livedocs.adobe.com/flex/2/docs/00000751.html#241755) in Flex 2 Developer's Guide.
|
@@ -463,6 +521,11 @@ def verbose_stacktraces=(boolean)
|
|
463
521
|
@verbose_stacktraces = boolean
|
464
522
|
end
|
465
523
|
|
524
|
+
# Verifies the libraries loaded at runtime are the correct ones.
|
525
|
+
def verify_digests=(boolean)
|
526
|
+
@verify_digests = boolean
|
527
|
+
end
|
528
|
+
|
466
529
|
# Enables specified warnings. For more information, see Viewing warnings and errors (http://livedocs.adobe.com/flex/2/docs/00001517.html#182413).
|
467
530
|
def warn_warning_type=(boolean)
|
468
531
|
@warn_warning_type = boolean
|
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
module Sprout # :nodoc:
|
3
|
+
class MXMLCSWC < MXMLCHelper # :nodoc:
|
4
|
+
|
5
|
+
def initialize(args, &block)
|
6
|
+
super
|
7
|
+
t = define_outer_task
|
8
|
+
|
9
|
+
compc output do |t|
|
10
|
+
configure_mxmlc t
|
11
|
+
configure_mxmlc_application t
|
12
|
+
yield t if block_given?
|
13
|
+
end
|
14
|
+
|
15
|
+
t.prerequisites << output
|
16
|
+
return t
|
17
|
+
end
|
18
|
+
|
19
|
+
def create_output
|
20
|
+
return "#{create_output_base}.swc"
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def swc(args, &block)
|
27
|
+
Sprout::MXMLCSWC.new(args, &block)
|
28
|
+
end
|
@@ -153,14 +153,25 @@ EOF
|
|
153
153
|
p.description = "Sets the application's frame rate. The default value is 24. This is an advanced option."
|
154
154
|
end
|
155
155
|
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
156
|
+
add_param(:default_script_limits, :string) do |p|
|
157
|
+
p.description =<<EOF
|
158
|
+
Defines the application's script execution limits.
|
159
|
+
The max-recursion-depth value specifies the maximum depth of Adobe Flash Player call stack before Flash Player stops. This is essentially the stack overflow limit. The default value is 1000.
|
160
|
+
|
161
|
+
The max-execution-time value specifies the maximum duration, in seconds, that an ActionScript event handler can execute before Flash Player assumes that it is hung, and aborts it. The default value is 60 seconds. You cannot set this value above 60 seconds.
|
162
|
+
|
163
|
+
Example:
|
164
|
+
|
165
|
+
# 900 is new max-recursion-depth
|
166
|
+
# 20 is new max-execution-time
|
167
|
+
t.default_script_limits = '900 20'
|
168
|
+
|
169
|
+
You can override these settings in the application.
|
170
|
+
|
171
|
+
This is an advanced option.
|
172
|
+
EOF
|
173
|
+
|
174
|
+
end
|
164
175
|
|
165
176
|
add_param(:default_size, :string) do |p|
|
166
177
|
p.delimiter = ' '
|
@@ -174,6 +185,12 @@ Defines the location of the default style sheet. Setting this option overrides t
|
|
174
185
|
For more information on the defaults.css file, see Using Styles and Themes (http://livedocs.adobe.com/flex/2/docs/00000751.html#241755) in Flex 2 Developer's Guide.
|
175
186
|
|
176
187
|
This is an advanced option.
|
188
|
+
EOF
|
189
|
+
end
|
190
|
+
|
191
|
+
add_param(:define, :string) do |p|
|
192
|
+
p.description =<<EOF
|
193
|
+
Define a global AS3 conditional compilation definition, e.g. -define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to append to existing definitions in flex-config.xml) (advanced, repeatable)
|
177
194
|
EOF
|
178
195
|
end
|
179
196
|
|
@@ -309,7 +326,7 @@ To link one or more classes whether or not they are used and not an entire SWC f
|
|
309
326
|
This option is commonly used to specify resource bundles.
|
310
327
|
EOF
|
311
328
|
end
|
312
|
-
|
329
|
+
|
313
330
|
add_param(:includes, :symbols) do |p|
|
314
331
|
p.description =<<EOF
|
315
332
|
Links one or more classes to the resulting application SWF file, whether or not those classes are required at compile time.
|
@@ -350,6 +367,17 @@ Enables ABC bytecode lazy initialization.
|
|
350
367
|
|
351
368
|
The default value is false.
|
352
369
|
|
370
|
+
This is an advanced option.
|
371
|
+
EOF
|
372
|
+
end
|
373
|
+
|
374
|
+
|
375
|
+
add_param(:license, :string) do |p|
|
376
|
+
p.description =<<EOF
|
377
|
+
<product> <serial-number>
|
378
|
+
|
379
|
+
Specifies a product and a serial number. (repeatable)
|
380
|
+
|
353
381
|
This is an advanced option.
|
354
382
|
EOF
|
355
383
|
end
|
@@ -463,6 +491,12 @@ EOF
|
|
463
491
|
add_param(:publisher, :string) do |p|
|
464
492
|
p.description = "Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380)."
|
465
493
|
end
|
494
|
+
|
495
|
+
add_param(:raw_metadata, :string) do |p|
|
496
|
+
p.description =<<EOF
|
497
|
+
XML text to store in the SWF metadata (overrides metadata.* configuration) (advanced)
|
498
|
+
EOF
|
499
|
+
end
|
466
500
|
|
467
501
|
add_param(:resource_bundle_list, :file) do |p|
|
468
502
|
p.description =<<EOF
|
@@ -481,34 +515,44 @@ You specify the location of the SWF file relative to the deployment location of
|
|
481
515
|
For more information about RSLs, see Using Runtime Shared Libraries. (http://livedocs.adobe.com/flex/2/docs/00001520.html#168690)
|
482
516
|
EOF
|
483
517
|
end
|
484
|
-
|
518
|
+
|
485
519
|
add_param_alias(:rsl, :runtime_shared_libraries)
|
520
|
+
|
521
|
+
add_param(:runtime_shared_library_path, :string) do |p|
|
522
|
+
p.description =<<EOF
|
523
|
+
[path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
|
524
|
+
alias -rslp
|
525
|
+
(repeatable)
|
526
|
+
EOF
|
527
|
+
end
|
528
|
+
|
529
|
+
add_param_alias(:rslp, :runtime_shared_library_path)
|
486
530
|
|
487
531
|
add_param(:services, :file) do |p|
|
488
532
|
p.description = "Specifies the location of the services-config.xml file. This file is used by Flex Data Services."
|
489
533
|
end
|
490
|
-
|
491
|
-
add_param(:
|
534
|
+
|
535
|
+
add_param(:show_actionscript_warnings, :boolean) do |p|
|
492
536
|
p.value = true
|
493
537
|
p.show_on_false = true
|
494
538
|
p.description =<<EOF
|
495
|
-
Shows
|
539
|
+
Shows warnings for ActionScript classes.
|
496
540
|
|
497
541
|
The default value is true.
|
498
542
|
|
499
|
-
For more information about
|
543
|
+
For more information about viewing warnings and errors, see Viewing warnings and errors (http://livedocs.adobe.com/flex/2/docs/00001517.html#182413).
|
500
544
|
EOF
|
501
545
|
end
|
502
|
-
|
503
|
-
add_param(:
|
546
|
+
|
547
|
+
add_param(:show_binding_warnings, :boolean) do |p|
|
504
548
|
p.value = true
|
505
549
|
p.show_on_false = true
|
506
550
|
p.description =<<EOF
|
507
|
-
Shows
|
551
|
+
Shows a warning when Flash Player cannot detect changes to a bound property.
|
508
552
|
|
509
553
|
The default value is true.
|
510
554
|
|
511
|
-
For more information about
|
555
|
+
For more information about compiler warnings, see Using SWC files (http://livedocs.adobe.com/flex/2/docs/00001505.html#158337).
|
512
556
|
EOF
|
513
557
|
end
|
514
558
|
|
@@ -539,6 +583,16 @@ EOF
|
|
539
583
|
end
|
540
584
|
|
541
585
|
add_param_alias(:sp, :source_path)
|
586
|
+
|
587
|
+
add_param(:static_link_runtime_shared_libraries, :boolean) do |p|
|
588
|
+
p.description =<<EOF
|
589
|
+
Statically link the libraries specified by the -runtime-shared-libraries-path option.
|
590
|
+
|
591
|
+
alias -static-rsls
|
592
|
+
EOF
|
593
|
+
end
|
594
|
+
|
595
|
+
add_param_alias(:static_rsls, :static_link_runtime_shared_libraries)
|
542
596
|
|
543
597
|
add_param(:strict, :boolean) do |p|
|
544
598
|
p.value = true
|
@@ -552,6 +606,14 @@ For more information about viewing warnings and errors, see Viewing warnings and
|
|
552
606
|
EOF
|
553
607
|
end
|
554
608
|
|
609
|
+
add_param(:target_player, :string) do |p|
|
610
|
+
p.description =<<EOF
|
611
|
+
Specifies the version of the player the application is targeting.
|
612
|
+
|
613
|
+
Features requiring a later version will not be compiled into the application. The minimum value supported is "9.0.0".
|
614
|
+
EOF
|
615
|
+
end
|
616
|
+
|
555
617
|
add_param(:theme, :files) do |p|
|
556
618
|
p.description =<<EOF
|
557
619
|
Specifies a list of theme files to use with this application. Theme files can be SWC files with CSS files inside them or CSS files.
|
@@ -585,7 +647,11 @@ Generates source code that includes line numbers. When a run-time error occurs,
|
|
585
647
|
Enabling this option generates larger SWF files.\nThe default value is false.
|
586
648
|
EOF
|
587
649
|
end
|
588
|
-
|
650
|
+
|
651
|
+
add_param(:verify_digests, :boolean) do |p|
|
652
|
+
p.description = "Verifies the libraries loaded at runtime are the correct ones."
|
653
|
+
end
|
654
|
+
|
589
655
|
add_param(:warn_warning_type, :boolean) do |p|
|
590
656
|
p.description = "Enables specified warnings. For more information, see Viewing warnings and errors (http://livedocs.adobe.com/flex/2/docs/00001517.html#182413)."
|
591
657
|
end
|
data/mxmlc.params
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
Adobe Flex Compiler (mxmlc)
|
2
|
+
Version 3.0.0 build 1728
|
3
|
+
Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.
|
4
|
+
|
5
|
+
-benchmark
|
6
|
+
-compiler.accessible
|
7
|
+
-compiler.actionscript-file-encoding <string>
|
8
|
+
-compiler.allow-source-path-overlap
|
9
|
+
-compiler.as3
|
10
|
+
-compiler.context-root <context-path>
|
11
|
+
-compiler.debug
|
12
|
+
-compiler.defaults-css-files [filename] [...]
|
13
|
+
-compiler.defaults-css-url <string>
|
14
|
+
-compiler.define <name> <value>
|
15
|
+
-compiler.es
|
16
|
+
-compiler.external-library-path [path-element] [...]
|
17
|
+
-compiler.fonts.advanced-anti-aliasing
|
18
|
+
-compiler.fonts.flash-type
|
19
|
+
-compiler.fonts.languages.language-range <lang> <range>
|
20
|
+
-compiler.fonts.local-fonts-snapshot <string>
|
21
|
+
-compiler.fonts.managers [manager-class] [...]
|
22
|
+
-compiler.fonts.max-cached-fonts <string>
|
23
|
+
-compiler.fonts.max-glyphs-per-face <string>
|
24
|
+
-compiler.headless-server
|
25
|
+
-compiler.include-libraries [library] [...]
|
26
|
+
-compiler.incremental
|
27
|
+
-compiler.keep-all-type-selectors
|
28
|
+
-compiler.keep-as3-metadata [name] [...]
|
29
|
+
-compiler.keep-generated-actionscript
|
30
|
+
-compiler.library-path [path-element] [...]
|
31
|
+
-compiler.locale [locale-element] [...]
|
32
|
+
-compiler.mxml.compatibility-version <version>
|
33
|
+
-compiler.namespaces.namespace <uri> <manifest>
|
34
|
+
-compiler.optimize
|
35
|
+
-compiler.services <filename>
|
36
|
+
-compiler.show-actionscript-warnings
|
37
|
+
-compiler.show-binding-warnings
|
38
|
+
-compiler.show-shadowed-device-font-warnings
|
39
|
+
-compiler.show-unused-type-selector-warnings
|
40
|
+
-compiler.source-path [path-element] [...]
|
41
|
+
-compiler.strict
|
42
|
+
-compiler.theme [filename] [...]
|
43
|
+
-compiler.use-resource-bundle-metadata
|
44
|
+
-compiler.verbose-stacktraces
|
45
|
+
-compiler.warn-array-tostring-changes
|
46
|
+
-compiler.warn-assignment-within-conditional
|
47
|
+
-compiler.warn-bad-array-cast
|
48
|
+
-compiler.warn-bad-bool-assignment
|
49
|
+
-compiler.warn-bad-date-cast
|
50
|
+
-compiler.warn-bad-es3-type-method
|
51
|
+
-compiler.warn-bad-es3-type-prop
|
52
|
+
-compiler.warn-bad-nan-comparison
|
53
|
+
-compiler.warn-bad-null-assignment
|
54
|
+
-compiler.warn-bad-null-comparison
|
55
|
+
-compiler.warn-bad-undefined-comparison
|
56
|
+
-compiler.warn-boolean-constructor-with-no-args
|
57
|
+
-compiler.warn-changes-in-resolve
|
58
|
+
-compiler.warn-class-is-sealed
|
59
|
+
-compiler.warn-const-not-initialized
|
60
|
+
-compiler.warn-constructor-returns-value
|
61
|
+
-compiler.warn-deprecated-event-handler-error
|
62
|
+
-compiler.warn-deprecated-function-error
|
63
|
+
-compiler.warn-deprecated-property-error
|
64
|
+
-compiler.warn-duplicate-argument-names
|
65
|
+
-compiler.warn-duplicate-variable-def
|
66
|
+
-compiler.warn-for-var-in-changes
|
67
|
+
-compiler.warn-import-hides-class
|
68
|
+
-compiler.warn-instance-of-changes
|
69
|
+
-compiler.warn-internal-error
|
70
|
+
-compiler.warn-level-not-supported
|
71
|
+
-compiler.warn-missing-namespace-decl
|
72
|
+
-compiler.warn-negative-uint-literal
|
73
|
+
-compiler.warn-no-constructor
|
74
|
+
-compiler.warn-no-explicit-super-call-in-constructor
|
75
|
+
-compiler.warn-no-type-decl
|
76
|
+
-compiler.warn-number-from-string-changes
|
77
|
+
-compiler.warn-scoping-change-in-this
|
78
|
+
-compiler.warn-slow-text-field-addition
|
79
|
+
-compiler.warn-unlikely-function-value
|
80
|
+
-compiler.warn-xml-class-has-changed
|
81
|
+
-debug-password <string>
|
82
|
+
-default-background-color <int>
|
83
|
+
-default-frame-rate <int>
|
84
|
+
-default-script-limits <max-recursion-depth> <max-execution-time>
|
85
|
+
-default-size <width> <height>
|
86
|
+
-dump-config <filename>
|
87
|
+
-externs [symbol] [...]
|
88
|
+
-frames.frame [label] [classname] [...]
|
89
|
+
-help [keyword] [...]
|
90
|
+
-include-resource-bundles [bundle] [...]
|
91
|
+
-includes [symbol] [...]
|
92
|
+
-licenses.license <product> <serial-number>
|
93
|
+
-link-report <filename>
|
94
|
+
-load-config <filename>
|
95
|
+
-load-externs <filename>
|
96
|
+
-metadata.contributor <name>
|
97
|
+
-metadata.creator <name>
|
98
|
+
-metadata.date <text>
|
99
|
+
-metadata.description <text>
|
100
|
+
-metadata.language <code>
|
101
|
+
-metadata.localized-description <text> <lang>
|
102
|
+
-metadata.localized-title <title> <lang>
|
103
|
+
-metadata.publisher <name>
|
104
|
+
-metadata.title <text>
|
105
|
+
-output <filename>
|
106
|
+
-raw-metadata <text>
|
107
|
+
-resource-bundle-list <filename>
|
108
|
+
-runtime-shared-libraries [url] [...]
|
109
|
+
-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
|
110
|
+
-static-link-runtime-shared-libraries
|
111
|
+
-target-player <version>
|
112
|
+
-use-network
|
113
|
+
-verify-digests
|
114
|
+
-version
|
115
|
+
-warnings
|
116
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprout-as3-bundle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pattern Park
|
@@ -9,7 +9,7 @@ autorequire: sprout/as3
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-05-
|
12
|
+
date: 2008-05-24 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -40,6 +40,7 @@ extra_rdoc_files:
|
|
40
40
|
- README
|
41
41
|
files:
|
42
42
|
- lib
|
43
|
+
- mxmlc.params
|
43
44
|
- pkg
|
44
45
|
- rakefile.rb
|
45
46
|
- README
|
@@ -105,6 +106,7 @@ files:
|
|
105
106
|
- lib/sprout/tasks/mxmlc_helper.rb
|
106
107
|
- lib/sprout/tasks/mxmlc_rdoc.rb
|
107
108
|
- lib/sprout/tasks/mxmlc_stylesheet.rb
|
109
|
+
- lib/sprout/tasks/mxmlc_swc.rb
|
108
110
|
- lib/sprout/tasks/mxmlc_task.rb
|
109
111
|
- lib/sprout/tasks/mxmlc_unit.rb
|
110
112
|
has_rdoc: true
|