]> err.no Git - sope/commitdiff
more OSX framework stuff
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 16 Aug 2005 15:10:29 +0000 (15:10 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 16 Aug 2005 15:10:29 +0000 (15:10 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1034 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-appserver/NGObjWeb/DynamicElements/WOForm.m
sope-ldap/NGLdap/GNUmakefile
sope-ldap/NGLdap/GNUmakefile.postamble [deleted file]
sope-ldap/NGLdap/GNUmakefile.preamble
sope-ldap/README-OSX.txt
sope-ldap/samples/ChangeLog
sope-ldap/samples/GNUmakefile
sope-ldap/samples/GNUmakefile.preamble
xmlrpc_call/ChangeLog
xmlrpc_call/GNUmakefile.preamble

index bceb3e7e83bbbc2680260f5fce329502858af6ac..29f740158eb2f41be887fd50a7f18d3e3335cb3f 100644 (file)
@@ -115,7 +115,7 @@ static int debugTakeValues = -1;
     WOComponent *sComponent = [_ctx component];
     BOOL doTakeValues = NO;
     
-    if (self->queryParameters) {
+    if (self->queryParameters != nil) {
       /* apply values to ?style parameters */
       NSEnumerator *keys;
       NSString     *key;
@@ -132,6 +132,7 @@ static int debugTakeValues = -1;
       }
     }
     
+    // TODO: explain this href comparison
     if ([[self->href stringValueInComponent:sComponent] 
          isEqualToString:[_rq uri]]) {
       if (debugTakeValues) {
@@ -150,6 +151,7 @@ static int debugTakeValues = -1;
       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;
index c42ae6ee905277e58d520039f770cc8d613b573b..c374918d5e9999c9e1993008272ab19f7b0f8d9d 100644 (file)
@@ -55,7 +55,6 @@ libNGLdap_OBJC_FILES = \
 
 NGLdap_HEADER_FILES = $(libNGLdap_HEADER_FILES)
 NGLdap_OBJC_FILES   = $(libNGLdap_OBJC_FILES)
-NGLdap_SUBPROJECTS  = $(libNGLdap_SUBPROJECTS)
 
 
 # building
diff --git a/sope-ldap/NGLdap/GNUmakefile.postamble b/sope-ldap/NGLdap/GNUmakefile.postamble
deleted file mode 100644 (file)
index 2bd83b9..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# $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
index e8a9a2a2aebd3e6ee8d78eb9e7f1e74055e431d7..e374b012c2e52bc8648627c594c9ba9d65fd117b 100644 (file)
@@ -1,5 +1,7 @@
 # compiler flags
 
+SOPE_ROOT=../..
+
 ADDITIONAL_INCLUDE_DIRS += \
        -I..                            \
        -I../../sope-core/NGExtensions  \
@@ -8,6 +10,7 @@ ADDITIONAL_INCLUDE_DIRS += \
 
 ADDITIONAL_CPPFLAGS += -Wall -Wno-protocol
 
+
 # dependencies
 
 libNGLdap_LIBRARIES_DEPEND_UPON += \
@@ -23,10 +26,11 @@ NGLdap_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
@@ -82,3 +86,13 @@ endif
 #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
index 08cd417e161ab58be8d5256235e84c8147603f04..4cf78f8b432db2c81b9f87bcdbbc4ba8bfca33be 100644 (file)
@@ -1,5 +1,3 @@
-# $Id: README-OSX.txt 4 2004-08-20 17:04:31Z helge $
-
 Building Notes
 ==============
 
index 9e9ab11c20110a2d402a6613dec29e29080a83d0..34b5d95d134dc1cddc1aeadcf17225da5958d3e9 100644 (file)
@@ -1,3 +1,7 @@
+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
index bbf963fdc55844298abae0d5238c9085f540816b..c5ba6ec6ff466c0241434ffe9771b05195da76e9 100644 (file)
@@ -15,9 +15,6 @@ ldapchkpwd_OBJC_FILES  = ldapchkpwd.m
 #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
index 963d8beed3eff750e29bb0463a21131a201d175b..d0777389d9bd94362c30c0da43ff29dfb7eb14fa 100644 (file)
@@ -1,41 +1,51 @@
 # 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)
index 77df915a1fa6f5720c52c6a28df428c24a7c1272..6f66edc14320e626616dbfc72a2e68ca4973199b 100644 (file)
@@ -1,3 +1,7 @@
+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
index 8d63421824eb8dc6f12c669f2774ed07bbe718a6..beea0e757da226a24e3eab529d120e15b97f8c5d 100644 (file)
@@ -4,12 +4,9 @@ SOPE_ROOT=..
 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/  \
@@ -19,49 +16,48 @@ ADDITIONAL_INCLUDE_DIRS += \
        -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