Bug #164760 Implement Palm Conduit - changes to build it.

Makefile and changes to build the Conduit. This would get built only when Palm CDK
is installed and the env var PALM_CDK_DIR is set to Palm CDK dir path.

r=leaf, sr=mscott.
This commit is contained in:
rdayal%netscape.com 2002-10-08 19:00:06 +00:00
Родитель 981f7cfd15
Коммит bf9c116e93
3 изменённых файлов: 78 добавлений и 0 удалений

Просмотреть файл

@ -28,5 +28,14 @@ include $(DEPTH)/config/autoconf.mk
DIRS = build public src
ifdef PALM_CDK_DIR
DIRS += conduit
else
libs::
@echo " "
@echo "PLEASE SET 'PALM_CDK_DIR' ENV VARIABLE to THE DIR WHERE YOU HAVE PALM CDK INSTALLED IF YOU WANT TO BUILD THE CONDUIT"
@echo " "
endif
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -0,0 +1,65 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 2002 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
PALM_CDK_INC = $(PALM_CDK_DIR)/C++/Include
PALM_CDK_LIB = $(PALM_CDK_DIR)/C++/Lib
PALM_PFC_INC = $(PALM_CDK_DIR)/C++/Pfc/include
PALM_PFC_SRC = $(PALM_CDK_DIR)/C++/Pfc/Src
include $(DEPTH)/config/autoconf.mk
MODULE = mozABConduit
EXPORT_LIBRARY = $(MODULE)
LIBRARY_NAME = $(MODULE)
REQUIRES = PalmSyncProxy \
$(NULL)
CPPSRCS = MozABConduitGenCond.cpp \
MozABConduitRecord.cpp \
MozABConduitSync.cpp \
MozABHHManager.cpp \
MozABPCManager.cpp \
$(NULL)
LOCAL_INCLUDES += -I$(PALM_CDK_INC) \
-I$(PALM_PFC_INC) \
-I$(PALM_PFC_SRC) \
$(NULL)
EXTRA_DSO_LDOPTS = \
$(PALM_CDK_LIB)/sync20.$(LIB_SUFFIX) \
$(PALM_CDK_LIB)/palmcmn.$(LIB_SUFFIX) \
$(NULL)
OS_LIBS += ole32.lib
# Force use of PIC
FORCE_USE_PIC = 1
FORCE_SHARED_LIB = 1
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -10,6 +10,10 @@
#define TRACE0(sz)
#define TRACE(sz)
#include <CPalmRec.cpp>
#include <CPString.cpp>
#include <CPCatgry.cpp>
#include <windows.h>
#include <string.h>
#include <stdio.h>