remove hardcoded cmph/config.h

This commit is contained in:
Motiejus Jakštys 2023-06-20 12:51:10 +03:00
parent a447e7fdf4
commit f723d48fe2
2 changed files with 24 additions and 87 deletions

View File

@ -48,7 +48,30 @@ pub fn build(b: *zbs.Builder) void {
cmph.compress_debug_sections = .zlib;
cmph.omit_frame_pointer = true;
cmph.addIncludePath("deps/cmph/src");
cmph.addIncludePath("include/deps/cmph");
cmph.addConfigHeader(b.addConfigHeader(.{}, .{
.HAVE_DLFCN_H = true,
.HAVE_GETOPT_H = true,
.HAVE_INTTYPES_H = true,
.HAVE_MATH_H = true,
.HAVE_MEMORY_H = true,
.HAVE_STDINT_H = true,
.HAVE_STDLIB_H = true,
.HAVE_STRINGS_H = true,
.HAVE_STRING_H = true,
.HAVE_SYS_STAT_H = true,
.HAVE_SYS_TYPES_H = true,
.HAVE_UNISTD_H = true,
.LT_OBJDIR = ".libs/",
.PACKAGE = "cmph",
.PACKAGE_BUGREPORT = "",
.PACKAGE_NAME = "cmph",
.PACKAGE_STRING = "cmph 2.0.2",
.PACKAGE_TARNAME = "cmph",
.PACKAGE_URL = "",
.PACKAGE_VERSION = "2.0.2",
.STDC_HEADERS = 1,
.VERSION = "2.0.2",
}));
const bdz = b.addStaticLibrary(.{
.name = "bdz",

View File

@ -1,86 +0,0 @@
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <getopt.h> header file. */
#define HAVE_GETOPT_H 1
/* Define to 1 if you have the <hopscotch_map.h> header file. */
/* #undef HAVE_HOPSCOTCH_MAP_H */
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `check' library (-lcheck). */
/* #undef HAVE_LIBCHECK */
/* Define to 1 if you have the <math.h> header file. */
#define HAVE_MATH_H 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if g++ supports C++0x features. */
/* #undef HAVE_STDCXX_0X */
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#define LT_OBJDIR ".libs/"
/* Name of package */
#define PACKAGE "cmph"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME "cmph"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "cmph 2.0.2"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "cmph"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION "2.0.2"
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "2.0.2"
/* Number of bits in a file offset, on hosts where this is settable. */
/* #undef _FILE_OFFSET_BITS */
/* Define to make fseeko etc. visible, on some hosts. */
/* #undef _LARGEFILE_SOURCE */
/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */