Merged source and header files in directory structure. Got rid of SConstruct build.

This commit is contained in:
Vincent Richard 2013-12-29 10:02:12 +01:00
parent a3206f1689
commit 152c6bed75
422 changed files with 21 additions and 1161 deletions

11
.gitignore vendored
View File

@ -7,11 +7,6 @@
# Doxygen-generated # Doxygen-generated
doc/html/* doc/html/*
# SConstruct
.sconsign.dblite
/options.cache
/run-tests
# CMake-generated / Build files # CMake-generated / Build files
CMakeFiles/ CMakeFiles/
CMakeCache.txt CMakeCache.txt
@ -24,9 +19,9 @@ cmake_install.cmake
/install_manifest* /install_manifest*
/libvmime.a /libvmime.a
/vmime.pc /vmime.pc
/vmime/config.hpp /src/vmime/config.hpp
/vmime/export-static.hpp /src/vmime/export-static.hpp
/vmime/export-shared.hpp /src/vmime/export-shared.hpp
/COPYING.txt /COPYING.txt
build/ build/
Makefile Makefile

View File

@ -71,19 +71,20 @@ SET(VMIME_LIBRARY_NAME vmime)
FILE( FILE(
GLOB_RECURSE GLOB_RECURSE
VMIME_LIBRARY_SRC_FILES VMIME_LIBRARY_SRC_FILES
src/* ${CMAKE_CURRENT_SOURCE_DIR}/src/vmime/*.cpp
) )
FILE( FILE(
GLOB_RECURSE GLOB_RECURSE
VMIME_LIBRARY_INCLUDE_FILES VMIME_LIBRARY_INCLUDE_FILES
vmime/* ${CMAKE_CURRENT_SOURCE_DIR}/src/vmime/*.hpp
) )
LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "vmime/config.hpp") LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/vmime/config.hpp")
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} # for "contrib/"
${CMAKE_CURRENT_SOURCE_DIR}/src # for "vmime/
) )
INCLUDE(GenerateExportHeader) INCLUDE(GenerateExportHeader)
@ -116,10 +117,10 @@ IF(VMIME_BUILD_SHARED_LIBRARY)
COPY COPY
${CMAKE_CURRENT_BINARY_DIR}/export-shared.hpp ${CMAKE_CURRENT_BINARY_DIR}/export-shared.hpp
DESTINATION DESTINATION
${PROJECT_SOURCE_DIR}/vmime ${PROJECT_SOURCE_DIR}/src/vmime
) )
LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "vmime/export-shared.hpp") LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/vmime/export-shared.hpp")
SET_TARGET_PROPERTIES( SET_TARGET_PROPERTIES(
${VMIME_LIBRARY_NAME} ${VMIME_LIBRARY_NAME}
@ -161,10 +162,10 @@ IF(VMIME_BUILD_STATIC_LIBRARY)
COPY COPY
${CMAKE_CURRENT_BINARY_DIR}/export-static.hpp ${CMAKE_CURRENT_BINARY_DIR}/export-static.hpp
DESTINATION DESTINATION
${PROJECT_SOURCE_DIR}/vmime ${PROJECT_SOURCE_DIR}/src/vmime
) )
LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "vmime/export-static.hpp") LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/vmime/export-static.hpp")
SET_TARGET_PROPERTIES( SET_TARGET_PROPERTIES(
${VMIME_LIBRARY_NAME}-static ${VMIME_LIBRARY_NAME}-static
@ -244,8 +245,8 @@ IF(VMIME_BUILD_STATIC_LIBRARY)
ENDIF() ENDIF()
# Installation of header files # Installation of header files
INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_INCLUDE_FILES headers) INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_INCLUDE_FILES headers src/)
INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_GENERATED_INCLUDE_FILES headers) INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_GENERATED_INCLUDE_FILES headers src/)
#INSTALL( #INSTALL(
# FILES ${VMIME_LIBRARY_INCLUDE_FILES} # FILES ${VMIME_LIBRARY_INCLUDE_FILES}
@ -1064,7 +1065,7 @@ ENDIF()
# Set our configure file # Set our configure file
CONFIGURE_FILE(cmake/config.hpp.cmake ${CMAKE_SOURCE_DIR}/vmime/config.hpp) CONFIGURE_FILE(cmake/config.hpp.cmake ${CMAKE_SOURCE_DIR}/src/vmime/config.hpp)
# PkgConfig post-configuration # PkgConfig post-configuration
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/vmime.pc.in ${CMAKE_BINARY_DIR}/vmime.pc @ONLY) CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/vmime.pc.in ${CMAKE_BINARY_DIR}/vmime.pc @ONLY)

1124
SConstruct

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,11 @@
# Installing headers and preserving the directory structure # Installing headers and preserving the directory structure
# Found here: http://www.semipol.de/archives/251 # Found here: http://www.semipol.de/archives/251
MACRO(INSTALL_HEADERS_WITH_DIRECTORY HEADER_LIST COMPONENT_NAME) MACRO(INSTALL_HEADERS_WITH_DIRECTORY HEADER_LIST COMPONENT_NAME REMOVE_PREFIX)
FOREACH(HEADER ${${HEADER_LIST}}) FOREACH(HEADER ${${HEADER_LIST}})
STRING(REGEX MATCH "(.*)[/\\]" DIR ${HEADER}) STRING(REGEX MATCH "(.*)[/\\]" DIR ${HEADER})
STRING(REPLACE "${CMAKE_SOURCE_DIR}/" "" DIR ${DIR}) STRING(REPLACE "${CMAKE_SOURCE_DIR}/${REMOVE_PREFIX}" "" DIR ${DIR})
INSTALL(FILES ${HEADER} DESTINATION include/${DIR} COMPONENT ${COMPONENT_NAME}) INSTALL(FILES ${HEADER} DESTINATION include/${DIR} COMPONENT ${COMPONENT_NAME})
ENDFOREACH(HEADER) ENDFOREACH(HEADER)

View File

@ -1,12 +0,0 @@
=========================================
Instructions for compiling VMime examples
=========================================
1) Configure, compile and install vmime library
2) Compile the sample programs with:
$ g++ -o exampleX exampleX.cpp `pkg-config libvmime`
3) For a more complete documentation, please visit:
http://www.vmime.org/documentation/

Some files were not shown because too many files have changed in this diff Show More