version.h 912 字节
Newer Older
1 2 3 4
/**
 * \file src/core/include/megbrain/version.h
 * MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
 *
5
 * Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
6 7 8 9 10 11 12 13
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 */

#pragma once

14 15
#include "megbrain_build_config.h"

16
#define MGE_MAJOR 1
17
#define MGE_MINOR 9999
18 19
#define MGE_PATCH 0

M
Megvii Engine Team 已提交
20 21 22
// for rc version, could be like "rc1", "rc2", etc
#define MGE_EXTRA_NAME ""

23
//! whether it is development version
24
#ifndef MGB_IS_DEV
M
Megvii Engine Team 已提交
25
#define MGB_IS_DEV 0
26
#endif  // MGB_IS_DEV
27 28

namespace mgb {
M
Megvii Engine Team 已提交
29 30 31
struct Version {
    int major, minor, patch, is_dev;
};
32

33
MGE_WIN_DECLSPEC_FUC Version get_version();
M
Megvii Engine Team 已提交
34
}  // namespace mgb
35 36

// vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}