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

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

Issue 242533005: [NaCl SDK] nacl_io: Add flow control the JavaScript pipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 29 matching lines...) Expand all
40 [[ExpandDict('LIBS', targets[0].get('LIBS', []), pre_list=['$(DEPS)'])]] 40 [[ExpandDict('LIBS', targets[0].get('LIBS', []), pre_list=['$(DEPS)'])]]
41 [[flags = target.get('CFLAGS', [])]] 41 [[flags = target.get('CFLAGS', [])]]
42 [[flags.extend(target.get('CXXFLAGS', []))]] 42 [[flags.extend(target.get('CXXFLAGS', []))]]
43 [[ExpandDict('CFLAGS', flags)]] 43 [[ExpandDict('CFLAGS', flags)]]
44 [[if 'CFLAGS_GCC' in target:]] 44 [[if 'CFLAGS_GCC' in target:]]
45 ifneq ($(TOOLCHAIN),pnacl) 45 ifneq ($(TOOLCHAIN),pnacl)
46 CFLAGS += {{' '.join(target['CFLAGS_GCC'])}} 46 CFLAGS += {{' '.join(target['CFLAGS_GCC'])}}
47 endif 47 endif
48 [[]] 48 [[]]
49 49
50 [[for define in target.get('DEFINES', []):]]
51 CFLAGS += -D{{define}}
52 [[]]
53
50 SOURCES = \ 54 SOURCES = \
51 [[for source in sorted(target['SOURCES']):]] 55 [[for source in sorted(target['SOURCES']):]]
52 {{source}} \ 56 {{source}} \
53 [[]] 57 [[]]
54 58
55 all: install 59 all: install
56 60
57 # Build rules generated by macros from common.mk: 61 # Build rules generated by macros from common.mk:
58 62
59 [[if targets[0].get('DEPS'):]] 63 [[if targets[0].get('DEPS'):]]
60 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep)))) 64 $(foreach dep,$(DEPS),$(eval $(call DEPEND_RULE,$(dep))))
61 [[]] 65 [[]]
62 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS)))) 66 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS))))
63 $(eval $(call LIB_RULE,$(TARGET),$(SOURCES))) 67 $(eval $(call LIB_RULE,$(TARGET),$(SOURCES)))
64 68
65 [[if target['TYPE'] != 'static-lib':]] 69 [[if target['TYPE'] != 'static-lib':]]
66 ifneq (,$(findstring $(TOOLCHAIN),glibc bionic)) 70 ifneq (,$(findstring $(TOOLCHAIN),glibc bionic))
67 $(eval $(call SO_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS))) 71 $(eval $(call SO_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS)))
68 endif 72 endif
69 [[]] 73 [[]]
70 {{post}} 74 {{post}}
OLDNEW
« no previous file with comments | « native_client_sdk/src/resources/Makefile.example.template ('k') | native_client_sdk/src/tests/nacl_io_test/event_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698