summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/tools/create_html.py
diff options
context:
space:
mode:
authorsbc@chromium.org <sbc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-01 22:47:43 +0000
committersbc@chromium.org <sbc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-01 22:47:43 +0000
commitd10cd1d1ddace622264e933b29c1e8aa31ca8fff (patch)
tree1c415f95da88a7c9bc003471fc111610d49ceb34 /native_client_sdk/src/tools/create_html.py
parent6398904bbfab1f98e4235ac94d505dfeefef4d57 (diff)
downloadchromium_src-d10cd1d1ddace622264e933b29c1e8aa31ca8fff.zip
chromium_src-d10cd1d1ddace622264e933b29c1e8aa31ca8fff.tar.gz
chromium_src-d10cd1d1ddace622264e933b29c1e8aa31ca8fff.tar.bz2
[NaCl SDK] ppapi_simple logging improvements.
Add a new verbosity level called TRACE, and move a lot of the message to this level. This means the default level for Debug builds (LOG) is a little less chatty. Write all log message to stderr rather than stdout, so that we don't pullute the stdout the application with our messages (think minizip using ppapi_simple). Also, use NACL_SDK_DEBUG to determine if we are building a debug build, so the verbosity level is set correctly in debug builds. make build_projects.py -v pass V=1 to the make commands that it runs. When using the common.mk build system, pass --debug-libs to create_html in debug builds. Otherwise release libs are deployed by create_nmf. BUG= R=binji@chromium.org, noelallen@chromium.org Review URL: https://codereview.chromium.org/18089020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk/src/tools/create_html.py')
-rwxr-xr-xnative_client_sdk/src/tools/create_html.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/native_client_sdk/src/tools/create_html.py b/native_client_sdk/src/tools/create_html.py
index c0d1eb4..8634d4a 100755
--- a/native_client_sdk/src/tools/create_html.py
+++ b/native_client_sdk/src/tools/create_html.py
@@ -136,6 +136,8 @@ def CreateHTML(filenames, options):
cmd = [create_nmf, '-s', staging, '-o', nmf] + filenames
if options.verbose:
cmd.append('-v')
+ if options.debug_libs:
+ cmd.append('--debug-libs')
Log(cmd)
try:
subprocess.check_call(cmd)
@@ -158,6 +160,8 @@ def main(argv):
parser = optparse.OptionParser(usage, description=description, epilog=epilog)
parser.add_option('-v', '--verbose', action='store_true',
help='Verbose output')
+ parser.add_option('-d', '--debug-libs', action='store_true',
+ help='When calling create_nmf request debug libaries')
parser.add_option('-o', '--output', dest='output',
help='Name of html file to write (default is '
'input name with .html extension)',