Index: native_client_sdk/src/resources/Makefile.example.template |
diff --git a/native_client_sdk/src/resources/Makefile.example.template b/native_client_sdk/src/resources/Makefile.example.template |
index aef08ef2997ea9d330d3abaf1128510c15cfa507..750af9daf284fb1170e96346d8f2be6f52c98d80 100644 |
--- a/native_client_sdk/src/resources/Makefile.example.template |
+++ b/native_client_sdk/src/resources/Makefile.example.template |
@@ -52,7 +52,8 @@ CHROME_ARGS += --allow-nacl-socket-api=localhost |
[[ExpandDict('LIBS', targets[0].get('LIBS', []))]] |
[[for target in targets:]] |
-[[ source_list = (s for s in sorted(target['SOURCES']) if not s.endswith('.h'))]] |
+[[ source_list = sorted(target['SOURCES'] + target.get('EXTRA_SOURCES', []))]] |
binji
2016/01/04 19:48:21
looks like you don't need EXTRA_SOURCES if they're
Sam Clegg
2016/01/05 12:29:05
SOURCES are searched for and copied into the tree.
|
+[[ source_list = (s for s in source_list if not s.endswith('.h'))]] |
[[ source_list = ' \\\n '.join(source_list)]] |
[[ sources = target['NAME'] + '_SOURCES']] |
[[ cflags = target['NAME'] + '_CFLAGS']] |