From 7be5add68882cb2434384b2980990be34a129b27 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Sat, 20 Dec 2008 20:34:32 +0100 Subject: [PATCH] Move LUABIND_BUILDING define from Jamroot to source files. It's a lot better to just define this at the top of every source file. It simplifies for people using other build systems. --- Jamroot | 3 +-- src/class.cpp | 2 ++ src/class_info.cpp | 2 ++ src/class_registry.cpp | 2 ++ src/class_rep.cpp | 2 ++ src/create_class.cpp | 2 ++ src/error.cpp | 2 ++ src/exception_handler.cpp | 2 +- src/find_best_match.cpp | 2 ++ src/function.cpp | 2 +- src/implicit_cast.cpp | 2 ++ src/link_compatibility.cpp | 2 ++ src/object_rep.cpp | 2 ++ src/open.cpp | 2 ++ src/overload_rep.cpp | 2 ++ src/pcall.cpp | 2 ++ src/ref.cpp | 2 ++ src/scope.cpp | 2 ++ src/stack_content_by_name.cpp | 2 ++ src/weak_ref.cpp | 2 ++ src/wrapper_base.cpp | 2 ++ 21 files changed, 39 insertions(+), 4 deletions(-) diff --git a/Jamroot b/Jamroot index 614feda..a8c999d 100755 --- a/Jamroot +++ b/Jamroot @@ -139,8 +139,7 @@ usage-requirements = lib luabind : src/$(SOURCES) # requirements - : LUABIND_BUILDING - . $(BOOST_ROOT) + : . $(BOOST_ROOT) $(usage-requirements) # default-build : diff --git a/src/class.cpp b/src/class.cpp index afcdd93..5568c9b 100755 --- a/src/class.cpp +++ b/src/class.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/class_info.cpp b/src/class_info.cpp index 044a35b..3a8bc5e 100755 --- a/src/class_info.cpp +++ b/src/class_info.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/class_registry.cpp b/src/class_registry.cpp index eb74a78..893a016 100755 --- a/src/class_registry.cpp +++ b/src/class_registry.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/class_rep.cpp b/src/class_rep.cpp index e064271..3655cb4 100755 --- a/src/class_rep.cpp +++ b/src/class_rep.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/create_class.cpp b/src/create_class.cpp index 27657f4..7a97bb3 100755 --- a/src/create_class.cpp +++ b/src/create_class.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/error.cpp b/src/error.cpp index 09928fc..bae7964 100755 --- a/src/error.cpp +++ b/src/error.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include diff --git a/src/exception_handler.cpp b/src/exception_handler.cpp index 4e9d028..c02a737 100644 --- a/src/exception_handler.cpp +++ b/src/exception_handler.cpp @@ -2,7 +2,7 @@ // subject to the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#define LUABIND_SOURCE +#define LUABIND_BUILDING #include #include diff --git a/src/find_best_match.cpp b/src/find_best_match.cpp index 80d925c..e10afc4 100755 --- a/src/find_best_match.cpp +++ b/src/find_best_match.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/function.cpp b/src/function.cpp index 8238b52..eedac91 100644 --- a/src/function.cpp +++ b/src/function.cpp @@ -2,7 +2,7 @@ // subject to the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#define LUABIND_SOURCE +#define LUABIND_BUILDING #include #include diff --git a/src/implicit_cast.cpp b/src/implicit_cast.cpp index 22bcbcb..226cd3a 100755 --- a/src/implicit_cast.cpp +++ b/src/implicit_cast.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/link_compatibility.cpp b/src/link_compatibility.cpp index d22c68b..515e0e3 100755 --- a/src/link_compatibility.cpp +++ b/src/link_compatibility.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include namespace luabind { namespace detail diff --git a/src/object_rep.cpp b/src/object_rep.cpp index b91f7fa..c4954c8 100755 --- a/src/object_rep.cpp +++ b/src/object_rep.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/open.cpp b/src/open.cpp index d77bd05..ae5a386 100755 --- a/src/open.cpp +++ b/src/open.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/overload_rep.cpp b/src/overload_rep.cpp index a4417ff..9bddbcd 100644 --- a/src/overload_rep.cpp +++ b/src/overload_rep.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include namespace luabind { namespace detail diff --git a/src/pcall.cpp b/src/pcall.cpp index 6b284e5..66dbeaa 100755 --- a/src/pcall.cpp +++ b/src/pcall.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include #include diff --git a/src/ref.cpp b/src/ref.cpp index f227fe2..22c5838 100755 --- a/src/ref.cpp +++ b/src/ref.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include #include diff --git a/src/scope.cpp b/src/scope.cpp index 73ccfdf..0050a91 100755 --- a/src/scope.cpp +++ b/src/scope.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/stack_content_by_name.cpp b/src/stack_content_by_name.cpp index e1956c5..bd4f8b9 100755 --- a/src/stack_content_by_name.cpp +++ b/src/stack_content_by_name.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/weak_ref.cpp b/src/weak_ref.cpp index 9eab9bf..8258bfa 100755 --- a/src/weak_ref.cpp +++ b/src/weak_ref.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include diff --git a/src/wrapper_base.cpp b/src/wrapper_base.cpp index 1148f8a..9fb54a5 100755 --- a/src/wrapper_base.cpp +++ b/src/wrapper_base.cpp @@ -20,6 +20,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE // OR OTHER DEALINGS IN THE SOFTWARE. +#define LUABIND_BUILDING + #include #include #include -- 2.11.4.GIT