Mercurial > octave
view libgui/liboctgui-build-info.h @ 23427:48fd5980e29a
Refactor and normalize generated build info source files
* Makefile.am (build-info-commands): New macro to generate build info source
files containing hg revision.
* libgui/module.mk (EXTRA_libgui_liboctgui_la_SOURCES): Delete variable
referencing unnecessary dummy source file.
(libgui_liboctgui_la_CPPFLAGS, libgui_liboctgui_la_CFLAGS,
libgui_liboctgui_la_CXXFLAGS): New compilation variables.
(libgui_CLEANFILES, libgui_EXTRA_DIST, nodist_libgui_liboctgui_la_SOURCES,
noinst_HEADERS): Include libgui/liboctgui-build-info.* files moved from
libgui/src.
(libgui/liboctgui-build-info.cc): Redefine rule moved from libgui/src/module.mk
using $(build-info-commands).
* libgui/src/module.mk (libgui_CLEANFILES, libgui_EXTRA_DIST,
nodist_libgui_src_libgui_src_la_SOURCES, noinst_HEADERS): Remove
libgui/src/liboctgui-build-info.* files moved to libgui.
(libgui/src/liboctgui-build-info.cc): Delete rule.
* libinterp/module.mk (libinterp/liboctinterp-build-info.cc): Redefine using
$(build-info-commands).
* liboctave/module.mk (EXTRA_liboctave_liboctave_la_SOURCES): Delete variable
referencing unnecessary dummy source file.
(liboctave/liboctave-build-info.cc): Redefine using $(build-info-commands).
* src/module.mk (OCTAVE_GUI_CPPFLAGS): Include -I$(srcdir)/libgui in the list.
(src/octave-build-info.cc): Redefine using $(build-info-commands).
* libgui/liboctgui-build-info.h, libgui/liboctgui-build-info.in.cc: Move from
libgui/src.
* libgui/.dummy_force_cxx_link.cc, liboctave/.dummy_force_cxx_link.cc: Delete.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Sat, 22 Apr 2017 14:11:40 -0700 |
parents | libgui/src/liboctgui-build-info.h@092078913d54 |
children | 194eb4bd202b |
line wrap: on
line source
/* Copyright (C) 2016-2017 M. Muetzel This file is part of Octave. Octave 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. Octave 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 Octave; see the file COPYING. If not, see <http://www.gnu.org/licenses/>. */ #if ! defined (octave_liboctgui_build_info_h) #define octave_liboctgui_build_info_h 1 #include "octave-config.h" #include <ctime> #include <string> extern std::string liboctgui_hg_id (void); #endif