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

Side by Side Diff: Source/build/convert_file_to_header_with_character_array.gni

Issue 402033002: Migrate all usages of xxd.py to blink_resources.grd and remove xxd.py - Part 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing! Created 6 years, 5 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 unified diff | Download patch
« no previous file with comments | « Source/build/ConvertFileToHeaderWithCharacterArray.gypi ('k') | Source/build/scripts/xxd.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # To use this:
6 # convert_file_to_header_with_character_array("mytarget") {
7 # input_file_path = "myfile.js"
8 # output_file_path = "$root_gen_dir/blink/myfile.h"
9 # character_array_name = "myfile_js"
10 # }
11 template("convert_file_to_header_with_character_array") {
12 assert(defined(invoker.input_file_path), "Need input_file_path.")
13 assert(defined(invoker.output_file_path), "Need output_file_path.")
14 assert(defined(invoker.character_array_name), "Need character_array_name.")
15
16 action(target_name) {
17 script = "//third_party/WebKit/Source/build/scripts/xxd.py"
18
19 inputs = [ invoker.input_file_path ]
20 outputs = [ invoker.output_file_path ]
21
22 args = [
23 invoker.character_array_name,
24 rebase_path(invoker.input_file_path, root_build_dir),
25 rebase_path(invoker.output_file_path, root_build_dir),
26 ]
27 }
28 }
OLDNEW
« no previous file with comments | « Source/build/ConvertFileToHeaderWithCharacterArray.gypi ('k') | Source/build/scripts/xxd.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698