$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: grafikrobot_at_[hidden]
Date: 2008-01-04 20:14:43
Author: grafik
Date: 2008-01-04 20:14:43 EST (Fri, 04 Jan 2008)
New Revision: 42464
URL: http://svn.boost.org/trac/boost/changeset/42464
Log:
Add compiling of lib3ds library.
Added:
   sandbox/tools/build_extensions/example/lib3ds/
      - copied from r42461, /sandbox/tools/build_extensions/example/expat/
   sandbox/tools/build_extensions/example/lib3ds/build.jam
      - copied, changed from r42463, /sandbox/tools/build_extensions/example/expat/build.jam
   sandbox/tools/build_extensions/ext/lib3ds.jam   (contents, props changed)
Text files modified: 
   sandbox/tools/build_extensions/example/lib3ds/build.jam |     8 +++-----                                
   1 files changed, 3 insertions(+), 5 deletions(-)
Copied: sandbox/tools/build_extensions/example/lib3ds/build.jam (from r42463, /sandbox/tools/build_extensions/example/expat/build.jam)
==============================================================================
--- /sandbox/tools/build_extensions/example/expat/build.jam	(original)
+++ sandbox/tools/build_extensions/example/lib3ds/build.jam	2008-01-04 20:14:43 EST (Fri, 04 Jan 2008)
@@ -1,15 +1,13 @@
-#~ Copyright 2006 Redshift Software, Inc.
-#~ Copyright 2007 Couch World Games Inc.
+#~ Copyright Rene Rivera 2008
 #~ Distributed under 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)
 
-#~ using expat : 2.0.0 : $(PACKAGES)/expat-2.0.0 ;
-using expat : : $(PACKAGES)/expat-2.0.0 ;
+using lib3ds : : $(PACKAGES)/lib3ds ;
 
 import stage ;
 
 install stage-lib
-    : /ext/expat//expat
+    : /ext/lib3ds//3ds
     : <location>$(STAGE_ROOT)/lib <install-dependencies>on <install-type>LIB
     ;
Added: sandbox/tools/build_extensions/ext/lib3ds.jam
==============================================================================
--- (empty file)
+++ sandbox/tools/build_extensions/ext/lib3ds.jam	2008-01-04 20:14:43 EST (Fri, 04 Jan 2008)
@@ -0,0 +1,38 @@
+#~ Copyright Rene Rivera 2008
+#~ Distributed under 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)
+
+### Support for 3DS library.
+### <http://lib3ds.sourceforge.net/>.
+###
+###     /ext/lib3ds//3ds
+
+import extension ;
+
+extension.declare lib3ds ;
+
+rule init ( version ? : location : options * )
+{
+    version ?= default ;
+    local requirements =
+        [ extension.define lib3ds $(version) : $(location) : $(options) ]
+        <lib3ds-version>$(version)
+        <lib3ds-location>$(location)
+        <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
+        <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
+        ;
+    local common-requirements =
+        <include>$(location)/src
+        ;
+    
+    lib 3ds
+        :   [ glob $(location)/src/*.c ]
+        :   $(requirements) $(common-requirements)
+            #~ <location-prefix>lib3ds
+            <link>shared:<define>LIB3DS_EXPORTS
+            <link>shared
+        :
+        :   $(common-requirements)
+        ;
+}