ppapi

所属分类:Windows编程
开发工具:Visual C++
文件大小:957KB
下载次数:75
上传日期:2011-01-28 12:07:48
上 传 者Flaght
说明:  提取与GOOGLE源码中插件框架源码。source code in the plug-in framework
(GOOGLE source extraction and source code in the plug-in framework)

文件列表:
ppapi\.svn\all-wcprops (1082, 2011-01-25)
ppapi\.svn\dir-prop-base (449, 2011-01-24)
ppapi\.svn\entries (1921, 2011-01-26)
ppapi\.svn\prop-base\generate_ppapi_include_tests.py.svn-base (30, 2011-01-24)
ppapi\.svn\prop-base\generate_ppapi_size_checks.py.svn-base (30, 2011-01-24)
ppapi\.svn\prop-base\ppapi.gypi.svn-base (30, 2011-01-24)
ppapi\.svn\prop-base\ppapi_cpp.gypi.svn-base (30, 2011-01-24)
ppapi\.svn\prop-base\ppapi_gl.gypi.svn-base (30, 2011-01-24)
ppapi\.svn\prop-base\ppapi_shared_proxy.gypi.svn-base (30, 2011-01-24)
ppapi\.svn\prop-base\ppapi_tests.gypi.svn-base (30, 2011-01-24)
ppapi\.svn\text-base\generate_ppapi_include_tests.py.svn-base (6297, 2011-01-24)
ppapi\.svn\text-base\generate_ppapi_size_checks.py.svn-base (18331, 2011-01-24)
ppapi\.svn\text-base\LICENSE.svn-base (1563, 2011-01-24)
ppapi\.svn\text-base\ppapi.gyp.svn-base (1100, 2011-01-24)
ppapi\.svn\text-base\ppapi.gypi.svn-base (863, 2011-01-24)
ppapi\.svn\text-base\ppapi_cpp.gypi.svn-base (7154, 2011-01-24)
ppapi\.svn\text-base\ppapi_gl.gypi.svn-base (1747, 2011-01-24)
ppapi\.svn\text-base\ppapi_shared_proxy.gypi.svn-base (4100, 2011-01-24)
ppapi\.svn\text-base\ppapi_tests.gypi.svn-base (7848, 2011-01-24)
ppapi\c\.svn\all-wcprops (3028, 2011-01-24)
ppapi\c\.svn\entries (5060, 2011-01-26)
ppapi\c\.svn\prop-base\ppb.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppb_audio.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppb_audio_config.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppb_class.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppb_core.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppb_graphics_2d.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppb_image_data.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppb_instance.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppb_url_loader.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppb_url_request_info.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppb_url_response_info.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppb_var.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppp.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\ppp_instance.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\pp_bool.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\pp_completion_callback.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\pp_errors.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\pp_input_event.h.svn-base (30, 2011-01-24)
ppapi\c\.svn\prop-base\pp_instance.h.svn-base (30, 2011-01-24)
... ...

This is a directory for Clang plugins that are designed to do analysis and/or manipulation of PPAPI code. Clang is an open-source C front-end that allows you to parse C, C++, or Objective-C code in to an abstract syntax tree (or AST) for processing. This README assumes that you are working in a check-out of chromium. To use these plugins, you will need to get Clang. Clang is rapidly changing, so you may want to download and build it yourself. See the instructions here: - http://clang.llvm.org/get_started.html To build the plugins, use the Makefile in this directory. If you want the provided Makefile to work out-of-the-box, in step 2 of the instructions at the above URL, you should do the following: > mkdir ~/llvm > cd ~/llvm Now continue with the svn co command to check out llvm in ~/llvm/llvm. If you choose to build llvm in another location, you can use environment variables to force the Makefile to find your build of clang. See the Makefile for details. To run a plugin, use clang with the -cc1 -load and -plugin flags and an otherwise normal build line. For example, to run liBPrintNamesAndSizes.so, if you currently build like this: g++ (build_options) Run this from the command-line instead: clang -cc1 -load ppapi/tests/clang/libPrintNamesAndSizes.so \ -plugin PrintNamesAndSizes (build_options) Plugins: PrintNamesAndSizes : print_names_and_sizes.cc Print information about all top-level type definitions. You probably won't need to run it by itself; instead see generate_ppapi_size_checks.py, which uses the plugin. See print_names_and_sizes.cc for more detail on the plugin. Example command-line: python generate_ppapi_size_checks.py \ --ppapi-root=/usr/local/google/chrome_build/src/ppapi python generate_ppapi_size_checks.py --help FindAffectedInterfaces : find_affected_interfaces.cc Given typenames as parameters, print out all types that are affected (including function pointer types and structs containing affected function pointer types) if the given type(s) change. This is meant to be used for determining what interfaces are affected by a change to a struct. Example command-line: clang -cc1 -load ppapi/tests/clang/libFindAffectedInterfaces.so \ -plugin FindAffectedInterfaces -I. ppapi/tests/all_includes.h \ -plugin-arg-FindAffectedInterfaces \ "struct PP_VideoCompressedDataBuffer_Dev" clang -cc1 -load tests/clang/libFindAffectedInterfaces.so \ -plugin FindAffectedInterfaces -I../ tests/all_c_includes.h \ -plugin-arg-FindAffectedInterfaces \ "struct PP_VideoCompressedDataBuffer_Dev,struct PP_Var" (This assumes that clang is in your path and you are running the plugin from the ppapi subdirectory in a chrome checkout).

近期下载者

相关文件


收藏者