Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Feature #779742 ยป 0011-meson-Add-initial-files.patch

Marko Lindqvist, 2018-10-15 02:44 PM

View differences:

gen_headers/meson_fc_config.h.in
#include "freeciv_config.h"
#define VERSION_STRING "@VERSION_STRING@"
#define LOCALEDIR "@LOCALEDIR@"
#define BUG_URL "https://www.hostedredmine.com/projects/freeciv"
#define DATASUBDIR "@DATASUBDIR@"
#define HAVE_ARPA_INET_H
#define HAVE_NETDB_H
#define HAVE_LIBGEN_H
gen_headers/meson_freeciv_config.h.in
/**********************************************************************
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
This program 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 2, or (at your option)
any later version.
This program 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.
***********************************************************************/
/* This header is generated from gen_headers/meson_freeciv_config.h.in.
* It contains values to specific freeciv build, but only such
* values that should not conflict with configuration headers from
* other autotools projects. This is meant to be usable for external
* projects building against some freeciv components. */
#ifndef FC__FREECIV_CONFIG_H
#define FC__FREECIV_CONFIG_H
/* Use pthreads as thread implementation */
#define FREECIV_HAVE_PTHREAD
/* Has thread condition variable implementation */
#define FREECIV_HAVE_THREAD_COND
/* sys/socket.h available */
#define FREECIV_HAVE_SYS_SOCKET_H
/* Max number of AI modules */
#define FREECIV_AI_MOD_LAST @FREECIV_AI_MOD_LAST@
/* Have socklen_t type defined */
#define FREECIV_HAVE_SOCKLEN_T
/* netinet/in.h available */
#define FREECIV_HAVE_NETINET_IN_H
/* Location for freeciv to store its information */
#define FREECIV_STORAGE_DIR "@FREECIV_STORAGE_DIR@"
/* unistd.h available */
#define FREECIV_HAVE_UNISTD_H
/* dirent.h available */
#define FREECIV_HAVE_DIRENT_H
/* sys/types.h available */
#define FREECIV_HAVE_SYS_TYPES_H
/* sys/select.h available */
#define FREECIV_HAVE_SYS_SELECT_H
/* IPv6 Support built in */
#define FREECIV_IPV6_SUPPORT
/* inttypes.h available */
#define FREECIV_HAVE_INTTYPES_H
#endif /* FC__FREECIV_CONFIG_H */
meson.build
project('freeciv', 'c')
priv_conf_data = configuration_data()
pub_conf_data = configuration_data()
priv_conf_data.set('VERSION_STRING', '3.0.91-dev')
pub_conf_data.set('FREECIV_AI_MOD_LAST', 3)
priv_conf_data.set('LOCALEDIR',
join_paths(get_option('prefix'),
get_option('datadir'), 'locale'))
pub_conf_data.set('FREECIV_STORAGE_DIR', '~/.freeciv')
priv_conf_data.set('DATASUBDIR', 'dev')
configure_file(input : 'gen_headers/meson_fc_config.h.in',
output : 'fc_config.h',
configuration: priv_conf_data)
configure_file(input : 'gen_headers/meson_freeciv_config.h.in',
output : 'freeciv_config.h',
configuration: pub_conf_data)
add_global_arguments('-DHAVE_CONFIG_H',
language: 'c')
c_compiler = meson.get_compiler('c')
inc = include_directories('utility', 'common', 'common/networking')
library('freeciv',
'utility/astring.c',
'utility/bitvector.c',
'utility/bugs.c',
'utility/capability.c',
'utility/deprecations.c',
'utility/distribute.c',
'utility/fcbacktrace.c',
'utility/fc_cmdline.c',
'utility/fc_dirent.c',
'utility/fciconv.c',
'utility/fcintl.c',
'utility/fcthread.c',
'utility/fc_utf8.c',
'utility/genhash.c',
'utility/genlist.c',
'utility/inputfile.c',
'utility/ioz.c',
'utility/iterator.c',
'utility/log.c',
'utility/md5.c',
'utility/mem.c',
'utility/netfile.c',
'utility/netintf.c',
'utility/rand.c',
'utility/registry.c',
'utility/registry_ini.c',
'utility/registry_xml.c',
'utility/section_file.c',
'utility/shared.c',
'utility/string_vector.c',
'utility/support.c',
'utility/timing.c',
include_directories : inc,
dependencies: [c_compiler.find_library('libicuuc'),
c_compiler.find_library('m'),
c_compiler.find_library('libcurl'),
dependency('threads')]
)
    (1-1/1)