Skip to content

thaniyarasu/pnacl_file_download

Repository files navigation

This Example demonstrate  
how to do download multiple files into chrome by using pnacl

pre requirement

install nacl_sdk ,naclports & pepper_canery



setup Naclroot & naclports

export PATH=$HOME/chromium.googlesource.com/external/naclports/bin:$HOME/nacl_sdk:$PATH

export NACL_SDK_ROOT=$HOME/nacl_sdk/pepper_canary


Setup debug setting for google-chrome-unstable

export NACL_PLUGIN_DEBUG=1
export NACL_SRPC_DEBUG=1
export NACLVERBOSITY=1

#export NACL_EXE_STDOUT=$HOME/logs/nacl_stdout.log
#export NACL_EXE_STDERR=$HOME/logs/nacl_stderr.log
#export NACLLOG=$HOME/logs/nacl.log

add sources and libs into Makefile 

LIBS = ppapi_cpp ppapi pthread

CFLAGS = -Wall
SOURCES = file_io.cc downloader.cc




start app 
make serve

start the browser

google-chrome-unstable --user-data-dir=~/gcu

http://localhost:5103/
there it is 

About

pnacl_file_download

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published