pg: add windows include and lib flag

pull/4123/head
yuyi 2020-03-26 21:17:13 +08:00 committed by GitHub
parent 1d0f3abadf
commit a6347118cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@ -75,3 +75,4 @@ thirdparty/SDL2_ttf/
cachegrind.out.* cachegrind.out.*
.gdb_history .gdb_history
/thirdparty/pg

View File

@ -3,6 +3,8 @@ module pg
#flag -lpq #flag -lpq
#flag linux -I/usr/include/postgresql #flag linux -I/usr/include/postgresql
#flag darwin -I/opt/local/include/postgresql11 #flag darwin -I/opt/local/include/postgresql11
#flag windows -I @VROOT/thirdparty/pg/include
#flag windows -L @VROOT/thirdparty/pg/win64
#include <libpq-fe.h> #include <libpq-fe.h>
pub struct DB { pub struct DB {