+2005-08-16 Helge Hess <helge.hess@opengroupware.org>
+
+ * v4.5.1
+
+ * install into SaxObjC framework Resources when being used with OSX
+
+ * ChangeLogSaxDriver.m: fixed a gcc 4.0 warning
+
2004-12-14 Marcus Mueller <znek@mulle-kybernetik.com>
* ChangeLogSaxDriver.xcode: minor fixes
@interface ChangeLogSaxDriver(PrivateAPI)
- (NSString *)_namespace;
-- (void)_writeString:(id)_s;
+- (void)_writeString:(NSString *)_s;
- (void)_processLine:(NSString *)_line;
- (void)_parseFromString:(NSString *)_str systemId:(NSString *)_sysId;
# compilation settings
+ifeq ($(FOUNDATION_LIB),apple)
+ifeq ($(frameworks),yes)
+BUNDLE_INSTALL_DIR := /Library/Frameworks/SaxObjC.framework/Resources/SaxDrivers/
+endif
+endif
+
+
SOPE_ROOT=../..
SOPE_OBJ_ROOT=$(GNUSTEP_BUILD_DIR)/$(SOPE_ROOT)
-I$(SOPE_ROOT)/sope-xml \
-I$(SOPE_ROOT)/sope-core/NGExtensions
-BUNDLE_LIBS += \
- -lSaxObjC -lNGExtensions
+
+# dependencies
+
+ifneq ($(frameworks),yes)
+BUNDLE_LIBS += -lSaxObjC $(libxml_LIBS)
+else
+BUNDLE_LIBS += -framework SaxObjC $(libxml_LIBS)
+endif
+
ADDITIONAL_BUNDLE_LIBS += $(BUNDLE_LIBS)
-ADDITIONAL_LIB_DIRS += \
- -L$(SOPE_OBJ_ROOT)/sope-xml/SaxObjC/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(SOPE_OBJ_ROOT)/sope-core/NGExtensions/$(GNUSTEP_OBJ_DIR_NAME)
+
+# library/framework search pathes
+
+DEP_DIRS = ../SaxObjC ../../sope-core/NGExtensions
+
+ifneq ($(frameworks),yes)
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),\
+ -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
+else
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
+endif
+
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
# Version file
-SUBMINOR_VERSION:=0
+SUBMINOR_VERSION:=1
+2005-08-16 Helge Hess <helge.hess@opengroupware.org>
+
+ * v4.5.12
+
+ * install into SaxObjC framework Resources when being used with OSX
+
+ * bumped version to 4.5 to be consistent with the remaining SOPE
+ versioning
+
2005-05-03 Helge Hess <helge.hess@opengroupware.org>
* Model/StructuredTextBodyElement.m: fixed a gcc 4.0 warning (v1.0.11)
# compilation settings
-ifneq ($(GNUSTEP_BUILD_DIR),)
-ADDITIONAL_LIB_DIRS += \
- -L$(GNUSTEP_BUILD_DIR)/../SaxObjC/$(GNUSTEP_OBJ_DIR_NAME)
-else
-ADDITIONAL_LIB_DIRS += -L../SaxObjC/$(GNUSTEP_OBJ_DIR)
+ifeq ($(FOUNDATION_LIB),apple)
+ifeq ($(frameworks),yes)
+BUNDLE_INSTALL_DIR := /Library/Frameworks/SaxObjC.framework/Resources/SaxDrivers/
+endif
endif
+
STXSaxDriver_INCLUDE_DIRS += \
-I. \
-I./Model/ \
-I./ExtraSTX/ \
-I..
+
+# dependencies
+
+ifneq ($(frameworks),yes)
STXSaxDriver_BUNDLE_LIBS += -lSaxObjC
+else
+STXSaxDriver_BUNDLE_LIBS += -framework SaxObjC
+endif
+
+
+# library/framework search pathes
+
+DEP_DIRS = ../SaxObjC
+
+ifneq ($(frameworks),yes)
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),\
+ -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
+else
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
+endif
+
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
# Version file
-MAJOR_VERSION=1
-MINOR_VERSION=0
-SUBMINOR_VERSION:=11
+MAJOR_VERSION=4
+MINOR_VERSION=5
+SUBMINOR_VERSION:=12
+2005-08-16 Helge Hess <helge.hess@opengroupware.org>
+
+ * v4.5.52
+
+ * SaxXMLReaderFactory.m: improved bundle-info.plist lookup (first look
+ in bundle directory, then try to lookup as a NSBundle resource),
+ log searched pathes if no XML reader could be found
+
+ * GNUmakefile.preamble: set framework/cocoa defines when compiling
+ with frameworks support
+
2005-05-08 Helge Hess <helge.hess@opengroupware.org>
* XMLNamespaces.h: added namespace declaration for XML vCards (v4.5.51)
# compilation settings
ifeq ($(FOUNDATION_LIB),apple)
+ifeq ($(frameworks),yes)
SaxObjC_INSTALL_DIR = /Library/Frameworks/
endif
+endif
ADDITIONAL_CPPFLAGS += \
-Wall -DCOMPILE_FOR_GSTEP_MAKE=1 \
ADDITIONAL_CPPFLAGS += -Wno-protocol
+ifeq ($(frameworks),yes)
+ADDITIONAL_CPPFLAGS += -DCOMPILE_AS_FRAMEWORK=1
+ifeq ($(FOUNDATION_LIB),apple)
+ADDITIONAL_CPPFLAGS += -DCOCOA_Foundation_LIBRARY=1
+endif
+endif
+
saxxml_INCLUDE_DIRS += -I..
saxxml_LIB_DIRS += -L./$(GNUSTEP_OBJ_DIR)
saxxml_TOOL_LIBS += -lSaxObjC
id tmp;
tmp = NSSearchPathForDirectoriesInDomains(NSAllLibrariesDirectory,
- NSAllDomainsMask,
- YES);
+ NSAllDomainsMask,
+ YES);
if ([tmp count] > 0) {
NSEnumerator *e;
NSString *subdir;
NSString *p;
e = [[fm directoryContentsAtPath:_libraryPath] objectEnumerator];
- while ((p = [e nextObject])) {
+ while ((p = [e nextObject]) != nil) {
NSDictionary *info;
NSString *infoPath;
BOOL isDir;
NSLog(@"%s: .sax is not a dir: '%@' ???", __PRETTY_FUNCTION__, p);
continue;
}
-
-#if COCOA_Foundation_LIBRARY
- {
+
+ infoPath = [p stringByAppendingPathComponent:@"bundle-info.plist"];
+ if (![fm fileExistsAtPath:infoPath]) {
NSBundle *b;
b = [NSBundle bundleWithPath:p];
infoPath = [b pathForResource:@"bundle-info" ofType:@"plist"];
+ if (![fm fileExistsAtPath:infoPath]) {
+ NSLog(@"%s: did not find bundle-info dictionary in driver: '%@'",
+ __PRETTY_FUNCTION__, infoPath);
+ continue;
+ }
}
-#else
- infoPath = [p stringByAppendingPathComponent:@"bundle-info.plist"];
-#endif
- info = [NSDictionary dictionaryWithContentsOfFile:infoPath];
- if (info == nil) {
+ if ((info = [NSDictionary dictionaryWithContentsOfFile:infoPath]) == nil) {
NSLog(@"%s: could not parse bundle-info dictionary: '%@'",
__PRETTY_FUNCTION__, infoPath);
continue;
NSAssert(self->nameToBundle == nil, @"already set up !");
NSAssert(self->mimeTypeToName == nil, @"partially set up !");
#else
- if (self->nameToBundle) return;
+ if (self->nameToBundle != nil) return;
#endif
pool = [[NSAutoreleasePool alloc] init];
#if DEBUG
if ([self->nameToBundle count] == 0) {
- NSLog(@"%s: no XML parser could be found ...", __PRETTY_FUNCTION__);
+ NSLog(@"%s: no XML parser could be found in pathes: %@",
+ __PRETTY_FUNCTION__, [self saxReaderSearchPathes]);
}
else if ([self->mimeTypeToName count] == 0) {
NSLog(@"%s: no XML parser declared a MIME type ...",__PRETTY_FUNCTION__);
# version file
-SUBMINOR_VERSION:=51
+SUBMINOR_VERSION:=52
+2005-08-16 Helge Hess <helge.hess@opengroupware.org>
+
+ * install into SaxObjC framework Resources when being used with OSX
+ (v4.5.21)
+
2005-07-20 Helge Hess <helge.hess@skyrix.com>
* TableCallbacks.m: fixed a compilation issues with either gcc 4.0.1
# postprocessing
+
+# add bundle-info.plist file
+
ifneq ($(GNUSTEP_BUILD_DIR),)
after-all ::
@(cp bundle-info.plist \
# compilation settings
+ifeq ($(FOUNDATION_LIB),apple)
+ifeq ($(frameworks),yes)
+BUNDLE_INSTALL_DIR := /Library/Frameworks/SaxObjC.framework/Resources/SaxDrivers/
+endif
+endif
+
+
ADDITIONAL_CPPFLAGS += -funsigned-char
ADDITIONAL_INCLUDE_DIRS += -I../.. -I..
ADDITIONAL_INCLUDE_DIRS += $(shell xml2-config --cflags)
-ifneq ($(GNUSTEP_BUILD_DIR),)
+
+libxml_LIBS := $(shell xml2-config --libs)
+
+
+ifneq ($(frameworks),yes)
+libxmlSAXDriver_BUNDLE_LIBS += -lSaxObjC $(libxml_LIBS)
+else
+libxmlSAXDriver_BUNDLE_LIBS += -framework SaxObjC $(libxml_LIBS)
+endif
+
+
+# library/framework search pathes
+
+DEP_DIRS = ../SaxObjC
+
+ifneq ($(frameworks),yes)
ADDITIONAL_LIB_DIRS += \
- -L$(GNUSTEP_BUILD_DIR)/../SaxObjC/$(GNUSTEP_OBJ_DIR_NAME)
+ $(foreach dir,$(DEP_DIRS),\
+ -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
else
-ADDITIONAL_LIB_DIRS += -L../SaxObjC/$(GNUSTEP_OBJ_DIR)
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
endif
-libxml_LIBS := $(shell xml2-config --libs)
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
-libxmlSAXDriver_BUNDLE_LIBS += -lSaxObjC $(libxml_LIBS)
+
+# platform specific options
ifeq ($(GNUSTEP_TARGET_OS),cygwin32)
libxmlSAXDriver_BUNDLE_LIBS += \
# version
-SUBMINOR_VERSION:=20
+SUBMINOR_VERSION:=21
# compilation settings
+ifeq ($(FOUNDATION_LIB),apple)
+ifeq ($(frameworks),yes)
+BUNDLE_INSTALL_DIR := /Library/Frameworks/SaxObjC.framework/Resources/SaxDrivers/
+endif
+endif
+
+pyxSAXDriver_RESOURCE_FILES = bundle-info.plist
+pyxSAXDriver_LOCALIZED_RESOURCE_FILES =
+
+
pyxSAXDriver_BUNDLE_LIBS += -lSaxObjC
ifeq ($(GNUSTEP_TARGET_OS),cygwin32)
-lFoundation -lobjc
endif
-pyxSAXDriver_RESOURCE_FILES = bundle-info.plist
-pyxSAXDriver_LOCALIZED_RESOURCE_FILES =
ADDITIONAL_INCLUDE_DIRS += -I.. -I../..
ADDITIONAL_LIB_DIRS += -L../SaxObjC/$(GNUSTEP_OBJ_DIR)