Make it so it compiles on UNIX.

This commit is contained in:
edburns%acm.org 2000-07-05 19:53:24 +00:00
Родитель bfc9ae45ad
Коммит 5cfdba3262
2 изменённых файлов: 41 добавлений и 36 удалений

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

@ -59,10 +59,18 @@ Java_org_mozilla_webclient_wrapper_1native_BookmarksImpl_nativeNewRDFNode
nsCOMPtr<nsIRDFResource> newNode;
nsresult rv;
jint result = -1;
#ifdef XP_PC
nsAutoString uri(L"NC:BookmarksRoot");
#else
nsAutoString uri(NS_LITERAL_STRING("NC:BookmarksRoot"));
#endif
const jchar *url = ::util_GetStringChars(env, urlString);
#ifdef XP_PC
uri.Append(L"#$");
#else
uri.Append(NS_LITERAL_STRING("#$"));
#endif
uri.Append(url);
rv = gRDF->GetUnicodeResource(uri.GetUnicode(), getter_AddRefs(newNode));

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

@ -28,45 +28,44 @@ include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME = webclient
CPPSRCS = \
jni_util.cpp \
jni_util_export.cpp \
rdf_util.cpp \
dom_util.cpp \
nsActions.cpp \
CurrentPageImpl.cpp \
HistoryImpl.cpp \
BookmarksImpl.cpp \
WrapperFactoryImpl.cpp \
WindowControlImpl.cpp \
NavigationImpl.cpp \
CBrowserContainer.cpp \
NativeEventThread.cpp \
RDFEnumeration.cpp \
RDFTreeNode.cpp \
ISupportsPeer.cpp \
nsSetupRegistry.cpp \
$(NULL)
CPPSRCS = \
jni_util.cpp \
jni_util_export.cpp \
dom_util.cpp \
nsActions.cpp \
rdf_util.cpp \
BookmarksImpl.cpp \
CBrowserContainer.cpp \
CurrentPageImpl.cpp \
HistoryImpl.cpp \
ISupportsPeer.cpp \
NativeEventThread.cpp \
NavigationImpl.cpp \
RDFEnumeration.cpp \
RDFTreeNode.cpp \
WindowControlImpl.cpp \
WrapperFactoryImpl.cpp \
$(NULL)
EXTRA_DSO_LDOPTS = \
-L$(DIST)/bin \
-L$(DIST)/lib \
$(EXTRA_DSO_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_JS_LIBS) \
$(NULL)
include $(topsrcdir)/config/config.mk
ifneq ($(BAL_INTERFACE),)
CPPSRCS += bal_util.cpp
endif
include $(topsrcdir)/config/rules.mk
INCLUDES = -I$(JDKHOME)/include -I$(JDKHOME)/solaris/include -I$(DIST)/include $(DEPTH)/widget/src/gtk
#CXXFLAGS += $(MOZ_GTK_CFLAGS)
#CXXDEFS += -D_REENTRANT -DXP_UNIX -DNS_DEBUG -DDEBUG_RAPTOR_CANVAS
#CFLAGS += $(MOZ_GTK_CFLAGS)
ifdef MOZ_ENABLE_GTK
ifndef MOZ_MONOLITHIC_TOOLKIT
CXXFLAGS += $(MOZ_GTK_CFLAGS)
CFLAGS += $(MOZ_GTK_CFLAGS)
EXTRA_DSO_LDOPTS += -lgtkxtbin -lgtksuperwin -L/usr/X11R6/lib -lXt
else
CXXFLAGS += $(TK_CFLAGS)
CFLAGS += $(TK_CFLAGS)
EXTRA_DSO_LDOPTS += -lgtkxtbin -lgtksuperwin -L/usr/X11R6/lib -lXt
endif
endif
INCLUDES := -I$(JDKHOME)/include -I$(JDKHOME)/include/solaris $(INCLUDES)
JAVAH_CLS= \
"-o BookmarksImpl.h org.mozilla.webclient.wrapper_native.BookmarksImpl" \
@ -105,8 +104,6 @@ $(JAVAH_FILES):
$(JAVAH_PROG) $(JAVAH_FLAGS) $$c; \
done
# $(JAVAH_PROG) $(JAVAH_FLAGS) $$c \
clobber_all::
rm -f $(JAVAH_FILES)
rm -f nsSetupRegistry.cpp