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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 # | 56 # |
57 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS)))) | 57 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS)))) |
58 $(eval $(call LIB_RULE,$(TARGET),$(SOURCES))) | 58 $(eval $(call LIB_RULE,$(TARGET),$(SOURCES))) |
59 | 59 |
60 [[if target['TYPE'] != 'static-lib':]] | 60 [[if target['TYPE'] != 'static-lib':]] |
61 ifeq ($(TOOLCHAIN),glibc) | 61 ifeq ($(TOOLCHAIN),glibc) |
62 $(eval $(call SO_RULE,$(TARGET),$(SOURCES))) | 62 $(eval $(call SO_RULE,$(TARGET),$(SOURCES))) |
63 endif | 63 endif |
64 [[]] | 64 [[]] |
65 {{post}} | 65 {{post}} |
OLD | NEW |