feat(slam): add cartographer_ros
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# Copyright 2018 The Cartographer Authors
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Files required for building Fontconfig with Bazel.
|
||||
|
||||
licenses(["notice"])
|
||||
|
||||
exports_files(
|
||||
[
|
||||
"fontconfig.BUILD",
|
||||
"config.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
+372
@@ -0,0 +1,372 @@
|
||||
/*
|
||||
* Copyright 2018 The Cartographer Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */
|
||||
|
||||
/* The normal alignment of `double', in bytes. */
|
||||
#define ALIGNOF_DOUBLE 8
|
||||
|
||||
/* The normal alignment of `void *', in bytes. */
|
||||
#define ALIGNOF_VOID_P 8
|
||||
|
||||
/* Use libxml2 instead of Expat */
|
||||
/* #undef ENABLE_LIBXML2 */
|
||||
|
||||
/* Additional font directories */
|
||||
#define FC_ADD_FONTS "yes"
|
||||
|
||||
/* Architecture prefix to use for cache file names */
|
||||
#define FC_ARCHITECTURE "elf64-x86-64"
|
||||
|
||||
/* System font directory */
|
||||
#define FC_DEFAULT_FONTS "/usr/share/fonts"
|
||||
|
||||
/* The type of len parameter of the gperf hash/lookup function */
|
||||
#define FC_GPERF_SIZE_T unsigned int
|
||||
|
||||
/* Define to nothing if C supports flexible array members, and to 1 if it does
|
||||
not. That way, with a declaration like `struct s { int n; double
|
||||
d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99
|
||||
compilers. When computing the size of such an object, don't use 'sizeof
|
||||
(struct s)' as it overestimates the size. Use 'offsetof (struct s, d)'
|
||||
instead. Don't use 'offsetof (struct s, d[0])', as this doesn't work with
|
||||
MSVC and with C++ compilers. */
|
||||
#define FLEXIBLE_ARRAY_MEMBER /**/
|
||||
|
||||
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
#define HAVE_DIRENT_H 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
|
||||
/* #undef HAVE_DOPRNT */
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#define HAVE_FCNTL_H 1
|
||||
|
||||
/* Define to 1 if you have the `fstatfs' function. */
|
||||
#define HAVE_FSTATFS 1
|
||||
|
||||
/* Define to 1 if you have the `fstatvfs' function. */
|
||||
#define HAVE_FSTATVFS 1
|
||||
|
||||
/* FT_Bitmap_Size structure includes y_ppem field */
|
||||
#define HAVE_FT_BITMAP_SIZE_Y_PPEM 1
|
||||
|
||||
/* Define to 1 if you have the `FT_Get_BDF_Property' function. */
|
||||
#define HAVE_FT_GET_BDF_PROPERTY 1
|
||||
|
||||
/* Define to 1 if you have the `FT_Get_Next_Char' function. */
|
||||
#define HAVE_FT_GET_NEXT_CHAR 1
|
||||
|
||||
/* Define to 1 if you have the `FT_Get_PS_Font_Info' function. */
|
||||
#define HAVE_FT_GET_PS_FONT_INFO 1
|
||||
|
||||
/* Define to 1 if you have the `FT_Get_X11_Font_Format' function. */
|
||||
#define HAVE_FT_GET_X11_FONT_FORMAT 1
|
||||
|
||||
/* Define to 1 if you have the `FT_Has_PS_Glyph_Names' function. */
|
||||
#define HAVE_FT_HAS_PS_GLYPH_NAMES 1
|
||||
|
||||
/* Define to 1 if you have the `FT_Select_Size' function. */
|
||||
#define HAVE_FT_SELECT_SIZE 1
|
||||
|
||||
/* Define to 1 if you have the `getexecname' function. */
|
||||
/* #undef HAVE_GETEXECNAME */
|
||||
|
||||
/* Define to 1 if you have the `getopt' function. */
|
||||
#define HAVE_GETOPT 1
|
||||
|
||||
/* Define to 1 if you have the `getopt_long' function. */
|
||||
#define HAVE_GETOPT_LONG 1
|
||||
|
||||
/* Define to 1 if you have the `getpagesize' function. */
|
||||
#define HAVE_GETPAGESIZE 1
|
||||
|
||||
/* Define to 1 if you have the `getprogname' function. */
|
||||
/* #undef HAVE_GETPROGNAME */
|
||||
|
||||
/* Have Intel __sync_* atomic primitives */
|
||||
#define HAVE_INTEL_ATOMIC_PRIMITIVES 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the `link' function. */
|
||||
#define HAVE_LINK 1
|
||||
|
||||
/* Define to 1 if you have the `lrand48' function. */
|
||||
#define HAVE_LRAND48 1
|
||||
|
||||
/* Define to 1 if you have the `lstat' function. */
|
||||
#define HAVE_LSTAT 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the `mkdtemp' function. */
|
||||
#define HAVE_MKDTEMP 1
|
||||
|
||||
/* Define to 1 if you have the `mkostemp' function. */
|
||||
#define HAVE_MKOSTEMP 1
|
||||
|
||||
/* Define to 1 if you have the `mkstemp' function. */
|
||||
#define HAVE_MKSTEMP 1
|
||||
|
||||
/* Define to 1 if you have a working `mmap' system call. */
|
||||
#define HAVE_MMAP 1
|
||||
|
||||
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
||||
/* #undef HAVE_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the 'posix_fadvise' function. */
|
||||
#define HAVE_POSIX_FADVISE 1
|
||||
|
||||
/* Have POSIX threads */
|
||||
#define HAVE_PTHREAD 1
|
||||
|
||||
/* Have PTHREAD_PRIO_INHERIT. */
|
||||
#define HAVE_PTHREAD_PRIO_INHERIT 1
|
||||
|
||||
/* Define to 1 if you have the `rand' function. */
|
||||
#define HAVE_RAND 1
|
||||
|
||||
/* Define to 1 if you have the `random' function. */
|
||||
#define HAVE_RANDOM 1
|
||||
|
||||
/* Define to 1 if you have the `random_r' function. */
|
||||
#define HAVE_RANDOM_R 1
|
||||
|
||||
/* Define to 1 if you have the `rand_r' function. */
|
||||
#define HAVE_RAND_R 1
|
||||
|
||||
/* Define to 1 if you have the `readlink' function. */
|
||||
#define HAVE_READLINK 1
|
||||
|
||||
/* Define to 1 if you have the <sched.h> header file. */
|
||||
/* #undef HAVE_SCHED_H */
|
||||
|
||||
/* Have sched_yield */
|
||||
/* #undef HAVE_SCHED_YIELD */
|
||||
|
||||
/* Have Solaris __machine_*_barrier and atomic_* operations */
|
||||
/* #undef HAVE_SOLARIS_ATOMIC_OPS */
|
||||
|
||||
/* 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 `d_type' is a member of `struct dirent'. */
|
||||
#define HAVE_STRUCT_DIRENT_D_TYPE 1
|
||||
|
||||
/* Define to 1 if `f_flags' is a member of `struct statfs'. */
|
||||
#define HAVE_STRUCT_STATFS_F_FLAGS 1
|
||||
|
||||
/* Define to 1 if `f_fstypename' is a member of `struct statfs'. */
|
||||
/* #undef HAVE_STRUCT_STATFS_F_FSTYPENAME */
|
||||
|
||||
/* Define to 1 if `f_basetype' is a member of `struct statvfs'. */
|
||||
/* #undef HAVE_STRUCT_STATVFS_F_BASETYPE */
|
||||
|
||||
/* Define to 1 if `f_fstypename' is a member of `struct statvfs'. */
|
||||
/* #undef HAVE_STRUCT_STATVFS_F_FSTYPENAME */
|
||||
|
||||
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_DIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/mount.h> header file. */
|
||||
#define HAVE_SYS_MOUNT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
/* #undef HAVE_SYS_NDIR_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */
|
||||
#define HAVE_SYS_PARAM_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/statfs.h> header file. */
|
||||
#define HAVE_SYS_STATFS_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/statvfs.h> header file. */
|
||||
#define HAVE_SYS_STATVFS_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 <sys/vfs.h> header file. */
|
||||
#define HAVE_SYS_VFS_H 1
|
||||
|
||||
/* Define to 1 if `usLowerOpticalPointSize' is a member of `TT_OS2'. */
|
||||
#define HAVE_TT_OS2_USLOWEROPTICALPOINTSIZE 1
|
||||
|
||||
/* Define to 1 if `usUpperOpticalPointSize' is a member of `TT_OS2'. */
|
||||
#define HAVE_TT_OS2_USUPPEROPTICALPOINTSIZE 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if you have the `vprintf' function. */
|
||||
#define HAVE_VPRINTF 1
|
||||
|
||||
/* Can use #warning in C files */
|
||||
#define HAVE_WARNING_CPP_DIRECTIVE 1
|
||||
|
||||
/* Use xmlparse.h instead of expat.h */
|
||||
/* #undef HAVE_XMLPARSE_H */
|
||||
|
||||
/* Define to 1 if you have the `XML_SetDoctypeDeclHandler' function. */
|
||||
#define HAVE_XML_SETDOCTYPEDECLHANDLER 1
|
||||
|
||||
/* Define to 1 if you have the `_mktemp_s' function. */
|
||||
/* #undef HAVE__MKTEMP_S */
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#define LT_OBJDIR ".libs/"
|
||||
|
||||
/* Name of package */
|
||||
#define PACKAGE "fontconfig"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT \
|
||||
"https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "fontconfig"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "fontconfig 2.11.94"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "fontconfig"
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "2.11.94"
|
||||
|
||||
/* Define to necessary symbol if this constant uses a non-standard name on
|
||||
your system. */
|
||||
/* #undef PTHREAD_CREATE_JOINABLE */
|
||||
|
||||
/* The size of `char', as computed by sizeof. */
|
||||
/* #undef SIZEOF_CHAR */
|
||||
|
||||
/* The size of `int', as computed by sizeof. */
|
||||
/* #undef SIZEOF_INT */
|
||||
|
||||
/* The size of `long', as computed by sizeof. */
|
||||
/* #undef SIZEOF_LONG */
|
||||
|
||||
/* The size of `short', as computed by sizeof. */
|
||||
/* #undef SIZEOF_SHORT */
|
||||
|
||||
/* The size of `void*', as computed by sizeof. */
|
||||
/* #undef SIZEOF_VOIDP */
|
||||
|
||||
/* The size of `void *', as computed by sizeof. */
|
||||
#define SIZEOF_VOID_P 8
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Use iconv. */
|
||||
#define USE_ICONV 0
|
||||
|
||||
/* Enable extensions on AIX 3, Interix. */
|
||||
#ifndef _ALL_SOURCE
|
||||
#define _ALL_SOURCE 1
|
||||
#endif
|
||||
/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE 1
|
||||
#endif
|
||||
/* Enable threading extensions on Solaris. */
|
||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||
#define _POSIX_PTHREAD_SEMANTICS 1
|
||||
#endif
|
||||
/* Enable extensions on HP NonStop. */
|
||||
#ifndef _TANDEM_SOURCE
|
||||
#define _TANDEM_SOURCE 1
|
||||
#endif
|
||||
/* Enable general extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
#define __EXTENSIONS__ 1
|
||||
#endif
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "2.11.94"
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||
#if defined __BIG_ENDIAN__
|
||||
#define WORDS_BIGENDIAN 1
|
||||
#endif
|
||||
#else
|
||||
#ifndef WORDS_BIGENDIAN
|
||||
/* # undef WORDS_BIGENDIAN */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Enable large inode numbers on Mac OS X 10.5. */
|
||||
#ifndef _DARWIN_USE_64_BIT_INODE
|
||||
#define _DARWIN_USE_64_BIT_INODE 1
|
||||
#endif
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
/* #undef _FILE_OFFSET_BITS */
|
||||
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
/* #undef _LARGE_FILES */
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
/* #undef _MINIX */
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
/* #undef _POSIX_1_SOURCE */
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
/* #undef _POSIX_SOURCE */
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
/* #undef const */
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
/* #undef inline */
|
||||
#endif
|
||||
|
||||
/* Define to `int' if <sys/types.h> does not define. */
|
||||
/* #undef pid_t */
|
||||
@@ -0,0 +1,130 @@
|
||||
# Copyright 2018 The Cartographer Authors
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Description:
|
||||
# Fontconfig is a library for font customization and configuration.
|
||||
|
||||
licenses(["notice"]) # BSD-like
|
||||
|
||||
genrule(
|
||||
name = "config_h",
|
||||
srcs = ["@com_github_googlecartographer_cartographer//bazel/third_party/fontconfig:config.h"],
|
||||
outs = ["fontconfig_internal/config.h"],
|
||||
cmd = "cp $< $@",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "fcalias",
|
||||
srcs = [
|
||||
"fontconfig/fontconfig.h",
|
||||
"src/fcdeprecate.h",
|
||||
"fontconfig/fcprivate.h",
|
||||
] + glob(["src/*.c"]),
|
||||
outs = [
|
||||
"src/fcalias.h",
|
||||
"src/fcaliastail.h",
|
||||
],
|
||||
cmd = """./$(location src/makealias) \
|
||||
$$(dirname $(location src/makealias)) \
|
||||
$(OUTS) \
|
||||
$(location fontconfig/fontconfig.h) \
|
||||
$(location src/fcdeprecate.h) \
|
||||
$(location fontconfig/fcprivate.h)""",
|
||||
tools = ["src/makealias"],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "fcftalias",
|
||||
srcs = ["fontconfig/fcfreetype.h"] + glob(["src/*.c"]),
|
||||
outs = [
|
||||
"src/fcftalias.h",
|
||||
"src/fcftaliastail.h",
|
||||
],
|
||||
cmd = """./$(location src/makealias) \
|
||||
$$(dirname $(location src/makealias)) \
|
||||
$(OUTS) \
|
||||
$(location fontconfig/fcfreetype.h)""",
|
||||
tools = ["src/makealias"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "fontconfig",
|
||||
srcs = [
|
||||
"fc-blanks/fcblanks.h",
|
||||
"fc-case/fccase.h",
|
||||
"fc-glyphname/fcglyphname.h",
|
||||
"fc-lang/fclang.h",
|
||||
"fontconfig/fcfreetype.h",
|
||||
"fontconfig/fcprivate.h",
|
||||
"src/fcarch.h",
|
||||
"src/fcatomic.c",
|
||||
"src/fcatomic.h",
|
||||
"src/fcblanks.c",
|
||||
"src/fccache.c",
|
||||
"src/fccfg.c",
|
||||
"src/fccharset.c",
|
||||
"src/fccompat.c",
|
||||
"src/fcdbg.c",
|
||||
"src/fcdefault.c",
|
||||
"src/fcdeprecate.h",
|
||||
"src/fcdir.c",
|
||||
"src/fcformat.c",
|
||||
"src/fcfreetype.c",
|
||||
"src/fcfs.c",
|
||||
"src/fcftint.h",
|
||||
"src/fcinit.c",
|
||||
"src/fcint.h",
|
||||
"src/fclang.c",
|
||||
"src/fclist.c",
|
||||
"src/fcmatch.c",
|
||||
"src/fcmatrix.c",
|
||||
"src/fcmutex.h",
|
||||
"src/fcname.c",
|
||||
"src/fcobjs.c",
|
||||
"src/fcobjs.h",
|
||||
"src/fcobjshash.h",
|
||||
"src/fcpat.c",
|
||||
"src/fcrange.c",
|
||||
"src/fcserialize.c",
|
||||
"src/fcstat.c",
|
||||
"src/fcstdint.h",
|
||||
"src/fcstr.c",
|
||||
"src/fcweight.c",
|
||||
"src/fcxml.c",
|
||||
"src/ftglue.c",
|
||||
"src/ftglue.h",
|
||||
":config_h",
|
||||
":fcalias",
|
||||
":fcftalias",
|
||||
],
|
||||
hdrs = [
|
||||
"fontconfig/fontconfig.h",
|
||||
],
|
||||
copts = [
|
||||
"-Iexternal/org_freedesktop_fontconfig/src",
|
||||
"-I$(GENDIR)/external/org_freedesktop_fontconfig/src",
|
||||
"-I$(GENDIR)/external/org_freedesktop_fontconfig/fontconfig_internal",
|
||||
"-DFC_CACHEDIR='\"/var/cache/fontconfig\"'",
|
||||
"-DFONTCONFIG_PATH='\"/etc/fonts\"'",
|
||||
"-DHAVE_CONFIG_H",
|
||||
"-Wno-strict-aliasing",
|
||||
],
|
||||
includes = ["."],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@com_github_libexpat_libexpat//:expat",
|
||||
"@net_zlib_zlib//:zlib",
|
||||
"@org_freetype_freetype2//:freetype2",
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user