OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 [[def ExpandDict(key, value_in, pre_list=[], post_list=[]):]] | 4 [[def ExpandDict(key, value_in, pre_list=[], post_list=[]):]] |
5 [[ value = value_in or [] ]] | 5 [[ value = value_in or [] ]] |
6 [[ pre = pre_list or [] ]] | 6 [[ pre = pre_list or [] ]] |
7 [[ post = post_list or [] ]] | 7 [[ post = post_list or [] ]] |
8 [[ if type(value) is not dict:]] | 8 [[ if type(value) is not dict:]] |
9 [[ out = pre]] | 9 [[ out = pre]] |
10 [[ out.extend(value)]] | 10 [[ out.extend(value)]] |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 [[ cflags = 'CFLAGS']] | 78 [[ cflags = 'CFLAGS']] |
79 [[ else:]] | 79 [[ else:]] |
80 [[ sources = name + '_SOURCES']] | 80 [[ sources = name + '_SOURCES']] |
81 [[ cflags = name + '_CFLAGS']] | 81 [[ cflags = name + '_CFLAGS']] |
82 [[ if target['TYPE'] == 'linker-script':]] | 82 [[ if target['TYPE'] == 'linker-script':]] |
83 $(eval $(call LINKER_SCRIPT_RULE,{{name}},{{target['SOURCES'][0]}},{{target['SOU
RCES'][1]}})) | 83 $(eval $(call LINKER_SCRIPT_RULE,{{name}},{{target['SOURCES'][0]}},{{target['SOU
RCES'][1]}})) |
84 [[ else:]] | 84 [[ else:]] |
85 $(foreach src,$({{sources}}),$(eval $(call COMPILE_RULE,$(src),$({{cflags}})))) | 85 $(foreach src,$({{sources}}),$(eval $(call COMPILE_RULE,$(src),$({{cflags}})))) |
86 $(eval $(call LIB_RULE,{{name}},$({{sources}}))) | 86 $(eval $(call LIB_RULE,{{name}},$({{sources}}))) |
87 [[ if target['TYPE'] != 'static-lib':]] | 87 [[ if target['TYPE'] != 'static-lib':]] |
88 ifneq (,$(findstring $(TOOLCHAIN),glibc bionic)) | 88 ifneq (,$(findstring $(TOOLCHAIN),glibc)) |
89 $(eval $(call SO_RULE,{{name}},$({{sources}}),$(LIBS),$(DEPS))) | 89 $(eval $(call SO_RULE,{{name}},$({{sources}}),$(LIBS),$(DEPS))) |
90 endif | 90 endif |
91 [[ ]] | 91 [[ ]] |
92 {{post}} | 92 {{post}} |
OLD | NEW |