mirror of https://github.com/wanadev/yoga.git
Build standalone Windows version
This commit is contained in:
parent
77fcf6b94f
commit
c3d8ab3fd7
|
@ -74,7 +74,11 @@ Build and install using the following command::
|
|||
Windows
|
||||
~~~~~~~
|
||||
|
||||
Building YOGA on Windows is not supported yet...
|
||||
The simplest way to use YOGA on Windows is to download the standalone builds available here:
|
||||
|
||||
* https://github.com/wanadev/yoga/releases
|
||||
|
||||
If you need YOGA as a library or if you really want to build it yourself, look in the ``winbuild`` folder.
|
||||
|
||||
|
||||
Installing Development Dependencies
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
# YOGA: Windows Build
|
||||
|
||||
## Requirements
|
||||
|
||||
* Git Bash (https://git-scm.com/downloads)
|
||||
* Python 3.x **64bit** (https://www.python.org/downloads/windows/)
|
||||
* Virtualenv (`pip install virtualenv` if not installed by the Python installer)
|
||||
* CMake (https://cmake.org/download/)
|
||||
* Visual Studio Build Tools (MSVC and MSBuild)
|
||||
|
||||
|
||||
## Build and install from PYPI
|
||||
|
||||
pip install yoga
|
||||
|
||||
|
||||
## Build standalone version from source
|
||||
|
||||
Clone this repository (using Git Bash):
|
||||
|
||||
git clone https://github.com/wanadev/yoga.git
|
||||
cd yoga
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
Run the build script:
|
||||
|
||||
./winbuild/builddist.bat
|
||||
|
||||
Once the build finished, you will find the result in the `yogawin.dist` folder. To run YOGA, use the `yogawin.exe` executable:
|
||||
|
||||
./yogawin.dist/yogawin.exe -h
|
|
@ -0,0 +1,13 @@
|
|||
setlocal
|
||||
|
||||
virtualenv __env__
|
||||
call __env__\Scripts\activate.bat
|
||||
|
||||
pip install .
|
||||
pip install nuitka
|
||||
|
||||
python -m nuitka --follow-imports --standalone --windows-dependency-tool=pefile winbuild\yogawin.py
|
||||
|
||||
call __env__\Scripts\deactivate.bat
|
||||
|
||||
endlocal
|
Loading…
Reference in New Issue