From 49e704cb19dfe72b293fd286395e37ed1d3c3d99 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 1 Jan 2018 12:16:42 +0100 Subject: 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.) --- osdep/macosx_menubar.m | 2 +- osdep/mpv.rc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'osdep') 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 +#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" -- cgit v1.2.3