-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathREADME.meson_msvc
More file actions
30 lines (22 loc) · 813 Bytes
/
README.meson_msvc
File metadata and controls
30 lines (22 loc) · 813 Bytes
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
28
29
30
Build on Microsoft Windows with Microsoft Visual Studio and meson
1. Install
- Microsft Visual Studio with C and C++ support
- Meson
- PostgreSQL
2. Run x64 Native Tools Command Prompt for VS 20xx (*** ensure x64 ***)
3. Set PATH
set PATH=%PATH%;C:\Program Files\PostgreSQL\16\bin;C:\Program Files\Meson
4. execute in plpgsql_check source directory (buildtype should be release or plain,
attention - the release buildtype inject dependency on vc_redist.x64.exe)
meson setup --wipe --buildtype release build
cd build
ninja
sudo ninja install (on linux)
ninja test (on linux)
# ninja bindist
5. tests on MSWIN requires installation DiffUtils from gnuwin32
set PATH=%PATH%;C:\Program Files (x86)\GnuWin32\bin
set PGPORT=
set PGUSER=
set PGPASSWORD=
ninja test