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.) --- common/common.h | 1 + common/version.c | 1 + 2 files changed, 2 insertions(+) (limited to 'common') diff --git a/common/common.h b/common/common.h index bed9060f71..8dd02026f6 100644 --- a/common/common.h +++ b/common/common.h @@ -68,6 +68,7 @@ enum { extern const char mpv_version[]; extern const char mpv_builddate[]; +extern const char mpv_copyright[]; char *mp_format_time(double time, bool fractions); char *mp_format_time_fmt(const char *fmt, double time); diff --git a/common/version.c b/common/version.c index b98fe00ed1..61f4018022 100644 --- a/common/version.c +++ b/common/version.c @@ -24,3 +24,4 @@ const char mpv_version[] = "mpv " VERSION; const char mpv_builddate[] = BUILDDATE; +const char mpv_copyright[] = MPVCOPYRIGHT; -- cgit v1.2.3