mirror of
https://github.com/GNOME/gedit
synced 2024-06-28 14:04:26 +00:00
Get rid of HAVE_CONFIG_H
It's specific to Autotools.
This commit is contained in:
parent
83e3de9c71
commit
cf472fd724
|
@ -106,12 +106,8 @@ libgedit_sources = files(
|
|||
'gedit-window.c',
|
||||
)
|
||||
|
||||
libgedit_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
]
|
||||
|
||||
libgedit_link_args = [
|
||||
]
|
||||
libgedit_c_args = []
|
||||
libgedit_link_args = []
|
||||
|
||||
libgedit_deps = [
|
||||
glib_dep,
|
||||
|
@ -291,9 +287,7 @@ gedit_sources = [
|
|||
'gedit.c',
|
||||
]
|
||||
|
||||
gedit_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
]
|
||||
gedit_c_args = []
|
||||
|
||||
if windowing_target == 'quartz'
|
||||
gedit_c_args += [
|
||||
|
|
|
@ -15,9 +15,7 @@
|
|||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-check-update-plugin.h"
|
||||
|
||||
|
|
|
@ -7,16 +7,11 @@ libcheckupdate_deps = [
|
|||
libsoup_dep,
|
||||
]
|
||||
|
||||
libcheckupdate_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
]
|
||||
|
||||
libcheckupdate_sha = shared_module(
|
||||
'checkupdate',
|
||||
sources: libcheckupdate_sources,
|
||||
include_directories: root_include_dir,
|
||||
dependencies: libcheckupdate_deps,
|
||||
c_args: libcheckupdate_c_args,
|
||||
install: true,
|
||||
install_dir: join_paths(
|
||||
pkglibdir,
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-docinfo-plugin.h"
|
||||
|
||||
|
|
|
@ -6,10 +6,6 @@ libdocinfo_deps = [
|
|||
libgedit_dep,
|
||||
]
|
||||
|
||||
libdocinfo_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
]
|
||||
|
||||
subdir('resources')
|
||||
|
||||
libdocinfo_sha = shared_module(
|
||||
|
@ -17,7 +13,6 @@ libdocinfo_sha = shared_module(
|
|||
sources: libdocinfo_sources,
|
||||
include_directories: root_include_dir,
|
||||
dependencies: libdocinfo_deps,
|
||||
c_args: libdocinfo_c_args,
|
||||
install: true,
|
||||
install_dir: join_paths(
|
||||
pkglibdir,
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <glib/gi18n-lib.h>
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <glib/gi18n-lib.h>
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include <glib/gi18n-lib.h>
|
||||
#include <gedit/gedit-utils.h>
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
|
@ -23,10 +23,6 @@ libfilebrowser_deps = [
|
|||
libgedit_dep,
|
||||
]
|
||||
|
||||
libfilebrowser_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
]
|
||||
|
||||
subdir('messages')
|
||||
|
||||
libfilebrowser_register_enums = gnome.mkenums(
|
||||
|
@ -69,7 +65,6 @@ libfilebrowser_sha = shared_module(
|
|||
sources: libfilebrowser_sources,
|
||||
include_directories: root_include_dir,
|
||||
dependencies: libfilebrowser_deps,
|
||||
c_args: libfilebrowser_c_args,
|
||||
install: true,
|
||||
install_dir: join_paths(
|
||||
pkglibdir,
|
||||
|
|
|
@ -21,9 +21,7 @@
|
|||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-file-browser-message-activation.h"
|
||||
|
||||
|
|
|
@ -21,9 +21,7 @@
|
|||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-file-browser-message-add-filter.h"
|
||||
|
||||
|
|
|
@ -22,9 +22,7 @@
|
|||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-file-browser-message-extend-context-menu.h"
|
||||
#include <gedit/gedit-menu-extension.h>
|
||||
|
|
|
@ -21,9 +21,7 @@
|
|||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-file-browser-message-get-root.h"
|
||||
#include "gio/gio.h"
|
||||
|
|
|
@ -21,9 +21,7 @@
|
|||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-file-browser-message-get-view.h"
|
||||
#include "plugins/filebrowser/gedit-file-browser-view.h"
|
||||
|
|
|
@ -22,9 +22,7 @@
|
|||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-file-browser-message-id-location.h"
|
||||
#include "gio/gio.h"
|
||||
|
|
|
@ -21,9 +21,7 @@
|
|||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-file-browser-message-id.h"
|
||||
|
||||
|
|
|
@ -21,9 +21,7 @@
|
|||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-file-browser-message-set-emblem.h"
|
||||
|
||||
|
|
|
@ -22,9 +22,7 @@
|
|||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-file-browser-message-set-markup.h"
|
||||
|
||||
|
|
|
@ -21,9 +21,7 @@
|
|||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-file-browser-message-set-root.h"
|
||||
#include "gio/gio.h"
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include <glib/gi18n-lib.h>
|
||||
#include <gmodule.h>
|
||||
|
|
|
@ -7,16 +7,11 @@ libmodelines_deps = [
|
|||
libgedit_dep,
|
||||
]
|
||||
|
||||
libmodelines_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
]
|
||||
|
||||
libmodelines_sha = shared_module(
|
||||
'modelines',
|
||||
sources: libmodelines_sources,
|
||||
include_directories: root_include_dir,
|
||||
dependencies: libmodelines_deps,
|
||||
c_args: libmodelines_c_args,
|
||||
install: true,
|
||||
install_dir: join_paths(
|
||||
pkglibdir,
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
|
|
@ -6,16 +6,11 @@ libquickhighlight_deps = [
|
|||
libgedit_dep,
|
||||
]
|
||||
|
||||
libquickhighlight_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
]
|
||||
|
||||
libquickhighlight_sha = shared_module(
|
||||
'quickhighlight',
|
||||
sources: libquickhighlight_sources,
|
||||
include_directories: root_include_dir,
|
||||
dependencies: libquickhighlight_deps,
|
||||
c_args: libquickhighlight_c_args,
|
||||
install: true,
|
||||
install_dir: join_paths(
|
||||
pkglibdir,
|
||||
|
|
|
@ -18,9 +18,7 @@
|
|||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include "gedit-sort-plugin.h"
|
||||
|
||||
|
|
|
@ -6,10 +6,6 @@ libsort_deps = [
|
|||
libgedit_dep,
|
||||
]
|
||||
|
||||
libsort_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
]
|
||||
|
||||
subdir('resources')
|
||||
|
||||
libsort_sha = shared_module(
|
||||
|
@ -17,7 +13,6 @@ libsort_sha = shared_module(
|
|||
sources: libsort_sources,
|
||||
include_directories: root_include_dir,
|
||||
dependencies: libsort_deps,
|
||||
c_args: libsort_c_args,
|
||||
install: true,
|
||||
install_dir: join_paths(
|
||||
pkglibdir,
|
||||
|
|
|
@ -8,10 +8,6 @@ libspell_deps = [
|
|||
gspell_dep,
|
||||
]
|
||||
|
||||
libspell_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
]
|
||||
|
||||
subdir('resources')
|
||||
|
||||
libspell_sha = shared_module(
|
||||
|
@ -19,7 +15,6 @@ libspell_sha = shared_module(
|
|||
sources: libspell_sources,
|
||||
include_directories: root_include_dir,
|
||||
dependencies: libspell_deps,
|
||||
c_args: libspell_c_args,
|
||||
install: true,
|
||||
install_dir: join_paths(
|
||||
pkglibdir,
|
||||
|
|
|
@ -17,9 +17,7 @@
|
|||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <glib/gi18n-lib.h>
|
||||
|
|
|
@ -6,10 +6,6 @@ libtime_deps = [
|
|||
libgedit_dep,
|
||||
]
|
||||
|
||||
libtime_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
]
|
||||
|
||||
gnome.mkenums(
|
||||
'org.gnome.gedit.plugins.time.enums.xml',
|
||||
sources: libtime_sources,
|
||||
|
@ -33,7 +29,6 @@ libtime_sha = shared_module(
|
|||
sources: libtime_sources,
|
||||
include_directories: root_include_dir,
|
||||
dependencies: libtime_deps,
|
||||
c_args: libtime_c_args,
|
||||
install: true,
|
||||
install_dir: join_paths(
|
||||
pkglibdir,
|
||||
|
|
|
@ -585,11 +585,7 @@ class Message:
|
|||
elif options.lgpl:
|
||||
self._write_lgpl(options, fname)
|
||||
|
||||
self._write("#ifdef HAVE_CONFIG_H")
|
||||
self._write("#include <config.h>")
|
||||
self._write("#endif")
|
||||
self._write()
|
||||
|
||||
self._write('#include "config.h"')
|
||||
self._write('#include "%s.h"', self.filename)
|
||||
|
||||
for inc in self.includes:
|
||||
|
|
Loading…
Reference in New Issue
Block a user