Skip to content

Commit 1355d3c

Browse files
committed
Add all the C++ sources for the library proper (no unit tests)
These are taken and adapted from the MrDocs repository, commit 88954d7f00b1d7fb8de8824e422ddc8fd7081f39.
1 parent 59525ed commit 1355d3c

32 files changed

+18644
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
//
2+
// Copyright (c) 2023 Vinnie Falco ([email protected])
3+
//
4+
// Distributed under the Boost Software License, Version 1.0.
5+
// (See accompanying file LICENSE_1_0.txt or copy at
6+
// https://www.boost.org/LICENSE_1_0.txt)
7+
//
8+
// Official repository: https://github.com/cppalliance/handlebars
9+
//
10+
11+
#ifndef BOOST_HANDLEBARS_CONFIG_HPP
12+
#define BOOST_HANDLEBARS_CONFIG_HPP
13+
14+
/*
15+
Platform-specific things, and stuff
16+
that is dependent on the toolchain.
17+
*/
18+
19+
namespace boost {
20+
namespace handlebars {
21+
22+
//------------------------------------------------
23+
//
24+
// Shared Libraries
25+
//
26+
//------------------------------------------------
27+
28+
// static linking
29+
#if defined(BOOST_HANDLEBARS_STATIC_LINK)
30+
# define BOOST_HANDLEBARS_DECL
31+
# define BOOST_HANDLEBARS_VISIBLE
32+
33+
// MSVC
34+
#elif defined(_MSC_VER)
35+
# define BOOST_HANDLEBARS_SYMBOL_EXPORT __declspec(dllexport)
36+
# define BOOST_HANDLEBARS_SYMBOL_IMPORT __declspec(dllimport)
37+
# if defined(BOOST_HANDLEBARS_BUILD) // building the library
38+
# define BOOST_HANDLEBARS_DECL BOOST_HANDLEBARS_SYMBOL_EXPORT
39+
# else
40+
# define BOOST_HANDLEBARS_DECL BOOST_HANDLEBARS_SYMBOL_IMPORT
41+
# endif
42+
# define BOOST_HANDLEBARS_VISIBLE
43+
44+
// (unknown)
45+
#elif defined(__GNUC__)
46+
# if defined(BOOST_HANDLEBARS_BUILD) // building the library
47+
# define BOOST_HANDLEBARS_DECL
48+
# else
49+
# define BOOST_HANDLEBARS_DECL __attribute__((__visibility__("default")))
50+
#endif
51+
# define BOOST_HANDLEBARS_VISIBLE __attribute__((__visibility__("default")))
52+
#else
53+
# error unknown platform for dynamic linking
54+
#endif
55+
56+
//------------------------------------------------
57+
58+
#ifndef FMT_CONSTEVAL
59+
# if !defined(__GNUC__) && defined(_MSC_VER)
60+
# define FMT_CONSTEVAL
61+
# endif
62+
#endif
63+
64+
#if ! defined(__x86_64__) && ! defined(_WIN64) && ! defined(__aarch64__)
65+
# error Handlebars requires a 64-bit architecture
66+
#endif
67+
68+
#ifndef BOOST_HANDLEBARS_NO_UNIQUE_ADDRESS
69+
# if defined(__cpp_lib_no_unique_address)
70+
# define BOOST_HANDLEBARS_NO_UNIQUE_ADDRESS [[no_unique_address]]
71+
# else
72+
# define BOOST_HANDLEBARS_NO_UNIQUE_ADDRESS
73+
# endif
74+
#endif
75+
76+
} // handlebars
77+
} // boost
78+
79+
#endif

include/boost/handlebars/dom.hpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// Copyright (c) 2023 Vinnie Falco ([email protected])
3+
//
4+
// Distributed under the Boost Software License, Version 1.0.
5+
// (See accompanying file LICENSE_1_0.txt or copy at
6+
// https://www.boost.org/LICENSE_1_0.txt)
7+
//
8+
// Official repository: https://github.com/cppalliance/handlebars
9+
//
10+
11+
#ifndef BOOST_HANDLEBARS_DOM_HPP
12+
#define BOOST_HANDLEBARS_DOM_HPP
13+
14+
#include <boost/handlebars/dom/value.hpp>
15+
16+
#endif

0 commit comments

Comments
 (0)