gplate/gplate

Remove cmake

14 months ago, Gary Kramlich
731a7f64ad4f
Parents 1f5081f3c6b5
Children 7f34b48539fe
Remove cmake
--- a/CMakeLists.txt Sat Mar 04 11:27:30 2023 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-cmake_minimum_required(VERSION 2.8)
-
-project(gplate)
-
-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
-set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
-LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
-IF("${isSystemDir}" STREQUAL "-1")
- SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
-ENDIF("${isSystemDir}" STREQUAL "-1")
-
-set(GPLATE_MAJOR_VERSION 0)
-set(GPLATE_MINOR_VERSION 0)
-set(GPLATE_MICRO_VERSION 3)
-set(GPLATE_EXTRA_VERSION dev)
-
-set(VERSION ${GPLATE_MAJOR_VERSION}.${GPLATE_MINOR_VERSION}.${GPLATE_MICRO_VERSION}${GPLATE_EXTRA_VERSION})
-
-###############################################################################
-# Dependencies
-###############################################################################
-include(FindPkgConfig)
-
-set(GLIB_REQ_VERSION 2.22.0)
-pkg_check_modules(GLIB REQUIRED
- glib-2.0>=${GLIB_REQ_VERSION},
- gobject-2.0>=${GLIB_REQ_VERSION}
-)
-
-find_program(GLIB_GENMARSHAL
- NAMES glib-genmarshal
- DOC "glib-genmarshal executable"
-)
-mark_as_advanced(GLIB_GENMARSHAL)
-
-find_program(GLIB_MKENUMS
- NAMES glib-mkenums
- DOC "glib-mkenums executable"
-)
-mark_as_advanced(GLIB_MKENUMS)
-
-find_program(GTESTER
- NAMES gtester
- DOC "gtester executable"
-)
-mark_as_advanced(GTESTER)
-
-###############################################################################
-# Build Info
-###############################################################################
-add_definitions(
- -DGETTEXT_PACKAGE="gplate"
- -DDATADIR="${CMAKE_INSTALL_PREFIX}/share"
- -DLIBDIR="${CMAKE_INSTALL_PREFIX}/lib"
- -DLOCALEDIR="${CMAKE_INSTALL_PREFIX}/locale"
- -fPIC
- -g -g3 -Wall
-)
-
-include_directories(gplate
- ${CMAKE_SOURCE_DIR}
- ${GLIB_INCLUDE_DIRS}
-)
-
-link_directories(
- ${GLIB_LIBRARY_DIRS}
-)
-
-###############################################################################
-# Subdirectories
-###############################################################################
-add_subdirectory(gplate)
-add_subdirectory(tests)
-
-###############################################################################
-# Config Files
-###############################################################################
-configure_file(gplate.pc.in gplate.pc @ONLY)
-
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/gplate.pc"
- DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
--- a/ChangeLog Sat Mar 04 11:27:30 2023 -0600
+++ b/ChangeLog Sat Mar 04 11:30:14 2023 -0600
@@ -9,6 +9,7 @@
gplate_template_jump_to.
* Moved from autotools to cmake
* Dropped the GLib requirement to 2.22
+ * Moved from cmake to meson
Version 0.0.2 09/20/2008:
* Fixed the bug where a default tag that didn't start with a word rendered
--- a/cmake/Modules/FindGlib.cmake Sat Mar 04 11:27:30 2023 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-include(FindPkgConfig)
-
-pkg_check_modules(GLIB REQUIRED
- glib-2.0>=2.16.0
- gobject-2.0>=2.16.0
- gthread-2.0>=2.16.0
-)
-
-# we need glib-genmarshal and glib-mkenums
-find_program(GLIB_GENMARSHAL
- NAMES glib-genmarshal
- DOC "glib-genmarshal executable"
-)
-mark_as_advanced(GLIB_GENMARSHAL)
-
-find_program(GLIB_MKENUMS
- NAMES glib-mkenums
- DOC "glib-mkenums executable"
-)
-mark_as_advanced(GLIB_MKENUMS)
-
-# gmodule is in a separate variable so that our helper apps don't get linked to
-# it.
-pkg_check_modules(GMODULE REQUIRED
- gmodule-2.0>=2.16.0
-)
-
-# now we need to find gtester
-find_program(GTESTER
- NAMES gtester
- DOC "gtester executable"
-)
-#add_executable("${GTESTER}" IMPORTED)
-#mark_as_advanced(GTESTER)
--- a/gplate.pc.in Sat Mar 04 11:27:30 2023 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-prefix=@CMAKE_INSTALL_PREFIX@
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include/gplate-1.0
-
-Name: libgplate
-Description: GPlate template library
-Version: @VERSION@
-Libs: -L${libdir} -lgplate
-Cflags: -I${includedir}
--- a/gplate/CMakeLists.txt Sat Mar 04 11:27:30 2023 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-add_subdirectory(functions)
-add_subdirectory(tags)
-add_subdirectory(variables)
-
-set(GPLATE_HEADERS
- gplate.h
- gplate-collection.h
- gplate-config.h
- gplate-errors.h
- gplate-function.h
- gplate-iterator.h
- gplate-library.h
- gplate-tag.h
- gplate-template.h
- gplate-util.h
- gplate-variable.h
-)
-
-add_library(gplate SHARED
- gplate-collection.c
- gplate-config.c
- gplate-errors.c
- gplate-function.c
- gplate-iterator.c
- gplate-library.c
- gplate-tag.c
- gplate-template.c
- gplate-util.c
- gplate-variable.c
-)
-
-target_link_libraries(gplate
- ${GLIB_LIBRARIES}
- gplate-functions
- gplate-tags
- gplate-variables
-)
-
-install(TARGETS gplate DESTINATION lib)
-install(FILES ${GPLATE_HEADERS} DESTINATION include/gplate)
--- a/gplate/functions/CMakeLists.txt Sat Mar 04 11:27:30 2023 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-set(GPLATE_FUNCTIONS_HEADERS
- gplate-for-function.h
- gplate-include-function.h
- gplate-noop-function.h
- gplate-print-function.h
- gplate-text-function.h
-)
-
-add_library(gplate-functions STATIC
- gplate-for-function.c
- gplate-include-function.c
- gplate-noop-function.c
- gplate-print-function.c
- gplate-text-function.c
-)
-
-install(FILES ${GPLATE_FUNCTIONS_HEADERS}
- DESTINATION include/gplate/functions)
--- a/gplate/tags/CMakeLists.txt Sat Mar 04 11:27:30 2023 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-set(GPLATE_TAGS_HEADERS
- gplate-code-tag.h
- gplate-comment-tag.h
- gplate-text-tag.h
- gplate-variable-tag.h
-)
-
-add_library(gplate-tags STATIC
- gplate-code-tag.c
- gplate-comment-tag.c
- gplate-text-tag.c
- gplate-variable-tag.c
-)
-
-install(FILES ${GPLATE_TAGS_HEADERS}
- DESTINATION include/gplate/tags)
--- a/gplate/tests/CMakeLists.txt Sat Mar 04 11:27:30 2023 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-add_definitions(
- -DTEST_DIR="${CMAKE_CURRENT_SOURCE_DIR}"
-)
-
-add_subdirectory(functions)
-add_subdirectory(tags)
-add_subdirectory(variables)
-
-add_executable(test-gplate test-gplate.c)
-
-target_link_libraries(test-gplate
- ${GLIB_LIBRARIES}
- gplate
- test-gplate-functions
- test-gplate-tags
- test-gplate-variables
-)
-
-###############################################################################
-# Main Target
-###############################################################################
-set(GTESTER_TESTS "${TESTS}")
-set(GTESTER_LOG "testgplate.log")
-
-add_custom_target(tests ALL
- COMMAND ${GTESTER} -k --verbose -o ${GTESTER_LOG} test-gplate
- DEPENDS test-gplate
-)
-
--- a/gplate/tests/functions/CMakeLists.txt Sat Mar 04 11:27:30 2023 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-set(TEST_GPLATE_FUNCTIONS_HEADERS
- test-gplate-functions.h
-)
-
-set(TEST_GPLATE_FUNCTIONS_SOURCES
- test-gplate-functions.c
- test-gplate-for-function.c
- test-gplate-include-function.c
-)
-
-add_library(test-gplate-functions STATIC
- ${TEST_GPLATE_FUNCTIONS_HEADERS}
- ${TEST_GPLATE_FUNCTIONS_SOURCES}
-)
-
--- a/gplate/tests/tags/CMakeLists.txt Sat Mar 04 11:27:30 2023 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-set(TEST_GPLATE_TAGS_HEADERS
- test-gplate-tag.h
-)
-
-set(TEST_GPLATE_TAGS_SOURCES
- test-gplate-tag.c
- test-gplate-comment-tag.c
- test-gplate-text-tag.c
- test-gplate-variable-tag.c
-)
-
-add_library(test-gplate-tags STATIC
- ${TEST_GPLATE_TAGS_HEADERS}
- ${TEST_GPLATE_TAGS_SOURCES}
-)
-
--- a/gplate/tests/variables/CMakeLists.txt Sat Mar 04 11:27:30 2023 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-set(TEST_GPLATE_VARIABLES_HEADERS
- test-gplate-variables.h
-)
-
-set(TEST_GPLATE_VARIABLES_SOURCES
- test-gplate-variables.c
-)
-
-add_library(test-gplate-variables STATIC
- ${TEST_GPLATE_VARIABLES_HEADERS}
- ${TEST_GPLATE_VARIABLES_SOURCES}
-)
-
--- a/gplate/variables/CMakeLists.txt Sat Mar 04 11:27:30 2023 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-set(GPLATE_VARIABLES_HEADERS
- gplate-dictionary-variable.h
- gplate-directory-variable.h
- gplate-file-variable.h
- gplate-object-variable.h
-)
-
-add_library(gplate-variables STATIC
- gplate-dictionary-variable.c
- gplate-directory-variable.c
- gplate-file-variable.c
- gplate-object-variable.c
-)
-
-install(FILES ${GPLATE_VARIABLES_HEADERS}
- DESTINATION include/gplate/variables)