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

Side by Side Diff: native_client_sdk/src/build_tools/parse_dsc.py

Issue 23661005: [NaCl SDK] Add a very simple getting_started example at top-level. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add hello_tutorial.nmf Created 7 years, 3 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import collections 6 import collections
7 import fnmatch 7 import fnmatch
8 import optparse 8 import optparse
9 import os 9 import os
10 import sys 10 import sys
(...skipping 18 matching lines...) Expand all
29 True), 29 True),
30 'SOURCES': (list, '', True), 30 'SOURCES': (list, '', True),
31 'CFLAGS': (list, '', False), 31 'CFLAGS': (list, '', False),
32 'CFLAGS_GCC': (list, '', False), 32 'CFLAGS_GCC': (list, '', False),
33 'CXXFLAGS': (list, '', False), 33 'CXXFLAGS': (list, '', False),
34 'DEFINES': (list, '', False), 34 'DEFINES': (list, '', False),
35 'LDFLAGS': (list, '', False), 35 'LDFLAGS': (list, '', False),
36 'INCLUDES': (list, '', False), 36 'INCLUDES': (list, '', False),
37 'LIBS' : (dict, VALID_TOOLCHAINS, False), 37 'LIBS' : (dict, VALID_TOOLCHAINS, False),
38 'DEPS' : (list, '', False) 38 'DEPS' : (list, '', False)
39 }, True), 39 }, False),
40 'HEADERS': (list, { 40 'HEADERS': (list, {
41 'FILES': (list, '', True), 41 'FILES': (list, '', True),
42 'DEST': (str, '', True), 42 'DEST': (str, '', True),
43 }, False), 43 }, False),
44 'SEARCH': (list, '', False), 44 'SEARCH': (list, '', False),
45 'POST': (str, '', False), 45 'POST': (str, '', False),
46 'PRE': (str, '', False), 46 'PRE': (str, '', False),
47 'DEST': (str, ['examples/getting_started', 'examples/api', 47 'DEST': (str, ['getting_started', 'examples/api',
48 'examples/demo', 'examples/tutorial', 48 'examples/demo', 'examples/tutorial',
49 'src', 'tests'], True), 49 'src', 'tests'], True),
50 'NAME': (str, '', False), 50 'NAME': (str, '', False),
51 'DATA': (list, '', False), 51 'DATA': (list, '', False),
52 'TITLE': (str, '', False), 52 'TITLE': (str, '', False),
53 'GROUP': (str, '', False), 53 'GROUP': (str, '', False),
54 'EXPERIMENTAL': (bool, [True, False], False), 54 'EXPERIMENTAL': (bool, [True, False], False),
55 'PERMISSIONS': (list, '', False), 55 'PERMISSIONS': (list, '', False),
56 'SOCKET_PERMISSIONS': (list, '', False) 56 'SOCKET_PERMISSIONS': (list, '', False)
57 } 57 }
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 except ValidationError as e: 255 except ValidationError as e:
256 sys.stderr.write(str(e) + '\n') 256 sys.stderr.write(str(e) + '\n')
257 return 1 257 return 1
258 258
259 PrintProjectTree(tree) 259 PrintProjectTree(tree)
260 return 0 260 return 0
261 261
262 262
263 if __name__ == '__main__': 263 if __name__ == '__main__':
264 sys.exit(main(sys.argv)) 264 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/generate_make.py ('k') | native_client_sdk/src/build_tools/sdk_files.list » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698