WOComponent *sComponent = [_ctx component];
BOOL doTakeValues = NO;
- if (self->queryParameters) {
+ if (self->queryParameters != nil) {
/* apply values to ?style parameters */
NSEnumerator *keys;
NSString *key;
}
}
+ // TODO: explain this href comparison
if ([[self->href stringValueInComponent:sComponent]
isEqualToString:[_rq uri]]) {
if (debugTakeValues) {
doTakeValues = YES;
}
else if (alwaysPassIn) {
+ // Note: this does not call the component! Bug? (see 'else' below)
if (debugTakeValues)
NSLog(@"%s: taking values from foreign request ",__PRETTY_FUNCTION__);
doTakeValues = YES;
NGLdap_HEADER_FILES = $(libNGLdap_HEADER_FILES)
NGLdap_OBJC_FILES = $(libNGLdap_OBJC_FILES)
-NGLdap_SUBPROJECTS = $(libNGLdap_SUBPROJECTS)
# building
+++ /dev/null
-# $Id$
-
-ifeq ($(GNUSTEP_TARGET_OS),mingw32)
-libNGLdap_LIBRARIES_DEPEND_UPON += -lFoundation -lobjc
-endif
-ifeq ($(GNUSTEP_TARGET_OS),cygwin32)
-libNGLdap_LIBRARIES_DEPEND_UPON += -lFoundation -lobjc
-endif
# compiler flags
+SOPE_ROOT=../..
+
ADDITIONAL_INCLUDE_DIRS += \
-I.. \
-I../../sope-core/NGExtensions \
ADDITIONAL_CPPFLAGS += -Wall -Wno-protocol
+
# dependencies
libNGLdap_LIBRARIES_DEPEND_UPON += \
ifeq ($(reentrant),yes)
ADDITIONAL_CPPFLAGS += -D_REENTRANT=1
libNGLdap_LIBRARIES_DEPEND_UPON += -lldap_r -llber -lpthread
+NGLdap_LIBRARIES_DEPEND_UPON += -lldap_r -llber -lpthread
else
libNGLdap_LIBRARIES_DEPEND_UPON += -lldap -llber
+NGLdap_LIBRARIES_DEPEND_UPON += -lldap -llber
endif
-NGLdap_LIBRARIES_DEPEND_UPON += $(libNGLdap_LIBRARIES_DEPEND_UPON)
# SASL/SSL dependencies
#ADDITIONAL_INCLUDE_DIRS += -I/usr/local/openldap/include
#SYSTEM_LIB_DIR += -L/usr/local/openldap/lib
#endif
+
+
+# Windows
+
+ifeq ($(GNUSTEP_TARGET_OS),mingw32)
+libNGLdap_LIBRARIES_DEPEND_UPON += -lFoundation -lobjc
+endif
+ifeq ($(GNUSTEP_TARGET_OS),cygwin32)
+libNGLdap_LIBRARIES_DEPEND_UPON += -lFoundation -lobjc
+endif
-# $Id: README-OSX.txt 4 2004-08-20 17:04:31Z helge $
-
Building Notes
==============
+2005-08-16 Helge Hess <helge.hess@opengroupware.org>
+
+ * GNUmakefile, GNUmakefile.preamble: added OSX framework compilation
+
2005-07-23 Sebastian Reitenbach <reitenbach@rapideye.de>
* GNUmakefile.preamble: added OpenBSD linking flags
#TOOL_NAME = #pwd-check
#pwd-check_OBJC_FILES = pwd-check.m
-ldapls_TOOL_LIBS += -lNGLdap
-ldap2dsml_TOOL_LIBS += -lNGLdap
-ldapchkpwd_TOOL_LIBS += -lNGLdap
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/tool.make
# compilation settings
+SOPE_ROOT=../..
+
ADDITIONAL_INCLUDE_DIRS += \
- -I.. \
- -I../../sope-core/NGStreams \
- -I../../sope-core/NGExtensions \
- -I../../sope-core \
- -I../../sope-xml \
-
-ifneq ($(GNUSTEP_BUILD_DIR),)
-RELBUILD_DIR_SOPE=$(GNUSTEP_BUILD_DIR)/../..
-RELBUILD_DIR_Core=$(RELBUILD_DIR_SOPE)/sope-core
-RELBUILD_DIR_Xml=$(RELBUILD_DIR_SOPE)/sope-xml
-RELBUILD_DIR_Ldap=$(RELBUILD_DIR_SOPE)/sope-ldap
+ -I.. \
+ -I$(SOPE_ROOT)/sope-core/NGStreams \
+ -I$(SOPE_ROOT)/sope-core/NGExtensions \
+ -I$(SOPE_ROOT)/sope-core \
+ -I$(SOPE_ROOT)/sope-xml
+
+
+# dependencies
+
+ifneq ($(frameworks),yes)
+ADDITIONAL_TOOL_LIBS += \
+ -lNGLdap \
+ -lNGStreams -lNGExtensions -lEOControl \
+ -lDOM -lSaxObjC
+else
+ADDITIONAL_TOOL_LIBS += \
+ -framework NGLdap \
+ -framework NGStreams -framework NGExtensions -framework EOControl \
+ -framework DOM -framework SaxObjC
+endif
+
+
+# library/framework search pathes
+DEP_DIRS = \
+ ../NGLdap \
+ $(SOPE_ROOT)/sope-core/NGStreams \
+ $(SOPE_ROOT)/sope-core/NGExtensions \
+ $(SOPE_ROOT)/sope-core/EOControl \
+ $(SOPE_ROOT)/sope-xml/DOM \
+ $(SOPE_ROOT)/sope-xml/SaxObjC
+
+ifneq ($(frameworks),yes)
ADDITIONAL_LIB_DIRS += \
- -L$(RELBUILD_DIR_Core)/EOControl/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_Core)/NGExtensions/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_Core)/NGStreams/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_Xml)/DOM/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_Xml)/SaxObjC/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_Ldap)/NGLdap/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(GNUSTEP_BUILD_DIR)/$(GNUSTEP_OBJ_DIR_NAME)
+ $(foreach dir,$(DEP_DIRS),\
+ -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
else
ADDITIONAL_LIB_DIRS += \
- -L../../sope-core/EOControl/$(GNUSTEP_OBJ_DIR) \
- -L../../sope-core/NGExtensions/$(GNUSTEP_OBJ_DIR) \
- -L../../sope-core/NGStreams/$(GNUSTEP_OBJ_DIR) \
- -L../../sope-xml/DOM/$(GNUSTEP_OBJ_DIR) \
- -L../../sope-xml/SaxObjC/$(GNUSTEP_OBJ_DIR) \
- -L../NGLdap/$(GNUSTEP_OBJ_DIR)
+ $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
endif
-SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+SYSTEM_LIB_DIR += -L/usr/local/lib
-ADDITIONAL_TOOL_LIBS += \
- -lNGStreams -lNGExtensions -lEOControl \
- -lDOM -lSaxObjC
# OS dependend stuff
ifeq ($(findstring openbsd3, $(GNUSTEP_TARGET_OS)), openbsd3)
+2005-08-16 Helge Hess <helge.hess@opengroupware.org>
+
+ * GNUmakefile.preamble: added OSX framework compilation
+
2005-07-23 Sebastian Reitenbach <reitenbach@rapideye.de>
* GNUmakefile.preamble: added OpenBSD linking flags
CORE_ROOT=$(SOPE_ROOT)/sope-core
APPSERVER_ROOT=$(SOPE_ROOT)/sope-appserver
-ADDITIONAL_CPPFLAGS += -Wall -DCOMPILE_FOR_GSTEP_MAKE=1
+ADDITIONAL_CPPFLAGS += -Wall
ADDITIONAL_OBJCFLAGS += -Wall -Wno-import -Wno-protocol
-ADDITIONAL_CPPFLAGS += -pipe -Wall
-ADDITIONAL_CPPFLAGS += -DCOMPILING_NGOBJWEB=1
-
ADDITIONAL_INCLUDE_DIRS += \
-I.. -I. -I../.. \
-I$(APPSERVER_ROOT)/NGObjWeb/ \
-I$(CORE_ROOT)/NGExtensions \
-I$(SOPE_ROOT)/sope-xml
-libNGXmlRpc_LIBRARIES_DEPEND_UPON += \
- -lNGObjWeb \
- -lNGMime -lNGStreams -lNGExtensions -lEOControl \
- -lXmlRpc -lDOM -lSaxObjC
+# dependencies
+
+ifneq ($(frameworks),yes)
xmlrpc_call_TOOL_LIBS += \
-lNGXmlRpc -lNGObjWeb \
-lNGMime -lNGStreams -lNGExtensions -lEOControl \
-lXmlRpc -lDOM -lSaxObjC
+else
+xmlrpc_call_TOOL_LIBS += \
+ -framework NGXmlRpc -framework NGObjWeb \
+ -framework NGMime \
+ -framework NGStreams -framework NGExtensions -framework EOControl \
+ -framework XmlRpc -framework DOM -framework SaxObjC
+endif
-ifneq ($(GNUSTEP_BUILD_DIR),)
-RELBUILD_DIR_SOPE=$(GNUSTEP_BUILD_DIR)/../sope-appserver
-RELBUILD_DIR_MIME=$(GNUSTEP_BUILD_DIR)/../sope-mime
-RELBUILD_DIR_SxCore=$(GNUSTEP_BUILD_DIR)/$(CORE_ROOT)
-RELBUILD_DIR_SxXml=$(GNUSTEP_BUILD_DIR)/../sope-xml
-ADDITIONAL_LIB_DIRS += \
- -L$(GNUSTEP_BUILD_DIR)/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_SOPE)/NGObjWeb/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_SOPE)/NGXmlRpc/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_MIME)/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_SxCore)/NGStreams/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_SxCore)/NGExtensions/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_SxCore)/EOControl/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_SxXml)/XmlRpc/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_SxXml)/DOM/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_SxXml)/SaxObjC/$(GNUSTEP_OBJ_DIR_NAME)
+# library/framework search pathes
+
+DEP_DIRS = \
+ $(SOPE_ROOT)/sope-appserver/NGXmlRpc \
+ $(SOPE_ROOT)/sope-appserver/NGObjWeb \
+ $(SOPE_ROOT)/sope-mime/NGMime \
+ $(SOPE_ROOT)/sope-core/NGStreams \
+ $(SOPE_ROOT)/sope-core/NGExtensions \
+ $(SOPE_ROOT)/sope-core/EOControl \
+ $(SOPE_ROOT)/sope-xml/XmlRpc \
+ $(SOPE_ROOT)/sope-xml/DOM \
+ $(SOPE_ROOT)/sope-xml/SaxObjC
+ifneq ($(frameworks),yes)
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),\
+ -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
else
ADDITIONAL_LIB_DIRS += \
- -L$(APPSERVER_ROOT)/NGXmlRpc/$(GNUSTEP_OBJ_DIR) \
- -L$(APPSERVER_ROOT)/NGObjWeb/$(GNUSTEP_OBJ_DIR) \
- -L$(SOPE_ROOT)/sope-mime/$(GNUSTEP_OBJ_DIR) \
- -L$(CORE_ROOT)/NGStreams/$(GNUSTEP_OBJ_DIR) \
- -L$(CORE_ROOT)/NGExtensions/$(GNUSTEP_OBJ_DIR) \
- -L$(CORE_ROOT)/EOControl/$(GNUSTEP_OBJ_DIR) \
- -L$(SOPE_ROOT)/sope-xml/XmlRpc/$(GNUSTEP_OBJ_DIR) \
- -L$(SOPE_ROOT)/sope-xml/DOM/$(GNUSTEP_OBJ_DIR) \
- -L$(SOPE_ROOT)/sope-xml/SaxObjC/$(GNUSTEP_OBJ_DIR)
+ $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
endif
SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+
# OS dependend stuff
ifeq ($(findstring openbsd3, $(GNUSTEP_HOST_OS)), openbsd3)
xmlrpc_call_TOOL_LIBS += -liconv