[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, cmake, updated. 478c3f9f2f8f0d3a3e3e8ac4
From: |
Juergen Kahrs |
Subject: |
[gawk-diffs] [SCM] gawk branch, cmake, updated. 478c3f9f2f8f0d3a3e3e8ac4ea412a6ee7e54b86 |
Date: |
Sat, 09 Feb 2013 22:24:02 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, cmake has been updated
via 478c3f9f2f8f0d3a3e3e8ac4ea412a6ee7e54b86 (commit)
from 251fa761931520336e19fb09af583954a6f481ce (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=478c3f9f2f8f0d3a3e3e8ac4ea412a6ee7e54b86
commit 478c3f9f2f8f0d3a3e3e8ac4ea412a6ee7e54b86
Author: Juergen Kahrs <address@hidden>
Date: Sat Feb 9 23:23:41 2013 +0100
All extensions can be built as shared libraries now. It was necessary to
remove -DGAWK when building the extensions. The test cases involving extensions
still fail.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07edfca..410c020 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -89,7 +89,7 @@ STRING( REGEX REPLACE ".*([0-9]+)\\.[0-9]+\\.[0-9]+.*" "\\1"
GAWK_MAJOR_VERSION
STRING( REGEX REPLACE ".*[0-9]+\\.([0-9]+)\\.[0-9]+.*" "\\1"
GAWK_MINOR_VERSION "${GAWK_AUTOMAKE_LINE_VERSION}")
STRING( REGEX REPLACE ".*[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1"
GAWK_BUGFIX_VERSION "${GAWK_AUTOMAKE_LINE_VERSION}")
-add_definitions(-D GAWK)
+add_definitions(-DGAWK)
set(GAWK_VERSION
"${GAWK_MAJOR_VERSION}.${GAWK_MINOR_VERSION}.${GAWK_BUGFIX_VERSION}")
add_definitions(-D VERSION=\\"${GAWK_VERSION}\\")
add_definitions(-D PACKAGE=\\"gawk\\")
@@ -270,6 +270,9 @@ set (GAWK_SOURCES ${GAWK_SOURCES}
add_executable (gawk ${GAWK_SOURCES})
target_link_libraries (gawk m ${EXTRA_LIBS})
+# Beware: before building the extension, -DGAWK gets undefined.
+add_subdirectory(extension)
+
if(NOT ${CMAKE_CROSSCOMPILING} STREQUAL "TRUE")
enable_testing()
add_subdirectory(test)
diff --git a/cmake/basictest b/cmake/basictest
index 958c778..6fe5db5 100755
--- a/cmake/basictest
+++ b/cmake/basictest
@@ -2,6 +2,7 @@
TESTHOME=$(dirname ${0})/../test
export AWKPATH=${TESTHOME}
+export LANG=C
if test -r ${TESTHOME}/${2}.in
then
$1 -f ${2}.awk < ${TESTHOME}/${2}.in > ${TESTHOME}/_${2} 2>&1 || echo EXIT
CODE: $? >> ${TESTHOME}/_${2}
diff --git a/extension/CMakeLists.txt b/extension/CMakeLists.txt
new file mode 100644
index 0000000..a730d8b
--- /dev/null
+++ b/extension/CMakeLists.txt
@@ -0,0 +1,67 @@
+#
+# extension/CMakeLists.txt --- CMake input file for gawk
+#
+# Copyright (C) 2013
+# the Free Software Foundation, Inc.
+#
+# This file is part of GAWK, the GNU implementation of the
+# AWK Programming Language.
+#
+# GAWK 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 3 of the License, or
+# (at your option) any later version.
+#
+# GAWK 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA
+#
+
+## process this file with CMake to produce Makefile
+
+remove_definitions(-DGAWK)
+
+add_library (filefuncs SHARED filefuncs.c stack.c gawkfts.c)
+target_link_libraries (filefuncs)
+
+DefineFunctionIfAvailable(fnmatch HAVE_FNMATCH_H)
+add_library (fnmatch SHARED fnmatch.c)
+target_link_libraries (fnmatch)
+
+add_library (fork SHARED fork.c)
+target_link_libraries (fork)
+
+add_library (inplace SHARED inplace.c)
+target_link_libraries (inplace)
+
+add_library (ordchr SHARED ordchr.c)
+target_link_libraries (ordchr)
+
+DefineHFileIfAvailable(dirent.h HAVE_DIRENT_H)
+add_library (readdir SHARED readdir.c)
+target_link_libraries (readdir)
+
+add_library (readfile SHARED readfile.c)
+target_link_libraries (readfile)
+
+add_library (revoutput SHARED revoutput.c)
+target_link_libraries (revoutput)
+
+DefineFunctionIfAvailable(getdtablesize HAVE_GETDTABLESIZE)
+add_library (revtwoway SHARED revtwoway.c)
+target_link_libraries (revtwoway)
+
+add_library (rwarray SHARED rwarray.c)
+target_link_libraries (rwarray)
+
+add_library (time SHARED time.c)
+target_link_libraries (time)
+
+add_library (testext SHARED testext.c)
+target_link_libraries (testext)
+
-----------------------------------------------------------------------
Summary of changes:
CMakeLists.txt | 5 +++-
cmake/basictest | 1 +
extension/CMakeLists.txt | 67 ++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 72 insertions(+), 1 deletions(-)
create mode 100644 extension/CMakeLists.txt
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, cmake, updated. 478c3f9f2f8f0d3a3e3e8ac4ea412a6ee7e54b86,
Juergen Kahrs <=