Copyright question

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
Post Reply
Rohit Agarwal
Earned some good credits
Earned some good credits
Posts: 119
Joined: Wed May 19, 2021 11:17 pm
Contact:

Copyright question

Post by Rohit Agarwal »

If I want to post some code so it can be used with the same (open and free) terms and conditions as wxWidgets,
what is the recommended way of declaring such copyright terms?
Do you place a copyright message in the source code?
Where can I find the message used by wxWidgets?
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Copyright question

Post by doublemax »

The wxWidgets/wxWindows licence is part of the repo:
https://github.com/wxWidgets/wxWidgets/ ... icence.txt

And all source files contain a header like this:

Code: Select all

/////////////////////////////////////////////////////////////////////////////
// Name:        src/common/any.cpp
// Purpose:     wxAny class, container for any type
// Author:      Jaakko Salli
// Modified by:
// Created:     07/05/2009
// Copyright:   (c) wxWidgets team
// Licence:     wxWindows licence
/////////////////////////////////////////////////////////////////////////////
(wxWidgets was called wxWindows in the beginning, but Microsoft didn't like that, so it was renamed. For whatever reason, the name of the licence remained "wxWindows".)
Use the source, Luke!
Rohit Agarwal
Earned some good credits
Earned some good credits
Posts: 119
Joined: Wed May 19, 2021 11:17 pm
Contact:

Re: Copyright question

Post by Rohit Agarwal »

Just making sure.

I want to post code that is not part of wxWidgets but uses wxWidgets.
It's code for an application that a wxWidgets developer can build to run the app.
Since I'm targeting wx developers, I want to give them the same licensing terms as wxWidgets
so there are no new copyright issues with using my app code.

So I guess I need to put a license.txt in my code repo
and add comments in the headers of the source files describing the copyright terms
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Copyright question

Post by doublemax »

Rohit Agarwal wrote: Sat Jan 08, 2022 6:35 am So I guess I need to put a license.txt in my code repo
and add comments in the headers of the source files describing the copyright terms
Yes, that's the best way.
Use the source, Luke!
Post Reply