Free Electron
|
You will have to verify and update version numbers as appropriate.
This are not literal scripts. Read what you type.
For Linux, you will probably need to "export" the variables that you set, depending on the shell that you use. This makes them available to scripts that you run.
For Windows, you can set variable for each user by going to: [Control Panel -> User Accounts -> User Accounts -> Change my environment variables].
You can specify environment variables on the command line with arguments of the form VARIABLE="value"
. Variables on the command line override variables in the shell. For environment variables not set in the shell and not specified on the command line, the local.env
file in the base directory is read fill in the default values. You can edit local.env
to adjust your local configuration.
For the quick build using wrapper scripts, many of the environment variables are set using the SET_ENV script, which may be a good reference.
It is not required to set any enviroment variables, but some are commonly changed.
The build type can be set with CODEGEN
, usually debug or optimize.
Validate is a much slower version of debug that incorporates features such as deep reference tracking. Debug should be responsive. Profile usually has optimization, but may also have debug symbols. Optimize does not do Handler timing.
By default, the selection of modules to build is specified with forge.product in various products.py
files, but the optional variable FE_EXT
can be used to override the selection with a colon-delimited list, such as:
Other optional variables:
Note that if you don't set FE_LIB, you need to use FE_ROOT instead of FE_LIB in the examples that follow.
SSE may reduce binary portability.
When using Free Electron libraries in another tool, you may need to make the full array of libraries visible. This may be possible be adding to the colon-separated environment variable LD_LIBRARY_PATH
Make sure you activate 'Developer mode'. You can type "Developer Settings" in the Windows search bar. If you can't make symbolic links, you probably aren't in developer mode.
Compile with the "Visual Studio" prompt which automatically sets basic compiler variables.
Basic variables:
Additional variables for optional tools: