tags:

views:

32

answers:

1

Is it acceptable to use code from one project with a Mozilla Public License in another project, also with the same license?

The code I would like to use is some functions for alpha blending colors/pixels. I could re-write/re-implement the code, but that would require learning assembly. While not a bad thing, I would rather focus on higher level code and worry about assembly level code/optimizations when the code proves useful.

A: 

Yes.

From thew MPL FAQ:

I want to distribute a modified version of Firefox (or other MPL-covered code). What do have to do?

You must

  • add a conspicuous notice stating where to find the Modifications used to make the binary you are distributing. If you wish, you may point at mozilla.org forthe base code and then ship diffs between our version and yours.
  • if your documentation has a section dealing with licensing or the recipient's rights to the code, put a copy of the MPL in it.

In addition, there are several obligations relating to your Modifications. You must

  • have the right to distribute your Modifications
  • add a correctly-completed MPL header to any new files which are Modifications [3.5]
  • make your Modifications available in source code form, under the MPL
  • make your Modifications available on the same media as the executable version, or on the Net as long as they are available for 12 months.
  • document what your Modifications are (one way to meet this requirement is to ship them as diffs)
  • include a statement that your code is derived from the particular piece of MPLed code you started with (e.g. Firefox), and a list of the names of the Initial Developers of that code [3.3].
Adrian Archer