/*
 * Copyright (c) 2003-2024 Rony Shapiro <ronys@pwsafe.org>.
 * All rights reserved. Use of the code is allowed under the
 * Artistic License 2.0 terms, as specified in the LICENSE file
 * distributed with this code, or available from
 * http://www.opensource.org/licenses/artistic-license-2.0.php
 */

/** \file version.h
 * 
 */

#ifndef _VERSION_H_
#define _VERSION_H_

#include <wx/string.h>

// When building under Windows using Visual Studio, version.h is created in
// the source tree from version.in via the pre_build.vbs script
//
// When building using cmake under Windows or Linux, version.h is also created in
// the specified build directory by cmake using version.in as the template.
//
// In both cases, the version information retrieved from the toplevel version.wx file.
//
// When building via cmake in the build directory, make sure version.h
// is removed from the source tree.

// Format: Major, Minor, Revision
//   Revision  = 0 for all Formally Released versions
//   Revision != 0 for all Intermediate versions
// Full information shown in AboutBox; only Major & Minor are displayed in initial dialog

#define APPNAME _T("PasswordSafe")

#define MAJORVERSION @pwsafe_VERSION_MAJOR@
#define MINORVERSION @pwsafe_VERSION_MINOR@
#define REVISION     @pwsafe_REVISION@
#define VCS_VERSION "@pwsafe_VERSTRING@"

// LINUXPRODVER is for Misc/make-latest-xml.pl

#define LINUXPRODVER MAJORVERSION, MINORVERSION, REVISION, VCS_VERSION

// define following for custom/experimental versions
#define SPECIALBUILD _T("@pwsafe_SPECIALBUILD@")

extern const wxString pwsafeAppName;
extern const wxString pwsafeVersionString;

#endif /* _VERSION_H_ */
