File: README.meson_msvc

package info (click to toggle)
plpgsql-check 2.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,508 kB
  • sloc: ansic: 14,308; sql: 5,428; makefile: 24; python: 7; sh: 2
file content (30 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (3)
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 plain
   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