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

Side by Side Diff: pylib/gyp/generator/make.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: Added tests to support Ninja and Make 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
« no previous file with comments | « no previous file | pylib/gyp/generator/ninja.py » ('j') | test/copies/gyptest-default.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # Notes: 5 # Notes:
6 # 6 #
7 # This is all roughly based on the Makefile system used by the Linux 7 # This is all roughly based on the Makefile system used by the Linux
8 # kernel, but is a non-recursive make -- we put the entire dependency 8 # kernel, but is a non-recursive make -- we put the entire dependency
9 # graph in front of make and let it figure it out. 9 # graph in front of make and let it figure it out.
10 # 10 #
(...skipping 19 matching lines...) Expand all
30 import gyp.xcode_emulation 30 import gyp.xcode_emulation
31 from gyp.common import GetEnvironFallback 31 from gyp.common import GetEnvironFallback
32 from gyp.common import GypError 32 from gyp.common import GypError
33 33
34 generator_default_variables = { 34 generator_default_variables = {
35 'EXECUTABLE_PREFIX': '', 35 'EXECUTABLE_PREFIX': '',
36 'EXECUTABLE_SUFFIX': '', 36 'EXECUTABLE_SUFFIX': '',
37 'STATIC_LIB_PREFIX': 'lib', 37 'STATIC_LIB_PREFIX': 'lib',
38 'SHARED_LIB_PREFIX': 'lib', 38 'SHARED_LIB_PREFIX': 'lib',
39 'STATIC_LIB_SUFFIX': '.a', 39 'STATIC_LIB_SUFFIX': '.a',
40 'FRAMEWORK_DIR': '$(builddir)',
40 'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni', 41 'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni',
41 'SHARED_INTERMEDIATE_DIR': '$(obj)/gen', 42 'SHARED_INTERMEDIATE_DIR': '$(obj)/gen',
42 'PRODUCT_DIR': '$(builddir)', 43 'PRODUCT_DIR': '$(builddir)',
43 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python. 44 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python.
44 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python. 45 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python.
45 'RULE_INPUT_PATH': '$(abspath $<)', 46 'RULE_INPUT_PATH': '$(abspath $<)',
46 'RULE_INPUT_EXT': '$(suffix $<)', 47 'RULE_INPUT_EXT': '$(suffix $<)',
47 'RULE_INPUT_NAME': '$(notdir $<)', 48 'RULE_INPUT_NAME': '$(notdir $<)',
48 'CONFIGURATION_NAME': '$(BUILDTYPE)', 49 'CONFIGURATION_NAME': '$(BUILDTYPE)',
49 } 50 }
(...skipping 2150 matching lines...) Expand 10 before | Expand all | Expand 10 after
2200 root_makefile.write("endif\n") 2201 root_makefile.write("endif\n")
2201 root_makefile.write('\n') 2202 root_makefile.write('\n')
2202 2203
2203 if (not generator_flags.get('standalone') 2204 if (not generator_flags.get('standalone')
2204 and generator_flags.get('auto_regeneration', True)): 2205 and generator_flags.get('auto_regeneration', True)):
2205 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) 2206 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files)
2206 2207
2207 root_makefile.write(SHARED_FOOTER) 2208 root_makefile.write(SHARED_FOOTER)
2208 2209
2209 root_makefile.close() 2210 root_makefile.close()
OLDNEW
« no previous file with comments | « no previous file | pylib/gyp/generator/ninja.py » ('j') | test/copies/gyptest-default.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698