first round if cmake patches
This commit is contained in:
parent
00674cde8e
commit
00399f5467
112
CASA/CMakeLists.txt
Normal file
112
CASA/CMakeLists.txt
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
project(CASA)
|
||||||
|
cmake_minimum_required(VERSION 2.6.0)
|
||||||
|
|
||||||
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
|
||||||
|
|
||||||
|
enable_language(C CXX CSharp)
|
||||||
|
|
||||||
|
SET (VERSION_MAJOR "1")
|
||||||
|
SET (VERSION_MINOR "7")
|
||||||
|
SET (VERSION_SUB "0")
|
||||||
|
SET (VERSION_PATCH "0")
|
||||||
|
# SET (VERSION_DEVEL "1")
|
||||||
|
# SET (VERSION_SUFFIX "a")
|
||||||
|
|
||||||
|
SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_SUB})
|
||||||
|
|
||||||
|
IF (VERSION_PATCH)
|
||||||
|
SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_SUB}.${VERSION_PATCH})
|
||||||
|
ENDIF (VERSION_PATCH)
|
||||||
|
|
||||||
|
IF (VERSION_DEVEL)
|
||||||
|
# for snapshot Version Number
|
||||||
|
find_package(Subversion)
|
||||||
|
IF (Subversion_FOUND)
|
||||||
|
Subversion_WC_INFO(${PROJECT_SOURCE_DIR} CASA)
|
||||||
|
MESSAGE("Current revision is ${CASA_WC_REVISION}")
|
||||||
|
ENDIF (Subversion_FOUND)
|
||||||
|
SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_SUB}.${CASA_WC_REVISION})
|
||||||
|
ENDIF (VERSION_DEVEL)
|
||||||
|
|
||||||
|
# Set install locations:
|
||||||
|
set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
|
||||||
|
set(EXEC_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" CACHE PATH "Base directory for executables and libraries" FORCE)
|
||||||
|
set(LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is /lib${LIB_SUFFIX})" FORCE)
|
||||||
|
set(LIBEXEC_INSTALL_DIR "${LIB_INSTALL_DIR}/CASA" CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is /lib${LIB_SUFFIX}/apparmor)" FORCE)
|
||||||
|
set(BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/bin" CACHE PATH "The bin install dir" FORCE)
|
||||||
|
set(SBIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/sbin" CACHE PATH "The sbin install dir" FORCE)
|
||||||
|
set(SHARE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH "Base directory for files which go to share/" FORCE)
|
||||||
|
set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "Base directory for files which go to include/" FORCE)
|
||||||
|
set(DOC_INSTALL_DIR "${SHARE_INSTALL_DIR}/CASA-${VERSION}" CACHE PATH "Base directory for files which go to doc/" FORCE)
|
||||||
|
set(MAN_INSTALL_DIR "${SHARE_INSTALL_DIR}/man" CACHE PATH "Base directory for files which go to man/" FORCE)
|
||||||
|
set(SYSCONF_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/etc" CACHE PATH "Base directory for configuration files" FORCE)
|
||||||
|
set(LIBROOT_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is /lib${LIB_SUFFIX})" FORCE)
|
||||||
|
|
||||||
|
INCLUDE(${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
|
||||||
|
TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
|
||||||
|
include(CMakeJavaInformation)
|
||||||
|
include(CMakeDetermineJavaCompiler)
|
||||||
|
include(CPack REQUIRED)
|
||||||
|
|
||||||
|
find_package( PAM REQUIRED)
|
||||||
|
find_package( Mono REQUIRED)
|
||||||
|
find_package( PkgConfig REQUIRED)
|
||||||
|
find_package( JavaExtended REQUIRED)
|
||||||
|
find_package( JNI REQUIRED)
|
||||||
|
|
||||||
|
pkg_check_modules(GTK-SHARP REQUIRED gtk-sharp-2.0)
|
||||||
|
pkg_check_modules(GLADE-SHARP REQUIRED glade-sharp-2.0)
|
||||||
|
pkg_check_modules(GLIB REQUIRED glib)
|
||||||
|
pkg_check_modules(GNOME-KEYRING REQUIRED gnome-keyring-1)
|
||||||
|
pkg_check_modules(MONO-NUNIT REQUIRED mono-nunit)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
message(STATUS "CASA version: ${VERSION}")
|
||||||
|
message(STATUS "suffix: ${LIB_SUFFIX}")
|
||||||
|
message(STATUS "exec pref ${EXEC_INSTALL_PREFIX}")
|
||||||
|
message(STATUS "bin: ${BIN_INSTALL_DIR}")
|
||||||
|
message(STATUS "sbin: ${SBIN_INSTALL_DIR}")
|
||||||
|
message(STATUS "lib: ${LIB_INSTALL_DIR}")
|
||||||
|
message(STATUS "libroot: ${LIBROOT_INSTALL_DIR}")
|
||||||
|
message(STATUS "include: ${INCLUDE_INSTALL_DIR}")
|
||||||
|
message(STATUS "libexec: ${LIBEXEC_INSTALL_DIR}")
|
||||||
|
message(STATUS "doc: ${DOC_INSTALL_DIR}")
|
||||||
|
message(STATUS "man: ${MAN_INSTALL_DIR}")
|
||||||
|
message(STATUS "sysconf: ${SYSCONF_INSTALL_DIR}")
|
||||||
|
|
||||||
|
# put the include dirs which are in the source or build tree
|
||||||
|
# before all other include dirs, so the headers in the sources
|
||||||
|
# are prefered over the already installed ones
|
||||||
|
# since cmake 2.4.1
|
||||||
|
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
|
||||||
|
|
||||||
|
add_custom_target(uninstall
|
||||||
|
"${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake")
|
||||||
|
|
||||||
|
add_subdirectory(micasadk)
|
||||||
|
add_subdirectory(micasad/lib)
|
||||||
|
add_subdirectory(sharp)
|
||||||
|
add_subdirectory(policy)
|
||||||
|
add_subdirectory(adlib)
|
||||||
|
add_subdirectory(micasad)
|
||||||
|
add_subdirectory(cli)
|
||||||
|
add_subdirectory(gui)
|
||||||
|
add_subdirectory(logincapture)
|
||||||
|
add_subdirectory(jwrapper)
|
||||||
|
|
||||||
|
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Common Authentication Service Adapter (CASA).")
|
||||||
|
SET(CPACK_PACKAGE_VENDOR "http://code.google.com/p/casa-auth/")
|
||||||
|
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
|
||||||
|
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
|
||||||
|
SET(CPACK_PACKAGE_VERSION "${VERSION}")
|
||||||
|
SET(CPACK_PACKAGE_VERSION_PATCH "${VERSION_SUFFIX}")
|
||||||
|
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CASA-${VERSION}${VERSION_SUFFIX}")
|
||||||
|
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "CASA-${VERSION}${VERSION_SUFFIX}")
|
||||||
|
SET(CPACK_GENERATOR TGZ)
|
||||||
|
SET(CPACK_SOURCE_GENERATOR TBZ2)
|
||||||
|
SET(CPACK_SOURCE_IGNORE_FILES CMakeCache.txt CMakeFiles progress.make cmake_install.cmake CPackConfig.cmake CPackSourceConfig.cmake "\\\\.git" "\\\\.svn" "\\\\.swp$" "\\\\.cvs" "\\\\.tar.gz" "\\\\.o")
|
||||||
|
SET(CPACK_SOURCE_TOPLEVEL_TAG "Linux-Source")
|
||||||
|
SET(CPACK_STRIP_FILES "")
|
||||||
|
SET(CPACK_SYSTEM_NAME "Linux")
|
||||||
|
|
@ -1,72 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
if LINUX
|
|
||||||
SUBDIRS = micasacache common micasadk micasad/lib sharp \
|
|
||||||
policy adlib micasad cli gui logincapture jwrapper package
|
|
||||||
|
|
||||||
DIST_SUBDIRS = micasacache common micasadk micasad cli sharp \
|
|
||||||
policy adlib gui logincapture jwrapper package
|
|
||||||
endif
|
|
||||||
|
|
||||||
if WINDOWS
|
|
||||||
SUBDIRS = package
|
|
||||||
DIST_SUBDIRS = micasacache common micasadk jwrapper package
|
|
||||||
endif
|
|
||||||
|
|
||||||
EXTRA_DIST = include include/*.h \
|
|
||||||
doc/internal/*.doc doc/internal/*.xsd \
|
|
||||||
doc/product/*.pdf doc/product/*.txt \
|
|
||||||
readme-folder/readme* autogen.sh
|
|
||||||
|
|
||||||
CASALIBDIR = $(LIB)
|
|
||||||
|
|
||||||
if LIB64
|
|
||||||
CASABINDIR = bin64
|
|
||||||
else
|
|
||||||
CASABINDIR = bin
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: package package-clean package-install package-uninstall
|
|
||||||
package package-clean package-install package-uninstall:
|
|
||||||
$(MAKE) -C package $@
|
|
||||||
|
|
||||||
installcheck-summary:
|
|
||||||
$(MAKE) -C src $@
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
rm -rf *.suo $(CASALIBDIR)
|
|
||||||
rm -rf *.suo $(CASABINDIR)
|
|
||||||
rm -rf BUILT
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f configure Makefile.in casa-*.tar.gz
|
|
||||||
rm -f aclocal.m4 conf*.sh configure.lineno
|
|
||||||
rm -f config.guess config.sub config.status
|
|
||||||
rm -f ltmain.sh libtool
|
|
||||||
rm -f install-sh install-sh.lnk INSTALL INSTALL.lnk
|
|
||||||
rm -f missing missing.lnk mkinstalldirs mkinstalldir.lnk
|
|
||||||
rm -rf autom4te.cache
|
|
67
CASA/adlib/CMakeLists.txt
Normal file
67
CASA/adlib/CMakeLists.txt
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
#################################
|
||||||
|
# Project
|
||||||
|
##############
|
||||||
|
|
||||||
|
project(adlib)
|
||||||
|
|
||||||
|
enable_language(CSharp)
|
||||||
|
|
||||||
|
IF (UNIX)
|
||||||
|
add_subdirectory(ad_gk)
|
||||||
|
add_subdirectory(ad_ff)
|
||||||
|
add_subdirectory(ad_kw)
|
||||||
|
ENDIF (UNIX)
|
||||||
|
|
||||||
|
#IF (WIN32)
|
||||||
|
# add_subdirectory(Novell.Casa.MiCasa)
|
||||||
|
#ENDIF (WIN32)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Dependencies
|
||||||
|
##############
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Compiler Switches
|
||||||
|
##############
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
add_definitions( -D_GNU_SOURCE )
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Source Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
|
||||||
|
SET(SRC_CS AssemblyInfo.cs
|
||||||
|
Common.cs
|
||||||
|
IDataEngine.cs
|
||||||
|
miCASAEngine.cs
|
||||||
|
AD_Facade.cs
|
||||||
|
KWalletEngine.cs
|
||||||
|
GKEngine.cs
|
||||||
|
FFEngine.cs
|
||||||
|
${CMAKE_SOURCE_DIR}/gui/Logger.cs)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Linking
|
||||||
|
##############
|
||||||
|
|
||||||
|
SET(CS_FLAGS -r:${CMAKE_BINARY_DIR}/micasad/lib/Novell.CASA.Common.dll
|
||||||
|
-r:${CMAKE_BINARY_DIR}/sharp/NSSCSWrapper/Novell.CASA.miCASAWrapper.dll
|
||||||
|
-r:${CMAKE_BINARY_DIR}/policy/Novell.CASA.CASAPolicy.dll
|
||||||
|
-r:${CMAKE_CURRENT_BINARY_DIR}/ad_gk/Novell.CASA.DataEngines.GnomeKeyring.dll
|
||||||
|
-r:${CMAKE_CURRENT_BINARY_DIR}/ad_kw/Novell.CASA.DataEngines.KWallet.dll
|
||||||
|
-r:${CMAKE_CURRENT_BINARY_DIR}/ad_ff/Novell.CASA.DataEngines.FireFox.dll -pkg:gtk-sharp-2.0 /d:LINUX)
|
||||||
|
#CSHARP_ADD_LIBRARY(Novell.CASA.A-D "${SRC_CS}" REFERENCES Mono.Posix COMPILE_FLAGS /d:LINUX /warn:0 /keyfile:${KEYFILE})
|
||||||
|
CSHARP_ADD_LIBRARY(Novell.CASA.A-D "${SRC_CS}" REFERENCES Novell.CASA.DataEngines.KWallet Novell.CASA.Common Novell.CASA.miCASAWrapper Novell.CASA.CASAPolicy Novell.CASA.DataEngines.GnomeKeyring Novell.CASA.DataEngines.FireFox COMPILE_FLAGS -pkg:gtk-sharp-2.0 /d:LINUX)
|
||||||
|
ADD_DEPENDENCIES(Novell.CASA.A-D Novell.CASA.DataEngines.GnomeKeyring Novell.CASA.DataEngines.KWallet Novell.CASA.DataEngines.FireFox.dll)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Install Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/Novell.CASA.A-D.dll DESTINATION ${LIBEXEC_INSTALL_DIR})
|
@ -1,119 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG)
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS = ad_kw ad_gk ad_ff
|
|
||||||
DIST_SUBDIRS = ad_kw ad_gk ad_ff
|
|
||||||
|
|
||||||
CASAROOT = ..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CSFILES)
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR =
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
MODULE_NAME =Novell.CASA.A-D
|
|
||||||
MODULE_EXT =dll
|
|
||||||
|
|
||||||
CSFILES = $(srcdir)/AssemblyInfo.cs \
|
|
||||||
$(srcdir)/Common.cs \
|
|
||||||
$(srcdir)/IDataEngine.cs \
|
|
||||||
$(srcdir)/miCASAEngine.cs \
|
|
||||||
$(srcdir)/AD_Facade.cs \
|
|
||||||
$(srcdir)/KWalletEngine.cs \
|
|
||||||
$(srcdir)/GKEngine.cs \
|
|
||||||
$(srcdir)/FFEngine.cs \
|
|
||||||
$(top_srcdir)/gui/Logger.cs
|
|
||||||
|
|
||||||
CSFILES_CSC := $(subst /,$(SEP),$(CSFILES))
|
|
||||||
CS_FLAGS = $(CSC_LIBFLAG) -pkg:gtk-sharp-2.0 /d:LINUX
|
|
||||||
CS_RESOURCES =
|
|
||||||
CS_LIBS =$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.DataEngines.GnomeKeyring.dll \
|
|
||||||
$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.DataEngines.KWallet.dll \
|
|
||||||
$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.DataEngines.FireFox.dll \
|
|
||||||
$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.CASAPolicy.dll \
|
|
||||||
$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.miCASAWrapper.dll
|
|
||||||
CS_LIBPATH = $(CASALIBDIR)/$(TARGET_CFG) $(srcdir)/ad_gk/$(TARGET_CFG) $(srcdir)/ad_kw/$(TARGET_CFG) \
|
|
||||||
$(srcdir)/ad_ff/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/$(LIB)
|
|
||||||
|
|
||||||
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))
|
|
||||||
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)
|
|
||||||
$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) $(CS_LIBPATH:%=-lib:%) $(CS_LIBS:%=/r:%) -out:$@ $(CSFILES_CSC)
|
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
|
||||||
# @echo [======== Linking $@ ========]
|
|
||||||
# $(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
# cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR)
|
|
||||||
[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
@ -1,172 +0,0 @@
|
|||||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<ProjectType>Local</ProjectType>
|
|
||||||
<ProductVersion>8.0.50727</ProductVersion>
|
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
|
||||||
<ProjectGuid>{25D49F34-F655-4CCF-93F1-449243AF7A32}</ProjectGuid>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ApplicationIcon>
|
|
||||||
</ApplicationIcon>
|
|
||||||
<AssemblyKeyContainerName>
|
|
||||||
</AssemblyKeyContainerName>
|
|
||||||
<AssemblyName>Novell.CASA.DataEngines</AssemblyName>
|
|
||||||
<AssemblyOriginatorKeyFile>
|
|
||||||
</AssemblyOriginatorKeyFile>
|
|
||||||
<DefaultClientScript>JScript</DefaultClientScript>
|
|
||||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
|
||||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
|
||||||
<DelaySign>false</DelaySign>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<RootNamespace>Novell.CASA.DataEngines</RootNamespace>
|
|
||||||
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
|
||||||
<StartupObject>
|
|
||||||
</StartupObject>
|
|
||||||
<FileUpgradeFlags>
|
|
||||||
</FileUpgradeFlags>
|
|
||||||
<UpgradeBackupLocation>
|
|
||||||
</UpgradeBackupLocation>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
|
||||||
<BaseAddress>285212672</BaseAddress>
|
|
||||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
|
||||||
<ConfigurationOverrideFile>
|
|
||||||
</ConfigurationOverrideFile>
|
|
||||||
<DefineConstants>DEBUG;TRACE; WIN32</DefineConstants>
|
|
||||||
<DocumentationFile>
|
|
||||||
</DocumentationFile>
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<FileAlignment>4096</FileAlignment>
|
|
||||||
<NoStdLib>false</NoStdLib>
|
|
||||||
<NoWarn>
|
|
||||||
</NoWarn>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<RegisterForComInterop>false</RegisterForComInterop>
|
|
||||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
|
||||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
|
||||||
<BaseAddress>285212672</BaseAddress>
|
|
||||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
|
||||||
<ConfigurationOverrideFile>
|
|
||||||
</ConfigurationOverrideFile>
|
|
||||||
<DefineConstants>TRACE; WIN32</DefineConstants>
|
|
||||||
<DocumentationFile>
|
|
||||||
</DocumentationFile>
|
|
||||||
<DebugSymbols>false</DebugSymbols>
|
|
||||||
<FileAlignment>4096</FileAlignment>
|
|
||||||
<NoStdLib>false</NoStdLib>
|
|
||||||
<NoWarn>
|
|
||||||
</NoWarn>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<RegisterForComInterop>false</RegisterForComInterop>
|
|
||||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
|
||||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
<DebugType>none</DebugType>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="atk-sharp">
|
|
||||||
<Name>atk-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\atk-sharp.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="gdk-sharp">
|
|
||||||
<Name>gdk-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\gdk-sharp.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="glade-sharp">
|
|
||||||
<Name>glade-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\glade-sharp.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="glib-sharp">
|
|
||||||
<Name>glib-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\glib-sharp.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="gtk-sharp">
|
|
||||||
<Name>gtk-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\gtk-sharp.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="pango-sharp">
|
|
||||||
<Name>pango-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\pango-sharp.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System">
|
|
||||||
<Name>System</Name>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Data">
|
|
||||||
<Name>System.Data</Name>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Xml">
|
|
||||||
<Name>System.XML</Name>
|
|
||||||
</Reference>
|
|
||||||
<ProjectReference Include="..\micasad\lib\Novell.CASA.Common.csproj">
|
|
||||||
<Name>Novell.CASA.Common</Name>
|
|
||||||
<Project>{57CD94A2-5B4A-40C3-8189-CB760FB78357}</Project>
|
|
||||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\policy\Novell.CASA.CASAPolicy.csproj">
|
|
||||||
<Name>Novell.CASA.CASAPolicy</Name>
|
|
||||||
<Project>{636A9D7E-BFB5-4EB9-96F8-51FF85A98826}</Project>
|
|
||||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\sharp\NSSCSWrapper\Novell.CASA.miCASAWrapper.csproj">
|
|
||||||
<Name>Novell.CASA.miCASAWrapper</Name>
|
|
||||||
<Project>{E21DD887-22F4-4935-9851-409715F663B0}</Project>
|
|
||||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="AD_Facade.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="ad_ff\FireFox.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="ad_gk\GnomeKeyring.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="ad_kw\KWalletEnum.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="ad_kw\KWalletNative.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="AssemblyInfo.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Common.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="FFEngine.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="GKEngine.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="IDataEngine.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="KWalletEngine.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="miCASAEngine.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<PreBuildEvent>
|
|
||||||
</PreBuildEvent>
|
|
||||||
<PostBuildEvent>
|
|
||||||
</PostBuildEvent>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
@ -1,58 +0,0 @@
|
|||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<LastOpenVersion>7.10.3077</LastOpenVersion>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ReferencePath>
|
|
||||||
</ReferencePath>
|
|
||||||
<CopyProjectDestinationFolder>
|
|
||||||
</CopyProjectDestinationFolder>
|
|
||||||
<CopyProjectUncPath>
|
|
||||||
</CopyProjectUncPath>
|
|
||||||
<CopyProjectOption>0</CopyProjectOption>
|
|
||||||
<ProjectView>ProjectFiles</ProjectView>
|
|
||||||
<ProjectTrust>0</ProjectTrust>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<EnableASPDebugging>false</EnableASPDebugging>
|
|
||||||
<EnableASPXDebugging>false</EnableASPXDebugging>
|
|
||||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
|
||||||
<EnableSQLServerDebugging>false</EnableSQLServerDebugging>
|
|
||||||
<RemoteDebugEnabled>false</RemoteDebugEnabled>
|
|
||||||
<RemoteDebugMachine>
|
|
||||||
</RemoteDebugMachine>
|
|
||||||
<StartAction>Project</StartAction>
|
|
||||||
<StartArguments>
|
|
||||||
</StartArguments>
|
|
||||||
<StartPage>
|
|
||||||
</StartPage>
|
|
||||||
<StartProgram>
|
|
||||||
</StartProgram>
|
|
||||||
<StartURL>
|
|
||||||
</StartURL>
|
|
||||||
<StartWorkingDirectory>
|
|
||||||
</StartWorkingDirectory>
|
|
||||||
<StartWithIE>false</StartWithIE>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<EnableASPDebugging>false</EnableASPDebugging>
|
|
||||||
<EnableASPXDebugging>false</EnableASPXDebugging>
|
|
||||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
|
||||||
<EnableSQLServerDebugging>false</EnableSQLServerDebugging>
|
|
||||||
<RemoteDebugEnabled>false</RemoteDebugEnabled>
|
|
||||||
<RemoteDebugMachine>
|
|
||||||
</RemoteDebugMachine>
|
|
||||||
<StartAction>Project</StartAction>
|
|
||||||
<StartArguments>
|
|
||||||
</StartArguments>
|
|
||||||
<StartPage>
|
|
||||||
</StartPage>
|
|
||||||
<StartProgram>
|
|
||||||
</StartProgram>
|
|
||||||
<StartURL>
|
|
||||||
</StartURL>
|
|
||||||
<StartWorkingDirectory>
|
|
||||||
</StartWorkingDirectory>
|
|
||||||
<StartWithIE>false</StartWithIE>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
@ -48,7 +48,7 @@ using System.Runtime.CompilerServices;
|
|||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.6.*")]
|
[assembly: AssemblyVersion("1.7.*")]
|
||||||
|
|
||||||
//
|
//
|
||||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||||
|
56
CASA/adlib/ad_ff/CMakeLists.txt
Normal file
56
CASA/adlib/ad_ff/CMakeLists.txt
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
#################################
|
||||||
|
# Project
|
||||||
|
##############
|
||||||
|
|
||||||
|
project(ad_ff)
|
||||||
|
|
||||||
|
enable_language(CXX CSharp)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Dependencies
|
||||||
|
##############
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Compiler Switches
|
||||||
|
##############
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(
|
||||||
|
${CMAKE_SOURCE_DIR}/include
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/native
|
||||||
|
${GLIB_INCLUDE_DIRS}
|
||||||
|
${GNOME-KEYRING_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
add_definitions( -D_GNU_SOURCE )
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Source Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
add_library(ad_ff SHARED native/Common.cpp
|
||||||
|
native/CryptManager.cpp
|
||||||
|
native/DataManager.cpp
|
||||||
|
native/FirefoxPasswordManager.cpp
|
||||||
|
native/ProfileManager.cpp
|
||||||
|
native/SignonManager.cpp)
|
||||||
|
|
||||||
|
SET(SRC_CS FireFox.cs AssemblyInfo.cs)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Linking
|
||||||
|
##############
|
||||||
|
|
||||||
|
set_target_properties(ad_ff PROPERTIES VERSION 1.1.1 SOVERSION 1)
|
||||||
|
target_link_libraries(ad_ff ${GLIB_LIBRARIES} ${GNOME-KEYRING_LIBRARIES})
|
||||||
|
|
||||||
|
#SET(CS_FLAGS ${GTK-SHARP_LIBRARIES} /d:LINUX /d:MONO)
|
||||||
|
#CSHARP_ADD_LIBRARY(Novell.CASA.DataEngines.FireFox "${SRC_CS}" REFERENCES Mono.Posix COMPILE_FLAGS /d:LINUX /d:MONO /warn:0 /keyfile:${KEYFILE})
|
||||||
|
CSHARP_ADD_LIBRARY(Novell.CASA.DataEngines.FireFox "${SRC_CS}")
|
||||||
|
#ADD_DEPENDENCIES(akonadi kde-dotnet akonadi-sharp smokeakonadi)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Install Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
install(TARGETS ad_ff DESTINATION ${LIB_INSTALL_DIR})
|
||||||
|
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/Novell.CASA.DataEngines.FireFox.dll DESTINATION ${LIBEXEC_INSTALL_DIR})
|
@ -1,106 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG)
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS = native
|
|
||||||
DIST_SUBDIRS = native
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CSFILES)
|
|
||||||
|
|
||||||
CASAROOT = ../..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR =
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
MODULE_NAME =Novell.CASA.DataEngines.FireFox
|
|
||||||
MODULE_EXT =dll
|
|
||||||
|
|
||||||
CSFILES = $(srcdir)/FireFox.cs \
|
|
||||||
$(srcdir)/AssemblyInfo.cs
|
|
||||||
|
|
||||||
CSFILES_CSC := $(subst /,$(SEP),$(CSFILES))
|
|
||||||
CS_FLAGS = $(CSC_LIBFLAG) -target:library
|
|
||||||
CS_RESOURCES =
|
|
||||||
CS_LIBS =
|
|
||||||
CS_LIBPATH =
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/$(LIB)
|
|
||||||
|
|
||||||
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))
|
|
||||||
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)
|
|
||||||
$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) -out:$@ $(CSFILES_CSC)
|
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
|
||||||
# @echo [======== Linking $@ ========]
|
|
||||||
# $(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
# cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR)
|
|
||||||
[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
@ -1,247 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="8.00"
|
|
||||||
Name="ad_firefox_native"
|
|
||||||
ProjectGUID="{BB304ECF-FCBA-4693-9D47-86749815DDC8}"
|
|
||||||
RootNamespace="ad_firefox_native"
|
|
||||||
Keyword="Win32Proj"
|
|
||||||
>
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"
|
|
||||||
/>
|
|
||||||
</Platforms>
|
|
||||||
<ToolFiles>
|
|
||||||
</ToolFiles>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory="Debug"
|
|
||||||
IntermediateDirectory="Debug"
|
|
||||||
ConfigurationType="2"
|
|
||||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
|
||||||
CharacterSet="2"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;FIREFOX_EXPORTS"
|
|
||||||
MinimalRebuild="true"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="1"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="4"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
OutputFile="$(OutDir)/ad_ff.dll"
|
|
||||||
LinkIncremental="2"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
ProgramDatabaseFile="$(OutDir)/firefox.pdb"
|
|
||||||
SubSystem="2"
|
|
||||||
ImportLibrary="$(OutDir)/firefox.lib"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory="Release"
|
|
||||||
IntermediateDirectory="Release"
|
|
||||||
ConfigurationType="2"
|
|
||||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
|
||||||
CharacterSet="2"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;FIREFOX_EXPORTS"
|
|
||||||
RuntimeLibrary="0"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
OutputFile="$(OutDir)/ad_ff.dll"
|
|
||||||
LinkIncremental="1"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
SubSystem="2"
|
|
||||||
OptimizeReferences="2"
|
|
||||||
EnableCOMDATFolding="2"
|
|
||||||
ImportLibrary="$(OutDir)/firefox.lib"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Source Files"
|
|
||||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
|
||||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\Common.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\CryptManager.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\DataManager.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\FirefoxPasswordManager.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\ProfileManager.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\SignonManager.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Header Files"
|
|
||||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
|
||||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\Common.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\CryptManager.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\DataManager.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\FirefoxPasswordManager.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\ProfileManager.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\native\SignonManager.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Resource Files"
|
|
||||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
|
||||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
||||||
>
|
|
||||||
</Filter>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
@ -1,123 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS =
|
|
||||||
DIST_SUBDIRS =
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CXXFILES) *.h
|
|
||||||
|
|
||||||
CASAROOT = ../../..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)
|
|
||||||
|
|
||||||
BUILD_VER = 1.1.1
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR =
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
CXX = g++
|
|
||||||
|
|
||||||
MODULE_NAME =libad_ff
|
|
||||||
MODULE_EXT =so
|
|
||||||
|
|
||||||
CXXFILES = $(srcdir)/Common.cpp \
|
|
||||||
$(srcdir)/CryptManager.cpp \
|
|
||||||
$(srcdir)/FirefoxPasswordManager.cpp \
|
|
||||||
$(srcdir)/ProfileManager.cpp \
|
|
||||||
$(srcdir)/SignonManager.cpp \
|
|
||||||
$(srcdir)/DataManager.cpp
|
|
||||||
|
|
||||||
|
|
||||||
CXXFILES_CXX :=
|
|
||||||
INCLUDES = -I. -I.. -I$(CASAROOT)/include \
|
|
||||||
-I/opt/gnome/include/gnome-keyring-1
|
|
||||||
CXXFLAGS = $(CPP_LIBFLAG) $(INCLUDES)
|
|
||||||
EXTRA_CXXFLAGS = -fPIC -DPIC -DSSCS_LINUX_PLAT_F -DQT_THREAD_SUPPORT -DQT_CLEAN_NANESPACE \
|
|
||||||
-DQT_NO_ASCII_CAS -O2 -fmessage-length=0 -Wall -g -D_REENTRANT \
|
|
||||||
-DALIGNMENT -DN_PLAT_UNIX -DUNIX -DLINUX -DIAPX386
|
|
||||||
CXX_RESOURCES =
|
|
||||||
LIBS = -lpthread -ldl -L/opt/kde3/lib
|
|
||||||
LDFLAGS = -fno-exception -fno-check-new -Wl,-Bsymbolic -shared -pthread -O2 \
|
|
||||||
-Wl,-soname -Wl,libkwallets_rw.so.1
|
|
||||||
|
|
||||||
EXTRA_LDFLAGS = -L/usr/$(LIB) -lqt-mt -L/usr/X11R6/$(LIB) -L/usr/lib/qt3/$(LIB)
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/$(LIB)
|
|
||||||
|
|
||||||
OBJS = $(addprefix $(OBJDIR)/, $(CXXFILES:%.cpp=%.o))
|
|
||||||
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.cpp
|
|
||||||
$(CXX) -c $(CXXFLAGS) $(EXTRA_CXXFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER): $(OBJDIR) $(OBJS)
|
|
||||||
@echo [======== Linking $@ ========]
|
|
||||||
c++ -o $@ $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)
|
|
||||||
ln -sf $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).1
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR)
|
|
||||||
[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
@ -1,5 +0,0 @@
|
|||||||
LINK = $(CPP) \
|
|
||||||
-shared \
|
|
||||||
-Wl \
|
|
||||||
-o $(LIBDIR)$(XTRA)/lib$(TARGET).so.$(BLD_VER) \
|
|
||||||
$(OBJDIR)*.$(O)
|
|
@ -1,7 +0,0 @@
|
|||||||
OBJS=\
|
|
||||||
Common.$(O) \
|
|
||||||
CryptManager.$(O) \
|
|
||||||
FirefoxPasswordManager.$(O) \
|
|
||||||
ProfileManager.$(O) \
|
|
||||||
SignonManager.$(O) \
|
|
||||||
DataManager.$(O)
|
|
@ -1,3 +0,0 @@
|
|||||||
OBJS=\
|
|
||||||
AssembyInfo\
|
|
||||||
FireFox
|
|
@ -1,3 +0,0 @@
|
|||||||
SRC=\
|
|
||||||
AssemblyInfo.cs\
|
|
||||||
FireFox.cs
|
|
@ -48,7 +48,7 @@ using System.Runtime.CompilerServices;
|
|||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.6.*")]
|
[assembly: AssemblyVersion("1.7.*")]
|
||||||
|
|
||||||
//
|
//
|
||||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||||
|
51
CASA/adlib/ad_gk/CMakeLists.txt
Normal file
51
CASA/adlib/ad_gk/CMakeLists.txt
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
#################################
|
||||||
|
# Project
|
||||||
|
##############
|
||||||
|
|
||||||
|
project(ad_gk)
|
||||||
|
|
||||||
|
enable_language(C CSharp)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Dependencies
|
||||||
|
##############
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Compiler Switches
|
||||||
|
##############
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(
|
||||||
|
${CMAKE_SOURCE_DIR}/include
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/native
|
||||||
|
${GLIB_INCLUDE_DIRS}
|
||||||
|
${GNOME-KEYRING_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
add_definitions( -D_GNU_SOURCE )
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Source Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
add_library(ad_gk SHARED native/ad_gk.c)
|
||||||
|
|
||||||
|
SET(SRC_CS GnomeKeyring.cs AssemblyInfo.cs)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Linking
|
||||||
|
##############
|
||||||
|
|
||||||
|
set_target_properties(ad_gk PROPERTIES VERSION 1.1.1 SOVERSION 1)
|
||||||
|
target_link_libraries(ad_gk ${GLIB_LIBRARIES} ${GNOME-KEYRING_LIBRARIES})
|
||||||
|
|
||||||
|
SET(CS_FLAGS ${GTK-SHARP_LIBRARIES})
|
||||||
|
#CSHARP_ADD_LIBRARY(Novell.CASA.DataEngines.GnomeKeyring "${SRC_CS}" REFERENCES Mono.Posix COMPILE_FLAGS /d:LINUX /d:MONO /warn:0 /keyfile:${KEYFILE})
|
||||||
|
CSHARP_ADD_LIBRARY(Novell.CASA.DataEngines.GnomeKeyring "${SRC_CS}" COMPILE_FLAGS -pkg:gtk-sharp-2.0)
|
||||||
|
#ADD_DEPENDENCIES(akonadi kde-dotnet akonadi-sharp smokeakonadi)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Install Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
install(TARGETS ad_gk DESTINATION ${LIB_INSTALL_DIR})
|
||||||
|
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/Novell.CASA.DataEngines.GnomeKeyring.dll DESTINATION ${LIBEXEC_INSTALL_DIR})
|
@ -1,105 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG)
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS = native
|
|
||||||
DIST_SUBDIRS = native
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CSFILES)
|
|
||||||
|
|
||||||
CASAROOT = ../..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR =
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
MODULE_NAME =Novell.CASA.DataEngines.GnomeKeyring
|
|
||||||
MODULE_EXT =dll
|
|
||||||
|
|
||||||
CSFILES = $(srcdir)/GnomeKeyring.cs
|
|
||||||
|
|
||||||
CSFILES_CSC := $(subst /,$(SEP),$(CSFILES))
|
|
||||||
CS_FLAGS = $(CSC_LIBFLAG) /target:library -pkg:gtk-sharp-2.0
|
|
||||||
CS_RESOURCES =
|
|
||||||
CS_LIBS =
|
|
||||||
CS_LIBPATH =
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/$(LIB)
|
|
||||||
|
|
||||||
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))
|
|
||||||
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)
|
|
||||||
$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) -out:$@ $(CSFILES_CSC)
|
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
|
||||||
# @echo [======== Linking $@ ========]
|
|
||||||
# $(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
# cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR)
|
|
||||||
[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
@ -1,131 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS =
|
|
||||||
DIST_SUBDIRS =
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CFILES) *.h
|
|
||||||
|
|
||||||
CASAROOT = ../../..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)
|
|
||||||
|
|
||||||
BUILD_VER = 1.1.1
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR =
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
MODULE_NAME = libad_gk
|
|
||||||
MODULE_EXT = so
|
|
||||||
|
|
||||||
CFILES = $(srcdir)/ad_gk.c
|
|
||||||
|
|
||||||
LIBDIR = $(LIB)
|
|
||||||
|
|
||||||
CSFILES_CSC :=
|
|
||||||
INCLUDES = -I. -I.. -I$(CASAROOT)/include \
|
|
||||||
-I/opt/gnome/include/gnome-keyring-1 \
|
|
||||||
-I/opt/gnome/include/glib-2.0 \
|
|
||||||
-I/opt/gnome/$(LIBDIR)/glib-2.0/include \
|
|
||||||
-I/usr/include/glib-2.0 \
|
|
||||||
-I/usr/$(LIBDIR)/glib-2.0/include \
|
|
||||||
-L/opt/gnome/$(LIBDIR) -lglib-2.0
|
|
||||||
|
|
||||||
RESOURCES =
|
|
||||||
EXTRA_CFLAGS =
|
|
||||||
CFLAGS += $(INCLUDES) $(DEFINES)
|
|
||||||
|
|
||||||
LIBS = -lpthread -ldl
|
|
||||||
LDFLAGS = -fno-exceptions -fno-check-new -Wl,-Bsymbolic -shared -pthread -O2 \
|
|
||||||
-Wl,-rpath -Wl,/usr/$(LIBDIR) -Wl,-soname -Wl,libad_gk.so.1
|
|
||||||
|
|
||||||
EXTRA_LDFLAGS = -L/opt/gnome/$(LIBDIR) -L/usr/include -lglib-2.0 -L/$(CASAROOT)/$(LIBDIR)
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/$(LIBDIR)
|
|
||||||
|
|
||||||
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CFILES) *.h
|
|
||||||
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.c
|
|
||||||
$(CC) -c $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.cpp
|
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
#$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
|
||||||
# @echo [======== Linking $@ ========]
|
|
||||||
# $(LINK) -o $@ $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
# cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER): $(OBJDIR) $(OBJS)
|
|
||||||
@echo [======== Linking $@ ========]
|
|
||||||
c++ -o $@ $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)
|
|
||||||
ln -sf $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).1
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR)
|
|
||||||
[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
LINK = $(CPP) \
|
|
||||||
-Wl,-Bsymbolic \
|
|
||||||
-shared \
|
|
||||||
-pthread\
|
|
||||||
-O2 -fno-exceptions -fno-check-new\
|
|
||||||
-Wl,-rpath -Wl,/usr/lib$(ARC) \
|
|
||||||
-L/usr/lib$(ARC) -lpthread -lc -ldl \
|
|
||||||
-L/opt/gnome/lib$(ARC) -lglib-2.0 \
|
|
||||||
-Wl,-soname -Wl,lib$(TARGET).so.$(PROD_NUM) \
|
|
||||||
-o $(LIBDIR)$(XTRA)/lib$(TARGET).so.$(BLD_VER) \
|
|
||||||
-L$(LIBDIR)$(XTRA) \
|
|
||||||
$(OBJDIR)*.$(O)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
OBJS=\
|
|
||||||
ad_gk.$(O)
|
|
@ -1,3 +0,0 @@
|
|||||||
OBJS=\
|
|
||||||
AssembyInfo\
|
|
||||||
GnomeKeyring
|
|
@ -1,3 +0,0 @@
|
|||||||
SRC=\
|
|
||||||
AssemblyInfo.cs\
|
|
||||||
GnomeKeyring.cs
|
|
@ -48,7 +48,7 @@ using System.Runtime.CompilerServices;
|
|||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.6.*")]
|
[assembly: AssemblyVersion("1.7.*")]
|
||||||
|
|
||||||
//
|
//
|
||||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||||
|
51
CASA/adlib/ad_kw/CMakeLists.txt
Normal file
51
CASA/adlib/ad_kw/CMakeLists.txt
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
#################################
|
||||||
|
# Project
|
||||||
|
##############
|
||||||
|
|
||||||
|
project(kwallets)
|
||||||
|
|
||||||
|
enable_language(CXX CSharp)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Dependencies
|
||||||
|
##############
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Compiler Switches
|
||||||
|
##############
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(
|
||||||
|
${CMAKE_SOURCE_DIR}/include
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/native
|
||||||
|
${GLIB_INCLUDE_DIRS}
|
||||||
|
${GNOME-KEYRING_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
add_definitions( -D_GNU_SOURCE )
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Source Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
#add_library(kwallets_rw SHARED native/kwallets_rw.cpp)
|
||||||
|
|
||||||
|
SET(SRC_CS AssemblyInfo.cs KWalletEnum.cs KWalletNative.cs)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Linking
|
||||||
|
##############
|
||||||
|
|
||||||
|
#set_target_properties(kwallets_rw PROPERTIES VERSION 1.1.1 SOVERSION 1)
|
||||||
|
#target_link_libraries(kwallets_rw ${GLIB_LIBRARIES} ${GNOME-KEYRING_LIBRARIES})
|
||||||
|
|
||||||
|
#SET(CS_FLAGS ${GTK-SHARP_LIBRARIES})
|
||||||
|
#CSHARP_ADD_LIBRARY(Novell.CASA.DataEngines.KWallet "${SRC_CS}" REFERENCES Mono.Posix COMPILE_FLAGS /d:LINUX /d:MONO /warn:0 /keyfile:${KEYFILE})
|
||||||
|
CSHARP_ADD_LIBRARY(Novell.CASA.DataEngines.KWallet "${SRC_CS}")
|
||||||
|
#ADD_DEPENDENCIES(akonadi kde-dotnet akonadi-sharp smokeakonadi)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Install Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
#install(TARGETS kwallets_rw DESTINATION ${LIB_INSTALL_DIR})
|
||||||
|
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/Novell.CASA.DataEngines.KWallet.dll DESTINATION ${LIBEXEC_INSTALL_DIR})
|
@ -1,107 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG)
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
#SUBDIRS = native
|
|
||||||
#DIST_SUBDIRS = native
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CSFILES)
|
|
||||||
|
|
||||||
CASAROOT = ../..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR =
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
MODULE_NAME =Novell.CASA.DataEngines.KWallet
|
|
||||||
MODULE_EXT =dll
|
|
||||||
|
|
||||||
CSFILES = $(srcdir)/AssemblyInfo.cs \
|
|
||||||
$(srcdir)/KWalletEnum.cs \
|
|
||||||
$(srcdir)/KWalletNative.cs
|
|
||||||
|
|
||||||
CSFILES_CSC := $(subst /,$(SEP),$(CSFILES))
|
|
||||||
CS_FLAGS = $(CSC_LIBFLAG)
|
|
||||||
CS_RESOURCES =
|
|
||||||
CS_LIBS =
|
|
||||||
CS_LIBPATH =
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/$(LIB)
|
|
||||||
|
|
||||||
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))
|
|
||||||
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)
|
|
||||||
$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) -out:$@ $(CSFILES_CSC)
|
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
|
||||||
# @echo [======== Linking $@ ========]
|
|
||||||
# $(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
# cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR)
|
|
||||||
[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
@ -1,125 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS =
|
|
||||||
DIST_SUBDIRS =
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CXXFILES) $(CXX_MOC_FILES) *.h
|
|
||||||
|
|
||||||
CASAROOT = ../../..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)
|
|
||||||
|
|
||||||
BUILD_VER = 1.1.1
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR =
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
####this needs to be defined in configure.in
|
|
||||||
MOC = /usr/lib/qt3/bin/moc
|
|
||||||
CXX = g++
|
|
||||||
|
|
||||||
MODULE_NAME =libkwallets_rw
|
|
||||||
MODULE_EXT =so
|
|
||||||
|
|
||||||
CXXFILES = $(srcdir)/kwallets_rw.cpp
|
|
||||||
|
|
||||||
CXX_MOC_FILES = kwallets_rw.moc
|
|
||||||
|
|
||||||
CXXFILES_CXX :=
|
|
||||||
INCLUDES = -I. -I.. -I$(CASAROOT)/include \
|
|
||||||
-I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include -I/opt/gnome/include/gnome-keyring-1/
|
|
||||||
CXXFLAGS = $(CPP_LIBFLAG) $(INCLUDES)
|
|
||||||
EXTRA_CXXFLAGS = -fPIC -DPIC -DSSCS_LINUX_PLAT_F -DQT_THREAD_SUPPORT -DQT_CLEAN_NANESPACE \
|
|
||||||
-DQT_NO_ASCII_CAS -O2 -fmessage-length=0 -Wall -g -D_REENTRANT \
|
|
||||||
-DALIGNMENT -DN_PLAT_UNIX -DUNIX -DLINUX -DIAPX386
|
|
||||||
CXX_RESOURCES =
|
|
||||||
LIBS = -lpthread -ldl
|
|
||||||
LDFLAGS = -fno-exception -fno-check-new -Wl,-Bsymbolic -shared -pthread -O2 \
|
|
||||||
-Wl,-soname -Wl,libkwallets_rw.so.1
|
|
||||||
|
|
||||||
EXTRA_LDFLAGS = -L/opt/kde3/$(LIB) -lkwalletclient \
|
|
||||||
-lqt-mt -L/usr/X11R6/$(LIB) -L/usr/lib/qt3/$(LIB) -lqt-mt
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/$(LIB)
|
|
||||||
|
|
||||||
OBJS = $(addprefix $(OBJDIR)/, $(CXXFILES:%.cpp=%.o))
|
|
||||||
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
$(CXX_MOC_FILES): kwallets_rw.h
|
|
||||||
$(MOC) $^ -o $@
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.cpp
|
|
||||||
# $(CXX) -c $(CXXFLAGS) $(EXTRA_CXXFLAGS) -o $@ $<
|
|
||||||
c++ -c -g $(CXXFLAGS) $(EXTRA_CXXFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER):$(CXX_MOC_FILES) $(OBJDIR) $(OBJS)
|
|
||||||
@echo [======== Linking $@ ========]
|
|
||||||
c++ -o $@ $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)
|
|
||||||
ln -sf $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).1
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR)
|
|
||||||
[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
if [ -f $(CXX_MOC_FILES) ]; then rm -f $(CXX_MOC_FILES); fi
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
@ -1,14 +0,0 @@
|
|||||||
LINK = $(CPP) \
|
|
||||||
-Wl,-Bsymbolic \
|
|
||||||
-shared \
|
|
||||||
-pthread \
|
|
||||||
-O2 -fno-exceptions -fno-check-new \
|
|
||||||
-Wl,-rpath -Wl,/usr/lib$(ARC) \
|
|
||||||
-L/usr/lib$(ARC) -lpthread -lc -ldl \
|
|
||||||
-L/opt/kde3/lib$(ARC) -lkwalletclient -lqt-mt \
|
|
||||||
-L/usr/X11R6/lib$(ARC) \
|
|
||||||
-L/usr/lib/qt3/lib$(ARC) -lqt-mt \
|
|
||||||
-Wl,-soname -Wl,lib$(TARGET).so.$(PROD_NUM) \
|
|
||||||
-o $(LIBDIR)$(XTRA)/lib$(TARGET).so.$(BLD_VER) \
|
|
||||||
-L$(LIBDIR)$(XTRA) \
|
|
||||||
$(OBJDIR)*.$(O)
|
|
@ -1,2 +0,0 @@
|
|||||||
OBJS=\
|
|
||||||
kwallets_rw.$(O)
|
|
@ -1,4 +0,0 @@
|
|||||||
OBJS=\
|
|
||||||
AssemblyInfo\
|
|
||||||
KWalletEnum\
|
|
||||||
KWalletNative
|
|
@ -1,4 +0,0 @@
|
|||||||
SRC=\
|
|
||||||
AssemblyInfo.cs\
|
|
||||||
KWalletEnum.cs\
|
|
||||||
KWalletNative.cs
|
|
@ -1,11 +0,0 @@
|
|||||||
OBJS=\
|
|
||||||
AssemblyInfo\
|
|
||||||
Common\
|
|
||||||
IDataEngine\
|
|
||||||
miCASAEngine\
|
|
||||||
AD_Facade\
|
|
||||||
KWalletEngine\
|
|
||||||
GKEngine \
|
|
||||||
FFEngine \
|
|
||||||
../c_gui/Logger
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
OBJS=\
|
|
||||||
Common\
|
|
||||||
IDataEngine\
|
|
||||||
miCASAEngine\
|
|
||||||
AD_Facade\
|
|
||||||
..\\c_gui\\Logger.cs
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
SRC=\
|
|
||||||
AssemblyInfo.cs\
|
|
||||||
Common.cs\
|
|
||||||
IDataEngine.cs\
|
|
||||||
miCASAEngine.cs\
|
|
||||||
AD_Facade.cs\
|
|
||||||
KWalletEngine.cs\
|
|
||||||
GKEngine.cs \
|
|
||||||
FFEngine.cs \
|
|
||||||
../c_gui/Logger.cs
|
|
@ -1,6 +0,0 @@
|
|||||||
SRC=\
|
|
||||||
Common.cs\
|
|
||||||
IDataEngine.cs\
|
|
||||||
miCASAEngine.cs\
|
|
||||||
AD_Facade.cs\
|
|
||||||
..\\c_gui\\Logger.cs
|
|
130
CASA/autogen.sh
130
CASA/autogen.sh
@ -1,130 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Run this to generate all the initial makefiles, etc.
|
|
||||||
|
|
||||||
srcdir=`dirname $0`
|
|
||||||
test -z "$srcdir" && srcdir=.
|
|
||||||
|
|
||||||
ORIGDIR=`pwd`
|
|
||||||
cd $srcdir
|
|
||||||
PROJECT=CASA
|
|
||||||
TEST_TYPE=-f
|
|
||||||
FILE=include/micasa.h
|
|
||||||
|
|
||||||
DIE=0
|
|
||||||
|
|
||||||
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
|
||||||
echo
|
|
||||||
echo "You must have autoconf installed to compile $PROJECT."
|
|
||||||
echo "Download the appropriate package for your distribution,"
|
|
||||||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
|
||||||
DIE=1
|
|
||||||
}
|
|
||||||
|
|
||||||
AUTOMAKE=automake-1.9
|
|
||||||
ACLOCAL=aclocal-1.9
|
|
||||||
|
|
||||||
($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
|
|
||||||
AUTOMAKE=automake
|
|
||||||
ACLOCAL=aclocal
|
|
||||||
}
|
|
||||||
|
|
||||||
($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
|
|
||||||
echo
|
|
||||||
echo "You must have automake installed to compile $PROJECT."
|
|
||||||
echo "Download the appropriate package for your distribution,"
|
|
||||||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
|
||||||
DIE=1
|
|
||||||
}
|
|
||||||
|
|
||||||
if test "$DIE" -eq 1; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
test $TEST_TYPE $FILE || {
|
|
||||||
echo "You must run this script in the top-level $PROJECT directory"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
if test -z "$*"; then
|
|
||||||
echo "I am going to run ./configure with no arguments - if you wish "
|
|
||||||
echo "to pass any to it, please specify them on the $0 command line."
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $CC in
|
|
||||||
*xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
for coin in `find $srcdir -name configure.in -print`
|
|
||||||
do
|
|
||||||
dr=`dirname $coin`
|
|
||||||
if test -f $dr/NO-AUTO-GEN; then
|
|
||||||
echo skipping $dr -- flagged as no auto-gen
|
|
||||||
else
|
|
||||||
echo processing $dr
|
|
||||||
macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
|
|
||||||
( cd $dr
|
|
||||||
aclocalinclude="$ACLOCAL_FLAGS"
|
|
||||||
for k in $macrodirs; do
|
|
||||||
if test -d $k; then
|
|
||||||
aclocalinclude="$aclocalinclude -I $k"
|
|
||||||
##else
|
|
||||||
## echo "**Warning**: No such directory \`$k'. Ignored."
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then
|
|
||||||
if grep "sed.*POTFILES" configure.in >/dev/null; then
|
|
||||||
: do nothing -- we still have an old unmodified configure.in
|
|
||||||
else
|
|
||||||
echo "Creating $dr/aclocal.m4 ..."
|
|
||||||
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
|
|
||||||
echo "Running gettextize... Ignore non-fatal messages."
|
|
||||||
echo "no" | gettextize --force --copy
|
|
||||||
echo "Making $dr/aclocal.m4 writable ..."
|
|
||||||
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then
|
|
||||||
echo "Creating $dr/aclocal.m4 ..."
|
|
||||||
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
|
|
||||||
echo "Running gettextize... Ignore non-fatal messages."
|
|
||||||
echo "no" | gettextize --force --copy
|
|
||||||
echo "Making $dr/aclocal.m4 writable ..."
|
|
||||||
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
|
|
||||||
fi
|
|
||||||
if grep "^AM_GLIB_GNU_GETTEXT" configure.in >/dev/null; then
|
|
||||||
echo "Creating $dr/aclocal.m4 ..."
|
|
||||||
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
|
|
||||||
echo "Running gettextize... Ignore non-fatal messages."
|
|
||||||
echo "no" | glib-gettextize --force --copy
|
|
||||||
echo "Making $dr/aclocal.m4 writable ..."
|
|
||||||
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
|
|
||||||
fi
|
|
||||||
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
|
|
||||||
echo "Running libtoolize..."
|
|
||||||
libtoolize --force --copy
|
|
||||||
fi
|
|
||||||
echo "Running $ACLOCAL $aclocalinclude ..."
|
|
||||||
$ACLOCAL $aclocalinclude
|
|
||||||
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
|
|
||||||
echo "Running autoheader..."
|
|
||||||
autoheader
|
|
||||||
fi
|
|
||||||
echo "Running $AUTOMAKE --gnu $am_opt ..."
|
|
||||||
$AUTOMAKE --add-missing --gnu $am_opt
|
|
||||||
echo "Running autoconf ..."
|
|
||||||
autoconf
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
conf_flags="--config-cache --enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
|
|
||||||
|
|
||||||
cd "$ORIGDIR"
|
|
||||||
|
|
||||||
if test x$NOCONFIGURE = x; then
|
|
||||||
echo Running $srcdir/configure $conf_flags "$@" ...
|
|
||||||
$srcdir/configure $conf_flags "$@" \
|
|
||||||
&& echo Now type \`make\' to compile $PROJECT || exit 1
|
|
||||||
else
|
|
||||||
echo Skipping configure process.
|
|
||||||
fi
|
|
@ -1,2 +0,0 @@
|
|||||||
CASA
|
|
||||||
targetarch ia64 block!
|
|
@ -1,55 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
## creating ENV varaibles
|
|
||||||
SOURCE_DIR=`pwd`
|
|
||||||
export BUILD_ROOT=$SOURCE_DIR/../autobuild/BUILD
|
|
||||||
PACKAGE=CASA
|
|
||||||
VERSION=1.7.$1
|
|
||||||
TEMP_DIR=$SOURCE_DIR/SOURCES
|
|
||||||
BUILT_DIR=$BUILD_ROOT/usr/src/packages/BUILD/CASA-1.7.$1
|
|
||||||
RPMS_DIR=$BUILD_ROOT/usr/src/packages
|
|
||||||
|
|
||||||
##creating tar.gz
|
|
||||||
rm -rf ../bld_tst
|
|
||||||
mkdir ../bld_tst
|
|
||||||
mkdir ../bld_tst/CASA-1.7.$1
|
|
||||||
cp -R ./* ../bld_tst/CASA-1.7.$1
|
|
||||||
|
|
||||||
cd ../bld_tst/CASA-1.7.$1
|
|
||||||
sed -i "s/\(AM_INIT_AUTOMAKE.*\))/\AM_INIT_AUTOMAKE\(CASA, 1\.7\.$1\)/" ./configure.in
|
|
||||||
|
|
||||||
find . -name "*.lux" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "mk*" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "mk*" | xargs chmod +x > /dev/null 2>&1
|
|
||||||
find . -name "Make*" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.c" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.cs" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.cpp" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.h" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "link*" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name ".svn" | xargs rm -rf > /dev/null 2>&1
|
|
||||||
find . -name "*.sh" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.sh" | xargs chmod +x > /dev/null 2>&1
|
|
||||||
find . -name "*ver.txt" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*build.txt" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.mak" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
cd ..
|
|
||||||
tar cjf ../CASA-1.7.$1.tar.bz2 ./CASA-1.7.$1
|
|
||||||
|
|
||||||
#creating spec file
|
|
||||||
cd $SOURCE_DIR
|
|
||||||
mkdir --parents $PRODUCTS_DIR $TEMP_DIR
|
|
||||||
cp ../CASA-1.7.$1.tar.bz2 $TEMP_DIR
|
|
||||||
cp $SOURCE_DIR/package/linux/CASA.spec.in $TEMP_DIR/CASA.spec
|
|
||||||
sed -i "s/@VERSION@/1.7.$1/" $TEMP_DIR/CASA.spec
|
|
||||||
sed -i "s/@PACKAGE@/CASA/" $TEMP_DIR/CASA.spec
|
|
||||||
cp $SOURCE_DIR/CASA.changes $TEMP_DIR
|
|
||||||
cd $TEMP_DIR
|
|
||||||
|
|
||||||
##call autobuild
|
|
||||||
. /opt/SuSE/bin/.profile
|
|
||||||
sudo build --clean
|
|
||||||
|
|
||||||
##copy rpms to temp directoy
|
|
||||||
cp -rf $RPMS_DIR/RPMS $TEMP_DIR
|
|
||||||
cp -rf $RPMS_DIR/SRPMS $TEMP_DIR
|
|
@ -1,56 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
## creating ENV varaibles
|
|
||||||
SOURCE_DIR=`pwd`
|
|
||||||
export BUILD_ROOT=$SOURCE_DIR/../autobuild/BUILD
|
|
||||||
PACKAGE=CASA
|
|
||||||
VERSION=1.7.$1
|
|
||||||
TEMP_DIR=$SOURCE_DIR/SOURCES
|
|
||||||
BUILT_DIR=$BUILD_ROOT/usr/src/packages/BUILD/CASA-1.7.$1
|
|
||||||
RPMS_DIR=$BUILD_ROOT/usr/src/packages
|
|
||||||
|
|
||||||
##creating tar.gz
|
|
||||||
rm -rf ../bld_tst
|
|
||||||
mkdir ../bld_tst
|
|
||||||
mkdir ../bld_tst/CASA-1.7.$1
|
|
||||||
cp -R ./* ../bld_tst/CASA-1.7.$1
|
|
||||||
|
|
||||||
cd ../bld_tst/CASA-1.7.$1
|
|
||||||
sed -i "s/\(AM_INIT_AUTOMAKE.*\))/\AM_INIT_AUTOMAKE\(CASA, 1\.7\.$1\)/" ./configure.in
|
|
||||||
|
|
||||||
find . -name "*.lux" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "mk*" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "mk*" | xargs chmod +x > /dev/null 2>&1
|
|
||||||
find . -name "Make*" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.c" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.cs" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.cpp" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.h" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "link*" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name ".svn" | xargs rm -rf > /dev/null 2>&1
|
|
||||||
find . -name "*.sh" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.sh" | xargs chmod +x > /dev/null 2>&1
|
|
||||||
find . -name "*ver.txt" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*build.txt" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.mak" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
cd ..
|
|
||||||
tar cjf ../CASA-1.7.$1.tar.bz2 ./CASA-1.7.$1
|
|
||||||
|
|
||||||
#creating spec file
|
|
||||||
cd $SOURCE_DIR
|
|
||||||
mkdir --parents $PRODUCTS_DIR $TEMP_DIR
|
|
||||||
cp ../CASA-1.7.$1.tar.bz2 $TEMP_DIR
|
|
||||||
cp $SOURCE_DIR/package/linux/CASA.spec.in $TEMP_DIR/CASA.spec
|
|
||||||
sed -i "s/@VERSION@/1.7.$1/" $TEMP_DIR/CASA.spec
|
|
||||||
sed -i "s/@PACKAGE@/CASA/" $TEMP_DIR/CASA.spec
|
|
||||||
sed -i "s/BuildRequires: /BuildRequires: novell-filesystem /" $TEMP_DIR/CASA.spec
|
|
||||||
cp $SOURCE_DIR/CASA.changes $TEMP_DIR
|
|
||||||
cd $TEMP_DIR
|
|
||||||
|
|
||||||
##call autobuild
|
|
||||||
. /opt/SuSE/bin/.profile
|
|
||||||
sudo build --clean
|
|
||||||
|
|
||||||
##copy rpms to temp directoy
|
|
||||||
cp -rf $RPMS_DIR/RPMS $TEMP_DIR
|
|
||||||
cp -rf $RPMS_DIR/SRPMS $TEMP_DIR
|
|
@ -1,57 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
## creating ENV varaibles
|
|
||||||
SOURCE_DIR=`pwd`
|
|
||||||
export BUILD_ROOT=$SOURCE_DIR/../autobuild/BUILD
|
|
||||||
PACKAGE=CASA
|
|
||||||
VERSION=1.7.$1
|
|
||||||
TEMP_DIR=$SOURCE_DIR/SOURCES
|
|
||||||
BUILT_DIR=$BUILD_ROOT/usr/src/packages/BUILD/CASA-1.7.$1
|
|
||||||
RPMS_DIR=$BUILD_ROOT/usr/src/packages
|
|
||||||
|
|
||||||
##creating tar.gz
|
|
||||||
rm -rf ../bld_tst
|
|
||||||
mkdir ../bld_tst
|
|
||||||
mkdir ../bld_tst/CASA-1.7.$1
|
|
||||||
cp -R ./* ../bld_tst/CASA-1.7.$1
|
|
||||||
|
|
||||||
cd ../bld_tst/CASA-1.7.$1
|
|
||||||
sed -i "s/\(AM_INIT_AUTOMAKE.*\))/\AM_INIT_AUTOMAKE\(CASA, 1\.7\.$1\)/" ./configure.in
|
|
||||||
|
|
||||||
find . -name "*.lux" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "mk*" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "mk*" | xargs chmod +x > /dev/null 2>&1
|
|
||||||
find . -name "Make*" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.c" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.cs" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.cpp" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.h" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "link*" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name ".svn" | xargs rm -rf > /dev/null 2>&1
|
|
||||||
find . -name "*.sh" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.sh" | xargs chmod +x > /dev/null 2>&1
|
|
||||||
find . -name "*ver.txt" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*build.txt" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
find . -name "*.mak" | xargs dos2unix > /dev/null 2>&1
|
|
||||||
cd ..
|
|
||||||
tar cjf ../CASA-1.7.$1.tar.bz2 ./CASA-1.7.$1
|
|
||||||
|
|
||||||
#creating spec file
|
|
||||||
cd $SOURCE_DIR
|
|
||||||
mkdir --parents $PRODUCTS_DIR $TEMP_DIR
|
|
||||||
cp ../CASA-1.7.$1.tar.bz2 $TEMP_DIR
|
|
||||||
cp $SOURCE_DIR/package/linux/CASA.spec.in $TEMP_DIR/CASA.spec
|
|
||||||
sed -i "s/@VERSION@/1.7.$1/" $TEMP_DIR/CASA.spec
|
|
||||||
sed -i "s/@PACKAGE@/CASA/" $TEMP_DIR/CASA.spec
|
|
||||||
sed -i "s/BuildRequires: /BuildRequires: novell-filesystem /" $TEMP_DIR/CASA.spec
|
|
||||||
cp $SOURCE_DIR/CASA.changes $TEMP_DIR
|
|
||||||
cp $SOURCE_DIR/baselibs.conf $TEMP_DIR
|
|
||||||
cd $TEMP_DIR
|
|
||||||
|
|
||||||
##call autobuild
|
|
||||||
. /opt/SuSE/bin/.profile
|
|
||||||
sudo linux32 build --clean -baselibs
|
|
||||||
|
|
||||||
##copy rpms to temp directoy
|
|
||||||
cp -rf $RPMS_DIR/RPMS $TEMP_DIR
|
|
||||||
cp -rf $RPMS_DIR/SRPMS $TEMP_DIR
|
|
@ -1,18 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# setup for calling "builduser.cmd and buildkernel.cmd" via cygwin's rsh
|
|
||||||
# since ssh is having trouble. This is a hack, but we don't any other way
|
|
||||||
# to solve this at the moment.
|
|
||||||
|
|
||||||
echo "============================================="
|
|
||||||
echo " START - Build casa"
|
|
||||||
echo "============================================="
|
|
||||||
|
|
||||||
/usr/bin/rsh -n -d -l nds_cm localhost "set SVN_REVISION=$SVN_REVISION&& cd /d c:\cygwin\home\nds_cm\build_win\casa~1.7\CASA\ && build_config\win64\builduser.cmd"
|
|
||||||
|
|
||||||
echo "Status: $?"
|
|
||||||
|
|
||||||
echo "============================================="
|
|
||||||
echo " END - Build casa"
|
|
||||||
echo "============================================="
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
@echo on
|
|
||||||
rem setup for calling nmake
|
|
||||||
rem setlocal
|
|
||||||
set SVN_REVISION=%1%
|
|
||||||
set casa_root_dir=%cd%
|
|
||||||
rem Do a free (retail) build
|
|
||||||
setlocal
|
|
||||||
mkdir TEMP
|
|
||||||
set TEMP=%cd%\TEMP
|
|
||||||
set TMP=%cd%\TEMP
|
|
||||||
|
|
||||||
call "F:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
|
|
||||||
echo "%SVN_REVISION%"
|
|
||||||
|
|
||||||
cd /d %casa_root_dir%
|
|
||||||
cd package\windows\vs_solutions\CASA32-msi
|
|
||||||
..\..\..\..\tools\w32\VersionVDProj\bin\VersionVDProj.exe -msi CASA.vdproj version=1.7.%SVN_REVISION%
|
|
||||||
..\..\..\..\tools\w32\VersionVDProj\bin\VersionVDProj.exe -msi ..\CASA_sdk\CASA_sdk.vdproj version=1.7.%SVN_REVISION%
|
|
||||||
|
|
||||||
|
|
||||||
cd /d %casa_root_dir%
|
|
||||||
cd package\windows\vs_solutions\CASA64-msi
|
|
||||||
..\..\..\..\tools\w32\VersionVDProj\bin\VersionVDProj.exe -msi CASA64.vdproj version=1.7.%SVN_REVISION%
|
|
||||||
..\..\..\..\tools\w32\VersionVDProj\bin\VersionVDProj.exe -msi ..\CASA_sdk_x64\CASA_sdk_x64.vdproj version=1.7.%SVN_REVISION%
|
|
||||||
devenv /rebuild Release CASA-64-32.sln /out build.log
|
|
||||||
|
|
||||||
endlocal
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
HOST_ARCH=`uname -a | grep -c x86_64`
|
|
||||||
if [ $HOST_ARCH -gt 0 ]
|
|
||||||
then ARCH_LIB=64
|
|
||||||
else
|
|
||||||
ARCH_LIB=
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
export MONO_PATH=/usr/lib$ARCH_LIB/
|
|
||||||
mono /usr/bin/CASAcli.exe $1 $2 $3 $4 $5 $6 $7 $8 $9
|
|
@ -1,208 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="8.00"
|
|
||||||
Name="CASAcli"
|
|
||||||
ProjectGUID="{4AFEB4A4-C9D7-4EAD-BCE4-BA84E00ACA23}"
|
|
||||||
RootNamespace="CASAcli"
|
|
||||||
>
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"
|
|
||||||
/>
|
|
||||||
</Platforms>
|
|
||||||
<ToolFiles>
|
|
||||||
</ToolFiles>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory=".\Debug"
|
|
||||||
IntermediateDirectory=".\Debug"
|
|
||||||
ConfigurationType="1"
|
|
||||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
|
||||||
UseOfMFC="0"
|
|
||||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
|
||||||
CharacterSet="2"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
TypeLibraryName=".\Debug/sshtst.tlb"
|
|
||||||
HeaderFileName=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories="..\include"
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="1"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
AssemblerListingLocation=".\Debug/"
|
|
||||||
ObjectFile=".\Debug/"
|
|
||||||
ProgramDataBaseFileName=".\Debug/"
|
|
||||||
WarningLevel="3"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
DebugInformationFormat="4"
|
|
||||||
CompileAs="0"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
PreprocessorDefinitions="_DEBUG"
|
|
||||||
Culture="1033"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="odbc32.lib odbccp32.lib micasa.lib"
|
|
||||||
LinkIncremental="1"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
AdditionalLibraryDirectories="..\micasadk\Release"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
SubSystem="1"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory=".\Release"
|
|
||||||
IntermediateDirectory=".\Release"
|
|
||||||
ConfigurationType="1"
|
|
||||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
|
||||||
UseOfMFC="0"
|
|
||||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
|
||||||
CharacterSet="2"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="2"
|
|
||||||
InlineFunctionExpansion="1"
|
|
||||||
AdditionalIncludeDirectories="..\include"
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
|
||||||
StringPooling="true"
|
|
||||||
RuntimeLibrary="0"
|
|
||||||
EnableFunctionLevelLinking="true"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
AssemblerListingLocation=".\Release/"
|
|
||||||
ObjectFile=".\Release/"
|
|
||||||
ProgramDataBaseFileName=".\Release/"
|
|
||||||
WarningLevel="3"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
CompileAs="0"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
PreprocessorDefinitions="NDEBUG"
|
|
||||||
Culture="1033"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="micasa.lib odbc32.lib odbccp32.lib"
|
|
||||||
LinkIncremental="1"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
AdditionalLibraryDirectories="..\micasadk\Release"
|
|
||||||
SubSystem="1"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Source Files"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\casacli.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
45
CASA/cli/CMakeLists.txt
Normal file
45
CASA/cli/CMakeLists.txt
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
#################################
|
||||||
|
# Project
|
||||||
|
##############
|
||||||
|
|
||||||
|
project(CASAcli)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Dependencies
|
||||||
|
##############
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Compiler Switches
|
||||||
|
##############
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/include
|
||||||
|
)
|
||||||
|
|
||||||
|
link_directories(
|
||||||
|
${CMAKE_BINARY_DIR}/micasadk
|
||||||
|
)
|
||||||
|
|
||||||
|
add_definitions( -DSSCS_LINUX_PLAT_F -O2 -D_REENTRANT -DALIGNMENT -DN_PLAT_UNIX -DUNIX -DLINUX -DIAPX38 )
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Source Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
IF(UNIX)
|
||||||
|
add_executable(CASAcli casacli.c)
|
||||||
|
ENDIF(UNIX)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Linking
|
||||||
|
##############
|
||||||
|
|
||||||
|
target_link_libraries(CASAcli micasa)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Install Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
install(TARGETS CASAcli DESTINATION ${BIN_INSTALL_DIR})
|
@ -1,119 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS =
|
|
||||||
DIST_SUBDIRS =
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CFILES)
|
|
||||||
|
|
||||||
CASAROOT = ..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)
|
|
||||||
|
|
||||||
if LIB64
|
|
||||||
CASABINDIR = $(CASAROOT)/bin64
|
|
||||||
else
|
|
||||||
CASABINDIR = $(CASAROOT)/bin
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
OBJDIR = $(TARGET_CFG)/$(LIB)
|
|
||||||
|
|
||||||
BUILD_VER = 1.1.1
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR = ..
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
MODULE_NAME = CASAcli
|
|
||||||
MODULE_EXT =
|
|
||||||
|
|
||||||
CFILES = casacli.c
|
|
||||||
|
|
||||||
CSFILES_CSC :=
|
|
||||||
INCLUDES = -I. -I.. -I$(CASAROOT)/include
|
|
||||||
EXTRA_CFLAGS =
|
|
||||||
RESOURCES =
|
|
||||||
CFLAGS += $(EXTRA_CFLAGS) $(INCLUDES) $(DEFINES)
|
|
||||||
LIBS = -L$(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
LDFLAGS = -lmicasa
|
|
||||||
|
|
||||||
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
|
|
||||||
#COMMON_OBJS = -L/../../c_common/linux/$(OBJDIR) ../../c_common/linux/$(OBJDIR)/sscs_ll.o
|
|
||||||
COMMON_OBJS = $(OBJDIR)/sscs_ll.o
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
#all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.c
|
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.cpp
|
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME): $(OBJDIR) $(OBJS)
|
|
||||||
@echo [======== Linking $@ ========]
|
|
||||||
cc $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
|
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME) $(CASABINDIR)/$(TARGET_CFG)/$(MODULE_NAME)
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR)
|
|
||||||
[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
|||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
|
||||||
// set of attributes. Change these attribute values to modify the information
|
|
||||||
// associated with an assembly.
|
|
||||||
[assembly: AssemblyTitle("CASAManagerCLI")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("Novell, Inc")]
|
|
||||||
[assembly: AssemblyProduct("CASAManagerCLI")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © Novell, Inc 2007")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
|
||||||
// to COM components. If you need to access a type in this assembly from
|
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
|
||||||
[assembly: Guid("dc4be258-86ca-4284-bbe1-23b64a01e197")]
|
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
|
||||||
//
|
|
||||||
// Major Version
|
|
||||||
// Minor Version
|
|
||||||
// Build Number
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
7
CASA/cmake/modules/CMakeCSharpCompiler.cmake.in
Normal file
7
CASA/cmake/modules/CMakeCSharpCompiler.cmake.in
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
set(CMAKE_CSharp_COMPILER "@CMAKE_CSharp_COMPILER@")
|
||||||
|
set(CMAKE_CSharp_COMPILER_LOADED @CMAKE_CSharp_COMPILER_LOADED@)
|
||||||
|
set(GAC_DIR @GAC_DIR@)
|
||||||
|
|
||||||
|
set(_csc_default_lib_path @_csc_default_lib_path@ CACHE INTERNAL "")
|
||||||
|
|
||||||
|
set(CMAKE_CSharp_COMPILER_ENV_VAR "CSC")
|
321
CASA/cmake/modules/CMakeCSharpInformation.cmake
Normal file
321
CASA/cmake/modules/CMakeCSharpInformation.cmake
Normal file
@ -0,0 +1,321 @@
|
|||||||
|
# copyright (c) 2007, 2009 Arno Rehn arno@arnorehn.de
|
||||||
|
# copyright (c) 2008 Helio castro helio@kde.org
|
||||||
|
#
|
||||||
|
# Redistribution and use is allowed according to the terms of the GPL license.
|
||||||
|
|
||||||
|
# This file adds support for the C# language to cmake.
|
||||||
|
#
|
||||||
|
# It adds the following functions:
|
||||||
|
#
|
||||||
|
# csharp_add_executable (<name> <source files> [UNSAFE] [WINEXE] [REFERENCES <references>]
|
||||||
|
# [COMPILE_FLAGS <flags to be passed to the compiler>]
|
||||||
|
# [COMPILE_DEFINITIONS <additional definitions>] )
|
||||||
|
#
|
||||||
|
# csharp_add_library (<name> <source files> [UNSAFE] [REFERENCES <references>]
|
||||||
|
# [COMPILE_FLAGS <flags to be passed to the compiler>]
|
||||||
|
# [COMPILE_DEFINITIONS <additional definitions>] )
|
||||||
|
#
|
||||||
|
# install_assembly (<target name> DESTINATION <assembly destination directory>
|
||||||
|
# [PACKAGE <package name>] )
|
||||||
|
# The assembly destination directory is only used if we compile with Visual C# and thus can't use gacutil.
|
||||||
|
# If a package is specified and a file called <target>.pc.cmake exists in the current source directory,
|
||||||
|
# this function will configure the template file. All occurences of @assembly@ will be replaced with
|
||||||
|
# the path to the assembly. The resulting <target>.pc file will be installed to
|
||||||
|
# <CMAKE_INSTALL_PREFIX>/lib/pkgconfig/ . If you want to have a different basename for the template file,
|
||||||
|
# set the 'pkg-config_template_basename' property of the target with set_property.
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# ------------------------------
|
||||||
|
# cmake code:
|
||||||
|
# ------------------------------
|
||||||
|
# csharp_add_library(foo foo.cs)
|
||||||
|
# install_assembly(foo DESTINATION lib)
|
||||||
|
#
|
||||||
|
# ------------------------------
|
||||||
|
# contents of foo.pc.cmake file:
|
||||||
|
# ------------------------------
|
||||||
|
# Name: Foo
|
||||||
|
# Description: Foo library
|
||||||
|
# Version: 1.0
|
||||||
|
# Libs: -r:@assembly@
|
||||||
|
|
||||||
|
# ----- support macros -----
|
||||||
|
macro(GET_LIBRARY_OUTPUT_DIR var)
|
||||||
|
if (NOT LIBRARY_OUTPUT_PATH)
|
||||||
|
set(${var} ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
else (NOT LIBRARY_OUTPUT_PATH)
|
||||||
|
set(${var} ${LIBRARY_OUTPUT_PATH})
|
||||||
|
endif (NOT LIBRARY_OUTPUT_PATH)
|
||||||
|
endmacro(GET_LIBRARY_OUTPUT_DIR)
|
||||||
|
|
||||||
|
macro(GET_EXECUTABLE_OUTPUT_DIR var)
|
||||||
|
if (NOT EXECUTABLE_OUTPUT_PATH)
|
||||||
|
set(${var} ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
else (NOT EXECUTABLE_OUTPUT_PATH)
|
||||||
|
set(${var} ${EXECUTABLE_OUTPUT_PATH})
|
||||||
|
endif (NOT EXECUTABLE_OUTPUT_PATH)
|
||||||
|
endmacro(GET_EXECUTABLE_OUTPUT_DIR)
|
||||||
|
|
||||||
|
# This does just not always work... why?!
|
||||||
|
# macro(MAKE_PROPER_FILE_LIST var)
|
||||||
|
# foreach(file ${ARGN})
|
||||||
|
# if (IS_ABSOLUTE "${file}")
|
||||||
|
# file(GLOB globbed "${file}")
|
||||||
|
# else (IS_ABSOLUTE "${file}")
|
||||||
|
# file(GLOB globbed "${CMAKE_CURRENT_SOURCE_DIR}/${file}")
|
||||||
|
# endif (IS_ABSOLUTE "${file}")
|
||||||
|
#
|
||||||
|
# foreach (glob ${globbed})
|
||||||
|
# file(TO_NATIVE_PATH "${glob}" native)
|
||||||
|
# list(APPEND proper_file_list "${native}")
|
||||||
|
# endforeach (glob ${globbed})
|
||||||
|
# endforeach(file ${ARGN})
|
||||||
|
# endmacro(MAKE_PROPER_FILE_LIST)
|
||||||
|
|
||||||
|
# ----- actual functions -----
|
||||||
|
|
||||||
|
# ----- add an executable -----
|
||||||
|
function(csharp_add_executable target)
|
||||||
|
set(current "s")
|
||||||
|
set(dotnet_target "exe")
|
||||||
|
|
||||||
|
foreach (arg ${ARGN})
|
||||||
|
file(TO_NATIVE_PATH ${arg} native_path)
|
||||||
|
|
||||||
|
if (arg STREQUAL "UNSAFE")
|
||||||
|
set (unsafe "/unsafe")
|
||||||
|
elseif (arg STREQUAL "WINEXE")
|
||||||
|
set (dotnet_target "winexe")
|
||||||
|
elseif (arg STREQUAL "REFERENCES")
|
||||||
|
set (current "r")
|
||||||
|
elseif (arg STREQUAL "COMPILE_FLAGS")
|
||||||
|
set (current "flags")
|
||||||
|
elseif (arg STREQUAL "COMPILE_DEFINITIONS")
|
||||||
|
set (current "defs")
|
||||||
|
else (arg STREQUAL "UNSAFE")
|
||||||
|
if (current STREQUAL "s")
|
||||||
|
# source file
|
||||||
|
list(APPEND sources ${native_path})
|
||||||
|
elseif (current STREQUAL "r")
|
||||||
|
# reference
|
||||||
|
if (TARGET ${arg})
|
||||||
|
# this is an existing target - get the target assembly
|
||||||
|
get_property(prop TARGET ${arg} PROPERTY _assembly)
|
||||||
|
list(APPEND references "/r:${prop}")
|
||||||
|
list(APPEND deps ${arg})
|
||||||
|
else (TARGET ${arg})
|
||||||
|
# something different (e.g. assembly name in the gac)
|
||||||
|
list(APPEND references "/r:${native_path}")
|
||||||
|
endif (TARGET ${arg})
|
||||||
|
elseif (current STREQUAL "flags")
|
||||||
|
list(APPEND _csc_opts "${arg}")
|
||||||
|
elseif (current STREQUAL "defs")
|
||||||
|
list(APPEND _csc_opts "/define:${arg}")
|
||||||
|
endif (current STREQUAL "s")
|
||||||
|
endif (arg STREQUAL "UNSAFE")
|
||||||
|
endforeach (arg ${ARGN})
|
||||||
|
|
||||||
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
list(APPEND _csc_opts "/define:DEBUG")
|
||||||
|
list(APPEND _csc_opts "/debug")
|
||||||
|
endif (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
|
||||||
|
get_executable_output_dir(outdir)
|
||||||
|
if (NOT IS_ABSOLUTE "${outdir}")
|
||||||
|
message(FATAL_ERROR "Directory \"${outdir}\" is not an absolute path!")
|
||||||
|
endif (NOT IS_ABSOLUTE "${outdir}")
|
||||||
|
|
||||||
|
file(RELATIVE_PATH relative_path "${CMAKE_BINARY_DIR}" "${outdir}/${target}.exe")
|
||||||
|
file(TO_NATIVE_PATH "${outdir}/${target}" native_target)
|
||||||
|
|
||||||
|
# inlined - this doesn't work as a macro :(
|
||||||
|
foreach(file ${sources})
|
||||||
|
file(TO_CMAKE_PATH "${file}" cmake_file)
|
||||||
|
|
||||||
|
if (IS_ABSOLUTE "${cmake_file}")
|
||||||
|
file(GLOB globbed "${cmake_file}")
|
||||||
|
else (IS_ABSOLUTE "${cmake_file}")
|
||||||
|
file(GLOB globbed "${CMAKE_CURRENT_SOURCE_DIR}/${cmake_file}")
|
||||||
|
endif (IS_ABSOLUTE "${cmake_file}")
|
||||||
|
|
||||||
|
foreach (glob ${globbed})
|
||||||
|
file(TO_CMAKE_PATH "${glob}" cmake_path)
|
||||||
|
list(APPEND cmake_file_list "${cmake_path}")
|
||||||
|
endforeach (glob ${globbed})
|
||||||
|
if (NOT globbed)
|
||||||
|
list(APPEND cmake_file_list "${cmake_file}")
|
||||||
|
endif (NOT globbed)
|
||||||
|
list(APPEND compiler_file_list ${file})
|
||||||
|
endforeach(file ${sources})
|
||||||
|
|
||||||
|
get_directory_property(compile_definitions COMPILE_DEFINITIONS)
|
||||||
|
foreach (def ${compile_definitions})
|
||||||
|
# macros with values aren't supported by C#
|
||||||
|
if (NOT def MATCHES ".*=.*")
|
||||||
|
list(APPEND _csc_opts "/define:${def}")
|
||||||
|
endif (NOT def MATCHES ".*=.*")
|
||||||
|
endforeach (def ${compile_definitions})
|
||||||
|
|
||||||
|
get_directory_property(link_dirs LINK_DIRECTORIES)
|
||||||
|
foreach (dir ${link_dirs})
|
||||||
|
list(APPEND _csc_opts "/lib:${dir}")
|
||||||
|
endforeach (dir ${link_dirs})
|
||||||
|
|
||||||
|
add_custom_command(OUTPUT "${outdir}/${target}.stubexe"
|
||||||
|
COMMAND "${CMAKE_COMMAND}" -E make_directory "${outdir}" # create the output dir
|
||||||
|
COMMAND "${CMAKE_CSharp_COMPILER}" /nologo /target:${dotnet_target} "/out:${native_target}.exe" # build the executable
|
||||||
|
${_csc_opts} ${unsafe} ${references} ${compiler_file_list}
|
||||||
|
COMMAND "${CMAKE_COMMAND}" -E touch "${outdir}/${target}.stubexe" # create the stub so that DEPENDS will work
|
||||||
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" # working directory is the source directory, so we don't have to care about relative paths
|
||||||
|
DEPENDS ${cmake_file_list}
|
||||||
|
COMMENT "Building ${relative_path}" VERBATIM) # nice comment
|
||||||
|
add_custom_target(${target} ALL DEPENDS "${outdir}/${target}.stubexe" SOURCES ${cmake_file_list}) # create the actual target
|
||||||
|
if (deps)
|
||||||
|
add_dependencies(${target} ${deps})
|
||||||
|
endif(deps)
|
||||||
|
endfunction(csharp_add_executable)
|
||||||
|
|
||||||
|
# ----- add a library -----
|
||||||
|
function(csharp_add_library target)
|
||||||
|
set(current "s")
|
||||||
|
|
||||||
|
foreach (arg ${ARGN})
|
||||||
|
file(TO_NATIVE_PATH ${arg} native_path)
|
||||||
|
|
||||||
|
if (arg STREQUAL "UNSAFE")
|
||||||
|
set (unsafe "/unsafe")
|
||||||
|
elseif (arg STREQUAL "REFERENCES")
|
||||||
|
set (current "r")
|
||||||
|
elseif (arg STREQUAL "COMPILE_FLAGS")
|
||||||
|
set (current "flags")
|
||||||
|
elseif (arg STREQUAL "COMPILE_DEFINITIONS")
|
||||||
|
set (current "defs")
|
||||||
|
else (arg STREQUAL "UNSAFE")
|
||||||
|
if (current STREQUAL "s")
|
||||||
|
# source file
|
||||||
|
list(APPEND sources ${native_path})
|
||||||
|
elseif (current STREQUAL "r")
|
||||||
|
# reference
|
||||||
|
if (TARGET ${arg})
|
||||||
|
# this is an existing target - get the target assembly
|
||||||
|
get_property(prop TARGET ${arg} PROPERTY _assembly)
|
||||||
|
list(APPEND references "/r:${prop}")
|
||||||
|
list(APPEND deps ${arg})
|
||||||
|
else (TARGET ${arg})
|
||||||
|
# something different (e.g. assembly name in the gac)
|
||||||
|
list(APPEND references "/r:${native_path}")
|
||||||
|
endif (TARGET ${arg})
|
||||||
|
elseif (current STREQUAL "flags")
|
||||||
|
list(APPEND _csc_opts "${arg}")
|
||||||
|
elseif (current STREQUAL "defs")
|
||||||
|
list(APPEND _csc_opts "/define:${arg}")
|
||||||
|
endif (current STREQUAL "s")
|
||||||
|
endif (arg STREQUAL "UNSAFE")
|
||||||
|
endforeach (arg ${ARGN})
|
||||||
|
|
||||||
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
list(APPEND _csc_opts "/define:DEBUG")
|
||||||
|
list(APPEND _csc_opts "/debug")
|
||||||
|
endif (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
|
||||||
|
get_library_output_dir(outdir)
|
||||||
|
if (NOT IS_ABSOLUTE "${outdir}")
|
||||||
|
message(FATAL_ERROR "Directory \"${outdir}\" is not an absolute path!")
|
||||||
|
endif (NOT IS_ABSOLUTE "${outdir}")
|
||||||
|
|
||||||
|
file(RELATIVE_PATH relative_path "${CMAKE_BINARY_DIR}" "${outdir}/${target}.dll")
|
||||||
|
file(TO_NATIVE_PATH "${outdir}/${target}" native_target)
|
||||||
|
|
||||||
|
# inlined - this doesn't work as a macro :(
|
||||||
|
foreach(file ${sources})
|
||||||
|
file(TO_CMAKE_PATH "${file}" cmake_file)
|
||||||
|
|
||||||
|
if (IS_ABSOLUTE "${cmake_file}")
|
||||||
|
file(GLOB globbed "${cmake_file}")
|
||||||
|
else (IS_ABSOLUTE "${cmake_file}")
|
||||||
|
file(GLOB globbed "${CMAKE_CURRENT_SOURCE_DIR}/${cmake_file}")
|
||||||
|
endif (IS_ABSOLUTE "${cmake_file}")
|
||||||
|
|
||||||
|
foreach (glob ${globbed})
|
||||||
|
file(TO_CMAKE_PATH "${glob}" cmake_path)
|
||||||
|
list(APPEND cmake_file_list "${cmake_path}")
|
||||||
|
endforeach (glob ${globbed})
|
||||||
|
if (NOT globbed)
|
||||||
|
list(APPEND cmake_file_list "${cmake_file}")
|
||||||
|
endif (NOT globbed)
|
||||||
|
list(APPEND compiler_file_list ${file})
|
||||||
|
endforeach(file ${sources})
|
||||||
|
|
||||||
|
# message("CMake File List for target ${target}: ${cmake_file_list}")
|
||||||
|
|
||||||
|
get_directory_property(compile_definitions COMPILE_DEFINITIONS)
|
||||||
|
foreach (def ${compile_definitions})
|
||||||
|
# macros with values aren't supported by C#
|
||||||
|
if (NOT def MATCHES ".*=.*")
|
||||||
|
list(APPEND _csc_opts "/define:${def}")
|
||||||
|
endif (NOT def MATCHES ".*=.*")
|
||||||
|
endforeach (def ${compile_definitions})
|
||||||
|
|
||||||
|
get_directory_property(link_dirs LINK_DIRECTORIES)
|
||||||
|
foreach (dir ${link_dirs})
|
||||||
|
list(APPEND _csc_opts "/lib:${dir}")
|
||||||
|
endforeach (dir ${link_dirs})
|
||||||
|
|
||||||
|
add_custom_command(OUTPUT "${outdir}/${target}.dll"
|
||||||
|
COMMAND "${CMAKE_COMMAND}" -E make_directory "${outdir}" # create the output dir
|
||||||
|
COMMAND "${CMAKE_CSharp_COMPILER}" /nologo /target:library "/out:${native_target}.dll" # build the executable
|
||||||
|
${_csc_opts} ${unsafe} ${references} ${compiler_file_list}
|
||||||
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" # working directory is the source directory, so we don't have to care about relative paths
|
||||||
|
DEPENDS ${cmake_file_list}
|
||||||
|
COMMENT "Building ${relative_path}" VERBATIM) # nice comment
|
||||||
|
add_custom_target(${target} ALL DEPENDS "${outdir}/${target}.dll" SOURCES ${cmake_file_list}) # create the actual target
|
||||||
|
set_property(TARGET ${target} PROPERTY _assembly "${native_target}.dll")
|
||||||
|
if (deps)
|
||||||
|
add_dependencies(${target} ${deps})
|
||||||
|
endif(deps)
|
||||||
|
endfunction(csharp_add_library)
|
||||||
|
|
||||||
|
# ----- install a library assembly -----
|
||||||
|
function(install_assembly target DESTINATION destination_dir)
|
||||||
|
# retrieve the absolute path of the generated assembly
|
||||||
|
get_property(filename TARGET ${target} PROPERTY _assembly)
|
||||||
|
get_property(pc_file TARGET ${target} PROPERTY pkg-config_template_basename)
|
||||||
|
if (NOT pc_file)
|
||||||
|
set (pc_file ${target})
|
||||||
|
endif (NOT pc_file)
|
||||||
|
|
||||||
|
if (NOT filename)
|
||||||
|
message(FATAL_ERROR "Couldn't retrieve the assembly filename for target ${target}! Are you sure the target is a .NET library assembly?")
|
||||||
|
endif (NOT filename)
|
||||||
|
|
||||||
|
if (NOT MONO_FOUND)
|
||||||
|
install(FILES "${filename}" DESTINATION ${destination_dir})
|
||||||
|
if (EXISTS "${filename}.config")
|
||||||
|
install(FILES "${filename}.config" DESTINATION ${destination_dir})
|
||||||
|
endif (EXISTS "${filename}.config")
|
||||||
|
return()
|
||||||
|
endif (NOT MONO_FOUND)
|
||||||
|
|
||||||
|
if (ARGV3 STREQUAL "PACKAGE" AND ARGV4)
|
||||||
|
set (package_option "-package ${ARGV4}")
|
||||||
|
|
||||||
|
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${pc_file}.pc.cmake")
|
||||||
|
set(assembly "${GAC_DIR}/${ARGV4}/${target}.dll")
|
||||||
|
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/${pc_file}.pc.cmake" "${CMAKE_CURRENT_BINARY_DIR}/${pc_file}.pc")
|
||||||
|
|
||||||
|
if (NOT LIB_INSTALL_DIR)
|
||||||
|
set (LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib)
|
||||||
|
endif (NOT LIB_INSTALL_DIR)
|
||||||
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${pc_file}.pc" DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
|
||||||
|
endif (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${pc_file}.pc.cmake")
|
||||||
|
|
||||||
|
endif (ARGV3 STREQUAL "PACKAGE" AND ARGV4)
|
||||||
|
|
||||||
|
# So we have the mono runtime and we can use gacutil (it has the -root option, which the MS version doesn't have).
|
||||||
|
install(CODE "execute_process(COMMAND ${GACUTIL_EXECUTABLE} -i ${filename} ${package_option} -root ${CMAKE_CURRENT_BINARY_DIR}/tmp_gac)")
|
||||||
|
file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/tmp_gac/mono)
|
||||||
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tmp_gac/mono)
|
||||||
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tmp_gac/mono/ DESTINATION ${GAC_DIR} )
|
||||||
|
endfunction(install_assembly)
|
||||||
|
|
||||||
|
set(CMAKE_CSharp_INFORMATION_LOADED 1)
|
85
CASA/cmake/modules/CMakeDetermineCSharpCompiler.cmake
Normal file
85
CASA/cmake/modules/CMakeDetermineCSharpCompiler.cmake
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
# copyright (c) 2007, 2009 Arno Rehn arno@arnorehn.de
|
||||||
|
# copyright (c) 2008 Helio castro helio@kde.org
|
||||||
|
#
|
||||||
|
# Redistribution and use is allowed according to the terms of the GPL license.
|
||||||
|
|
||||||
|
# determine the compiler to use for C# programs
|
||||||
|
# NOTE, a generator may set CMAKE_CSharp_COMPILER before
|
||||||
|
# loading this file to force a compiler.
|
||||||
|
|
||||||
|
if(NOT CMAKE_CSharp_COMPILER)
|
||||||
|
# prefer the environment variable CSC
|
||||||
|
if($ENV{CSC} MATCHES ".+")
|
||||||
|
if (EXISTS $ENV{CSC})
|
||||||
|
message(STATUS "Found compiler set in environment variable CSC: $ENV{CSC}.")
|
||||||
|
set(CMAKE_CSharp_COMPILER $ENV{CSC})
|
||||||
|
else (EXISTS $ENV{CSC})
|
||||||
|
message(SEND_ERROR "Could not find compiler set in environment variable CSC:\n$ENV{CSC}.")
|
||||||
|
endif (EXISTS $ENV{CSC})
|
||||||
|
endif($ENV{CSC} MATCHES ".+")
|
||||||
|
|
||||||
|
# if no compiler has been specified yet, then look for one
|
||||||
|
if (NOT CMAKE_CSharp_COMPILER)
|
||||||
|
find_package(Mono)
|
||||||
|
set (CMAKE_CSharp_COMPILER "${GMCS_EXECUTABLE}")
|
||||||
|
|
||||||
|
# still not found, try csc.exe
|
||||||
|
if (NOT CMAKE_CSharp_COMPILER)
|
||||||
|
get_filename_component(dotnet_path "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework;InstallRoot]" PATH)
|
||||||
|
find_program(CMAKE_CSharp_COMPILER NAMES csc PATHS "${dotnet_path}/Framework/v2.0.50727")
|
||||||
|
file(TO_NATIVE_PATH "${dotnet_path}/Framework/v2.0.50727" native_path)
|
||||||
|
message(STATUS "Looking for csc: ${CMAKE_CSharp_COMPILER}")
|
||||||
|
|
||||||
|
# give up
|
||||||
|
if (NOT CMAKE_CSharp_COMPILER)
|
||||||
|
message (STATUS "Couldn't find a valid C# compiler. Set either CMake_CSharp_COMPILER or the CSC environment variable to a valid path.")
|
||||||
|
endif (NOT CMAKE_CSharp_COMPILER)
|
||||||
|
endif (NOT CMAKE_CSharp_COMPILER)
|
||||||
|
endif (NOT CMAKE_CSharp_COMPILER)
|
||||||
|
|
||||||
|
endif(NOT CMAKE_CSharp_COMPILER)
|
||||||
|
|
||||||
|
# now try to find the gac location
|
||||||
|
if (CMAKE_CSharp_COMPILER AND NOT GAC_DIR AND MONO_FOUND)
|
||||||
|
find_package(PkgConfig)
|
||||||
|
|
||||||
|
if (PKG_CONFIG_FOUND)
|
||||||
|
pkg_search_module(MONO_CECIL mono-cecil)
|
||||||
|
if(MONO_CECIL_FOUND)
|
||||||
|
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} mono-cecil --variable=assemblies_dir OUTPUT_VARIABLE GAC_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
endif(MONO_CECIL_FOUND)
|
||||||
|
|
||||||
|
pkg_search_module(CECIL cecil)
|
||||||
|
if(CECIL_FOUND)
|
||||||
|
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} cecil --variable=assemblies_dir OUTPUT_VARIABLE GAC_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
endif(CECIL_FOUND)
|
||||||
|
|
||||||
|
if (NOT GAC_DIR)
|
||||||
|
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} mono --variable=libdir OUTPUT_VARIABLE MONO_LIB_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
if (MONO_LIB_DIR)
|
||||||
|
set (GAC_DIR "${MONO_LIB_DIR}/mono")
|
||||||
|
message (STATUS "Could not find cecil, guessing GAC dir from mono prefix: ${GAC_DIR}")
|
||||||
|
endif (MONO_LIB_DIR)
|
||||||
|
endif (NOT GAC_DIR)
|
||||||
|
endif (PKG_CONFIG_FOUND)
|
||||||
|
|
||||||
|
if (NOT GAC_DIR)
|
||||||
|
set (GAC_DIR "/usr/lib/mono")
|
||||||
|
message(STATUS "Could not find cecil or mono. Using default GAC dir: ${GAC_DIR}")
|
||||||
|
endif (NOT GAC_DIR)
|
||||||
|
endif (CMAKE_CSharp_COMPILER AND NOT GAC_DIR AND MONO_FOUND)
|
||||||
|
|
||||||
|
# Create a cache entry so the user can modify this.
|
||||||
|
set(GAC_DIR "${GAC_DIR}" CACHE PATH "Location of the GAC")
|
||||||
|
message(STATUS "Using GAC dir: ${GAC_DIR}")
|
||||||
|
|
||||||
|
mark_as_advanced(CMAKE_CSharp_COMPILER)
|
||||||
|
|
||||||
|
if (CMAKE_CSharp_COMPILER)
|
||||||
|
set (CMAKE_CSharp_COMPILER_LOADED 1)
|
||||||
|
endif (CMAKE_CSharp_COMPILER)
|
||||||
|
|
||||||
|
# configure variables set in this file for fast reload later on
|
||||||
|
configure_file(${CMAKE_SOURCE_DIR}/cmake/modules/CMakeCSharpCompiler.cmake.in
|
||||||
|
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeCSharpCompiler.cmake IMMEDIATE @ONLY)
|
||||||
|
set(CMAKE_CSharp_COMPILER_ENV_VAR "CSC")
|
1
CASA/cmake/modules/CMakeTestCSharpCompiler.cmake
Normal file
1
CASA/cmake/modules/CMakeTestCSharpCompiler.cmake
Normal file
@ -0,0 +1 @@
|
|||||||
|
SET(CMAKE_CSharp_COMPILER_WORKS 1 CACHE INTERNAL "")
|
41
CASA/cmake/modules/FindJavaExtended.cmake
Normal file
41
CASA/cmake/modules/FindJavaExtended.cmake
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# - Find Java Header Compiler
|
||||||
|
# This module finds if Java is installed and determines where the
|
||||||
|
# include files and libraries are. This code sets the following
|
||||||
|
# variables:
|
||||||
|
#
|
||||||
|
# JAVA_HEADER_COMPILE = the full path to the Java Header compiler
|
||||||
|
#
|
||||||
|
|
||||||
|
# Call cmake default version
|
||||||
|
FIND_PACKAGE( Java )
|
||||||
|
|
||||||
|
SET(JAVA_BIN_PATH
|
||||||
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\2.0;JavaHome]/bin"
|
||||||
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.9;JavaHome]/bin"
|
||||||
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.8;JavaHome]/bin"
|
||||||
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.7;JavaHome]/bin"
|
||||||
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.6;JavaHome]/bin"
|
||||||
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.5;JavaHome]/bin"
|
||||||
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/bin"
|
||||||
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/bin"
|
||||||
|
$ENV{JAVA_HOME}/bin
|
||||||
|
/usr/bin
|
||||||
|
/usr/lib/java/bin
|
||||||
|
/usr/share/java/bin
|
||||||
|
/usr/local/bin
|
||||||
|
/usr/local/java/bin
|
||||||
|
/usr/local/java/share/bin
|
||||||
|
/usr/java/j2sdk1.4.2_04
|
||||||
|
/usr/lib/j2sdk1.4-sun/bin
|
||||||
|
/usr/java/j2sdk1.4.2_09/bin
|
||||||
|
/usr/lib/j2sdk1.5-sun/bin
|
||||||
|
/opt/sun-jdk-1.5.0.04/bin
|
||||||
|
)
|
||||||
|
FIND_PROGRAM(JAVA_HEADER_COMPILE
|
||||||
|
NAMES javah
|
||||||
|
PATHS ${JAVA_BIN_PATH}
|
||||||
|
)
|
||||||
|
|
||||||
|
MARK_AS_ADVANCED(
|
||||||
|
JAVA_HEADER_COMPILE
|
||||||
|
)
|
36
CASA/cmake/modules/FindMono.cmake
Normal file
36
CASA/cmake/modules/FindMono.cmake
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# - Try to find the mono, mcs, gmcs and gacutil
|
||||||
|
#
|
||||||
|
# defines
|
||||||
|
#
|
||||||
|
# MONO_FOUND - system has mono, mcs, gmcs and gacutil
|
||||||
|
# MONO_PATH - where to find 'mono'
|
||||||
|
# GMCS_PATH - where to find 'gmcs'
|
||||||
|
# GACUTIL_PATH - where to find 'gacutil'
|
||||||
|
#
|
||||||
|
# copyright (c) 2007 Arno Rehn arno@arnorehn.de
|
||||||
|
#
|
||||||
|
# Redistribution and use is allowed according to the terms of the GPL license.
|
||||||
|
|
||||||
|
FIND_PROGRAM (MONO_EXECUTABLE mono)
|
||||||
|
FIND_PROGRAM (GMCS_EXECUTABLE gmcs)
|
||||||
|
FIND_PROGRAM (GACUTIL_EXECUTABLE gacutil)
|
||||||
|
|
||||||
|
SET (MONO_FOUND FALSE CACHE INTERNAL "")
|
||||||
|
|
||||||
|
IF (MONO_EXECUTABLE AND GMCS_EXECUTABLE AND GACUTIL_EXECUTABLE)
|
||||||
|
SET (MONO_FOUND TRUE CACHE INTERNAL "")
|
||||||
|
ENDIF (MONO_EXECUTABLE AND GMCS_EXECUTABLE AND GACUTIL_EXECUTABLE)
|
||||||
|
|
||||||
|
IF (NOT Mono_FIND_QUIETLY)
|
||||||
|
MESSAGE(STATUS "Path of mono: ${MONO_EXECUTABLE}")
|
||||||
|
MESSAGE(STATUS "Path of gmcs: ${GMCS_EXECUTABLE}")
|
||||||
|
MESSAGE(STATUS "Path of gacutil: ${GACUTIL_EXECUTABLE}")
|
||||||
|
ENDIF (NOT Mono_FIND_QUIETLY)
|
||||||
|
|
||||||
|
IF (NOT MONO_FOUND)
|
||||||
|
IF (Mono_FIND_REQUIRED)
|
||||||
|
MESSAGE(FATAL_ERROR "Could not find one or more of the following programs: mono, gmcs, gacutil")
|
||||||
|
ENDIF (Mono_FIND_REQUIRED)
|
||||||
|
ENDIF (NOT MONO_FOUND)
|
||||||
|
|
||||||
|
MARK_AS_ADVANCED(MONO_EXECUTABLE GMCS_EXECUTABLE GACUTIL_EXECUTABLE)
|
74
CASA/cmake/modules/FindPAM.cmake
Normal file
74
CASA/cmake/modules/FindPAM.cmake
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
# - Try to find the PAM libraries
|
||||||
|
# Once done this will define
|
||||||
|
#
|
||||||
|
# PAM_FOUND - system has pam
|
||||||
|
# PAM_INCLUDE_DIR - the pam include directory
|
||||||
|
# PAM_LIBRARIES - libpam library
|
||||||
|
|
||||||
|
if (PAM_INCLUDE_DIR AND PAM_LIBRARY)
|
||||||
|
# Already in cache, be silent
|
||||||
|
set(PAM_FIND_QUIETLY TRUE)
|
||||||
|
endif (PAM_INCLUDE_DIR AND PAM_LIBRARY)
|
||||||
|
|
||||||
|
find_path(PAM_INCLUDE_DIR NAMES security/pam_appl.h pam/pam_appl.h)
|
||||||
|
find_library(PAM_LIBRARY pam)
|
||||||
|
find_library(DL_LIBRARY dl)
|
||||||
|
|
||||||
|
if (PAM_INCLUDE_DIR AND PAM_LIBRARY)
|
||||||
|
set(PAM_FOUND TRUE)
|
||||||
|
if (DL_LIBRARY)
|
||||||
|
set(PAM_LIBRARIES ${PAM_LIBRARY} ${DL_LIBRARY})
|
||||||
|
else (DL_LIBRARY)
|
||||||
|
set(PAM_LIBRARIES ${PAM_LIBRARY})
|
||||||
|
endif (DL_LIBRARY)
|
||||||
|
|
||||||
|
if (EXISTS ${PAM_INCLUDE_DIR}/pam/pam_appl.h)
|
||||||
|
# darwin claims to be something special
|
||||||
|
set(HAVE_PAM_PAM_APPL_H 1)
|
||||||
|
endif (EXISTS ${PAM_INCLUDE_DIR}/pam/pam_appl.h)
|
||||||
|
|
||||||
|
if (NOT DEFINED PAM_MESSAGE_CONST)
|
||||||
|
include(CheckCXXSourceCompiles)
|
||||||
|
# XXX does this work with plain c?
|
||||||
|
check_cxx_source_compiles("
|
||||||
|
#if ${HAVE_PAM_PAM_APPL_H}+0
|
||||||
|
# include <pam/pam_appl.h>
|
||||||
|
#else
|
||||||
|
# include <security/pam_appl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static int PAM_conv(
|
||||||
|
int num_msg,
|
||||||
|
const struct pam_message **msg, /* this is the culprit */
|
||||||
|
struct pam_response **resp,
|
||||||
|
void *ctx)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
struct pam_conv PAM_conversation = {
|
||||||
|
&PAM_conv, /* this bombs out if the above does not match */
|
||||||
|
0
|
||||||
|
};
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
" PAM_MESSAGE_CONST)
|
||||||
|
endif (NOT DEFINED PAM_MESSAGE_CONST)
|
||||||
|
set(PAM_MESSAGE_CONST ${PAM_MESSAGE_CONST} CACHE BOOL "PAM expects a conversation function with const pam_message")
|
||||||
|
|
||||||
|
endif (PAM_INCLUDE_DIR AND PAM_LIBRARY)
|
||||||
|
|
||||||
|
if (PAM_FOUND)
|
||||||
|
if (NOT PAM_FIND_QUIETLY)
|
||||||
|
message(STATUS "Found PAM: ${PAM_LIBRARIES}")
|
||||||
|
endif (NOT PAM_FIND_QUIETLY)
|
||||||
|
else (PAM_FOUND)
|
||||||
|
if (PAM_FIND_REQUIRED)
|
||||||
|
message(FATAL_ERROR "PAM was not found")
|
||||||
|
endif(PAM_FIND_REQUIRED)
|
||||||
|
endif (PAM_FOUND)
|
||||||
|
|
||||||
|
mark_as_advanced(PAM_INCLUDE_DIR PAM_LIBRARY DL_LIBRARY PAM_MESSAGE_CONST)
|
94
CASA/cmake/modules/FindXmlTo.cmake
Normal file
94
CASA/cmake/modules/FindXmlTo.cmake
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
# - Convert XML docBook files to various formats
|
||||||
|
# This will convert XML docBook files to various formats like:
|
||||||
|
# man html txt dvi ps pdf
|
||||||
|
# macro XMLTO(outfiles infiles... MODES modes...)
|
||||||
|
|
||||||
|
set ( XMLTO_FOUND false )
|
||||||
|
|
||||||
|
find_program ( XMLTO_EXECUTABLE
|
||||||
|
NAMES xmlto
|
||||||
|
DOC "path to the xmlto docbook xslt frontend"
|
||||||
|
)
|
||||||
|
mark_as_advanced ( XMLTO_EXECUTABLE )
|
||||||
|
|
||||||
|
if ( XMLTO_EXECUTABLE )
|
||||||
|
set ( XMLTO_FOUND true )
|
||||||
|
endif ( XMLTO_EXECUTABLE )
|
||||||
|
|
||||||
|
if ( NOT XMLTO_FIND_QUIETLY )
|
||||||
|
if ( XMLTO_FIND_REQUIRED )
|
||||||
|
MESSAGE(FATAL_ERROR "xmlto not found" )
|
||||||
|
endif ( XMLTO_FIND_REQUIRED )
|
||||||
|
endif ( NOT XMLTO_FIND_QUIETLY )
|
||||||
|
|
||||||
|
macro ( _XMLTO_FILE outfiles mode)
|
||||||
|
#special settings
|
||||||
|
set ( XMLTO_FILEEXT_man 1 )
|
||||||
|
set ( XMLTO_MODE_html xhtml-nochunks )
|
||||||
|
|
||||||
|
if ( NOT XMLTO_MODE_${mode})
|
||||||
|
set ( XMLTO_MODE_${mode} ${mode} )
|
||||||
|
endif ( NOT XMLTO_MODE_${mode} )
|
||||||
|
if ( NOT XMLTO_FILEEXT_${mode} )
|
||||||
|
set ( XMLTO_FILEEXT_${mode} ${mode} )
|
||||||
|
endif ( NOT XMLTO_FILEEXT_${mode} )
|
||||||
|
|
||||||
|
foreach ( dbFile ${ARGN} )
|
||||||
|
if ( "${mode}" STREQUAL "man" )
|
||||||
|
file ( READ "${dbFile}" _DB_FILE_CONTENTS )
|
||||||
|
string ( REGEX MATCH "<manvolnum>[^<]*" XMLTO_FILEEXT_${mode} "${_DB_FILE_CONTENTS}" )
|
||||||
|
string ( REGEX REPLACE "^<manvolnum>" "" XMLTO_FILEEXT_${mode} "${XMLTO_FILEEXT_${mode}}" )
|
||||||
|
string ( REGEX REPLACE "[[:space:]]" "" XMLTO_FILEEXT_${mode} "${XMLTO_FILEEXT_${mode}}" )
|
||||||
|
endif ( "${mode}" STREQUAL "man" )
|
||||||
|
|
||||||
|
get_filename_component ( dbFilePath ${CMAKE_CURRENT_BINARY_DIR}/${dbFile} PATH )
|
||||||
|
get_filename_component ( dbFileWE ${dbFile} NAME_WE )
|
||||||
|
get_filename_component ( dbFileAbsWE ${dbFilePath}/${dbFileWE} ABSOLUTE )
|
||||||
|
|
||||||
|
add_custom_command (
|
||||||
|
OUTPUT ${dbFileAbsWE}.${XMLTO_FILEEXT_${mode}}
|
||||||
|
COMMAND ${XMLTO_EXECUTABLE} ${XMLTO_COMMAND_ARGS} -o ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${XMLTO_MODE_${mode}} "${dbFile}"
|
||||||
|
MAIN_DEPENDENCY ${dbFile}
|
||||||
|
VERBATIM
|
||||||
|
)
|
||||||
|
|
||||||
|
list ( APPEND ${outfiles}
|
||||||
|
${dbFileAbsWE}.${XMLTO_FILEEXT_${mode}}
|
||||||
|
)
|
||||||
|
endforeach ( dbFile )
|
||||||
|
endmacro ( _XMLTO_FILE outfiles )
|
||||||
|
|
||||||
|
macro ( XMLTO )
|
||||||
|
set ( XMLTO_MODES )
|
||||||
|
set ( XMLTO_FILES )
|
||||||
|
set ( XMLTO_HAS_MODES false )
|
||||||
|
set ( XMLTO_ADD_DEFAULT "" )
|
||||||
|
foreach ( arg ${ARGN} )
|
||||||
|
if ( ${arg} STREQUAL "MODES" )
|
||||||
|
set ( XMLTO_HAS_MODES true )
|
||||||
|
elseif ( ${arg} STREQUAL "ALL" )
|
||||||
|
set ( XMLTO_ADD_DEFAULT ALL )
|
||||||
|
else ( ${arg} STREQUAL "MODES" )
|
||||||
|
if ( XMLTO_HAS_MODES )
|
||||||
|
list ( APPEND XMLTO_MODES ${arg} )
|
||||||
|
else ( XMLTO_HAS_MODES )
|
||||||
|
list ( APPEND XMLTO_FILES ${arg} )
|
||||||
|
endif ( XMLTO_HAS_MODES )
|
||||||
|
endif ( ${arg} STREQUAL "MODES" )
|
||||||
|
endforeach ( arg ${ARGN} )
|
||||||
|
if ( NOT XMLTO_MODES )
|
||||||
|
set ( XMLTO_MODES html )
|
||||||
|
endif ( NOT XMLTO_MODES )
|
||||||
|
|
||||||
|
foreach ( mode ${XMLTO_MODES} )
|
||||||
|
_xmlto_file ( XMLTO_FILES_${mode} ${mode} ${XMLTO_FILES} )
|
||||||
|
add_custom_target ( ${mode} ${XMLTO_ADD_DEFAULT}
|
||||||
|
DEPENDS ${XMLTO_FILES_${mode}}
|
||||||
|
VERBATIM
|
||||||
|
)
|
||||||
|
endforeach ( mode )
|
||||||
|
|
||||||
|
set ( XMLTO_MODES )
|
||||||
|
set ( XMLTO_FILES )
|
||||||
|
endmacro ( XMLTO )
|
22
CASA/cmake/modules/cmake_uninstall.cmake.in
Normal file
22
CASA/cmake/modules/cmake_uninstall.cmake.in
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
IF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
|
||||||
|
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_BINARY_DIR@/install_manifest.txt\"")
|
||||||
|
ENDIF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
|
||||||
|
|
||||||
|
FILE(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files)
|
||||||
|
STRING(REGEX REPLACE "\n" ";" files "${files}")
|
||||||
|
FOREACH(file ${files})
|
||||||
|
MESSAGE(STATUS "Uninstalling \"${file}\"")
|
||||||
|
IF(EXISTS "${file}")
|
||||||
|
EXEC_PROGRAM(
|
||||||
|
"@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
|
||||||
|
OUTPUT_VARIABLE rm_out
|
||||||
|
RETURN_VALUE rm_retval
|
||||||
|
)
|
||||||
|
IF("${rm_retval}" STREQUAL 0)
|
||||||
|
ELSE("${rm_retval}" STREQUAL 0)
|
||||||
|
MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
|
||||||
|
ENDIF("${rm_retval}" STREQUAL 0)
|
||||||
|
ELSE(EXISTS "${file}")
|
||||||
|
MESSAGE(STATUS "File \"${file}\" does not exist.")
|
||||||
|
ENDIF(EXISTS "${file}")
|
||||||
|
ENDFOREACH(file)
|
@ -1,36 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
SUBDIRS = $(TARGET_OS)
|
|
||||||
|
|
||||||
DIST_SUBDIRS = linux windows
|
|
||||||
|
|
||||||
CFILES =
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CFILES)
|
|
||||||
|
|
||||||
.PHONY: package package-clean package-install package-uninstall
|
|
||||||
package package-clean package-install package-uninstall:
|
|
||||||
$(MAKE) -C $(TARGET_OS) $@
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
||||||
|
|
@ -1,114 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS =
|
|
||||||
DIST_SUBDIRS =
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CFILES)
|
|
||||||
|
|
||||||
CASAROOT = ../..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR = ..
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
MODULE_NAME =sscs_ll
|
|
||||||
MODULE_EXT =o
|
|
||||||
|
|
||||||
CFILES = ../sscs_ll.c
|
|
||||||
|
|
||||||
CSFILES_CSC :=
|
|
||||||
INCLUDES = -I. -I.. -I$(CASAROOT)/include -I/opt/gnome/include/gnome-keyring-1/
|
|
||||||
EXTRA_CFLAGS =
|
|
||||||
RESOURCES =
|
|
||||||
CFLAGS += $(EXTRA_CFLAGS) $(INCLUDES) $(DEFINES)
|
|
||||||
LIBS = -lpthread -ldl
|
|
||||||
LDFLAGS = -Bsymbolic -shared -Wl,-soname=$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/$(LIB)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
|
|
||||||
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.c
|
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.cpp
|
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
#$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
|
||||||
# @echo [======== Linking $@ ========]
|
|
||||||
# $(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
# cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT):
|
|
||||||
@echo [======== Creating symlink $@ ========]
|
|
||||||
ln -f $(CFILES) $(CASAROOT)/micasadk
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR)
|
|
||||||
[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
||||||
|
|
@ -1,114 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS =
|
|
||||||
DIST_SUBDIRS =
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CFILES)
|
|
||||||
|
|
||||||
CASAROOT = ../..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR = ..
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
MODULE_NAME =sscs_ll
|
|
||||||
MODULE_EXT =o
|
|
||||||
|
|
||||||
CFILES = ../sscs_ll.c
|
|
||||||
|
|
||||||
CSFILES_CSC :=
|
|
||||||
INCLUDES = -I. -I.. -I$(CASAROOT)/include -I/opt/gnome/include/gnome-keyring-1/
|
|
||||||
EXTRA_CFLAGS =
|
|
||||||
RESOURCES =
|
|
||||||
CFLAGS += $(EXTRA_CFLAGS) $(INCLUDES) $(DEFINES)
|
|
||||||
LIBS = -lpthread -ldl
|
|
||||||
LDFLAGS = -Bsymbolic -shared -Wl,-soname=$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/$(LIB)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
|
|
||||||
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.c
|
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.cpp
|
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
#$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
|
||||||
# @echo [======== Linking $@ ========]
|
|
||||||
# $(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
# cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT):
|
|
||||||
@echo [======== Creating symlink $@ ========]
|
|
||||||
ln -f $(CFILES) $(CASAROOT)/micasadk
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR)
|
|
||||||
[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Convert the batch files to dos format
|
|
||||||
cd $BUILD_LOCATION/$NAME~$VERSION/$NAME
|
|
||||||
find . -name "*.bat" | xargs unix2dos
|
|
||||||
|
|
||||||
rsh $BUILD_CLIENT "cd /d c:\\ccm_wa\\security\\$NAME~$VERSION\\$NAME && config\\build.cmd"
|
|
||||||
|
|
||||||
# Doesn't work because this project uses the P: drive...
|
|
||||||
#ssh $BUILD_CLIENT "cmd /c 'cd /d d:\\$VERSION\\$PROJECT_NAME~$VERSION\\$PROJECT_NAME && config\\build.cmd'"
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
|||||||
@echo on
|
|
||||||
|
|
||||||
setlocal
|
|
||||||
|
|
||||||
rem Set some compiler specific options
|
|
||||||
set MSC=p:/Tools/msc7.00/Vc7/
|
|
||||||
set WATCOM=p:/Tools/WCC/v11.0/
|
|
||||||
|
|
||||||
set TMP=%CCM_WORK_AREA%
|
|
||||||
call getpath.bat .
|
|
||||||
set CURRENT_DIR=%CWD%
|
|
||||||
cd ..
|
|
||||||
call %CURRENT_DIR%\getpath.bat .
|
|
||||||
set CCM_WORK_AREA=%CWD%
|
|
||||||
cd %CURRENT_DIR%
|
|
||||||
|
|
||||||
rem add path to some dll files in the MS compiler
|
|
||||||
set PATH=%PATH%;.;%MSC%../Common7/IDE;%MSC%../SDK/v1.1/Bin/
|
|
||||||
|
|
||||||
c:\cygwin\bin\bash mk-cai-all
|
|
||||||
|
|
||||||
endlocal
|
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ "$PLATFORM" = "AIX" ]; then
|
|
||||||
NEW_PATH=/usr/local/bin:/usr/ccs/lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
ssh $BUILD_CLIENT "cd ccm_wa/security/$NAME~$VERSION/$NAME; export PATH=.:$NEW_PATH:\$PATH; echo PATH=\$PATH; mk-cai-all;"
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# Script %name: clean %
|
|
||||||
# Instance: security_1
|
|
||||||
# %version: 1 %
|
|
||||||
# Description:
|
|
||||||
# %created_by: nds_cm %
|
|
||||||
# %date_created: Fri Apr 01 16:29:28 2005 %
|
|
||||||
|
|
||||||
|
|
@ -1,329 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
AC_INIT(include/micasa.h)
|
|
||||||
AC_CANONICAL_SYSTEM
|
|
||||||
AM_INIT_AUTOMAKE(CASA, 1.6.1137)
|
|
||||||
RELEASE=`date +%Y%m%d_%H%M`
|
|
||||||
AC_SUBST(RELEASE)
|
|
||||||
AM_MAINTAINER_MODE
|
|
||||||
|
|
||||||
#
|
|
||||||
# Check for a valid C# compiler
|
|
||||||
#
|
|
||||||
#AC_CHECK_PROG(CSC, csc, csc)
|
|
||||||
#test -z "$CSC" && AC_CHECK_PROG(CSC, mcs, mcs)
|
|
||||||
#test -z "$CSC" && AC_MSG_ERROR([no acceptable C Sharp compiler found in \$PATH])
|
|
||||||
|
|
||||||
#
|
|
||||||
# Check for valid C# compiler in linux
|
|
||||||
#
|
|
||||||
case $host_os in
|
|
||||||
cygwin*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
AC_CHECK_PROG(CSC, csc, csc)
|
|
||||||
test -z "$CSC" && AC_CHECK_PROG(CSC, gmcs, gmcs)
|
|
||||||
test -z "$CSC" && AC_MSG_ERROR([no acceptable C Sharp compiler found in \$PATH])
|
|
||||||
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case $CSC in
|
|
||||||
#
|
|
||||||
# Mono-specific configuration
|
|
||||||
#
|
|
||||||
gmcs)
|
|
||||||
CSC_EXEFLAG=/target:exe
|
|
||||||
CSC_LIBFLAG=/target:library
|
|
||||||
CSC_EXEFLAG=/target:exe
|
|
||||||
CSC_WINEXEFLAG=/target:winexe
|
|
||||||
CSCFLAGS='/d:MONO /warn:4 /d:TRACE -d:LINUX'
|
|
||||||
CSCFLAGS_DEBUG="/debug+ /d:DEBUG"
|
|
||||||
CSCFLAGS_OPTIMIZE="/optimize+"
|
|
||||||
MONO=mono
|
|
||||||
MONO_DEBUG='mono --debug'
|
|
||||||
MONO_PATH=
|
|
||||||
SYSTEM_XML='System.Xml.dll'
|
|
||||||
;;
|
|
||||||
#
|
|
||||||
# .NET-specific configuration
|
|
||||||
#
|
|
||||||
csc)
|
|
||||||
CSC_EXEFLAG=/target:exe
|
|
||||||
CSC_LIBFLAG=/target:library
|
|
||||||
CSC_EXEFLAG=/target:exe
|
|
||||||
CSC_WINEXEFLAG=/target:winexe
|
|
||||||
CSCFLAGS='/d:DOTNET /warn:4 /d:TRACE /nologo'
|
|
||||||
CSCFLAGS_DEBUG="/debug+ /d:DEBUG"
|
|
||||||
CSCFLAGS_OPTIMIZE="/optimize+"
|
|
||||||
MONO=
|
|
||||||
MONO_DEBUG=
|
|
||||||
MONO_PATH=
|
|
||||||
SYSTEM_XML='System.XML.dll'
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_SUBST(CSC)
|
|
||||||
AC_SUBST(CSC_EXEFLAG)
|
|
||||||
AC_SUBST(CSC_LIBFLAG)
|
|
||||||
AC_SUBST(CSC_WINEXEFLAG)
|
|
||||||
AC_SUBST(CSCFLAGS)
|
|
||||||
AC_SUBST(CSCFLAGS_DEBUG)
|
|
||||||
AC_SUBST(MONO)
|
|
||||||
AC_SUBST(MONO_PATH)
|
|
||||||
AC_SUBST(SYSTEM_XML)
|
|
||||||
|
|
||||||
SRCDIR='$(top_srcdir)'
|
|
||||||
DOCDIR="$SRCDIR/doc"
|
|
||||||
TOOLDIR='$(top_srcdir)/tools'
|
|
||||||
AC_SUBST(SRCDIR)
|
|
||||||
AC_SUBST(DOCDIR)
|
|
||||||
AC_SUBST(TOOLDIR)
|
|
||||||
EMPTY=
|
|
||||||
SPACE='$(EMPTY) $(EMPTY)'
|
|
||||||
|
|
||||||
AC_SUBST(EMPTY)
|
|
||||||
AC_SUBST(SPACE)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Check for operating system and set TARGET_OS
|
|
||||||
#
|
|
||||||
case $host_os in
|
|
||||||
cygwin*)
|
|
||||||
TARGET_OS='windows'
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
TARGET_OS='linux'
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_SUBST(TARGET_OS)
|
|
||||||
AM_CONDITIONAL(LINUX, test "$TARGET_OS" = "linux")
|
|
||||||
AM_CONDITIONAL(WINDOWS, test "$TARGET_OS" = "windows")
|
|
||||||
|
|
||||||
#
|
|
||||||
# Check for architecture and set TARGET_ARCH
|
|
||||||
# ia64 needs to be treated as non64.
|
|
||||||
|
|
||||||
case $target_cpu in
|
|
||||||
x86_64*|p*pc64|s390x)
|
|
||||||
LIB=lib64
|
|
||||||
;;
|
|
||||||
*ia64|*)
|
|
||||||
LIB=lib
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
#Check for architecture in cygwin
|
|
||||||
#check for PROCESSOR_IDENTIFIER for 64bit architecture
|
|
||||||
case $host_os in
|
|
||||||
cygwin*)
|
|
||||||
if test "`echo $PROCESSOR_IDENTIFIER | grep 64`"; then
|
|
||||||
LIB="lib64"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_SUBST(LIB)
|
|
||||||
AM_CONDITIONAL(LIB64, test "$LIB" = lib64)
|
|
||||||
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Set platform-specific variables
|
|
||||||
#
|
|
||||||
case $TARGET_OS in
|
|
||||||
#
|
|
||||||
# Linux-specific configuration
|
|
||||||
#
|
|
||||||
linux)
|
|
||||||
#
|
|
||||||
# Set variables
|
|
||||||
#
|
|
||||||
COMMON_CLEAN_FILES=''
|
|
||||||
ICON_EXT='.ico'
|
|
||||||
ICON_FLAG='/resource:'
|
|
||||||
PLATFORM_SUBDIRS=$LINUX_SUBDIRS
|
|
||||||
SEP='/'
|
|
||||||
LINK=gcc
|
|
||||||
;;
|
|
||||||
#
|
|
||||||
# Windows-specific configuration
|
|
||||||
#
|
|
||||||
windows)
|
|
||||||
COMMON_CLEAN_FILES='*.suo */*.suo *.csproj.user */*.csproj.user bin obj */bin */obj *.xml */*.xml *.pdb */*.pdb'
|
|
||||||
ICON_EXT='.ico'
|
|
||||||
ICON_FLAG='/win32icon:'
|
|
||||||
PLATFORM_SUBDIRS=$WINDOWS_SUBDIRS
|
|
||||||
SEP='$(EMPTY)\\$(EMPTY)'
|
|
||||||
LINK=link.exe
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
AC_SUBST(COMMON_CLEAN_FILES)
|
|
||||||
AC_SUBST(ICON_EXT)
|
|
||||||
AC_SUBST(ICON_FLAG)
|
|
||||||
AC_SUBST(PLATFORM_SUBDIRS)
|
|
||||||
AC_SUBST(SEP)
|
|
||||||
AC_SUBST(LINK)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Run standard macros
|
|
||||||
#
|
|
||||||
AM_PROG_CC_STDC
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
AC_HEADER_STDC
|
|
||||||
|
|
||||||
#######
|
|
||||||
#
|
|
||||||
# set CFLAGS
|
|
||||||
#
|
|
||||||
case $host_os in
|
|
||||||
linux*)
|
|
||||||
CFLAGS="$CFLAGS"
|
|
||||||
;;
|
|
||||||
cygwin*)
|
|
||||||
CC=cl.exe
|
|
||||||
CFLAGS="-D WIN32 -D SSCS_WIN32_PLAT_F -D N_PLAT_CLIENT -MT -Ox"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
#
|
|
||||||
# Handle --enable-debug
|
|
||||||
#
|
|
||||||
AC_ARG_ENABLE(debug, [
|
|
||||||
--enable-debug configure the Makefiles to build in DEBUG mode],
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes) enable_debug=true ;;
|
|
||||||
no) enable_debug=false ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
|
|
||||||
esac],[enable_debug=false])
|
|
||||||
AM_CONDITIONAL(DEBUG, test x$enable_debug = xtrue)
|
|
||||||
if test "$enable_debug" = "true"
|
|
||||||
then
|
|
||||||
# Build debug version.
|
|
||||||
# CFLAGS="$CFLAGS_DEBUG $CFLAGS -DDBG -DDEBUG"
|
|
||||||
CFLAGS="$CFLAGS_DEBUG $CFLAGS -g -DDBG -DDEBUG \
|
|
||||||
-fPIC -DPIC -DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall \
|
|
||||||
-D_REENTRANT -DALIGNMENT -DN_PLAT_UNIX \
|
|
||||||
-DUNIX -DLINUX -DIAPX38"
|
|
||||||
CSCFLAGS="$CSCFLAGS_DEBUG $CSCFLAGS"
|
|
||||||
CXXFLAGS="$CXXFLAGS_DEBUG $CXXFLAGS"
|
|
||||||
DEVENV_CONFIGURATION=Debug
|
|
||||||
MONO=$MONO_DEBUG
|
|
||||||
else
|
|
||||||
# Build optimized version.
|
|
||||||
CFLAGS="$CFLAGS_OPTIMIZE $CFLAGS -g -fPIC -DPIC \
|
|
||||||
-DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall \
|
|
||||||
-D_REENTRANT -DALIGNMENT -DN_PLAT_UNIX \
|
|
||||||
-DUNIX -DLINUX -DIAPX38"
|
|
||||||
CSCFLAGS="$CSCFLAGS_OPTIMIZE $CSCFLAGS"
|
|
||||||
CXXFLAGS="$CXXFLAGS_OPTIMIZE $CXXFLAGS"
|
|
||||||
DEVENV_CONFIGURATION=Release
|
|
||||||
fi
|
|
||||||
AC_SUBST(CSCFLAGS)
|
|
||||||
AC_SUBST(DEVENV_CONFIGURATION)
|
|
||||||
|
|
||||||
##comment out due to build failure
|
|
||||||
# Check for GCC version to add fstack-protector flag
|
|
||||||
#
|
|
||||||
#GCC_VER="`gcc -dumpversion`"
|
|
||||||
#case "$GCC_VER" in
|
|
||||||
# 3*)
|
|
||||||
# ;;
|
|
||||||
# 4*)
|
|
||||||
# CFLAGS="$CFLAGS -fstack-protector"
|
|
||||||
# ;;
|
|
||||||
# *)
|
|
||||||
# ;;
|
|
||||||
#esac
|
|
||||||
#AC_SUBST(GCC_VER)
|
|
||||||
|
|
||||||
# Check for WIN PLATFORM by $PROCESSOR_IDENTIFIER
|
|
||||||
#case $host_os in
|
|
||||||
# cygwin*)
|
|
||||||
# WIN_VER="` echo $PROCESSOR_IDENTIFIER | cut -d ' ' -f1 `"
|
|
||||||
# WIN_VER=` echo $PROCESSOR_IDENTIFIER | cut -d " " -f1 |\[sed -e 's/[^0-9]*//'] | \[sed -e 's/[^0-9].*//']`
|
|
||||||
# ;;
|
|
||||||
# *)
|
|
||||||
# ;;
|
|
||||||
#esac
|
|
||||||
#AC_SUBST(WIN_VER)
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Configure PKG_CONFIG
|
|
||||||
#
|
|
||||||
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
|
||||||
if test "x$PKG_CONFIG" = "xno"; then
|
|
||||||
AC_MSG_ERROR([You need to install pkg-config])
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# Configure files
|
|
||||||
#
|
|
||||||
AC_OUTPUT([
|
|
||||||
Makefile
|
|
||||||
micasacache/Makefile
|
|
||||||
micasacache/linux/Makefile
|
|
||||||
micasacache/windows/Makefile
|
|
||||||
common/Makefile
|
|
||||||
common/linux/Makefile
|
|
||||||
common/windows/Makefile
|
|
||||||
micasadk/Makefile
|
|
||||||
micasadk/linux/Makefile
|
|
||||||
micasadk/windows/Makefile
|
|
||||||
micasad/lib/Makefile
|
|
||||||
micasad/lib/common/Makefile
|
|
||||||
micasad/lib/communication/Makefile
|
|
||||||
micasad/startup/Makefile
|
|
||||||
sharp/Makefile
|
|
||||||
sharp/NSSCSWrapper/Makefile
|
|
||||||
micasad/Makefile
|
|
||||||
cli/Makefile
|
|
||||||
policy/Makefile
|
|
||||||
adlib/ad_kw/Makefile
|
|
||||||
adlib/ad_gk/native/Makefile
|
|
||||||
adlib/ad_gk/Makefile
|
|
||||||
adlib/ad_ff/native/Makefile
|
|
||||||
adlib/ad_ff/Makefile
|
|
||||||
adlib/Makefile
|
|
||||||
gui/Makefile
|
|
||||||
logincapture/Makefile
|
|
||||||
logincapture/linux/Makefile
|
|
||||||
logincapture/windows/Makefile
|
|
||||||
logincapture/linux/PAM/Makefile
|
|
||||||
logincapture/linux/PAM/linux/Makefile
|
|
||||||
jwrapper/Makefile
|
|
||||||
jwrapper/src/Makefile
|
|
||||||
jwrapper/jnsscs/Makefile
|
|
||||||
jwrapper/jnsscs/linux/Makefile
|
|
||||||
jwrapper/jnsscs/windows/Makefile
|
|
||||||
package/Makefile
|
|
||||||
package/linux/Makefile
|
|
||||||
package/windows/Makefile
|
|
||||||
package/windows/vs_solutions/Makefile
|
|
||||||
package/windows/vs_solutions/CASA32-msi/Makefile
|
|
||||||
package/windows/vs_solutions/CASA64-msi/Makefile
|
|
||||||
package/linux/CASA.spec
|
|
||||||
])
|
|
||||||
|
|
Binary file not shown.
@ -1,143 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
To provide full compatibility with all Unix flavors the project scripts were converted to use
|
|
||||||
cygwin Bourne shell product by Redhat Inc. instead of MKS. Mortis Kern Korn Shell is expensive
|
|
||||||
and requires a license per machine. Cygwin is available for download from www.cywin.com for
|
|
||||||
free.
|
|
||||||
|
|
||||||
To install CYGWIN you have to use the Internet Explorer and go to "www.cygwin.com" and
|
|
||||||
install the Latest cygwin from the web ("http://www.cygwin.com/setup.exe"). Follow the
|
|
||||||
instruchtions and just accept all of the defaults and that should install cygwin in
|
|
||||||
c:\cygwin directory.
|
|
||||||
|
|
||||||
Once the installation is complete
|
|
||||||
copy the "profile" shell script file from \dependencies\cygwin to your c:\cygwin\etc.
|
|
||||||
|
|
||||||
To make the drive mappings match your project directory structure you would need to define
|
|
||||||
the following SYSTEM VARIABLES in your environment by right clicking on "My Computer" Icon on your desktop
|
|
||||||
and following order:
|
|
||||||
My Computer -> Properties -> Advanced -> Environment Variables -> New...
|
|
||||||
|
|
||||||
OPTIONAL SHORT HAND PARAMETERS
|
|
||||||
==============================
|
|
||||||
The parameters DEVDRV_* below are short hand parameters for substituing the long directory
|
|
||||||
structure names in CCM. The build woks fine as long as you go to the root directory of your
|
|
||||||
project and run mk-ca-all or mk-cai-all or from the root change dir to shrc and use individual
|
|
||||||
build scripts for building the components.
|
|
||||||
|
|
||||||
[/cygwin/c] cd dev/SecretStore~security#IndiaRO/SecretStore/SecretStore_src
|
|
||||||
[/cygwin/c/dev/SecretStore~security#IndiaRO/SecretStore/SecretStore_src> mk-ca-all
|
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
[/cygwin/c] cd dev/SecretStore~security#IndiaRO/SecretStore/SecretStore_src
|
|
||||||
[/cygwin/c/dev/SecretStore~security#IndiaRO/SecretStore/SecretStore_src] cd shsrc
|
|
||||||
[/cygwin/c/dev/SecretStore~security#IndiaRO/SecretStore/SecretStore_src] mk-sss-dw clean all
|
|
||||||
|
|
||||||
|
|
||||||
To use the short hand drives and avoid having to
|
|
||||||
type long names to go the project root the following parameters in your environment should be
|
|
||||||
set to the root of the projects you have. You can use up to 5 drives by default. For more drives
|
|
||||||
you would need to edit the "/etc/profile" shell script and add more DEVDRV_* parameters to satisfy
|
|
||||||
your needs. If you have less than 5 drives just set as many parameters as you need.
|
|
||||||
|
|
||||||
define the following parameters as it applies to your environment like the example below:
|
|
||||||
DEVDRV_I = c:/dev/SecretStore~security#IndiaRO/SecretStore/SecretStore_src
|
|
||||||
DEVDRV_J = c:/dev/SecretStore_src~cameron3/SecretStore_src
|
|
||||||
DEVDRV_K = c:/dev/SecretStore_src~cameron2/SecretStore_src
|
|
||||||
DEVDRV_L = c:/dev/SecretStore_doc~cameron_ss20/SecretStore_doc
|
|
||||||
DEVDRV_M = c:/dev/SecretStore_doc~cameron/SecretStore_doc
|
|
||||||
|
|
||||||
|
|
||||||
After defining your project directory variables run cygwin shell and your drives will automatically
|
|
||||||
be mapped to your build environment. Then, from the root of the project or shsrc directory under the
|
|
||||||
root of the project "cygwin/j" or "cygwin/j/shsrc" run the script as it was explained above. Use the
|
|
||||||
build scripts to build components.
|
|
||||||
|
|
||||||
The example above will become the following.
|
|
||||||
[/cygwin/j] mk-ca-all
|
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
cd c:/dev/SecretStore~security#IndiaRO/SecretStore/SecretStore_src
|
|
||||||
[/cygwin/j] cd shsrc
|
|
||||||
[/cygwin/j] mk-sss-dw clean all
|
|
||||||
|
|
||||||
|
|
||||||
This shell also allows for ssh sessions to Unix and Linux servers for build and development
|
|
||||||
using our Unix build scripts.
|
|
||||||
|
|
||||||
|
|
||||||
LOOK AT THE LIST OF PROJECT VARIABLES BELOW
|
|
||||||
|
|
||||||
|
|
||||||
*********** NOTE ABOUT GNU DIRECTORY UNDER CYGWIN *********************
|
|
||||||
SecretStore project uses GNU Make for building components. GNU Make is a component of
|
|
||||||
cygwin but it is not downloaded by default so we supply a copy of it here in the gnu direcotry
|
|
||||||
under cygwin. If so desired during installation you can add extra components such as GNU Make
|
|
||||||
to be downloaded with cygwin. This would require a download from web site and install from local
|
|
||||||
cygwin directory will only supply the default components of the Bourn Shell.
|
|
||||||
|
|
||||||
cvpackz.exe is not a components of the cygwin product but it is required for
|
|
||||||
NetWare builds so it is supplied here.
|
|
||||||
|
|
||||||
Paths to cvpackz.exe and GNU make.exe should be defined thru environment variables as described
|
|
||||||
in \make\tools.mak.
|
|
||||||
|
|
||||||
(variable is GNU and by default it should be set to "j:/dependencies/cygwin/gnu/" assuming that
|
|
||||||
j:/ is the project root directory).
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Path to the Continuus configuration management tool (necessary for build
|
|
||||||
# manager builds only).
|
|
||||||
# example: CONTINUUS=c:/ccm51/bin/
|
|
||||||
#
|
|
||||||
CONTINUUS
|
|
||||||
|
|
||||||
#
|
|
||||||
# Path to the configuration management build area (necessary for build
|
|
||||||
# manager builds only). Defaults to build manager's machine.
|
|
||||||
# example: CCM_WORK_AREA=c:/SecretStore_main~PREP/SecretStore_main/
|
|
||||||
#
|
|
||||||
CCM_WORK_AREA
|
|
||||||
|
|
||||||
#
|
|
||||||
# Path to the tools directory where WATCOM and MSVC compilers
|
|
||||||
# are installed.
|
|
||||||
# example: TOOLS=c:/tools/
|
|
||||||
#
|
|
||||||
TOOLS
|
|
||||||
|
|
||||||
#
|
|
||||||
# Path to the open source gnu make utility and cvpackz.
|
|
||||||
# example: GNU=j:/dependencies/cygwin/gnu/
|
|
||||||
#
|
|
||||||
GNU
|
|
||||||
|
|
||||||
#
|
|
||||||
# Path to Microsoft's Visual C++ compiler main directory.
|
|
||||||
# example: MSC=$(TOOLS)msc6.00/vc/
|
|
||||||
#
|
|
||||||
MSC
|
|
||||||
|
|
||||||
#
|
|
||||||
# Path to Microsoft's Visual Studio common components directory. On the
|
|
||||||
# network (hence, on many developer's machines) this has been copied to
|
|
||||||
# the same location as the Visual C++ executables. However, Microsoft's
|
|
||||||
# installation puts it in the Visual Studio common components directory
|
|
||||||
# structure. Either way you installed it, it should still work.
|
|
||||||
# example: MSVS = $(MSC)
|
|
||||||
#
|
|
||||||
MSVS
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Path to Watcom's C/C++ compiler for building NLMs.
|
|
||||||
# example: WATCOM=$(TOOLS)wcc/v11.0a/
|
|
||||||
#
|
|
||||||
WATCOM
|
|
||||||
|
|
||||||
|
|
||||||
Updated by: Cameron Mashayekhi
|
|
||||||
On: 1/28/2002
|
|
Binary file not shown.
@ -1,6 +0,0 @@
|
|||||||
|
|
||||||
cvpackz.exe and gnumake.exe are not components of the cygwin product but they are required for
|
|
||||||
NetWare and Windows builds.
|
|
||||||
|
|
||||||
Paths to cvpackz.exe and gnumake.exe should be defined thru environment variables as described
|
|
||||||
in \make\tools.mak.
|
|
Binary file not shown.
@ -1,71 +0,0 @@
|
|||||||
|
|
||||||
PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
|
|
||||||
USER="`id -un`"
|
|
||||||
|
|
||||||
# The following is the standard idiom for processing ENVIRON in
|
|
||||||
# *interactive* shells only.
|
|
||||||
export ENV='${ENVIRON[(_$-=1)+(_=0)-(_$-!=_${-%%*i*})]}'
|
|
||||||
|
|
||||||
# The following is a simple definition that will process ENVIRON in
|
|
||||||
# *all* shells.
|
|
||||||
export ENV="$ENVIRON"
|
|
||||||
|
|
||||||
# Set up USER's home directory
|
|
||||||
if [ -z "$HOME" ]; then
|
|
||||||
HOME="/home/$USER"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d "$HOME" ]; then
|
|
||||||
mkdir -p "$HOME"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export HOME USER
|
|
||||||
|
|
||||||
for i in /etc/profile.d/*.sh ; do
|
|
||||||
if [ -f $i ]; then
|
|
||||||
. $i
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
export MAKE_MODE=unix
|
|
||||||
export PS1='\[\033]0;\w\007
|
|
||||||
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
|
|
||||||
$ '
|
|
||||||
|
|
||||||
#cd "$HOME"
|
|
||||||
|
|
||||||
# Automated form using the environment variables
|
|
||||||
# set the development paths in the original form and the script will
|
|
||||||
# automatically pick them up.
|
|
||||||
subst i: $DEVDRV_I> /dev/null 2>&1
|
|
||||||
subst j: $DEVDRV_J> /dev/null 2>&1
|
|
||||||
subst k: $DEVDRV_K> /dev/null 2>&1
|
|
||||||
subst l: $DEVDRV_L> /dev/null 2>&1
|
|
||||||
subst m: $DEVDRV_M> /dev/null 2>&1
|
|
||||||
|
|
||||||
# The original form
|
|
||||||
#subst k: c:/dev/SecretStore~security#IndiaRO/SecretStore/SecretStore_src> /dev/null 2>&1
|
|
||||||
#subst j: c:/dev/SecretStore_src~cameron3/SecretStore_src> /dev/null 2>&1
|
|
||||||
#subst i: c:/dev/SecretStore_src~cameron2/SecretStore_src> /dev/null 2>&1
|
|
||||||
#subst l: c:/dev/SecretStore_doc~cameron_ss20/SecretStore_doc> /dev/null 2>&1
|
|
||||||
#subst m: c:/dev/SecretStore_doc~cameron/SecretStore_doc> /dev/null 2>&1
|
|
||||||
|
|
||||||
|
|
||||||
test -f ./.bashrc && . ./.bashrc
|
|
||||||
|
|
||||||
alias a:="cd a:" b:="cd b:" c:="cd c:" d:="cd d:" e:="cd e:" j:="cd j:"
|
|
||||||
alias md=mkdir rd=rmdir i:="cd i:" h:="cd h:" f:="cd f:" k:="cd k:" "n:=cd n:"
|
|
||||||
alias "o:=cd o:"
|
|
||||||
export SWITCHAR=${SWITCHAR:=/} # if not already defined
|
|
||||||
export COMSPEC="${COMSPEC:=$ComSpec}"
|
|
||||||
export TOOLS="c:/tools/"
|
|
||||||
|
|
||||||
for arg in cls copy del dir erase move path ren type ver verify vol
|
|
||||||
do
|
|
||||||
alias $arg="'${COMSPEC}' ${SWITCHAR}c $arg"
|
|
||||||
done
|
|
||||||
|
|
||||||
PS1='[$PWD] '
|
|
||||||
set -o emacs
|
|
||||||
cd j:
|
|
||||||
|
|
Binary file not shown.
@ -1,247 +0,0 @@
|
|||||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<ProjectType>Local</ProjectType>
|
|
||||||
<ProductVersion>8.0.50727</ProductVersion>
|
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
|
||||||
<ProjectGuid>{A1A805D0-B400-4D11-A772-348CE13F1046}</ProjectGuid>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ApplicationIcon>
|
|
||||||
</ApplicationIcon>
|
|
||||||
<AssemblyKeyContainerName>
|
|
||||||
</AssemblyKeyContainerName>
|
|
||||||
<AssemblyName>CASAManager</AssemblyName>
|
|
||||||
<AssemblyOriginatorKeyFile>
|
|
||||||
</AssemblyOriginatorKeyFile>
|
|
||||||
<DefaultClientScript>JScript</DefaultClientScript>
|
|
||||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
|
||||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
|
||||||
<DelaySign>false</DelaySign>
|
|
||||||
<OutputType>WinExe</OutputType>
|
|
||||||
<RootNamespace>
|
|
||||||
</RootNamespace>
|
|
||||||
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
|
||||||
<StartupObject>
|
|
||||||
</StartupObject>
|
|
||||||
<FileUpgradeFlags>
|
|
||||||
</FileUpgradeFlags>
|
|
||||||
<UpgradeBackupLocation>
|
|
||||||
</UpgradeBackupLocation>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<OutputPath>Debug\</OutputPath>
|
|
||||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
|
||||||
<BaseAddress>285212672</BaseAddress>
|
|
||||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
|
||||||
<ConfigurationOverrideFile>
|
|
||||||
</ConfigurationOverrideFile>
|
|
||||||
<DefineConstants>W32</DefineConstants>
|
|
||||||
<DocumentationFile>
|
|
||||||
</DocumentationFile>
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<FileAlignment>4096</FileAlignment>
|
|
||||||
<NoStdLib>false</NoStdLib>
|
|
||||||
<NoWarn>
|
|
||||||
</NoWarn>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<RegisterForComInterop>false</RegisterForComInterop>
|
|
||||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
|
||||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<OutputPath>Release\</OutputPath>
|
|
||||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
|
||||||
<BaseAddress>285212672</BaseAddress>
|
|
||||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
|
||||||
<ConfigurationOverrideFile>
|
|
||||||
</ConfigurationOverrideFile>
|
|
||||||
<DefineConstants>W32</DefineConstants>
|
|
||||||
<DocumentationFile>
|
|
||||||
</DocumentationFile>
|
|
||||||
<DebugSymbols>false</DebugSymbols>
|
|
||||||
<FileAlignment>4096</FileAlignment>
|
|
||||||
<NoStdLib>false</NoStdLib>
|
|
||||||
<NoWarn>
|
|
||||||
</NoWarn>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<RegisterForComInterop>false</RegisterForComInterop>
|
|
||||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
|
||||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
<DebugType>none</DebugType>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="atk-sharp">
|
|
||||||
<Name>atk-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\atk-sharp.dll</HintPath>
|
|
||||||
<AssemblyFolderKey>hklm\dn\gtk-sharp-2.0</AssemblyFolderKey>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="gdk-sharp">
|
|
||||||
<Name>gdk-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\gdk-sharp.dll</HintPath>
|
|
||||||
<AssemblyFolderKey>hklm\dn\gtk-sharp-2.0</AssemblyFolderKey>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="glade-sharp">
|
|
||||||
<Name>glade-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\glade-sharp.dll</HintPath>
|
|
||||||
<AssemblyFolderKey>hklm\dn\gtk-sharp-2.0</AssemblyFolderKey>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="glib-sharp">
|
|
||||||
<Name>glib-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\glib-sharp.dll</HintPath>
|
|
||||||
<AssemblyFolderKey>hklm\dn\gtk-sharp-2.0</AssemblyFolderKey>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="gnome-sharp">
|
|
||||||
<Name>gnome-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\gnome-sharp.dll</HintPath>
|
|
||||||
<AssemblyFolderKey>hklm\dn\gtk-sharp-2.0</AssemblyFolderKey>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="gtk-sharp">
|
|
||||||
<Name>gtk-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\gtk-sharp.dll</HintPath>
|
|
||||||
<AssemblyFolderKey>hklm\dn\gtk-sharp-2.0</AssemblyFolderKey>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="pango-sharp">
|
|
||||||
<Name>pango-sharp</Name>
|
|
||||||
<HintPath>F:\Program Files\Mono-2.0.1\lib\mono\gtk-sharp-2.0\pango-sharp.dll</HintPath>
|
|
||||||
<AssemblyFolderKey>hklm\dn\gtk-sharp-2.0</AssemblyFolderKey>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System">
|
|
||||||
<Name>System</Name>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Data">
|
|
||||||
<Name>System.Data</Name>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Drawing">
|
|
||||||
<Name>System.Drawing</Name>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Windows.Forms">
|
|
||||||
<Name>System.Windows.Forms</Name>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Xml">
|
|
||||||
<Name>System.XML</Name>
|
|
||||||
</Reference>
|
|
||||||
<ProjectReference Include="..\adlib\Novell.CASA.A-D.csproj">
|
|
||||||
<Name>Novell.CASA.A-D</Name>
|
|
||||||
<Project>{25D49F34-F655-4CCF-93F1-449243AF7A32}</Project>
|
|
||||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\micasad\lib\Novell.CASA.Common.csproj">
|
|
||||||
<Name>Novell.CASA.Common</Name>
|
|
||||||
<Project>{57CD94A2-5B4A-40C3-8189-CB760FB78357}</Project>
|
|
||||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\policy\Novell.CASA.CASAPolicy.csproj">
|
|
||||||
<Name>Novell.CASA.CASAPolicy</Name>
|
|
||||||
<Project>{636A9D7E-BFB5-4EB9-96F8-51FF85A98826}</Project>
|
|
||||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\sharp\NSSCSWrapper\Novell.CASA.miCASAWrapper.csproj">
|
|
||||||
<Name>Novell.CASA.miCASAWrapper</Name>
|
|
||||||
<Project>{E21DD887-22F4-4935-9851-409715F663B0}</Project>
|
|
||||||
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="AssemblyInfo.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="CasaMain.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="CasaTray.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Common.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="CommonGUI.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Config.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="CopySecret.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="DbgFileChooser.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="ExportSecrets.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="FileChooser.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="FindAndReplace.cs" />
|
|
||||||
<Compile Include="Firefox.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="GnomeKeyring.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="ImportSecrets.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="KdeWallet.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Logger.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="MiCasa.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Mozilla.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="PersistentPolicyDialog.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="SingleApplication.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Store.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="StoreDataInterface.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="StorePolicyInterface.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="windows\NoGTKSharpForm.cs">
|
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Content Include="images\casa-logo.png" />
|
|
||||||
<Content Include="images\CASA.bmp" />
|
|
||||||
<Content Include="images\CASAiconsLocked.ico" />
|
|
||||||
<Content Include="images\CASA_16.png" />
|
|
||||||
<Content Include="images\CASA_32.png" />
|
|
||||||
<Content Include="images\CASA_48.png" />
|
|
||||||
<Content Include="images\firefox-logo.png" />
|
|
||||||
<Content Include="images\folder.png" />
|
|
||||||
<Content Include="images\keyring-logo.png" />
|
|
||||||
<Content Include="images\kwallet-logo.png" />
|
|
||||||
<Content Include="images\micasa-logo.png" />
|
|
||||||
<Content Include="images\mozilla-logo.png" />
|
|
||||||
<Content Include="images\novell-logo.png" />
|
|
||||||
<None Include="images\casa.glade" />
|
|
||||||
<None Include="images\casa.gladep" />
|
|
||||||
<EmbeddedResource Include="windows\NoGTKSharpForm.resx">
|
|
||||||
<DependentUpon>NoGTKSharpForm.cs</DependentUpon>
|
|
||||||
</EmbeddedResource>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<PreBuildEvent>
|
|
||||||
</PreBuildEvent>
|
|
||||||
<PostBuildEvent>
|
|
||||||
</PostBuildEvent>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
@ -1,57 +0,0 @@
|
|||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<LastOpenVersion>7.10.3077</LastOpenVersion>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ReferencePath>
|
|
||||||
</ReferencePath>
|
|
||||||
<CopyProjectDestinationFolder>
|
|
||||||
</CopyProjectDestinationFolder>
|
|
||||||
<CopyProjectUncPath>
|
|
||||||
</CopyProjectUncPath>
|
|
||||||
<CopyProjectOption>0</CopyProjectOption>
|
|
||||||
<ProjectView>ProjectFiles</ProjectView>
|
|
||||||
<ProjectTrust>0</ProjectTrust>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<EnableASPDebugging>false</EnableASPDebugging>
|
|
||||||
<EnableASPXDebugging>false</EnableASPXDebugging>
|
|
||||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
|
||||||
<EnableSQLServerDebugging>false</EnableSQLServerDebugging>
|
|
||||||
<RemoteDebugEnabled>false</RemoteDebugEnabled>
|
|
||||||
<RemoteDebugMachine>
|
|
||||||
</RemoteDebugMachine>
|
|
||||||
<StartAction>Project</StartAction>
|
|
||||||
<StartArguments>-debug</StartArguments>
|
|
||||||
<StartPage>
|
|
||||||
</StartPage>
|
|
||||||
<StartProgram>
|
|
||||||
</StartProgram>
|
|
||||||
<StartURL>
|
|
||||||
</StartURL>
|
|
||||||
<StartWorkingDirectory>
|
|
||||||
</StartWorkingDirectory>
|
|
||||||
<StartWithIE>true</StartWithIE>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<EnableASPDebugging>false</EnableASPDebugging>
|
|
||||||
<EnableASPXDebugging>false</EnableASPXDebugging>
|
|
||||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
|
||||||
<EnableSQLServerDebugging>false</EnableSQLServerDebugging>
|
|
||||||
<RemoteDebugEnabled>false</RemoteDebugEnabled>
|
|
||||||
<RemoteDebugMachine>
|
|
||||||
</RemoteDebugMachine>
|
|
||||||
<StartAction>Project</StartAction>
|
|
||||||
<StartArguments>
|
|
||||||
</StartArguments>
|
|
||||||
<StartPage>
|
|
||||||
</StartPage>
|
|
||||||
<StartProgram>
|
|
||||||
</StartProgram>
|
|
||||||
<StartURL>
|
|
||||||
</StartURL>
|
|
||||||
<StartWorkingDirectory>
|
|
||||||
</StartWorkingDirectory>
|
|
||||||
<StartWithIE>true</StartWithIE>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
HOST_ARCH=`uname -a | grep -c x86_64`
|
|
||||||
if [ $HOST_ARCH -gt 0 ]
|
|
||||||
then ARCH_LIB=64
|
|
||||||
else
|
|
||||||
ARCH_LIB=
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
export MONO_PATH=/usr/lib$ARCH_LIB/
|
|
||||||
mono /usr/bin/CASAManager.exe $1 $2 $3 $4
|
|
3
CASA/gui/CASAManager.sh.cmake
Normal file
3
CASA/gui/CASAManager.sh.cmake
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
export MONO_PATH=@LIBEXEC_INSTALL_DIR@
|
||||||
|
mono @LIBEXEC_INSTALL_DIR@/CASAManager.exe $1 $2 $3 $4
|
88
CASA/gui/CMakeLists.txt
Normal file
88
CASA/gui/CMakeLists.txt
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
#################################
|
||||||
|
# Project
|
||||||
|
##############
|
||||||
|
|
||||||
|
project(CASAManager)
|
||||||
|
|
||||||
|
enable_language(CSharp)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Dependencies
|
||||||
|
##############
|
||||||
|
|
||||||
|
configure_file(
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/CASAManager.sh.cmake"
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/CASAManager"
|
||||||
|
IMMEDIATE @ONLY)
|
||||||
|
|
||||||
|
configure_file(
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/Common.cs.cmake"
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/Common.cs"
|
||||||
|
IMMEDIATE @ONLY)
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Compiler Switches
|
||||||
|
##############
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
add_definitions( -D_GNU_SOURCE )
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Source Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
|
||||||
|
SET(SRC_CS AssemblyInfo.cs
|
||||||
|
CasaMain.cs
|
||||||
|
CasaTray.cs
|
||||||
|
CopySecret.cs
|
||||||
|
DbgFileChooser.cs
|
||||||
|
TrayLib.cs
|
||||||
|
ExportSecrets.cs
|
||||||
|
FileChooser.cs
|
||||||
|
ImportSecrets.cs
|
||||||
|
FindAndReplace.cs
|
||||||
|
Firefox.cs
|
||||||
|
GnomeKeyring.cs
|
||||||
|
KdeWallet.cs
|
||||||
|
Logger.cs
|
||||||
|
MiCasa.cs
|
||||||
|
Mozilla.cs
|
||||||
|
Store.cs
|
||||||
|
StoreDataInterface.cs
|
||||||
|
StorePolicyInterface.cs
|
||||||
|
CommonGUI.cs
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/Common.cs
|
||||||
|
PersistentPolicyDialog.cs
|
||||||
|
Config.cs)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Linking
|
||||||
|
##############
|
||||||
|
|
||||||
|
SET(CS_FLAGS -r:${CMAKE_BINARY_DIR}/micasad/lib/Novell.CASA.Common.dll
|
||||||
|
-r:${CMAKE_BINARY_DIR}/sharp/NSSCSWrapper/Novell.CASA.miCASAWrapper.dll
|
||||||
|
-r:${CMAKE_BINARY_DIR}/policy/Novell.CASA.CASAPolicy.dll
|
||||||
|
-r:${CMAKE_BINARY_DIR}/adlib/Novell.CASA.A-D.dll
|
||||||
|
${GLADE-SHARP_LIBRARIES} -pkg:gtk-sharp-2.0 -pkg:glade-sharp-2.0 -d:LINUX -nowarn:169)
|
||||||
|
#CSHARP_ADD_LIBRARY(CASAManager "${SRC_CS}" REFERENCES Mono.Posix COMPILE_FLAGS /d:LINUX /warn:0 /keyfile:${KEYFILE})
|
||||||
|
CSHARP_ADD_EXECUTABLE(CASAManager "${SRC_CS}" REFERENCES Novell.CASA.Common Novell.CASA.miCASAWrapper Mono.Posix System.Security
|
||||||
|
Novell.CASA.CASAPolicy Novell.CASA.A-D COMPILE_FLAGS -pkg:gtk-sharp-2.0 -pkg:glade-sharp-2.0 -d:LINUX -nowarn:169)
|
||||||
|
ADD_DEPENDENCIES(CASAManager Novell.CASA.Common Novell.CASA.miCASAWrapper Novell.CASA.CASAPolicy Novell.CASA.A-D)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Install Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
FILE(GLOB help_files "${CMAKE_CURRENT_SOURCE_DIR}/help/en/*")
|
||||||
|
INSTALL(FILES ${help_files} DESTINATION ${LIBEXEC_INSTALL_DIR}/help/en/)
|
||||||
|
FILE(GLOB images_files "${CMAKE_CURRENT_SOURCE_DIR}/images/*")
|
||||||
|
INSTALL(FILES ${images_files} DESTINATION ${LIBEXEC_INSTALL_DIR}/images/)
|
||||||
|
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/CASAManager.exe.config DESTINATION ${LIBEXEC_INSTALL_DIR})
|
||||||
|
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/CASAManager.exe DESTINATION ${LIBEXEC_INSTALL_DIR})
|
||||||
|
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/CASAManager DESTINATION ${BIN_INSTALL_DIR})
|
@ -125,13 +125,13 @@ public class Common
|
|||||||
INDEX_NATIVEINFO_WALLETLASTACCESSEDTIME = 7;
|
INDEX_NATIVEINFO_WALLETLASTACCESSEDTIME = 7;
|
||||||
|
|
||||||
|
|
||||||
public static string LINUX_HELP_PATH = "file:///usr/share/doc/packages/CASA/help/";
|
public static string LINUX_HELP_PATH = "file://@LIBEXEC_INSTALL_DIR@/help/";
|
||||||
public static string WINDOWS_HELP_PATH = "..\\help\\";
|
public static string WINDOWS_HELP_PATH = "..\\help\\";
|
||||||
|
|
||||||
#if W32
|
#if W32
|
||||||
public static string IMAGE_PATH = "..\\images\\";
|
public static string IMAGE_PATH = "..\\images\\";
|
||||||
#else
|
#else
|
||||||
public static string IMAGE_PATH = "/usr/share/doc/packages/CASA/images/";
|
public static string IMAGE_PATH = "@LIBEXEC_INSTALL_DIR@/images/";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
///##############################################################
|
///##############################################################
|
||||||
@ -162,7 +162,7 @@ public class Common
|
|||||||
public static string CASAICONS = "../images/CASAicons.ico";
|
public static string CASAICONS = "../images/CASAicons.ico";
|
||||||
#endif
|
#endif
|
||||||
#if LINUX
|
#if LINUX
|
||||||
public static string CASAICONS = "/usr/share/doc/packages/CASA/images/CASAicons.ico";
|
public static string CASAICONS = "@LIBEXEC_INSTALL_DIR@/images/CASAicons.ico";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
///##############################################################
|
///##############################################################
|
||||||
@ -217,7 +217,7 @@ public class Common
|
|||||||
if ( (128 == platform) || (4 == platform) )
|
if ( (128 == platform) || (4 == platform) )
|
||||||
{
|
{
|
||||||
IS_LINUX = true;
|
IS_LINUX = true;
|
||||||
GladeFile = "/usr/share/doc/packages/CASA/images/casa.glade";
|
GladeFile = "@LIBEXEC_INSTALL_DIR@/images/casa.glade";
|
||||||
|
|
||||||
if( !File.Exists(GladeFile) )
|
if( !File.Exists(GladeFile) )
|
||||||
{
|
{
|
@ -1,144 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG)
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS =
|
|
||||||
DIST_SUBDIRS =
|
|
||||||
|
|
||||||
EXTRA_DIST = $(CSFILES) *.sh CASAManager.* help/en/*.htm help/en/*.gif \
|
|
||||||
images/*.png images/*.ico images/*.glade* \
|
|
||||||
images/*.bmp windows
|
|
||||||
|
|
||||||
#EXTRA_DIST = $(CSFILES) help/en help/en/*.htm help/en/*.gif \
|
|
||||||
# images/*.png images/*.ico images/*.glade* \
|
|
||||||
# images/*.bmp
|
|
||||||
|
|
||||||
CASAROOT = ..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
if LIB64
|
|
||||||
CASABINDIR = $(CASAROOT)/bin64
|
|
||||||
else
|
|
||||||
CASABINDIR = $(CASAROOT)/bin
|
|
||||||
endif
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR =
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
MODULE_NAME =CASAManager
|
|
||||||
MODULE_EXT =exe
|
|
||||||
|
|
||||||
CSFILES =$(srcdir)/AssemblyInfo.cs \
|
|
||||||
$(srcdir)/CasaMain.cs \
|
|
||||||
$(srcdir)/CasaTray.cs \
|
|
||||||
$(srcdir)/CopySecret.cs \
|
|
||||||
$(srcdir)/DbgFileChooser.cs \
|
|
||||||
$(srcdir)/TrayLib.cs \
|
|
||||||
$(srcdir)/ExportSecrets.cs \
|
|
||||||
$(srcdir)/FileChooser.cs \
|
|
||||||
$(srcdir)/ImportSecrets.cs \
|
|
||||||
$(srcdir)/FindAndReplace.cs \
|
|
||||||
$(srcdir)/Firefox.cs \
|
|
||||||
$(srcdir)/GnomeKeyring.cs \
|
|
||||||
$(srcdir)/KdeWallet.cs \
|
|
||||||
$(srcdir)/Logger.cs \
|
|
||||||
$(srcdir)/MiCasa.cs \
|
|
||||||
$(srcdir)/Mozilla.cs \
|
|
||||||
$(srcdir)/Store.cs \
|
|
||||||
$(srcdir)/StoreDataInterface.cs \
|
|
||||||
$(srcdir)/StorePolicyInterface.cs \
|
|
||||||
$(srcdir)/CommonGUI.cs \
|
|
||||||
$(srcdir)/Common.cs \
|
|
||||||
$(srcdir)/PersistentPolicyDialog.cs \
|
|
||||||
$(srcdir)/Config.cs
|
|
||||||
|
|
||||||
CSFILES_CSC := $(subst /,$(SEP),$(CSFILES))
|
|
||||||
CS_FLAGS = -pkg:gtk-sharp-2.0 -pkg:glade-sharp-2.0 -d:LINUX -nowarn:169
|
|
||||||
CS_RESOURCES =
|
|
||||||
CS_LIBS = Mono.Posix.dll \
|
|
||||||
$(CASALIBDIR)/Novell.CASA.Common.dll \
|
|
||||||
$(CASALIBDIR)/Novell.CASA.miCASAWrapper.dll \
|
|
||||||
$(CASALIBDIR)/Novell.CASA.A-D.dll \
|
|
||||||
$(CASALIBDIR)/Novell.CASA.CASAPolicy.dll
|
|
||||||
CS_LIBPATH = ../c_micasad/test/dependencies \
|
|
||||||
$(CASALIBDIR)
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/$(LIB)
|
|
||||||
|
|
||||||
#OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs))
|
|
||||||
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)
|
|
||||||
$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) $(CS_LIBPATH:%=-lib:%) $(CS_LIBS:%=/r:%) -out:$@ $(CSFILES_CSC)
|
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASABINDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
#$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
|
||||||
# @echo [======== Linking $@ ========]
|
|
||||||
# $(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
# cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASABINDIR) ] || mkdir -p $(CASABINDIR)
|
|
||||||
[ -d $(CASABINDIR)/$(TARGET_CFG) ] || mkdir -p $(CASABINDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
@ -1,16 +0,0 @@
|
|||||||
OBJS=\
|
|
||||||
AssemblyInfo \
|
|
||||||
CasaMain \
|
|
||||||
CasaTray \
|
|
||||||
TrayLib \
|
|
||||||
Firefox \
|
|
||||||
GnomeKeyring \
|
|
||||||
KdeWallet \
|
|
||||||
Logger \
|
|
||||||
MiCasa \
|
|
||||||
Mozilla \
|
|
||||||
Store \
|
|
||||||
StoreDataInterface \
|
|
||||||
StorePolicyInterface \
|
|
||||||
CommonGUI \
|
|
||||||
Common
|
|
@ -1,17 +0,0 @@
|
|||||||
SRC=\
|
|
||||||
AssemblyInfo.cs \
|
|
||||||
CasaMain.cs \
|
|
||||||
CasaTray.cs \
|
|
||||||
TrayLib.cs \
|
|
||||||
Firefox.cs \
|
|
||||||
GnomeKeyring.cs \
|
|
||||||
KdeWallet.cs \
|
|
||||||
Logger.cs \
|
|
||||||
MiCasa.cs \
|
|
||||||
Mozilla.cs \
|
|
||||||
Store.cs \
|
|
||||||
StoreDataInterface.cs \
|
|
||||||
StorePolicyInterface.cs \
|
|
||||||
CommonGUI.cs \
|
|
||||||
Common.cs
|
|
||||||
|
|
29
CASA/jwrapper/CMakeLists.txt
Normal file
29
CASA/jwrapper/CMakeLists.txt
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#################################
|
||||||
|
# Project
|
||||||
|
##############
|
||||||
|
|
||||||
|
project(jwrapper)
|
||||||
|
|
||||||
|
add_subdirectory(src)
|
||||||
|
add_subdirectory(jnsscs)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Dependencies
|
||||||
|
##############
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Compiler Switches
|
||||||
|
##############
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Source Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Linking
|
||||||
|
##############
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Install Files
|
||||||
|
##############
|
||||||
|
|
@ -1,34 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
SUBDIRS = src jnsscs
|
|
||||||
|
|
||||||
DIST_SUBDIRS = src jnsscs
|
|
||||||
|
|
||||||
EXTRA_DIST = c_jwrapper*
|
|
||||||
|
|
||||||
.PHONY: package package-clean package-install package-uninstall
|
|
||||||
package package-clean package-install package-uninstall:
|
|
||||||
$(MAKE) -C $(TARGET_OS) $@
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
||||||
|
|
@ -1,109 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="3" relativePaths="false">
|
|
||||||
<component name="ProjectRootManager" version="2">
|
|
||||||
<jdk name="java version "1.4.1_01"" />
|
|
||||||
<projectPath>
|
|
||||||
<root type="composite">
|
|
||||||
<root type="simple" url="file://$PROJECT_DIR$" />
|
|
||||||
</root>
|
|
||||||
</projectPath>
|
|
||||||
<sourcePath>
|
|
||||||
<root type="composite">
|
|
||||||
<root type="simple" url="file://$PROJECT_DIR$/src" />
|
|
||||||
<root type="jdk" rootType="sourcePath" name="java version "1.4.1_01"" />
|
|
||||||
</root>
|
|
||||||
</sourcePath>
|
|
||||||
<classPath>
|
|
||||||
<root type="composite">
|
|
||||||
<root type="output" />
|
|
||||||
<root type="jdk" rootType="classPath" name="java version "1.4.1_01"" />
|
|
||||||
</root>
|
|
||||||
</classPath>
|
|
||||||
<excludePath>
|
|
||||||
<root type="composite">
|
|
||||||
<root type="excludedOutput" />
|
|
||||||
</root>
|
|
||||||
</excludePath>
|
|
||||||
<javadocPath>
|
|
||||||
<root type="composite">
|
|
||||||
<root type="jdk" rootType="javadocPath" name="java version "1.4.1_01"" />
|
|
||||||
</root>
|
|
||||||
</javadocPath>
|
|
||||||
<assert_keyword enabled="no" />
|
|
||||||
<exclude_output enabled="yes" />
|
|
||||||
</component>
|
|
||||||
<component name="CompilerConfiguration">
|
|
||||||
<option name="DEFAULT_COMPILER" value="Javac" />
|
|
||||||
<option name="SYNCHRONIZE_OUTPUT_DIRECTORY" value="false" />
|
|
||||||
<option name="DEFAULT_OUTPUT_PATH" value="$PROJECT_DIR$/classes" />
|
|
||||||
<option name="OUTPUT_MODE" value="single" />
|
|
||||||
<resourceExtensions>
|
|
||||||
<entry name=".+\.(properties|xml|html)" />
|
|
||||||
<entry name=".+\.(gif|png|jpeg|jpg)" />
|
|
||||||
</resourceExtensions>
|
|
||||||
</component>
|
|
||||||
<component name="JavacSettings">
|
|
||||||
<option name="DEBUGGING_INFO" value="true" />
|
|
||||||
<option name="GENERATE_NO_WARNINGS" value="false" />
|
|
||||||
<option name="DEPRECATION" value="true" />
|
|
||||||
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
|
|
||||||
<option name="MAXIMUM_HEAP_SIZE" value="128" />
|
|
||||||
</component>
|
|
||||||
<component name="JikesSettings">
|
|
||||||
<option name="JIKES_PATH" value="" />
|
|
||||||
<option name="DEBUGGING_INFO" value="true" />
|
|
||||||
<option name="DEPRECATION" value="true" />
|
|
||||||
<option name="GENERATE_NO_WARNINGS" value="false" />
|
|
||||||
<option name="GENERATE_MAKE_FILE_DEPENDENCIES" value="false" />
|
|
||||||
<option name="DO_FULL_DEPENDENCE_CHECK" value="false" />
|
|
||||||
<option name="IS_EMACS_ERRORS_MODE" value="true" />
|
|
||||||
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
|
|
||||||
</component>
|
|
||||||
<component name="AntConfiguration">
|
|
||||||
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
|
|
||||||
<option name="FILTER_TARGETS" value="false" />
|
|
||||||
</component>
|
|
||||||
<component name="JavadocGenerationManager">
|
|
||||||
<option name="OUTPUT_DIRECTORY" />
|
|
||||||
<option name="OPTION_SCOPE" value="protected" />
|
|
||||||
<option name="OPTION_HIERARCHY" value="true" />
|
|
||||||
<option name="OPTION_NAVIGATOR" value="true" />
|
|
||||||
<option name="OPTION_INDEX" value="true" />
|
|
||||||
<option name="OPTION_SEPARATE_INDEX" value="true" />
|
|
||||||
<option name="OPTION_DOCUMENT_TAG_USE" value="false" />
|
|
||||||
<option name="OPTION_DOCUMENT_TAG_AUTHOR" value="false" />
|
|
||||||
<option name="OPTION_DOCUMENT_TAG_VERSION" value="false" />
|
|
||||||
<option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />
|
|
||||||
<option name="OPTION_DEPRECATED_LIST" value="true" />
|
|
||||||
<option name="OTHER_OPTIONS" value="" />
|
|
||||||
<option name="HEAP_SIZE" />
|
|
||||||
<option name="OPEN_IN_BROWSER" value="true" />
|
|
||||||
</component>
|
|
||||||
<component name="WebManager">
|
|
||||||
<option enabled="false" />
|
|
||||||
</component>
|
|
||||||
<component name="WebRootContainer" />
|
|
||||||
<component name="EjbManager" enabled="false" />
|
|
||||||
<component name="JUnitProjectSettings">
|
|
||||||
<option name="TEST_RUNNER" value="UI" />
|
|
||||||
</component>
|
|
||||||
<component name="EntryPointsManager">
|
|
||||||
<entry_points />
|
|
||||||
</component>
|
|
||||||
<component name="EjbActionsConfiguration">
|
|
||||||
<option name="NEW_MESSAGE_BEAN_LAST_PACKAGE" value="" />
|
|
||||||
<option name="NEW_ENTITY_BEAN_LAST_PACKAGE" value="" />
|
|
||||||
<option name="NEW_SESSION_BEAN_LAST_PACKAGE" value="" />
|
|
||||||
</component>
|
|
||||||
<component name="CodeStyleManager">
|
|
||||||
<option name="USE_DEFAULT_CODE_STYLE_SCHEME" value="true" />
|
|
||||||
<option name="CODE_STYLE_SCHEME" value="Default" />
|
|
||||||
</component>
|
|
||||||
<component name="ExportToHTMLSettings">
|
|
||||||
<option name="PRINT_LINE_NUMBERS" value="false" />
|
|
||||||
<option name="OPEN_IN_BROWSER" value="false" />
|
|
||||||
<option name="OUTPUT_DIRECTORY" />
|
|
||||||
</component>
|
|
||||||
<component name="WebReferencesManager" />
|
|
||||||
</project>
|
|
||||||
|
|
@ -1,510 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="3" relativePaths="false">
|
|
||||||
<component name="WebReferencesConfigurable">
|
|
||||||
<property name="CUSTOM_MAP_LOOKUP" type="list" />
|
|
||||||
<property name="INTERFACE_POSTFIX" value="" type="string" />
|
|
||||||
<property name="electric.home" value="/electric" type="string" />
|
|
||||||
<property name="INTERFACE_PREFIX" value="I" type="string" />
|
|
||||||
<property name="INCLUDE_SYSTEM_MAP" value="true" type="boolean" />
|
|
||||||
<property name="THROW_EXCEPTIONS" value="false" type="boolean" />
|
|
||||||
<property name="ENABLED" value="false" type="boolean" />
|
|
||||||
</component>
|
|
||||||
<component name="FileEditorManager">
|
|
||||||
<history>
|
|
||||||
<source-position-entry url="jar://D:/ccm/iMan202_FPx/iManager/tools/jdk/jre/lib/rt.jar!/java/lang/String.class" line="12" column="19" vertical-scroll-proportion="0.20307167" horizontal-scroll-proportion="0.15182649" />
|
|
||||||
<source-position-entry url="file://$PROJECT_DIR$/src/com/novell/casa/MiCasa.java" line="0" column="47" vertical-scroll-proportion="0.0" horizontal-scroll-proportion="0.33952528" />
|
|
||||||
<source-position-entry url="file://$PROJECT_DIR$/src/com/novell/casa/NetCredential.java" line="24" column="67" vertical-scroll-proportion="0.48056537" horizontal-scroll-proportion="0.48400414" />
|
|
||||||
<source-position-entry url="file://$PROJECT_DIR$/src/com/novell/casa/MiCasaTest.java" line="33" column="0" vertical-scroll-proportion="0.6607774" horizontal-scroll-proportion="0.0" />
|
|
||||||
</history>
|
|
||||||
<open-files>
|
|
||||||
<source-position-entry url="file://$PROJECT_DIR$/src/com/novell/casa/MiCasa.java" line="0" column="47" vertical-scroll-proportion="0.0" horizontal-scroll-proportion="0.33952528" />
|
|
||||||
<source-position-entry url="file://$PROJECT_DIR$/src/com/novell/casa/MiCasaTest.java" line="33" column="0" vertical-scroll-proportion="0.6607774" horizontal-scroll-proportion="0.0" selected="true" />
|
|
||||||
<source-position-entry url="file://$PROJECT_DIR$/src/com/novell/casa/NetCredential.java" line="24" column="67" vertical-scroll-proportion="0.48056537" horizontal-scroll-proportion="0.48400414" />
|
|
||||||
</open-files>
|
|
||||||
</component>
|
|
||||||
<component name="ToolWindowManager">
|
|
||||||
<frame x="-4" y="-4" width="1408" height="1028" extended-state="6" />
|
|
||||||
<editor active="false" />
|
|
||||||
<layout>
|
|
||||||
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="1" />
|
|
||||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.29646522" order="2" />
|
|
||||||
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
|
|
||||||
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.32930845" order="7" />
|
|
||||||
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="sliding" type="sliding" visible="false" weight="0.4" order="0" />
|
|
||||||
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.23736264" order="0" />
|
|
||||||
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.26086956" order="3" />
|
|
||||||
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="1" />
|
|
||||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.3295325" order="1" />
|
|
||||||
<window_info id="Messages" active="false" anchor="bottom" auto_hide="true" internal_type="sliding" type="sliding" visible="false" weight="0.32930845" order="8" />
|
|
||||||
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.4" order="6" />
|
|
||||||
<window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
|
|
||||||
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="5" />
|
|
||||||
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="0" />
|
|
||||||
<window_info id="EJB" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="4" />
|
|
||||||
</layout>
|
|
||||||
</component>
|
|
||||||
<component name="Debugger">
|
|
||||||
<line_breakpoints>
|
|
||||||
<breakpoint url="file://$PROJECT_DIR$/src/com/novell/casa/MiCasaTest.java" line="20">
|
|
||||||
<option name="ENABLED" value="true" />
|
|
||||||
<option name="SUSPEND_VM" value="true" />
|
|
||||||
<option name="COUNT_FILTER_ENABLED" value="false" />
|
|
||||||
<option name="COUNT_FILTER" value="0" />
|
|
||||||
<option name="CONDITION_ENABLED" value="false" />
|
|
||||||
<option name="CONDITION" />
|
|
||||||
<option name="LOG_ENABLED" value="false" />
|
|
||||||
<option name="LOG_EXPRESSION_ENABLED" value="false" />
|
|
||||||
<option name="LOG_MESSAGE" />
|
|
||||||
<option name="CLASS_FILTERS_ENABLED" value="false" />
|
|
||||||
<option name="INVERSE_CLASS_FILLTERS" value="false" />
|
|
||||||
<option name="SUSPEND_POLICY" value="SuspendAll" />
|
|
||||||
</breakpoint>
|
|
||||||
<breakpoint url="file://$PROJECT_DIR$/src/com/novell/casa/MiCasaTest.java" line="33">
|
|
||||||
<option name="ENABLED" value="true" />
|
|
||||||
<option name="SUSPEND_VM" value="true" />
|
|
||||||
<option name="COUNT_FILTER_ENABLED" value="false" />
|
|
||||||
<option name="COUNT_FILTER" value="0" />
|
|
||||||
<option name="CONDITION_ENABLED" value="false" />
|
|
||||||
<option name="CONDITION" />
|
|
||||||
<option name="LOG_ENABLED" value="false" />
|
|
||||||
<option name="LOG_EXPRESSION_ENABLED" value="false" />
|
|
||||||
<option name="LOG_MESSAGE" />
|
|
||||||
<option name="CLASS_FILTERS_ENABLED" value="false" />
|
|
||||||
<option name="INVERSE_CLASS_FILLTERS" value="false" />
|
|
||||||
<option name="SUSPEND_POLICY" value="SuspendAll" />
|
|
||||||
</breakpoint>
|
|
||||||
</line_breakpoints>
|
|
||||||
<exception_breakpoints>
|
|
||||||
<breakpoint_any>
|
|
||||||
<option name="NOTIFY_CAUGHT" value="true" />
|
|
||||||
<option name="NOTIFY_UNCAUGHT" value="true" />
|
|
||||||
<option name="ENABLED" value="false" />
|
|
||||||
<option name="SUSPEND_VM" value="true" />
|
|
||||||
<option name="COUNT_FILTER_ENABLED" value="false" />
|
|
||||||
<option name="COUNT_FILTER" value="0" />
|
|
||||||
<option name="CONDITION_ENABLED" value="false" />
|
|
||||||
<option name="CONDITION" />
|
|
||||||
<option name="LOG_ENABLED" value="false" />
|
|
||||||
<option name="LOG_EXPRESSION_ENABLED" value="false" />
|
|
||||||
<option name="LOG_MESSAGE" />
|
|
||||||
<option name="CLASS_FILTERS_ENABLED" value="false" />
|
|
||||||
<option name="INVERSE_CLASS_FILLTERS" value="false" />
|
|
||||||
<option name="SUSPEND_POLICY" value="SuspendAll" />
|
|
||||||
</breakpoint_any>
|
|
||||||
</exception_breakpoints>
|
|
||||||
<field_breakpoints />
|
|
||||||
<method_breakpoints />
|
|
||||||
</component>
|
|
||||||
<component name="DebuggerManager">
|
|
||||||
<watch_expression value="s" />
|
|
||||||
<watch_expression value="sSecretID" />
|
|
||||||
<watch_expression value="lSecretHandle" />
|
|
||||||
<watch_expression value="secret" />
|
|
||||||
<watch_expression value="m_lSecretHandle" />
|
|
||||||
<watch_expression value="nc" />
|
|
||||||
<watch_expression value="netCred" />
|
|
||||||
</component>
|
|
||||||
<component name="DebuggerSettings">
|
|
||||||
<option name="TRACING_FILTERS_ENABLED" value="true" />
|
|
||||||
<option name="TOSTRING_CLASSES_ENABLED" value="false" />
|
|
||||||
<option name="VALUE_LOOKUP_DELAY" value="700" />
|
|
||||||
<option name="DEBUGGER_TRANSPORT" value="0" />
|
|
||||||
<option name="FORCE_CLASSIC_VM" value="true" />
|
|
||||||
<option name="HIDE_DEBUGGER_ON_PROCESS_TERMINATION" value="false" />
|
|
||||||
<option name="SKIP_SYNTHETIC_METHODS" value="true" />
|
|
||||||
<option name="SKIP_CONSTRUCTORS" value="false" />
|
|
||||||
<option name="STEP_THREAD_SUSPEND_POLICY" value="SuspendThread" />
|
|
||||||
<default_breakpoint_settings>
|
|
||||||
<option name="NOTIFY_CAUGHT" value="true" />
|
|
||||||
<option name="NOTIFY_UNCAUGHT" value="true" />
|
|
||||||
<option name="WATCH_MODIFICATION" value="true" />
|
|
||||||
<option name="WATCH_ACCESS" value="true" />
|
|
||||||
<option name="WATCH_ENTRY" value="true" />
|
|
||||||
<option name="WATCH_EXIT" value="true" />
|
|
||||||
<option name="ENABLED" value="true" />
|
|
||||||
<option name="SUSPEND_VM" value="true" />
|
|
||||||
<option name="COUNT_FILTER_ENABLED" value="false" />
|
|
||||||
<option name="COUNT_FILTER" value="0" />
|
|
||||||
<option name="CONDITION_ENABLED" value="false" />
|
|
||||||
<option name="CONDITION" />
|
|
||||||
<option name="LOG_ENABLED" value="false" />
|
|
||||||
<option name="LOG_EXPRESSION_ENABLED" value="false" />
|
|
||||||
<option name="LOG_MESSAGE" />
|
|
||||||
<option name="CLASS_FILTERS_ENABLED" value="false" />
|
|
||||||
<option name="INVERSE_CLASS_FILLTERS" value="false" />
|
|
||||||
<option name="SUSPEND_POLICY" value="SuspendAll" />
|
|
||||||
</default_breakpoint_settings>
|
|
||||||
<filter>
|
|
||||||
<option name="PATTERN" value="com.sun.*" />
|
|
||||||
<option name="ENABLED" value="true" />
|
|
||||||
</filter>
|
|
||||||
<filter>
|
|
||||||
<option name="PATTERN" value="java.*" />
|
|
||||||
<option name="ENABLED" value="true" />
|
|
||||||
</filter>
|
|
||||||
<filter>
|
|
||||||
<option name="PATTERN" value="javax.*" />
|
|
||||||
<option name="ENABLED" value="true" />
|
|
||||||
</filter>
|
|
||||||
<filter>
|
|
||||||
<option name="PATTERN" value="org.omg.*" />
|
|
||||||
<option name="ENABLED" value="true" />
|
|
||||||
</filter>
|
|
||||||
<filter>
|
|
||||||
<option name="PATTERN" value="sun.*" />
|
|
||||||
<option name="ENABLED" value="true" />
|
|
||||||
</filter>
|
|
||||||
<filter>
|
|
||||||
<option name="PATTERN" value="junit.*" />
|
|
||||||
<option name="ENABLED" value="true" />
|
|
||||||
</filter>
|
|
||||||
</component>
|
|
||||||
<component name="CompilerWorkspaceConfiguration">
|
|
||||||
<option name="COMPILE_IN_BACKGROUND" value="false" />
|
|
||||||
<option name="AUTO_SHOW_ERRORS_IN_EDITOR" value="true" />
|
|
||||||
</component>
|
|
||||||
<component name="ErrorTreeViewConfiguration">
|
|
||||||
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
|
|
||||||
<option name="HIDE_WARNINGS" value="false" />
|
|
||||||
</component>
|
|
||||||
<component name="DaemonCodeAnalyzer">
|
|
||||||
<disable_hints />
|
|
||||||
</component>
|
|
||||||
<component name="StructureViewFactory">
|
|
||||||
<option name="SORT_MODE" value="0" />
|
|
||||||
<option name="GROUP_OVERRIDINGS" value="true" />
|
|
||||||
<option name="GROUP_IMPLEMENTINGS" value="true" />
|
|
||||||
<option name="AUTOSCROLL_MODE" value="true" />
|
|
||||||
<option name="SHOW_METHODS" value="true" />
|
|
||||||
<option name="SHOW_FIELDS" value="true" />
|
|
||||||
<option name="AUTOSCROLL_FROM_SOURCE" value="false" />
|
|
||||||
<option name="GROUP_GETTERS_AND_SETTERS" value="true" />
|
|
||||||
</component>
|
|
||||||
<component name="CvsConfiguration">
|
|
||||||
<Checkout>
|
|
||||||
<option name="DATE_TAG" value="" />
|
|
||||||
<option name="REVISION_TAG" value="" />
|
|
||||||
<option name="PRUNE_EMPTY_DIRS" value="true" />
|
|
||||||
<option name="RESET_STICKY_TAGS" value="false" />
|
|
||||||
<option name="NON_RECURSIVE" value="false" />
|
|
||||||
<option name="CREATE_WORKING_DIR" value="" />
|
|
||||||
<option name="ADDITIONAL_OPTIONS" value="" />
|
|
||||||
</Checkout>
|
|
||||||
<Update>
|
|
||||||
<option name="DATE_TAG" value="" />
|
|
||||||
<option name="REVISION_TAG" value="" />
|
|
||||||
<option name="PRUNE_EMPTY_DIRS" value="true" />
|
|
||||||
<option name="RESET_STICKY_TAGS" value="false" />
|
|
||||||
<option name="NON_RECURSIVE" value="false" />
|
|
||||||
<option name="CREATE_MISSING_DIRECTORIES" value="true" />
|
|
||||||
<option name="DONT_CHANGE_FILES" value="false" />
|
|
||||||
<option name="QUIET_MODE" value="false" />
|
|
||||||
<option name="ADDITIONAL_OPTIONS" value="" />
|
|
||||||
</Update>
|
|
||||||
<Commit>
|
|
||||||
<option name="NON_RECURSIVE" value="false" />
|
|
||||||
<option name="REVISION_TAG" value="" />
|
|
||||||
<option name="LOG_MESSAGE" value="" />
|
|
||||||
<option name="ADDITIONAL_OPTIONS" value="" />
|
|
||||||
</Commit>
|
|
||||||
<Diff>
|
|
||||||
<option name="REVISION_TAG" value="HEAD" />
|
|
||||||
<option name="DATE_TAG" value="" />
|
|
||||||
<option name="IGNORE_WHITESPACE" value="false" />
|
|
||||||
</Diff>
|
|
||||||
<Add>
|
|
||||||
<option name="ADD_AS_BINARY" value="false" />
|
|
||||||
<option name="LOG_MESSAGE" value="" />
|
|
||||||
</Add>
|
|
||||||
<Status>
|
|
||||||
<option name="NON_RECURSIVE" value="false" />
|
|
||||||
<option name="INCLUDE_TAGS" value="false" />
|
|
||||||
</Status>
|
|
||||||
<Edit>
|
|
||||||
<option name="NON_RECURSIVE" value="false" />
|
|
||||||
<option name="FORCE_RECURSIVE" value="false" />
|
|
||||||
<option name="EDIT" value="false" />
|
|
||||||
<option name="UNEDIT" value="false" />
|
|
||||||
<option name="COMMIT" value="false" />
|
|
||||||
<option name="ALL" value="true" />
|
|
||||||
<option name="NONE" value="false" />
|
|
||||||
</Edit>
|
|
||||||
<Remove>
|
|
||||||
<option name="NON_RECURSIVE" value="false" />
|
|
||||||
<option name="FORCE_RECURSIVE" value="false" />
|
|
||||||
<option name="DELETE_FILE" value="false" />
|
|
||||||
</Remove>
|
|
||||||
<Log>
|
|
||||||
<option name="DEFAULT_BRANCH" value="false" />
|
|
||||||
<option name="NON_RECURSIVE" value="false" />
|
|
||||||
<option name="QUIET_MODE" value="true" />
|
|
||||||
<option name="ADDITIONAL_OPTIONS" value="" />
|
|
||||||
</Log>
|
|
||||||
<Editors>
|
|
||||||
<option name="NON_RECURSIVE" value="false" />
|
|
||||||
<option name="FORCE_RECURSIVE" value="false" />
|
|
||||||
</Editors>
|
|
||||||
<option name="CLIENT_PATH" value="" />
|
|
||||||
<option name="EXTERNAL_DIFF_PATH" />
|
|
||||||
<option name="USE_EXTERNAL_DIFF" value="false" />
|
|
||||||
<option name="WORKING_FILES_READONLY" value="false" />
|
|
||||||
<option name="COMPRESSION_LEVEL" value="0" />
|
|
||||||
<option name="ADDITIONAL_OPTIONS" value="" />
|
|
||||||
<option name="BINARY_FILES_EXTENSIONS" />
|
|
||||||
<option name="REUSE_LAST_LOG_MESSAGE" value="false" />
|
|
||||||
<option name="PUT_FOCUS_INTO_LOG_MESSAGE" value="false" />
|
|
||||||
<option name="SHOW_UPDATE_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_COMMIT_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_DIFF_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_ADD_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_STATUS_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_EDIT_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_UNEDIT_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_REMOVE_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_LOG_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_EDITORS_OPTIONS" value="true" />
|
|
||||||
<option name="HIDE_UNKNOWN_FILES" value="false" />
|
|
||||||
<option name="HIDE_MISSING_FILES" value="false" />
|
|
||||||
<option name="HIDE_UP_TO_DATE_FILES" value="false" />
|
|
||||||
</component>
|
|
||||||
<component name="CvsVcs">
|
|
||||||
<expanded_paths />
|
|
||||||
</component>
|
|
||||||
<component name="ProjectViewSettings">
|
|
||||||
<navigator currentView="ProjectPane" flattenPackages="false" showMembers="false" showStructure="false" autoscrollToSource="false" splitterProportion="0.5" />
|
|
||||||
<view id="ProjectPane">
|
|
||||||
<expanded_node type="directory" url="file://$PROJECT_DIR$" />
|
|
||||||
<expanded_node type="directory" url="file://$PROJECT_DIR$/src" />
|
|
||||||
<expanded_node type="directory" url="file://$PROJECT_DIR$/src/com/novell/casa" />
|
|
||||||
<expanded_node type="directory" url="file://$PROJECT_DIR$/src/com" />
|
|
||||||
<expanded_node type="directory" url="file://$PROJECT_DIR$/src/com/novell" />
|
|
||||||
</view>
|
|
||||||
<view id="SourcepathPane">
|
|
||||||
<expanded_node type="directory" url="file://$PROJECT_DIR$/src/com" />
|
|
||||||
<expanded_node type="directory" url="file://$PROJECT_DIR$/src" />
|
|
||||||
</view>
|
|
||||||
<view id="ClasspathPane" />
|
|
||||||
</component>
|
|
||||||
<component name="RunManager">
|
|
||||||
<option name="SHOW_SETTINGS_BEFORE_RUNNING" value="false" />
|
|
||||||
<option name="COMPILE_BEFORE_RUNNING" value="true" />
|
|
||||||
<activeType name="Application" />
|
|
||||||
<configuration name="<template>" type="Application" default="true" selected="false">
|
|
||||||
<option name="MAIN_CLASS_NAME" />
|
|
||||||
<option name="VM_PARAMETERS" />
|
|
||||||
<option name="PROGRAM_PARAMETERS" />
|
|
||||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
|
||||||
</configuration>
|
|
||||||
<configuration name="<template>" type="Applet" default="true" selected="false">
|
|
||||||
<option name="MAIN_CLASS_NAME" />
|
|
||||||
<option name="HTML_FILE_NAME" />
|
|
||||||
<option name="HTML_USED" value="false" />
|
|
||||||
<option name="WIDTH" value="400" />
|
|
||||||
<option name="HEIGHT" value="300" />
|
|
||||||
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
|
|
||||||
<option name="VM_PARAMETERS" />
|
|
||||||
</configuration>
|
|
||||||
<configuration name="<template>" type="JUnit" default="true" selected="false">
|
|
||||||
<option name="PACKAGE_NAME" />
|
|
||||||
<option name="MAIN_CLASS_NAME" />
|
|
||||||
<option name="METHOD_NAME" />
|
|
||||||
<option name="TEST_OBJECT" />
|
|
||||||
<option name="VM_PARAMETERS" />
|
|
||||||
<option name="PARAMETERS" />
|
|
||||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
|
||||||
</configuration>
|
|
||||||
<configuration name="<template>" type="Remote" default="true" selected="false">
|
|
||||||
<option name="USE_SOCKET_TRANSPORT" value="true" />
|
|
||||||
<option name="SERVER_MODE" value="false" />
|
|
||||||
<option name="SHMEM_ADDRESS" value="javadebug" />
|
|
||||||
<option name="HOST" value="localhost" />
|
|
||||||
<option name="PORT" value="5005" />
|
|
||||||
</configuration>
|
|
||||||
<configuration name="<template>" type="WebApp" default="true" selected="false">
|
|
||||||
<WebServerIntegration name="" />
|
|
||||||
<Host>localhost</Host>
|
|
||||||
<Port>5050</Port>
|
|
||||||
<LaunchServer>false</LaunchServer>
|
|
||||||
</configuration>
|
|
||||||
<configuration name="Unnamed" type="Application" default="false" selected="true">
|
|
||||||
<option name="MAIN_CLASS_NAME" value="com.novell.casa.MiCasaTest" />
|
|
||||||
<option name="VM_PARAMETERS" />
|
|
||||||
<option name="PROGRAM_PARAMETERS" />
|
|
||||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
|
||||||
</configuration>
|
|
||||||
</component>
|
|
||||||
<component name="BookmarkManager" />
|
|
||||||
<component name="Commander">
|
|
||||||
<leftPanel view="Project" />
|
|
||||||
<rightPanel view="Project" />
|
|
||||||
<splitter proportion="0.5" />
|
|
||||||
</component>
|
|
||||||
<component name="PropertiesComponent">
|
|
||||||
<property name="MemberChooser.copyJavadoc" value="false" />
|
|
||||||
<property name="GoToClass.includeLibraries" value="false" />
|
|
||||||
<property name="MemberChooser.showClasses" value="true" />
|
|
||||||
<property name="MemberChooser.sorted" value="false" />
|
|
||||||
<property name="GoToFile.includeJavaFiles" value="false" />
|
|
||||||
<property name="GoToClass.toSaveIncludeLibraries" value="false" />
|
|
||||||
</component>
|
|
||||||
<component name="SelectInManager" />
|
|
||||||
<component name="VssConfiguration">
|
|
||||||
<CheckoutOptions>
|
|
||||||
<option name="COMMENT" value="" />
|
|
||||||
<option name="DO_NOT_GET_LATEST_VERSION" value="false" />
|
|
||||||
<option name="REPLACE_WRITABLE" value="false" />
|
|
||||||
<option name="RECURSIVE" value="false" />
|
|
||||||
</CheckoutOptions>
|
|
||||||
<CheckinOptions>
|
|
||||||
<option name="COMMENT" value="" />
|
|
||||||
<option name="KEEP_CHECKED_OUT" value="false" />
|
|
||||||
<option name="RECURSIVE" value="false" />
|
|
||||||
</CheckinOptions>
|
|
||||||
<AddOptions>
|
|
||||||
<option name="COMMENT" value="" />
|
|
||||||
<option name="STORE_ONLY_LATEST_VERSION" value="false" />
|
|
||||||
<option name="CHECK_OUT_IMMEDIATELY" value="false" />
|
|
||||||
<option name="FILE_TYPE" value="0" />
|
|
||||||
</AddOptions>
|
|
||||||
<UndocheckoutOptions>
|
|
||||||
<option name="MAKE_WRITABLE" value="false" />
|
|
||||||
<option name="REPLACE_LOCAL_COPY" value="0" />
|
|
||||||
<option name="RECURSIVE" value="false" />
|
|
||||||
</UndocheckoutOptions>
|
|
||||||
<DiffOptions>
|
|
||||||
<option name="IGNORE_WHITE_SPACE" value="false" />
|
|
||||||
<option name="IGNORE_CASE" value="false" />
|
|
||||||
</DiffOptions>
|
|
||||||
<GetOptions>
|
|
||||||
<option name="REPLACE_WRITABLE" value="0" />
|
|
||||||
<option name="MAKE_WRITABLE" value="false" />
|
|
||||||
<option name="RECURSIVE" value="false" />
|
|
||||||
</GetOptions>
|
|
||||||
<option name="CLIENT_PATH" value="" />
|
|
||||||
<option name="SRCSAFEINI_PATH" value="" />
|
|
||||||
<option name="USER_NAME" value="" />
|
|
||||||
<option name="PWD" value="" />
|
|
||||||
<option name="SHOW_CHECKOUT_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_CHECKIN_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_ADD_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_UNDOCHECKOUT_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_DIFF_OPTIONS" value="true" />
|
|
||||||
<option name="SHOW_GET_OPTIONS" value="true" />
|
|
||||||
<option name="USE_EXTERNAL_DIFF" value="false" />
|
|
||||||
<option name="EXTERNAL_DIFF_PATH" value="" />
|
|
||||||
<option name="REUSE_LAST_COMMENT" value="false" />
|
|
||||||
<option name="PUT_FOCUS_INTO_COMMENT" value="false" />
|
|
||||||
</component>
|
|
||||||
<component name="HierarchyBrowserManager">
|
|
||||||
<option name="SHOW_PACKAGES" value="false" />
|
|
||||||
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
|
|
||||||
<option name="SORT_ALPHABETICALLY" value="false" />
|
|
||||||
</component>
|
|
||||||
<component name="WebViewSettings">
|
|
||||||
<webview flattenPackages="false" showMembers="false" autoscrollToSource="false" />
|
|
||||||
</component>
|
|
||||||
<component name="EjbViewSettings">
|
|
||||||
<EjbView showMembers="false" autoscrollToSource="false" />
|
|
||||||
</component>
|
|
||||||
<component name="LvcsConfiguration">
|
|
||||||
<option name="LOCAL_VCS_ENABLED" value="true" />
|
|
||||||
<option name="LOCAL_VCS_PURGING_PERIOD" value="259200000" />
|
|
||||||
<option name="ADD_LABEL_ON_PROJECT_OPEN" value="true" />
|
|
||||||
<option name="ADD_LABEL_ON_PROJECT_COMPILATION" value="true" />
|
|
||||||
<option name="ADD_LABEL_ON_FILE_PACKAGE_COMPILATION" value="true" />
|
|
||||||
<option name="ADD_LABEL_ON_PROJECT_MAKE" value="true" />
|
|
||||||
<option name="ADD_LABEL_ON_RUNNING" value="true" />
|
|
||||||
<option name="ADD_LABEL_ON_DEBUGGING" value="true" />
|
|
||||||
<option name="ADD_LABEL_ON_UNIT_TEST" value="true" />
|
|
||||||
<option name="MARK_EXTERNAL_CHANGES_AS_UP_TO_DATE" value="true" />
|
|
||||||
</component>
|
|
||||||
<component name="InspectionManager">
|
|
||||||
<option name="AUTOSCROLL_TO_SOURCE" value="false" />
|
|
||||||
<option name="SPLITTER_PROPORTION" value="0.5" />
|
|
||||||
<inspection_tool class="Unused declaration" enabled="false">
|
|
||||||
<option name="ADD_MAINS_TO_ENTRIES" value="true" />
|
|
||||||
<option name="ADD_JUNIT_TO_ENTRIES" value="true" />
|
|
||||||
<option name="ADD_EJB_TO_ENTRIES" value="true" />
|
|
||||||
<option name="ADD_APPLET_TO_ENTRIES" value="true" />
|
|
||||||
<option name="ADD_SERVLET_TO_ENTRIES" value="true" />
|
|
||||||
<option name="ADD_NONJAVA_TO_ENTRIES" value="true" />
|
|
||||||
</inspection_tool>
|
|
||||||
<inspection_tool class="Declaration access can be weaker" enabled="false">
|
|
||||||
<option name="SUGGEST_PACKAGE_LOCAL_FOR_MEMBERS" value="true" />
|
|
||||||
<option name="SUGGEST_PACKAGE_LOCAL_FOR_TOP_CLASSES" value="true" />
|
|
||||||
<option name="SUGGEST_PRIVATE_FOR_INNERS" value="false" />
|
|
||||||
</inspection_tool>
|
|
||||||
<inspection_tool class="Declaration can have static modifier" enabled="false" />
|
|
||||||
<inspection_tool class="Declaration can have final modifier" enabled="false">
|
|
||||||
<option name="REPORT_CLASSES" value="true" />
|
|
||||||
<option name="REPORT_METHODS" value="true" />
|
|
||||||
<option name="REPORT_FIELDS" value="true" />
|
|
||||||
</inspection_tool>
|
|
||||||
<inspection_tool class="Unused method parameters" enabled="false" />
|
|
||||||
<inspection_tool class="Actual method parameter is the same constant" enabled="false" />
|
|
||||||
<inspection_tool class="Unused method return value" enabled="false" />
|
|
||||||
<inspection_tool class="Method returns the same value" enabled="false" />
|
|
||||||
<inspection_tool class="Empty method" enabled="false" />
|
|
||||||
<inspection_tool class="Redundant throws clause" enabled="false" />
|
|
||||||
<inspection_tool class="Constant conditions & exceptions" enabled="false" />
|
|
||||||
<inspection_tool class="Unused assignment" enabled="false" />
|
|
||||||
<inspection_tool class="Redundant type cast" enabled="false" />
|
|
||||||
<inspection_tool class="Local variable or parameter can be final" enabled="false">
|
|
||||||
<option name="REPORT_VARIABLES" value="true" />
|
|
||||||
<option name="REPORT_PARAMETERS" value="true" />
|
|
||||||
</inspection_tool>
|
|
||||||
<inspection_tool class="Declaration has javadoc problems" enabled="false">
|
|
||||||
<option name="TOP_LEVEL_CLASS_OPTIONS">
|
|
||||||
<value>
|
|
||||||
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="public" />
|
|
||||||
<option name="REQUIRED_TAGS" value="" />
|
|
||||||
</value>
|
|
||||||
</option>
|
|
||||||
<option name="INNER_CLASS_OPTIONS">
|
|
||||||
<value>
|
|
||||||
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="protected" />
|
|
||||||
<option name="REQUIRED_TAGS" value="" />
|
|
||||||
</value>
|
|
||||||
</option>
|
|
||||||
<option name="METHOD_OPTIONS">
|
|
||||||
<value>
|
|
||||||
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="protected" />
|
|
||||||
<option name="REQUIRED_TAGS" value="@return@param@throws or @exception" />
|
|
||||||
</value>
|
|
||||||
</option>
|
|
||||||
<option name="FIELD_OPTIONS">
|
|
||||||
<value>
|
|
||||||
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="protected" />
|
|
||||||
<option name="REQUIRED_TAGS" value="" />
|
|
||||||
</value>
|
|
||||||
</option>
|
|
||||||
</inspection_tool>
|
|
||||||
<inspection_tool class="Deprecated API usage" enabled="false" />
|
|
||||||
<inspection_tool class="equals() and hashCode() not paired" enabled="false" />
|
|
||||||
</component>
|
|
||||||
<component name="TodoView" selected-index="0">
|
|
||||||
<todo-panel id="selected-file">
|
|
||||||
<are-packages-shown value="false" />
|
|
||||||
<flatten-packages value="false" />
|
|
||||||
<is-autoscroll-to-source value="true" />
|
|
||||||
</todo-panel>
|
|
||||||
<todo-panel id="all">
|
|
||||||
<are-packages-shown value="true" />
|
|
||||||
<flatten-packages value="false" />
|
|
||||||
<is-autoscroll-to-source value="true" />
|
|
||||||
</todo-panel>
|
|
||||||
</component>
|
|
||||||
<component name="VcsManagerConfiguration">
|
|
||||||
<option name="ACTIVE_VCS_NAME" value="" />
|
|
||||||
</component>
|
|
||||||
<component name="StarteamConfiguration">
|
|
||||||
<option name="SERVER" value="" />
|
|
||||||
<option name="PORT" value="49201" />
|
|
||||||
<option name="USER" value="" />
|
|
||||||
<option name="PASSWORD" value="" />
|
|
||||||
<option name="PROJECT" value="" />
|
|
||||||
<option name="VIEW" value="" />
|
|
||||||
<option name="ALTERNATIVE_WORKING_PATH" value="" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
||||||
|
|
54
CASA/jwrapper/jnsscs/CMakeLists.txt
Normal file
54
CASA/jwrapper/jnsscs/CMakeLists.txt
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
#################################
|
||||||
|
# Project
|
||||||
|
##############
|
||||||
|
|
||||||
|
project(jmicasa)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Dependencies
|
||||||
|
##############
|
||||||
|
|
||||||
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/com_novell_casa_MiCasa.h
|
||||||
|
COMMAND "${JAVA_HEADER_COMPILE}" -jni -d ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
com.novell.casa.MiCasa
|
||||||
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/jwrapper/src/class
|
||||||
|
COMMENT "generating jni header file ${CMAKE_CURRENT_BINARY_DIR}/com_novell_casa_MiCasa.h"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Compiler Switches
|
||||||
|
##############
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(
|
||||||
|
${CMAKE_SOURCE_DIR}/include
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${JNI_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
link_directories(
|
||||||
|
${CMAKE_BINARY_DIR}/micasadk
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# add_definitions( -DSSCS_LINUX_PLAT_F -DN_PLAT_UNIX -DUNIX -DLINUX -DIAPX38 )
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Source Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
add_library(jmicasa SHARED jmicasa.c ${CMAKE_CURRENT_BINARY_DIR}/com_novell_casa_MiCasa.h)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Linking
|
||||||
|
##############
|
||||||
|
|
||||||
|
set_target_properties(jmicasa PROPERTIES VERSION 1.1.1 SOVERSION 1 LINK_FLAGS -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/jmicasa_lux.exp)
|
||||||
|
target_link_libraries(jmicasa micasa)
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Install Files
|
||||||
|
##############
|
||||||
|
|
||||||
|
install(TARGETS jmicasa DESTINATION ${LIB_INSTALL_DIR})
|
@ -1,34 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
SUBDIRS = $(TARGET_OS)
|
|
||||||
|
|
||||||
DIST_SUBDIRS = linux
|
|
||||||
|
|
||||||
EXTRA_DIST = *.c jnsscs* windows
|
|
||||||
|
|
||||||
.PHONY: package package-clean package-install package-uninstall
|
|
||||||
package package-clean package-install package-uninstall:
|
|
||||||
$(MAKE) -C $(TARGET_OS) $@
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
||||||
|
|
Binary file not shown.
@ -1,21 +0,0 @@
|
|||||||
Microsoft Visual Studio Solution File, Format Version 8.00
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "jnsscs", "jnsscs.vcproj", "{3CA87960-868D-4F3B-BD21-30062A9F89AD}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfiguration) = preSolution
|
|
||||||
Debug = Debug
|
|
||||||
Release = Release
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfiguration) = postSolution
|
|
||||||
{3CA87960-868D-4F3B-BD21-30062A9F89AD}.Debug.ActiveCfg = Debug|Win32
|
|
||||||
{3CA87960-868D-4F3B-BD21-30062A9F89AD}.Debug.Build.0 = Debug|Win32
|
|
||||||
{3CA87960-868D-4F3B-BD21-30062A9F89AD}.Release.ActiveCfg = Release|Win32
|
|
||||||
{3CA87960-868D-4F3B-BD21-30062A9F89AD}.Release.Build.0 = Release|Win32
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
Binary file not shown.
@ -1,242 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="8.00"
|
|
||||||
Name="jmicasa"
|
|
||||||
ProjectGUID="{D2BD9955-65B4-4E34-B178-52D71444AE63}"
|
|
||||||
RootNamespace="jnsscs"
|
|
||||||
>
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"
|
|
||||||
/>
|
|
||||||
</Platforms>
|
|
||||||
<ToolFiles>
|
|
||||||
</ToolFiles>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory=".\Release"
|
|
||||||
IntermediateDirectory=".\Release"
|
|
||||||
ConfigurationType="2"
|
|
||||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
|
||||||
UseOfMFC="0"
|
|
||||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
|
||||||
CharacterSet="2"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
Description="Building Java Files"
|
|
||||||
CommandLine="cd ..\src
%JAVA_HOME%\bin\javac.exe -classpath . com/novell/casa/MiCasa.java
%JAVA_HOME%\bin\javah.exe -d ../../include -classpath . com.novell.casa.MiCasa
%JAVA_HOME%\bin\jar cvf miCASA.jar com/novell/casa/MiCasa.class com/novell/casa/NetCredential.class com/novell/casa/MiCasaException.class
dir
"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
PreprocessorDefinitions="NDEBUG"
|
|
||||||
MkTypLibCompatible="true"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
TargetEnvironment="1"
|
|
||||||
TypeLibraryName=".\Release/jnsscs.tlb"
|
|
||||||
HeaderFileName=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="2"
|
|
||||||
InlineFunctionExpansion="1"
|
|
||||||
AdditionalIncludeDirectories=""$(JAVA_HOME)\include\win32";"$(JAVA_HOME)\include";..\..\include"
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;JNSSCS_EXPORTS"
|
|
||||||
StringPooling="true"
|
|
||||||
RuntimeLibrary="0"
|
|
||||||
EnableFunctionLevelLinking="true"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
PrecompiledHeaderFile=".\Release/jnsscs.pch"
|
|
||||||
AssemblerListingLocation=".\Release/"
|
|
||||||
ObjectFile=".\Release/"
|
|
||||||
ProgramDataBaseFileName=".\Release/"
|
|
||||||
WarningLevel="3"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
CompileAs="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
PreprocessorDefinitions="NDEBUG"
|
|
||||||
Culture="1033"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="micasa.lib"
|
|
||||||
OutputFile=".\Release/jmicasa.dll"
|
|
||||||
LinkIncremental="1"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
AdditionalLibraryDirectories="..\..\micasadk\Release"
|
|
||||||
ProgramDatabaseFile=".\Release/jnsscs.pdb"
|
|
||||||
ImportLibrary=".\Release/jnsscs.lib"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory=".\Debug"
|
|
||||||
IntermediateDirectory=".\Debug"
|
|
||||||
ConfigurationType="2"
|
|
||||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
|
||||||
UseOfMFC="0"
|
|
||||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
|
||||||
CharacterSet="2"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
CommandLine="cd ..\src
%JAVA_HOME%\bin\javac.exe -classpath . com/novell/casa/MiCasa.java
%JAVA_HOME%\bin\javah.exe -d ../../include -classpath . com.novell.casa.MiCasa
%JAVA_HOME%\bin\jar cvf miCASA.jar com/novell/casa/MiCasa.class com/novell/casa/NetCredential.class com/novell/casa/MiCasaException.class
dir
"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
PreprocessorDefinitions="_DEBUG"
|
|
||||||
MkTypLibCompatible="true"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
TargetEnvironment="1"
|
|
||||||
TypeLibraryName=".\Debug/jnsscs.tlb"
|
|
||||||
HeaderFileName=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories=""$(JAVA_HOME)\include\win32";"$(JAVA_HOME)\include";..\..\include"
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;JNSSCS_EXPORTS"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="0"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
PrecompiledHeaderFile=".\Debug/jnsscs.pch"
|
|
||||||
AssemblerListingLocation=".\Debug/"
|
|
||||||
ObjectFile=".\Debug/"
|
|
||||||
ProgramDataBaseFileName=".\Debug/"
|
|
||||||
WarningLevel="3"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
DebugInformationFormat="4"
|
|
||||||
CompileAs="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
PreprocessorDefinitions="_DEBUG"
|
|
||||||
Culture="1033"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="odbc32.lib odbccp32.lib micasa.lib"
|
|
||||||
OutputFile=".\Debug/jmicasa.dll"
|
|
||||||
LinkIncremental="1"
|
|
||||||
SuppressStartupBanner="true"
|
|
||||||
AdditionalLibraryDirectories="..\..\micasadk\Release"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
ProgramDatabaseFile=".\Debug/jnsscs.pdb"
|
|
||||||
ImportLibrary=".\Debug/jnsscs.lib"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Source Files"
|
|
||||||
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\jmicasa.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Header Files"
|
|
||||||
Filter="h;hpp;hxx;hm;inl"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath="..\classes\com_novell_casa_MiCasa.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Resource Files"
|
|
||||||
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
|
||||||
>
|
|
||||||
</Filter>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
@ -1,31 +0,0 @@
|
|||||||
LINK_DEF_BLD = \
|
|
||||||
echo "$(addprefix $(OBJDIR),$(notdir $(OBJS)))" > $(LINKDEF);\
|
|
||||||
echo "/LIBPATH:$(MSC)lib" >> $(LINKDEF);\
|
|
||||||
echo "/LIBPATH:$(MSC)platformsdk/lib" >> $(LINKDEF);\
|
|
||||||
echo "/LIBPATH:../../lib/w32" >> $(LINKDEF);\
|
|
||||||
echo "kernel32.lib" >> $(LINKDEF);\
|
|
||||||
echo "ole32.lib" >> $(LINKDEF);\
|
|
||||||
echo "micasa.lib" >> $(LINKDEF);\
|
|
||||||
echo "/DLL" >> $(LINKDEF);\
|
|
||||||
echo "/OUT:$(BINDIR)$(basename $(notdir $@)).dll" >> $(LINKDEF);\
|
|
||||||
echo "/MAP:$(BINDIR)$(basename $(notdir $@)).map" >> $(LINKDEF);\
|
|
||||||
echo "/DEBUG" >> $(LINKDEF);\
|
|
||||||
echo "/MACHINE:IX86" >> $(LINKDEF);\
|
|
||||||
echo "/SUBSYSTEM:WINDOWS" >> $(LINKDEF);\
|
|
||||||
echo "/INCREMENTAL:NO" >> $(LINKDEF);\
|
|
||||||
echo "/VERSION:$(BLD_VER)" >> $(LINKDEF);\
|
|
||||||
echo "/FIXED:NO" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:uuid" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:libc" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:oldnames" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:user32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:gdi32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:comdlg32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:winspool" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:shell32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:comctl32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:olepro32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:user32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:wininet" >> $(LINKDEF);\
|
|
||||||
echo "/OPT:REF" >> $(LINKDEF);
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
|||||||
LINK_DEF_BLD = \
|
|
||||||
echo "$(addprefix $(OBJDIR),$(notdir $(OBJS)))" > $(LINKDEF);\
|
|
||||||
echo "/LIBPATH:$(MSC)lib" >> $(LINKDEF);\
|
|
||||||
echo "/LIBPATH:$(MSC)platformsdk/lib" >> $(LINKDEF);\
|
|
||||||
echo "/LIBPATH:../../lib/w32" >> $(LINKDEF);\
|
|
||||||
echo "kernel32.lib" >> $(LINKDEF);\
|
|
||||||
echo "ole32.lib" >> $(LINKDEF);\
|
|
||||||
echo "micasa.lib" >> $(LINKDEF);\
|
|
||||||
echo "/DLL" >> $(LINKDEF);\
|
|
||||||
echo "/OUT:$(BINDIR)$(basename $(notdir $@)).dll" >> $(LINKDEF);\
|
|
||||||
echo "/MAP:$(BINDIR)$(basename $(notdir $@)).map" >> $(LINKDEF);\
|
|
||||||
echo "/DEBUG" >> $(LINKDEF);\
|
|
||||||
echo "/MACHINE:IX86" >> $(LINKDEF);\
|
|
||||||
echo "/SUBSYSTEM:WINDOWS" >> $(LINKDEF);\
|
|
||||||
echo "/INCREMENTAL:NO" >> $(LINKDEF);\
|
|
||||||
echo "/VERSION:$(BLD_VER)" >> $(LINKDEF);\
|
|
||||||
echo "/FIXED:NO" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:oldnames" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:libc" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:uuid" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:MSVCRT" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:user32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:gdi32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:comdlg32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:winspool" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:shell32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:comctl32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:olepro32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:oleaut32" >> $(LINKDEF);\
|
|
||||||
echo "/NODEFAULTLIB:wininet" >> $(LINKDEF);\
|
|
||||||
echo "/OPT:REF" >> $(LINKDEF);
|
|
@ -1,117 +0,0 @@
|
|||||||
#######################################################################
|
|
||||||
#
|
|
||||||
# Copyright (C) 2006 Novell, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 2 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public
|
|
||||||
# License along with this program; if not, write to the Free
|
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
if DEBUG
|
|
||||||
TARGET_CFG = Debug
|
|
||||||
CFLAGS += -v -w
|
|
||||||
else
|
|
||||||
TARGET_CFG = Release
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS =
|
|
||||||
DIST_SUBDIRS =
|
|
||||||
|
|
||||||
EXTRA_DIST = *.exp
|
|
||||||
|
|
||||||
CASAROOT = ../../..
|
|
||||||
|
|
||||||
CASALIBDIR = $(CASAROOT)/$(LIB)
|
|
||||||
|
|
||||||
BUILD_VER = 1.1.1
|
|
||||||
|
|
||||||
# handle Mono secondary dependencies
|
|
||||||
export MONO_PATH := $(MONO_PATH)
|
|
||||||
|
|
||||||
PLATFORMINDEPENDENTSOURCEDIR = ..
|
|
||||||
PLATFORMDEPENDENTSOURCEDIR = .
|
|
||||||
|
|
||||||
MODULE_NAME = libjmicasa
|
|
||||||
MODULE_EXT = so
|
|
||||||
|
|
||||||
CFILES = ../jmicasa.c
|
|
||||||
|
|
||||||
CSFILES_CSC :=
|
|
||||||
INCLUDES = -I. -I.. -I$(CASAROOT)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \
|
|
||||||
-I/opt/gnome/include/gnome-keyring-1
|
|
||||||
RESOURCES =
|
|
||||||
DEFINES =
|
|
||||||
CFLAGS += $(INCLUDES) $(DEFINES)
|
|
||||||
LIBS = -lpthread -ldl
|
|
||||||
LDFLAGS = -Wl,-Bsymbolic -shared -Wl,--version-script=jmicasa_lux.exp \
|
|
||||||
-L$(CASALIBDIR)/$(TARGET_CFG) -lmicasa -Wl,-soname -Wl,libjmicasa.so.1
|
|
||||||
|
|
||||||
OBJDIR = ./$(TARGET_CFG)/$(LIB)
|
|
||||||
|
|
||||||
OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o))
|
|
||||||
|
|
||||||
CUR_DIR := $(shell pwd)
|
|
||||||
|
|
||||||
all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Pattern based rules.
|
|
||||||
#
|
|
||||||
vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR)
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.c
|
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.cpp
|
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
#$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS)
|
|
||||||
# @echo [======== Linking $@ ========]
|
|
||||||
# $(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
# cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
|
|
||||||
$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER): $(OBJDIR) $(OBJS)
|
|
||||||
@echo [======== Linking $@ ========]
|
|
||||||
cc -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
|
|
||||||
cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR)
|
|
||||||
[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR)
|
|
||||||
[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG)
|
|
||||||
|
|
||||||
|
|
||||||
install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT)
|
|
||||||
rmdir $(DESTDIR)$(libdir)
|
|
||||||
|
|
||||||
#installcheck-local: install
|
|
||||||
# $(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
||||||
# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir)
|
|
||||||
# cd $(DESTDIR)$(libdir); $(MONO)
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
if [ -d $(TARGET_CFG) ]; then rm -rf $(TARGET_CFG); fi
|
|
||||||
|
|
||||||
distclean-local:
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
|
||||||
rm -f Makefile.in
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
|||||||
LINK = $(CC) \
|
|
||||||
-Wl,-Bsymbolic \
|
|
||||||
-shared \
|
|
||||||
-Wl,--version-script=$(TARGET)_$(PLAT).exp \
|
|
||||||
-Wl,-rpath -Wl,/usr/lib$(ARC) \
|
|
||||||
-L$(LIBDIR)$(XTRA) -lmicasa \
|
|
||||||
-Wl,-soname -Wl,lib$(TARGET).so.$(PROD_NUM) \
|
|
||||||
-o $(LIBDIR)$(XTRA)/lib$(TARGET).so.$(BLD_VER) \
|
|
||||||
$(OBJDIR)*.$(O)
|
|
@ -1,2 +0,0 @@
|
|||||||
OBJS=\
|
|
||||||
jmicasa.$(O)
|
|
@ -1,2 +0,0 @@
|
|||||||
OBJS=\
|
|
||||||
jmicasa.$(O)
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user