Ignore:
Timestamp:
2010-01-15T17:32:09+13:00 (14 years ago)
Author:
mdewsnip
Message:

Modifying historydb.cpp so it uses the more general dbclass object instead of being hard-wired to use gdbmclass. However, this class is still set up to use gdbm, provided USE_GDBM is set (which it always is in the main Greenstone). The problem with the history database is it is Greenstone-specific, not collection-specific, so there is no infodbtype option to check to see what database type should be used (a new option will need to be created in the main.cfg file). If USE_GDBM isn't set, the historydb class will do nothing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/win32.mak

    r21435 r21485  
    4444DLLDEBUG = 0
    4545ENABLE_ACCENTFOLD = 1
     46USE_GDBM = 1
    4647USE_SQLITE = 1
    4748ENABLE_MG = 1
     
    7374!ELSE
    7475ACCENTFOLD_LIBS =
     76!ENDIF
     77
     78!IF $(USE_GDBM)
     79GDBM_DEFINES = -DUSE_GDBM
     80GDBM_INCLUDES = -I"$(COMMON_PACKAGES_DIR)\gdbm\gdbm-1.8.3" -I"$(COMMON_PACKAGES_DIR)\gdbm\gdbm-1.8.3\windows"
     81!ELSE
     82GDBM_DEFINES =
     83GDBM_INCLUDES =
    7584!ENDIF
    7685
     
    121130CC = cl
    122131DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE \
    123         -DGSDL_NOCACHE $(Z3950_DEFS) $(MG_DEFS) $(MGPP_DEFS)
     132        -DGSDL_NOCACHE $(GDBM_DEFINES) $(Z3950_DEFS) $(MG_DEFS) $(MGPP_DEFS)
    124133INCLUDES = -I. -I"$(GSDL_DIR)" -I"$(COMMON_DIR)\src\lib" -I"$(COLSERVR_DIR)" -I"$(PROTOCOL_DIR)" \
    125134    $(MG_INCLUDES) $(MGPP_INCLUDES) \
    126135    -I"$(COMMON_PACKAGES_DIR)\windows\crypt\crypt" -I"$(COMMON_PACKAGES_DIR)\windows\expat\expat" \
    127     -I"$(COMMON_PACKAGES_DIR)\gdbm\gdbm-1.8.3" -I"$(COMMON_PACKAGES_DIR)\gdbm\gdbm-1.8.3\windows" \
     136    $(GDBM_INCLUDES) \
    128137    $(Z3950_INCLUDES)
    129138LDFLAGS =
Note: See TracChangeset for help on using the changeset viewer.