OLD | NEW |
---|---|
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 { | 4 { |
5 'targets' :[ | 5 'targets': [ |
6 { | 6 { |
7 'target_name': 'document_image_extractor', | 7 'target_name': 'get_salient_image_url', |
8 'type': 'none', | 8 'variables': { |
9 'variables': { 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler', }, | 9 'source_files': [ |
10 'actions': [ | 10 'get_salient_image_url.js', |
11 { | 11 '<@(document_image_extractor_js_files)', |
12 # This action optionally takes these arguments: | 12 ], |
13 # - depends: scripts that the source file depends on being included al ready | 13 'script_args': ['--no-single-file'], |
Dan Beam
2015/06/12 21:45:06
it'd be preferable to just detect this via len(opt
Theresa
2015/06/12 22:12:14
I added a TODO for myself note in compile.py.
| |
14 # - externs: files that describe globals used by |source| | 14 'closure_args': ['output_wrapper=\'(function(){%output% return GetSalien tImageUrl();})();\''], |
15 'action_name': 'Compile enhanced bookmarks image extractor JavaScript' , | 15 }, |
16 'variables': { | |
17 'source_file': 'get_salient_image_url.js', | |
18 'out_file': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_ DIR)/build/outputs.py <@(source_file))', | |
19 }, | |
20 'inputs': [ | |
21 '<(CLOSURE_DIR)/compile.py', | |
22 '<(CLOSURE_DIR)/processor.py', | |
23 '<(CLOSURE_DIR)/build/inputs.py', | |
24 '<(CLOSURE_DIR)/build/outputs.py', | |
25 '<(CLOSURE_DIR)/compiler/compiler.jar', | |
26 '<(CLOSURE_DIR)/runner/runner.jar', | |
27 '<!@(python <(CLOSURE_DIR)/build/inputs.py <(source_file))', | |
28 ], | |
29 'outputs': [ | |
30 '<(out_file)', | |
31 ], | |
32 'action': [ | |
33 'python', | |
34 '<(CLOSURE_DIR)/compile.py', | |
35 '<@(document_image_extractor_js_files)', | |
36 '<(source_file)', | |
37 '--out_file', '<(out_file)', | |
38 '--no-single-file', | |
39 '--output_wrapper', '(function(){%output% return GetSalientImageUrl( );})();', | |
40 ], | |
41 } | |
42 ], | |
43 'includes': [ | 16 'includes': [ |
44 '../../../third_party/document_image_extractor/document_image_extractor_ files.gypi' | 17 '../../../third_party/document_image_extractor/document_image_extractor_ files.gypi', |
18 '../../../third_party/closure_compiler/compile_js.gypi', | |
45 ], | 19 ], |
46 }, | 20 }, |
47 { | 21 { |
48 'target_name': 'dom_initializer', | 22 'target_name': 'dom_initializer', |
49 'type': 'none', | 23 'variables': { |
50 'variables': { 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler', }, | 24 'source_files': [ |
51 'actions': [ | 25 'dom_initializer.js', |
52 { | 26 '<@(dom_controller_js_files)', |
53 # This action optionally takes these arguments: | 27 ], |
54 # - depends: scripts that the source file depends on being included al ready | 28 'script_args': ['--no-single-file'], |
55 # - externs: files that describe globals used by |source| | 29 'closure_args': ['output_wrapper=\'(function(){%output%})();\''], |
56 'action_name': 'Compile enhanced bookmarks dom initializer JavaScript' , | 30 }, |
57 'variables': { | |
58 'source_file': 'dom_initializer.js', | |
59 'out_file': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_ DIR)/build/outputs.py <@(source_file))', | |
60 }, | |
61 'inputs': [ | |
62 '<(CLOSURE_DIR)/compile.py', | |
63 '<(CLOSURE_DIR)/processor.py', | |
64 '<(CLOSURE_DIR)/build/inputs.py', | |
65 '<(CLOSURE_DIR)/build/outputs.py', | |
66 '<(CLOSURE_DIR)/compiler/compiler.jar', | |
67 '<(CLOSURE_DIR)/runner/runner.jar', | |
68 '<!@(python <(CLOSURE_DIR)/build/inputs.py <(source_file))', | |
69 ], | |
70 'outputs': [ | |
71 '<(out_file)', | |
72 ], | |
73 'action': [ | |
74 'python', | |
75 '<(CLOSURE_DIR)/compile.py', | |
76 '<@(dom_controller_js_files)', | |
77 '<(source_file)', | |
78 '--out_file', '<(out_file)', | |
79 '--no-single-file', | |
80 '--output_wrapper', '(function(){%output%})();', | |
81 ] | |
82 } | |
83 ], | |
84 'includes': [ | 31 'includes': [ |
85 '../../../third_party/document_image_extractor/dom_controller_files.gypi ' | 32 '../../../third_party/document_image_extractor/dom_controller_files.gypi ', |
33 '../../../third_party/closure_compiler/compile_js.gypi', | |
86 ], | 34 ], |
87 }, | 35 }, |
88 ], | 36 ], |
89 } | 37 } |
OLD | NEW |