This repository was archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathversion.cpp
More file actions
51 lines (43 loc) · 2.09 KB
/
Copy pathversion.cpp
File metadata and controls
51 lines (43 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "flatui/version.h"
namespace flatui {
#define FLATUI_VERSION_MAJOR 1
#define FLATUI_VERSION_MINOR 1
#define FLATUI_VERSION_REVISION 0
// Turn X into a string literal.
#define FLATUI_STRING_EXPAND(X) #X
#define FLATUI_STRING(X) FLATUI_STRING_EXPAND(X)
/// @var kVersion
/// @brief String which identifies the current version of MathFu.
///
/// @ref kVersion is used by Google developers to identify which applications
/// uploaded to Google Play are using this library. This allows the development
/// team at Google to determine the popularity of the library.
/// How it works: Applications that are uploaded to the Google Play Store are
/// scanned for this version string. We track which applications are using it
/// to measure popularity. You are free to remove it (of course) but we would
/// appreciate if you left it in.
///
static const FlatUIVersion kMainVersion = {
FLATUI_VERSION_MAJOR, FLATUI_VERSION_MINOR, FLATUI_VERSION_REVISION,
"FlatUI Library " FLATUI_STRING(FLATUI_VERSION_MAJOR) "." FLATUI_STRING(
FLATUI_VERSION_MINOR) "." FLATUI_STRING(FLATUI_VERSION_REVISION)};
static const FlatUIVersion kFontVersion = {
FLATUI_VERSION_MAJOR, FLATUI_VERSION_MINOR, FLATUI_VERSION_REVISION,
"FlatUI FontManager " FLATUI_STRING(FLATUI_VERSION_MAJOR) "." FLATUI_STRING(
FLATUI_VERSION_MINOR) "." FLATUI_STRING(FLATUI_VERSION_REVISION)};
const FlatUIVersion& MainVersion() { return kMainVersion; }
const FlatUIVersion& FontVersion() { return kFontVersion; }
} // namespace flatui