CMake: update Info.plist variables
Use the same values as in build/bakefiles/mac_bundles.bkl. Use the correct copyright year for in the Info.plist files.
This commit is contained in:
parent
4862cbd4c6
commit
2e12779a21
@ -86,7 +86,7 @@ math(EXPR wxSOVERSION_MAJOR "${WX_CURRENT} - ${WX_AGE}")
|
||||
set(wxSOVERSION ${wxSOVERSION_MAJOR}.${WX_AGE}.${WX_REVISION})
|
||||
|
||||
set(wxVERSION ${wxMAJOR_VERSION}.${wxMINOR_VERSION}.${wxRELEASE_NUMBER})
|
||||
set(wxCOPYRIGHT "Copyright 1992-2021 wxWidgets")
|
||||
set(wxCOPYRIGHT "2002-2021 wxWidgets")
|
||||
|
||||
project(wxWidgets VERSION ${wxVERSION})
|
||||
|
||||
|
@ -878,12 +878,14 @@ function(wx_add name group)
|
||||
RESOURCE "${wxSOURCE_DIR}/src/osx/carbon/wxmac.icns")
|
||||
endif()
|
||||
set_target_properties(${target_name} PROPERTIES
|
||||
MACOSX_BUNDLE_ICON_FILE wxmac.icns
|
||||
MACOSX_BUNDLE_LONG_VERSION_STRING "${wxVERSION}"
|
||||
MACOSX_BUNDLE_SHORT_VERSION_STRING "${wxVERSION}"
|
||||
MACOSX_BUNDLE_BUNDLE_VERSION "${wxVERSION}"
|
||||
MACOSX_BUNDLE_COPYRIGHT "${wxCOPYRIGHT}"
|
||||
MACOSX_BUNDLE_GUI_IDENTIFIER "org.wxwidgets.${target_name}"
|
||||
MACOSX_BUNDLE_EXECUTABLE_NAME "${target_name}"
|
||||
MACOSX_BUNDLE_BUNDLE_NAME "${target_name}"
|
||||
MACOSX_BUNDLE_COPYRIGHT "Copyright ${wxCOPYRIGHT}"
|
||||
MACOSX_BUNDLE_BUNDLE_VERSION "${wxVERSION}"
|
||||
MACOSX_BUNDLE_INFO_STRING "${target_name} version ${wxVERSION}, (c) ${wxCOPYRIGHT}"
|
||||
MACOSX_BUNDLE_LONG_VERSION_STRING "${wxVERSION}, (c) ${wxCOPYRIGHT}"
|
||||
MACOSX_BUNDLE_SHORT_VERSION_STRING "${wxMAJOR_VERSION}.${wxMINOR_VERSION}"
|
||||
)
|
||||
endif()
|
||||
|
||||
|
@ -15,8 +15,7 @@ old_year=`expr $new_year - 1`
|
||||
echo "Updating dates to use $new_year instead of $old_year:"
|
||||
|
||||
# Update copyright to extend to the new year.
|
||||
for f in CMakeLists.txt \
|
||||
docs/doxygen/mainpages/copyright.h docs/doxygen/regen.sh \
|
||||
for f in docs/doxygen/mainpages/copyright.h docs/doxygen/regen.sh \
|
||||
interface/wx/aboutdlg.h interface/wx/generic/aboutdlgg.h \
|
||||
; do
|
||||
run_sed $f "s/1992-$old_year/1992-$new_year/"
|
||||
@ -27,5 +26,6 @@ run_sed src/msw/version.rc "s/1993-$old_year/1993-$new_year/"
|
||||
run_sed src/common/utilscmn.cpp "s/1995-$old_year/1995-$new_year/"
|
||||
|
||||
# And Mac files are much newer than that.
|
||||
run_sed CMakeLists.txt "s/2002-$old_year/2002-$new_year/"
|
||||
run_set build/bakefiles/mac_bundles.bkl "s/2002-$old_year/2002-$new_year/"
|
||||
run_sed samples/minimal/Info_cocoa.plist "s/2005-$old_year/2005-$new_year/"
|
||||
|
Loading…
Reference in New Issue
Block a user