Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [linux-distros-dev] Unit test framework for C++ / SCons build plugin

On Thursday 02 April 2009, you wrote:
> Hi Lothar,
>
> On Wed, 2009-04-01 at 08:15 -0700, Lothar Werzinger wrote:
> > On Wednesday 01 April 2009, Andrew Overholt wrote:
> > > Hi Lothar,
> > >
> > > On Tue, 2009-03-31 at 11:18 -0700, Lothar Werzinger wrote:
> > > > The unit test framework is BSD licensed.
> > >
> > > Would it make sense to re-license it to EPL?  I think it has to be
> > > EPL'd to be hosted at eclipse.org (but I could be wrong here).
> >
> > I think BSD is OK, too but you may check. I could license it under both
> > licenses. The main reason it's BSD is that being a template library I
> > wanted the license as open as possible.
>
> I asked the Eclipse legal team about the license and they said:
>
> "Any source code put into our SCMs has to be EPL. We have to get board
> approval for any dual-licensing scheme.
>
> FWIW, BSD is a template license. You'll have to post the actual license
> they're planning to use.

I can release the unit test framework with any license, as I wrote it. I 
certainly can relicense it to be EPL.

> I took a quick look through the file attached to the first message and
> found that SconsBuildDoxygen.py states that is it GPL in the header."

Actually it's LGPL. The doxygen support was not developed by me (I did just 
some minor modifications to use it from my infrastructure the diff is 
attached).

the original code can be downloded at 
http://www.scons.org/wiki/DoxygenBuilder?action=AttachFile&do=view&target=doxygen.py

As it came with the LGPL license I am not at the liberty to relicense it. But 
it would be easy to remove the capability to generate doxygen documentation 
from the plugin.

> So I guess the unit test framework will be more difficult.

I don't see any problems with the unit test framework, as I write it and I can 
relicense it to EPL.

> The scons builder is pure EPL, right?
Yes, except for the above mentioned template that is used to generate doxygen 
documentation which is LGPL.

> Andrew


Lothar
-- 
Lothar Werzinger Dipl.-Ing. Univ.
Director of Technology
Tradescape Inc. - Enabling Efficient Digital Marketplaces
1754 Technology Drive, Suite 128
San Jose, CA 95110
web: http://www.tradescape.biz
--- DoxygenBuilder	2009-04-02 13:28:30.000000000 -0700
+++ org.nic_nac_project.lothar.sconsbuilder/templates/SconsBuilderDoxygen.py	2009-02-25 11:07:32.000000000 -0800
@@ -3,6 +3,7 @@
 # Astxx, the Asterisk C++ API and Utility Library.
 # Copyright (C) 2005, 2006  Matthew A. Nicholson
 # Copyright (C) 2006  Tim Blechmann
+# Copyright (C) 2008  Lothar Werzinger
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,6 +23,17 @@
 import glob
 from fnmatch import fnmatch
 
+
+def DoxygenAction(target, source, env):
+  """The actual action that executed doxygen
+  """
+    
+  #print '%s %s' % (env['DOXYGEN'], source[0].path)
+  os.system('%s %s' % (env['DOXYGEN'], source[0].path))
+  
+  return None
+
+
 def DoxyfileParse(file_contents):
    """
    Parse a Doxygen source file and return a dictionary of all the values.
@@ -182,7 +194,7 @@
       "HTML": ("YES", "html"),
       "LATEX": ("YES", "latex"),
       "RTF": ("NO", "rtf"),
-      "MAN": ("YES", "man"),
+      "MAN": ("NO", "man"),
       "XML": ("NO", "xml"),
    }
 
@@ -230,7 +242,7 @@
 
    import SCons.Builder
    doxyfile_builder = SCons.Builder.Builder(
-      action = "cd ${SOURCE.dir}  &&  ${DOXYGEN} ${SOURCE.file}",
+      action = DoxygenAction,
       emitter = DoxyEmitter,
       target_factory = env.fs.Entry,
       single_source = True,

Back to the top