Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=e4e9b196d180aa60bb870e84285b1a9da71c3322
commit e4e9b196d180aa60bb870e84285b1a9da71c3322 Author: Marius Cirsta <[email protected]> Date: Sun Apr 8 22:04:30 2012 +0000 * added preliminary cmake support diff --git a/.gitignore b/.gitignore index db1beb9..51ede56 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,5 @@ POTFILES libtool ltmain.sh m4 +*~ + diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4a390bf --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required (VERSION 2.8) +project (PACMAN-G2) + +add_subdirectory (lib/libftp) +add_subdirectory (lib/libpacman) +add_subdirectory (src/pacman-g2) diff --git a/lib/libftp/CMakeLists.txt b/lib/libftp/CMakeLists.txt new file mode 100644 index 0000000..f336e18 --- /dev/null +++ b/lib/libftp/CMakeLists.txt @@ -0,0 +1 @@ +add_library(ftp SHARED ftplib.c) diff --git a/lib/libpacman/CMakeLists.txt b/lib/libpacman/CMakeLists.txt new file mode 100644 index 0000000..25f0c18 --- /dev/null +++ b/lib/libpacman/CMakeLists.txt @@ -0,0 +1,41 @@ +set(LIBPACMAN_SOURCES + add.c + backup.c + be_files.c + cache.c + conflict.c + db.c + deps.c + error.c + group.c + handle.c + list.c + log.c + md5.c + md5driver.c + package.c + pacman.c + provide.c + remove.c + server.c + sha1.c + sync.c + trans.c + trans_sysupgrade.c + util.c + versioncmp.c +) + +include_directories (${PACMAN-G2_SOURCE_DIR}) + +include_directories (${PACMAN-G2_SOURCE_DIR}/lib/libftp) + +link_directories (${PACMAN-G2_SOURCE_DIR}/lib/libftp) + +find_library(ARCHIVE_LIB archive) + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE64_SOURCE") + +add_library(pacman SHARED ${LIBPACMAN_SOURCES}) + +target_link_libraries(pacman ftp archive) diff --git a/src/pacman-g2/CMakeLists.txt b/src/pacman-g2/CMakeLists.txt new file mode 100644 index 0000000..9c03e28 --- /dev/null +++ b/src/pacman-g2/CMakeLists.txt @@ -0,0 +1,27 @@ +set(PACMAN_SOURCES + add.c + conf.c + deptest.c + download.c + list.c + log.c + package.c + pacman-g2.c + ps.c + query.c + remove.c + sync.c + trans.c + upgrade.c + util.c +) + +include_directories (${PACMAN-G2_SOURCE_DIR}) + +link_directories (${HELLO_BINARY_DIR}/lib/libpacman) + +find_library(M_LIB m) + +add_executable(pacman-g2 ${PACMAN_SOURCES}) + +target_link_libraries(pacman-g2 pacman ${M_LIB}) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
