Magisk/native/jni/include/flags.hpp

21 lines
550 B
C++
Raw Normal View History

2018-09-27 07:56:56 +00:00
#pragma once
2019-02-12 10:17:02 +00:00
/* Include this header anywhere accessing MAGISK_DEBUG, MAGISK_VERSION, MAGISK_VER_CODE.
2018-09-27 07:56:56 +00:00
*
2019-02-12 10:17:02 +00:00
* This file is for precise incremental builds. We can make sure code that uses
2018-09-27 07:56:56 +00:00
* external flags are re-compiled by updating the timestamp of this file
* */
2019-02-12 10:17:02 +00:00
#define quote(s) #s
#define str(s) quote(s)
#define MAGISK_VERSION str(__MVSTR)
#define MAGISK_VER_CODE __MCODE
2020-03-23 08:17:13 +00:00
#define MAGISK_FULL_VER MAGISK_VERSION "(" str(MAGISK_VER_CODE) ")"
2019-02-12 10:17:02 +00:00
2020-03-23 08:17:13 +00:00
#define NAME_WITH_VER(name) str(name) " " MAGISK_FULL_VER
2018-09-27 07:56:56 +00:00
2019-02-12 10:17:02 +00:00
#ifdef __MDBG
#define MAGISK_DEBUG
2018-09-27 07:56:56 +00:00
#endif