File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ sub GenerateFiles {
8484 print O " #define USE_SSL 1\n " if ($self -> {options }-> {openssl });
8585 print O " #define ENABLE_NLS 1\n " if ($self -> {options }-> {nls });
8686 print O " #define LOCALEDIR \" /usr/local/pgsql/share/locale\"\n " if ($self -> {options }-> {nls });
87+ if ($self -> {options }-> {xml }) {
88+ print O " #define HAVE_LIBXML2\n " ;
89+ print O " #define USE_LIBXML\n " ;
90+ }
8791 if ($self -> {options }-> {krb5 }) {
8892 print O " #define KRB5 1\n " ;
8993 print O " #define HAVE_KRB5_ERROR_TEXT_DATA 1\n " ;
@@ -246,6 +250,11 @@ sub AddProject {
246250 $proj -> AddLibrary($self -> {options }-> {krb5 } . ' \lib\i386\krb5_32.lib' );
247251 $proj -> AddLibrary($self -> {options }-> {krb5 } . ' \lib\i386\comerr32.lib' );
248252 }
253+ if ($self -> {options }-> {xml }) {
254+ $proj -> AddIncludeDir($self -> {options }-> {xml } . ' \include' );
255+ $proj -> AddIncludeDir($self -> {options }-> {iconv } . ' \include' );
256+ $proj -> AddLibrary($self -> {options }-> {xml } . ' \lib\libxml2.lib' );
257+ }
249258 return $proj ;
250259}
251260
You can’t perform that action at this time.
0 commit comments