Build PNaCl for use in chromium embedded framework - chromium-embedded

I am trying to build PNaCl for use in CEF. I have managed to build the PPAPI examples as defined here:
1. Build CEF3/Chromium from source code as described at https://code.google.com/p/chromiumembed ... ndBuilding.
2. Edit C:\chromium\src\build\some.gyp, add '../ppapi/ppapi_internal.gyp:ppapi_example_paint_manager' in the 'dependencies' section.
3. Run `gclient runhooks` from the chromium src directory to update the build files.
4. Open C:\chromium\src\build\some.sln (on equivalent on other platforms) and build the ppapi_example_paint_manager target to create ppapi_example_paint_manager.dll.
How do i configure gyp for building a PNaCL/NaCl plugin that i can load into CEF?

Loading a NaCl or PNaCl plugin into CEF will be no different than loading it into Chrome. As such, you can use the standard build tools for building Native Client plugins. Start with the Native Client SDK, and try building the demos and examples there.
You won't typically use gyp for building PNaCl/NaCl plugins. Using gyp is difficult because it requires manually setting up the Native Client toolchains as the build target. The Native Client SDK includes a set of Makefiles that do this for you automatically.
You may also want to take a look at naclports. This repository has ports of many open-source libraries to Native Client, which may help you in porting your application.

Related

ReactJs Library that installs globally

I'm wanting to create a React library that I can build locally and that deploys into the NPM global area. I want to be able to use my other React project that also sits on my machine and picks up changes as I modify the library. I have found plenty of tutorials that either deploy to NPM (which I don't want) or that I have no idea how to get it updating automatically to my project. I tried one with rollup.js that seemed to work for a while but then stopped for some reason.
Ideally looking for tutorial or source code that I can look at.
Do's: build locally, automatically update changes to my project
Don'ts: deploy to NPM or another external repository, cause problems when setup on another machine
Want: One library, one project, easy update to the project when the library is changed, be able to create an entry in the global install with the library version
Thanks
Paul

What should be the strategy to develop & integrate a package in npm module that also requires react-native linking?

Hye..
I'm currently trying to start contributing to community but want to understand few basic things.
Question: if we need to develop some wrapper analytics that require to integrate with few third-party package that require native linking (e.g firebase/leanplum). how do we include that inside our module (rather than put as peer dependencies). so, that when end user use our module, basically they just need to do
yarn add somepackages && npx pod-install
and automatically it will include the third-party packages as well.
I try to find some guidelines but all of it only show the step for integrate with either vanilla js / js packages.

Is there any plugin similar to electron-vue for react?

Ideally, it should be able to encapsulate the electron-builder and related webpack parts, only two commands are exposed dev: electron / build: electron
But in fact, the electron-react-boilerplate template is too complicated, and did not need so many functions at first, but this template is to pile all the functions at once.
My generation found a repository https://github.com/nateshmbhat/electron-react-ts-starter, but this directly divided them completely, and did not consider the problem of code reuse. . .
Take a look at generator-react-app-electron on npm (https://www.npmjs.com/package/generator-react-app-electron).
This generator produces a non-ejected create-react-app project that is configured to run out-of-the-box with electron and a few other handy features
It provides start and build scripts that have been configured for running and building electron. Without ejecting. It also provides all essential features to develop an electron app (e.g. splash screen, entry points, ..).
Also you could use this template directly without using the generator: https://github.com/neutrinog/react-app-electron-template

How to build react.js apps at visual studio code?

I have created two apps using 'Visual Studio Code' and 'node.js.' I run them using command 'npm start,' and they show in the browser. I want to build them or deploy them so they can be used by anyone. It says there to use command 'npm run build.' How to do that, and what technique you use in order to build them?
It depends on what configuration you used for building the React app. If you used create-react-app, npm run build is the correct command for building it.
If you used a different configuration (e.g. webpack), you should use the relevant command for that configuration.
Either way, deploying it will be as easy as copy/pasting the build folder's content to the server you want to host it, after running the build command.
Visual Studio Code or any other Code Editor for that matter is not relevant. You can develop, build and deploy any React app using any Code Editor you want, it's just a matter of preference.
"Building" refers to the task of preparing (transforming, minifying, compressing, etc.) all the relevant project files so that they're ready for production (assuming that your build scripts are configured to do so).
"Deploying" an app is usually a separate task that will deploy (upload) your current project build to a development platform provider like Firebase, Netlify, Azure, etc. Note that you have to register with a provider and setup a new project on their end before your deploy your project.
Which provider you use is totally up to you. Also, you have to configure your current project once you've chosen your development provider. They'll provide instructions on how to deploy your project.
On a side note, keep in mind that you can configure your own npm scripts so that they run whatever you want. More about that here

Is it possible to build a binary package with poky?

As given in mega-manual,
4.2.2.2. Creating the Project
You can create two types of projects: Autotools-based, or
Makefile-based. This section describes how to create Autotools-based
projects from within the Eclipse IDE. For information on creating
Makefile-based projects in a terminal window, see the section "Using
the Command Line" in the Yocto Project Application Developer's Guide.
I want to deploy a separate binary package, I don't want to create an image including my package. Isn't it possible to build a binary package like .ipk .deb .rpm using poky?
Yes, packages are always created. Autotools and Makefiles are for configuring/building software, so not really related to the question.
Use the PACKAGE_CLASSES variable in your configuration to select the package types you want to build with Yocto/OpenEmbedded. When you "bitbake recipe-name" the packages are built in the deploy directories under recipe WORKDIR.
Please don't expect the packages to be compatible with some other operating system though: they will be tailored for your specific configuration. If you already have an image running exactly that configuration, then it should be fine.

Resources