aboutsummaryrefslogtreecommitdiffhomepage
path: root/osdep
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2018-01-01 12:16:42 +0100
committerGravatar Ricardo Constantino <wiiaboo@gmail.com>2018-01-01 21:05:09 +0000
commit49e704cb19dfe72b293fd286395e37ed1d3c3d99 (patch)
treed0e1ffeca2f87986d1378f4a31cca39f844f6a22 /osdep
parenta90abe05462a689e55280bc78af2999aa1f3823e (diff)
build: move copyright statement to a shared location
Now macosx_menubar.m and mpv.rc (win32) use the same copyright string. (This is a bit roundabout, because mpv.rc can't use C constants. Also the C code wants to avoid rebuilding real source files if only version.h changed, so only version.c includes version.h.)
Diffstat (limited to 'osdep')
-rw-r--r--osdep/macosx_menubar.m2
-rw-r--r--osdep/mpv.rc3
2 files changed, 3 insertions, 2 deletions
diff --git a/osdep/macosx_menubar.m b/osdep/macosx_menubar.m
index 4e9b1733d6..3a5c5a76c2 100644
--- a/osdep/macosx_menubar.m
+++ b/osdep/macosx_menubar.m
@@ -612,7 +612,7 @@
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
@"mpv", @"ApplicationName",
[self getMPVIcon], @"ApplicationIcon",
- @"Copyright © 2000-2017 mpv/MPlayer/mplayer2 projects", @"Copyright",
+ [NSString stringWithUTF8String:mpv_copyright], @"Copyright",
[NSString stringWithUTF8String:mpv_version], @"ApplicationVersion",
nil];
[NSApp orderFrontStandardAboutPanelWithOptions:options];
diff --git a/osdep/mpv.rc b/osdep/mpv.rc
index 9c51e2d25b..34c19e7028 100644
--- a/osdep/mpv.rc
+++ b/osdep/mpv.rc
@@ -16,6 +16,7 @@
*/
#include <winver.h>
+#include "version.h"
VS_VERSION_INFO VERSIONINFO
FILEVERSION 2, 0, 0, 0
@@ -32,7 +33,7 @@ VS_VERSION_INFO VERSIONINFO
VALUE "CompanyName", "mpv"
VALUE "FileDescription", "mpv"
VALUE "FileVersion", "2.0.0.0"
- VALUE "LegalCopyright", "(C) 2000-2018 mpv/mplayer2/MPlayer"
+ VALUE "LegalCopyright", MPVCOPYRIGHT
VALUE "OriginalFilename", "mpv.exe"
VALUE "ProductName", "mpv"
VALUE "ProductVersion", "2.0.0.0"