diff options
author | David Tardon <dtardon@redhat.com> | 2012-04-05 10:53:08 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-05-29 07:24:37 +0200 |
commit | 8bc7afbf5fed7cff34e2f2a152adfe90d7c34169 (patch) | |
tree | 68928de81d8f7213f2eed861e9a3c97e2b42d8db /RepositoryExternal.mk | |
parent | b811401e863da4acd5b6b7fea27a6e0461303759 (diff) |
connectivity: convert postgresql driver
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r-- | RepositoryExternal.mk | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 57a60e8fa313..aa1991702e62 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -1240,6 +1240,59 @@ endef endif # SYSTEM_HSQLDB + +ifeq ($(SYSTEM_POSTGRESQL),YES) + +define gb_LinkTarget__use_postgresql + +$(call gb_LinkTarget_add_defs,$(1),\ +) + +$(call gb_LinkTarget_set_include,$(1),\ + $(POSTGRESQL_INC) \ + $$(INCLUDE) \ +) + +$(call gb_LinkTarget_add_libs,$(1),\ + -lpq \ +) + +$(call gb_LinkTarget_add_ldflags,$(1),\ + $(POSTGRESQL_LIB) \ +) + +endef + +else # !SYSTEM_POSTGRESQL + +define gb_LinkTarget__use_postgresql + +$(call gb_LinkTarget_set_include,$(1),\ + -I$(OUTDIR_FOR_BUILD)/inc/postgresql \ + $$(INCLUDE) \ +) + +$(call gb_LinkTarget_add_linked_static_libs,$(1),\ + pq \ +) + +ifeq ($(GUI)$(COM),WNTMSC) +$(call gb_LinkTarget_add_linked_libs,$(1),\ + openssl \ + secur32 \ + ws2_32 \ + $(if $(filter YES,$(WITH_LDAP)),ldap) \ +) +endif + +endef + +$(eval $(call gb_Helper_register_static_libraries,PLAINLIBS,\ + pq \ +)) + +endif # SYSTEM_POSTGRESQL + # MacOSX-only frameworks ############################################ # (in alphabetical order) |