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

Unified Diff: third_party/WebKit/Source/build/ConvertFileToHeaderWithCharacterArray.gypi

Issue 1670813003: DevTools: do not use platform/ to load injected scripts into inspector/v8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: third_party/WebKit/Source/build/ConvertFileToHeaderWithCharacterArray.gypi
diff --git a/third_party/WebKit/Source/build/ConvertFileToHeaderWithCharacterArray.gypi b/third_party/WebKit/Source/build/ConvertFileToHeaderWithCharacterArray.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..b66b59367fb29dd06f908f2b58c54e227c8faea3
--- /dev/null
+++ b/third_party/WebKit/Source/build/ConvertFileToHeaderWithCharacterArray.gypi
@@ -0,0 +1,37 @@
+# Copyright 2016 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.
+#
+# To use this, create a gyp target with the following form:
+# {
+# 'target_name': 'GenerateInjectedScriptSource',
+# 'type': 'none',
+# 'variables': {
+# 'input_file_path': 'inspector/v8/InjectedScriptSource.js'',
+# 'output_file_path': '<(SHARED_INTERMEDIATE_DIR)/blink/InjectedScriptSource.h',
+# 'character_array_name': 'InjectedScriptSource_js',
+# },
+# 'includes': [ 'ConvertFileToHeaderWithCharacterArray.gypi' ],
+# },
+{
+ 'actions': [
+ {
+ 'action_name': 'ConvertFileToHeaderWithCharacterArray',
+ 'inputs': [
+ '../build/scripts/xxd.py',
+ '<(input_file_path)',
+ ],
+ 'outputs': [ '<@(output_file_path)', ],
+ 'action': [
+ 'python',
+ '../build/scripts/xxd.py',
+ '<(character_array_name)',
+ '<(input_file_path)',
+ '<@(_outputs)'
+ ],
+ 'message': 'Generating <(output_file_path) from <(input_file_path)',
+ },
+ ],
+ # Since this target generates header files, it needs to be a hard dependency.
+ 'hard_dependency': 1,
+}

Powered by Google App Engine
This is Rietveld 408576698