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

Side by Side Diff: native_client_sdk/src/resources/Makefile.example.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 4
5 # GNU Makefile based on shared rules provided by the Native Client SDK. 5 # GNU Makefile based on shared rules provided by the Native Client SDK.
6 # See README.Makefiles for more details. 6 # See README.Makefiles for more details.
7 [[]] 7 [[]]
8 [[def ExpandDict(key, value_in, pre_list=[], post_list=[]):]] 8 [[def ExpandDict(key, value_in, pre_list=[], post_list=[]):]]
9 [[ value = value_in or [] ]] 9 [[ value = value_in or [] ]]
10 [[ pre = pre_list or [] ]] 10 [[ pre = pre_list or [] ]]
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 [[ source_list = ' \\\n '.join(source_list)]] 65 [[ source_list = ' \\\n '.join(source_list)]]
66 [[ sources = target['NAME'] + '_SOURCES']] 66 [[ sources = target['NAME'] + '_SOURCES']]
67 [[ cflags = target['NAME'] + '_CFLAGS']] 67 [[ cflags = target['NAME'] + '_CFLAGS']]
68 [[ flags = target.get('CFLAGS', [])]] 68 [[ flags = target.get('CFLAGS', [])]]
69 [[ flags.extend(target.get('CXXFLAGS', []))]] 69 [[ flags.extend(target.get('CXXFLAGS', []))]]
70 [[ if len(targets) == 1:]] 70 [[ if len(targets) == 1:]]
71 [[ sources = 'SOURCES']] 71 [[ sources = 'SOURCES']]
72 [[ cflags = 'CFLAGS']] 72 [[ cflags = 'CFLAGS']]
73 [[ ]] 73 [[ ]]
74 [[ ExpandDict(cflags, flags)]] 74 [[ ExpandDict(cflags, flags)]]
75 [[ for define in target.get('DEFINES', []):]]
76 {{cflags}} += -D{{define}}
77 [[ ]]
75 [[ if 'CFLAGS_GCC' in target:]] 78 [[ if 'CFLAGS_GCC' in target:]]
76 ifneq ($(TOOLCHAIN),pnacl) 79 ifneq ($(TOOLCHAIN),pnacl)
77 {{cflags}} += {{' '.join(target['CFLAGS_GCC'])}} 80 {{cflags}} += {{' '.join(target['CFLAGS_GCC'])}}
78 endif 81 endif
79 [[ ]] 82 [[ ]]
80 {{sources}} = {{source_list}} 83 {{sources}} = {{source_list}}
81 84
82 # Build rules generated by macros from common.mk: 85 # Build rules generated by macros from common.mk:
83 86
84 [[if targets[0].get('DEPS'):]] 87 [[if targets[0].get('DEPS'):]]
(...skipping 21 matching lines...) Expand all
106 # On NaCl, only produce a stripped binary for Release configs (not Debug). 109 # On NaCl, only produce a stripped binary for Release configs (not Debug).
107 ifneq (,$(or $(findstring pnacl,$(TOOLCHAIN)),$(findstring Release,$(CONFIG)))) 110 ifneq (,$(or $(findstring pnacl,$(TOOLCHAIN)),$(findstring Release,$(CONFIG))))
108 $(eval $(call LINK_RULE,{{name}}_unstripped,$({{sources}}),$(LIBS),$(DEPS))) 111 $(eval $(call LINK_RULE,{{name}}_unstripped,$({{sources}}),$(LIBS),$(DEPS)))
109 $(eval $(call STRIP_RULE,{{name}},{{name}}_unstripped)) 112 $(eval $(call STRIP_RULE,{{name}},{{name}}_unstripped))
110 else 113 else
111 $(eval $(call LINK_RULE,{{name}},$({{sources}}),$(LIBS),$(DEPS))) 114 $(eval $(call LINK_RULE,{{name}},$({{sources}}),$(LIBS),$(DEPS)))
112 endif 115 endif
113 [[]] 116 [[]]
114 117
115 $(eval $(call NMF_RULE,$(TARGET),)){{post}} 118 $(eval $(call NMF_RULE,$(TARGET),)){{post}}
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/ppapi_simple/ps_instance.cc ('k') | native_client_sdk/src/resources/Makefile.library.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698