Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Unified Diff: components/resources/enhanced_bookmarks/enhanced_bookmarks.gypi

Issue 1153283005: Revert "Revert of Refactor get_salient_image_url.js to use DocumentImageExtractor" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add closure_out_dir var to components/resources/enhanced_bookmarks/BUILD.gn Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/resources/enhanced_bookmarks/enhanced_bookmarks.gypi
diff --git a/components/resources/enhanced_bookmarks/enhanced_bookmarks.gypi b/components/resources/enhanced_bookmarks/enhanced_bookmarks.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..f9dcb673cb1f57321d490b2f91857fa551538092
--- /dev/null
+++ b/components/resources/enhanced_bookmarks/enhanced_bookmarks.gypi
@@ -0,0 +1,89 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+{
+ 'targets' :[
+ {
+ 'target_name': 'document_image_extractor',
+ 'type': 'none',
+ 'variables': { 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler', },
+ 'actions': [
+ {
+ # This action optionally takes these arguments:
+ # - depends: scripts that the source file depends on being included already
+ # - externs: files that describe globals used by |source|
+ 'action_name': 'Compile enhanced bookmarks image extractor JavaScript',
+ 'variables': {
+ 'source_file': 'get_salient_image_url.js',
+ 'out_file': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_DIR)/build/outputs.py <@(source_file))',
+ },
+ 'inputs': [
+ '<(CLOSURE_DIR)/compile.py',
+ '<(CLOSURE_DIR)/processor.py',
+ '<(CLOSURE_DIR)/build/inputs.py',
+ '<(CLOSURE_DIR)/build/outputs.py',
+ '<(CLOSURE_DIR)/compiler/compiler.jar',
+ '<(CLOSURE_DIR)/runner/runner.jar',
+ '<!@(python <(CLOSURE_DIR)/build/inputs.py <(source_file))',
+ ],
+ 'outputs': [
+ '<(out_file)',
+ ],
+ 'action': [
+ 'python',
+ '<(CLOSURE_DIR)/compile.py',
+ '<@(document_image_extractor_js_files)',
+ '<(source_file)',
+ '--out_file', '<(out_file)',
+ '--no-single-file',
+ '--output_wrapper', '(function(){%output% return GetSalientImageUrl();})();',
+ ],
+ }
+ ],
+ 'includes': [
+ '../../../third_party/document_image_extractor/document_image_extractor_files.gypi'
+ ],
+ },
+ {
+ 'target_name': 'dom_initializer',
+ 'type': 'none',
+ 'variables': { 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler', },
+ 'actions': [
+ {
+ # This action optionally takes these arguments:
+ # - depends: scripts that the source file depends on being included already
+ # - externs: files that describe globals used by |source|
+ 'action_name': 'Compile enhanced bookmarks dom initializer JavaScript',
+ 'variables': {
+ 'source_file': 'dom_initializer.js',
+ 'out_file': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_DIR)/build/outputs.py <@(source_file))',
+ },
+ 'inputs': [
+ '<(CLOSURE_DIR)/compile.py',
+ '<(CLOSURE_DIR)/processor.py',
+ '<(CLOSURE_DIR)/build/inputs.py',
+ '<(CLOSURE_DIR)/build/outputs.py',
+ '<(CLOSURE_DIR)/compiler/compiler.jar',
+ '<(CLOSURE_DIR)/runner/runner.jar',
+ '<!@(python <(CLOSURE_DIR)/build/inputs.py <(source_file))',
+ ],
+ 'outputs': [
+ '<(out_file)',
+ ],
+ 'action': [
+ 'python',
+ '<(CLOSURE_DIR)/compile.py',
+ '<@(dom_controller_js_files)',
+ '<(source_file)',
+ '--out_file', '<(out_file)',
+ '--no-single-file',
+ '--output_wrapper', '(function(){%output%})();',
+ ]
+ }
+ ],
+ 'includes': [
+ '../../../third_party/document_image_extractor/dom_controller_files.gypi'
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698