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

Side by Side Diff: native_client_sdk/src/resources/Makefile.library.template

Issue 662683003: [NaCl SDK] Run PNaCl translate tests in sel_ldr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 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 15 matching lines...) Expand all
26 [[target = targets[0] ]] 26 [[target = targets[0] ]]
27 # GNU Makefile based on shared rules provided by the Native Client SDK. 27 # GNU Makefile based on shared rules provided by the Native Client SDK.
28 # See README.Makefiles for more details. 28 # See README.Makefiles for more details.
29 29
30 VALID_TOOLCHAINS := {{' '.join(tools)}} 30 VALID_TOOLCHAINS := {{' '.join(tools)}}
31 NACL_SDK_ROOT ?= $(abspath $(CURDIR)/../..) 31 NACL_SDK_ROOT ?= $(abspath $(CURDIR)/../..)
32 [[if 'INCLUDES' in target:]] 32 [[if 'INCLUDES' in target:]]
33 EXTRA_INC_PATHS={{' '.join(target['INCLUDES'])}} 33 EXTRA_INC_PATHS={{' '.join(target['INCLUDES'])}}
34 [[]] 34 [[]]
35 35
36 TARGET = {{target['NAME']}}
37
36 include $(NACL_SDK_ROOT)/tools/common.mk 38 include $(NACL_SDK_ROOT)/tools/common.mk
37 39
38 TARGET = {{target['NAME']}}
39 [[ExpandDict('DEPS', targets[0].get('DEPS', []))]] 40 [[ExpandDict('DEPS', targets[0].get('DEPS', []))]]
40 [[ExpandDict('LIBS', targets[0].get('LIBS', []), pre_list=['$(DEPS)'])]] 41 [[ExpandDict('LIBS', targets[0].get('LIBS', []), pre_list=['$(DEPS)'])]]
41 [[flags = target.get('CFLAGS', [])]] 42 [[flags = target.get('CFLAGS', [])]]
42 [[flags.extend(target.get('CXXFLAGS', []))]] 43 [[flags.extend(target.get('CXXFLAGS', []))]]
43 [[ExpandDict('CFLAGS', flags)]] 44 [[ExpandDict('CFLAGS', flags)]]
44 [[if 'CFLAGS_GCC' in target:]] 45 [[if 'CFLAGS_GCC' in target:]]
45 ifneq ($(TOOLCHAIN),pnacl) 46 ifneq ($(TOOLCHAIN),pnacl)
46 CFLAGS += {{' '.join(target['CFLAGS_GCC'])}} 47 CFLAGS += {{' '.join(target['CFLAGS_GCC'])}}
47 endif 48 endif
48 [[]] 49 [[]]
(...skipping 16 matching lines...) Expand all
65 [[]] 66 [[]]
66 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS)))) 67 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS))))
67 $(eval $(call LIB_RULE,$(TARGET),$(SOURCES))) 68 $(eval $(call LIB_RULE,$(TARGET),$(SOURCES)))
68 69
69 [[if target['TYPE'] != 'static-lib':]] 70 [[if target['TYPE'] != 'static-lib':]]
70 ifneq (,$(findstring $(TOOLCHAIN),glibc bionic)) 71 ifneq (,$(findstring $(TOOLCHAIN),glibc bionic))
71 $(eval $(call SO_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS))) 72 $(eval $(call SO_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS)))
72 endif 73 endif
73 [[]] 74 [[]]
74 {{post}} 75 {{post}}
OLDNEW
« no previous file with comments | « native_client_sdk/src/resources/Makefile.example.template ('k') | native_client_sdk/src/tools/nacl_llvm.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698