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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 # Build rules generated by macros from common.mk: | 62 # Build rules generated by macros from common.mk: |
63 | 63 |
64 [[if targets[0].get('DEPS'):]] | 64 [[if targets[0].get('DEPS'):]] |
65 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep)))) | 65 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep)))) |
66 [[]] | 66 [[]] |
67 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS)))) | 67 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS)))) |
68 $(eval $(call LIB_RULE,$(TARGET),$(SOURCES))) | 68 $(eval $(call LIB_RULE,$(TARGET),$(SOURCES))) |
69 | 69 |
70 [[if target['TYPE'] != 'static-lib':]] | 70 [[if target['TYPE'] != 'static-lib':]] |
71 ifneq (,$(findstring $(TOOLCHAIN),glibc bionic)) | 71 ifneq (,$(findstring $(TOOLCHAIN),glibc)) |
72 $(eval $(call SO_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS))) | 72 $(eval $(call SO_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS))) |
73 endif | 73 endif |
74 [[]] | 74 [[]] |
75 {{post}} | 75 {{post}} |
OLD | NEW |