File: HOWTO-MSWindows

package info (click to toggle)
asymptote 3.05%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,420 kB
  • sloc: cpp: 172,663; ansic: 69,690; python: 14,957; sh: 5,605; javascript: 4,871; lisp: 1,507; perl: 1,417; makefile: 1,026; yacc: 610; lex: 449; xml: 182; asm: 8
file content (27 lines) | stat: -rw-r--r-- 1,169 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
        Compiling MSWindows binary of Asymptote under MSVC

First ensure that the asymptote documentation files and asymptote.sty are built under Linux.
Copy these to the Z:\asy\asydoc directory.

Ensure git is available
Ensure Powershell execution policy is at least unrestricted (the default for Powershell 7):
Set-ExecutionPolicy -Scope CurrentUser unrestricted

# TODO: Does unrestricted execution policy work by default?
Install powershell community extensions by "Install-Module Pscx -Scope CurrentUser" (https://github.com/Pscx/Pscx)
Install VSSetup extension for powershell by "Install-Module VSSetup -Scope CurrentUser"

Install Visual Studio Build Tools (Select CMake build tools as part of installation)
Install python3 (https://www.python.org/)
Install perl (https://strawberryperl.com/)
Install LLVM (https://github.com/llvm/llvm-project/releases)

Install virtualenv:
pip3 install virtualenv

Download NSIS 3+ ZIP from https://sourceforge.net/projects/nsis/ and extract to tools-cache/nsis
(Make sure tools-cache/nsis/makensis.exe is available)

# TODO: check if NSIS puts makensis in PATH or not for default installation

./build-asymptote.ps1 <VERSION>