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

Side by Side Diff: third_party/WebKit/Source/modules/modules.gni

Issue 1406153017: gn format '.gni' files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 # This file is gn GN version of modules.gypi. 5 # This file is gn GN version of modules.gypi.
6 6
7 blink_modules_output_dir = "$root_gen_dir/blink/modules" 7 blink_modules_output_dir = "$root_gen_dir/blink/modules"
8 8
9 _gypi = exec_script( 9 _gypi = exec_script(
10 "//build/gypi_to_gn.py", 10 "//build/gypi_to_gn.py",
11 [ rebase_path("modules.gypi"), 11 [
12 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", 12 rebase_path("modules.gypi"),
13 "--replace=<(blink_modules_output_dir)=$blink_modules_output_dir" ], 13 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir",
14 "scope", 14 "--replace=<(blink_modules_output_dir)=$blink_modules_output_dir",
15 [ "modules.gypi" ]) 15 ],
16 "scope",
17 [ "modules.gypi" ])
16 18
17 _tmp_modules_idl_files = _gypi.modules_idl_files 19 _tmp_modules_idl_files = _gypi.modules_idl_files
20
18 # modules_idl_files has a magic variable in it that is an embedder hook, 21 # modules_idl_files has a magic variable in it that is an embedder hook,
19 # remove that since it's not a file (need to do this before rebasing). 22 # remove that since it's not a file (need to do this before rebasing).
20 _tmp_modules_idl_files -= [ 23 _tmp_modules_idl_files -= [ "<@(extra_blink_module_idl_files)" ]
21 "<@(extra_blink_module_idl_files)",
22 ]
23 modules_idl_files = get_path_info(_tmp_modules_idl_files, "abspath") 24 modules_idl_files = get_path_info(_tmp_modules_idl_files, "abspath")
24 25
25 modules_dictionary_idl_files = 26 modules_dictionary_idl_files =
26 get_path_info(_gypi.modules_dictionary_idl_files, "abspath") 27 get_path_info(_gypi.modules_dictionary_idl_files, "abspath")
27 28
28 # 'partial interface' or target (right side of) 'implements' 29 # 'partial interface' or target (right side of) 'implements'
29 modules_dependency_idl_files = 30 modules_dependency_idl_files =
30 get_path_info(_gypi.modules_dependency_idl_files, "abspath") 31 get_path_info(_gypi.modules_dependency_idl_files, "abspath")
31 32
32 modules_event_idl_files = 33 modules_event_idl_files =
33 get_path_info(_gypi.modules_event_idl_files, "abspath") 34 get_path_info(_gypi.modules_event_idl_files, "abspath")
34 35
35 # interfaces that inherit from Event 36 # interfaces that inherit from Event
36 generated_modules_files = 37 generated_modules_files =
37 get_path_info(_gypi.generated_modules_files, "abspath") 38 get_path_info(_gypi.generated_modules_files, "abspath")
38 39
39 generated_modules_dictionary_files = 40 generated_modules_dictionary_files =
40 get_path_info(_gypi.generated_modules_dictionary_files, "abspath") 41 get_path_info(_gypi.generated_modules_dictionary_files, "abspath")
41 42
42 # Remove GYP variables from the list (need to do this before rebasing). 43 # Remove GYP variables from the list (need to do this before rebasing).
43 _tmp_modules_files = _gypi.modules_files 44 _tmp_modules_files = _gypi.modules_files
44 _tmp_modules_files -= [ 45 _tmp_modules_files -= [
45 "<@(extra_blink_module_files)", 46 "<@(extra_blink_module_files)",
46 "<@(generated_modules_dictionary_files)", 47 "<@(generated_modules_dictionary_files)",
47 "<@(generated_modules_files)", 48 "<@(generated_modules_files)",
48 ] 49 ]
49 modules_files = get_path_info(_tmp_modules_files, "abspath") 50 modules_files = get_path_info(_tmp_modules_files, "abspath")
51
50 # Account for GYP var expansion. 52 # Account for GYP var expansion.
51 modules_files += generated_modules_files + generated_modules_dictionary_files 53 modules_files += generated_modules_files + generated_modules_dictionary_files
52 54
53 # 'partial interface' or target (right side of) 'implements' 55 # 'partial interface' or target (right side of) 'implements'
54 modules_testing_dependency_idl_files = 56 modules_testing_dependency_idl_files =
55 get_path_info(_gypi.modules_testing_dependency_idl_files, "abspath") 57 get_path_info(_gypi.modules_testing_dependency_idl_files, "abspath")
56 58
57 modules_testing_files = get_path_info(_gypi.modules_testing_files, "abspath") 59 modules_testing_files = get_path_info(_gypi.modules_testing_files, "abspath")
58 modules_unittest_files = get_path_info(_gypi.modules_unittest_files, "abspath") 60 modules_unittest_files = get_path_info(_gypi.modules_unittest_files, "abspath")
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gni ('k') | third_party/WebKit/Source/platform/platform.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698