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

Side by Side Diff: pylib/gyp/generator/ninja.py

Issue 1254413004: Adding framework path mapping for 'copies' action in gyp files. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Verified passing tests Created 5 years, 2 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
OLDNEW
1 # Copyright (c) 2013 Google Inc. All rights reserved. 1 # Copyright (c) 2013 Google Inc. 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 import collections 5 import collections
6 import copy 6 import copy
7 import hashlib 7 import hashlib
8 import json 8 import json
9 import multiprocessing 9 import multiprocessing
10 import os.path 10 import os.path
(...skipping 26 matching lines...) Expand all
37 # should be treated specially, but is otherwise an invalid 37 # should be treated specially, but is otherwise an invalid
38 # ninja/shell variable) that are passed to gyp here but expanded 38 # ninja/shell variable) that are passed to gyp here but expanded
39 # before writing out into the target .ninja files; see 39 # before writing out into the target .ninja files; see
40 # ExpandSpecial. 40 # ExpandSpecial.
41 # $! is used for variables that represent a path and that can only appear at 41 # $! is used for variables that represent a path and that can only appear at
42 # the start of a string, while $| is used for variables that can appear 42 # the start of a string, while $| is used for variables that can appear
43 # anywhere in a string. 43 # anywhere in a string.
44 'INTERMEDIATE_DIR': '$!INTERMEDIATE_DIR', 44 'INTERMEDIATE_DIR': '$!INTERMEDIATE_DIR',
45 'SHARED_INTERMEDIATE_DIR': '$!PRODUCT_DIR/gen', 45 'SHARED_INTERMEDIATE_DIR': '$!PRODUCT_DIR/gen',
46 'PRODUCT_DIR': '$!PRODUCT_DIR', 46 'PRODUCT_DIR': '$!PRODUCT_DIR',
47 'FRAMEWORK_DIR': '$!PRODUCT_DIR',
47 'CONFIGURATION_NAME': '$|CONFIGURATION_NAME', 48 'CONFIGURATION_NAME': '$|CONFIGURATION_NAME',
48 49
49 # Special variables that may be used by gyp 'rule' targets. 50 # Special variables that may be used by gyp 'rule' targets.
50 # We generate definitions for these variables on the fly when processing a 51 # We generate definitions for these variables on the fly when processing a
51 # rule. 52 # rule.
52 'RULE_INPUT_ROOT': '${root}', 53 'RULE_INPUT_ROOT': '${root}',
53 'RULE_INPUT_DIRNAME': '${dirname}', 54 'RULE_INPUT_DIRNAME': '${dirname}',
54 'RULE_INPUT_PATH': '${source}', 55 'RULE_INPUT_PATH': '${source}',
55 'RULE_INPUT_EXT': '${ext}', 56 'RULE_INPUT_EXT': '${ext}',
56 'RULE_INPUT_NAME': '${name}', 57 'RULE_INPUT_NAME': '${name}',
(...skipping 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2393 arglists.append( 2394 arglists.append(
2394 (target_list, target_dicts, data, params, config_name)) 2395 (target_list, target_dicts, data, params, config_name))
2395 pool.map(CallGenerateOutputForConfig, arglists) 2396 pool.map(CallGenerateOutputForConfig, arglists)
2396 except KeyboardInterrupt, e: 2397 except KeyboardInterrupt, e:
2397 pool.terminate() 2398 pool.terminate()
2398 raise e 2399 raise e
2399 else: 2400 else:
2400 for config_name in config_names: 2401 for config_name in config_names:
2401 GenerateOutputForConfig(target_list, target_dicts, data, params, 2402 GenerateOutputForConfig(target_list, target_dicts, data, params,
2402 config_name) 2403 config_name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698