File tree 5 files changed +8
-22
lines changed
5 files changed +8
-22
lines changed Original file line number Diff line number Diff line change @@ -21,23 +21,9 @@ cmake_policy(SET CMP0042 NEW)
21
21
# Enable support for MSVC_RUNTIME_LIBRARY
22
22
cmake_policy (SET CMP0091 NEW)
23
23
24
- # Check if VERSION is provided externally, otherwise default to 5.0.3
25
- if (NOT DEFINED PROJECT_VERSION)
26
- set (PROJECT_VERSION "5.0.4" )
27
- endif ()
28
-
29
- # Use PROJECT_VERSION directly for CPack
30
- set (CPACK_PACKAGE_VERSION ${PROJECT_VERSION} )
31
-
32
- # Remove the 'v' prefix if it exists and extract the major, minor, and patch versions
33
- string (REGEX MATCH "^[vV]?([0-9]+\\ .[0-9]+\\ .[0-9]+)" _ ${PROJECT_VERSION} )
34
- set (PROJECT_VERSION_BASE ${CMAKE_MATCH_1} )
35
-
36
- # Print the values of PROJECT_VERSION and PROJECT_VERSION_BASE
37
- message (STATUS "PROJECT_VERSION: ${CPACK_PACKAGE_VERSION} CAPSTONE_VERSION: ${PROJECT_VERSION_BASE} " )
38
-
39
- # Set the project version without the pre-release identifier
40
- project (capstone VERSION ${PROJECT_VERSION_BASE} )
24
+ project (capstone
25
+ VERSION 5.0.4
26
+ )
41
27
42
28
if (MSVC )
43
29
add_compile_options (/W1 /w14189)
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ def gen(lang):
237
237
238
238
if line .startswith ('#define ' ):
239
239
line = line [8 :] #cut off define
240
- xline = re .split ('\s+' , line , 1 ) #split to at most 2 express
240
+ xline = re .split (r '\s+' , line , 1 ) #split to at most 2 express
241
241
if len (xline ) != 2 :
242
242
continue
243
243
if '(' in xline [0 ] or ')' in xline [0 ]: #does it look like a function
@@ -261,7 +261,7 @@ def is_with_prefix(x):
261
261
# hacky: remove type cast (uint64_t)
262
262
t = t .replace ('(uint64_t)' , '' )
263
263
t = re .sub (r'\((\d+)ULL << (\d+)\)' , r'\1 << \2' , t ) # (1ULL<<1) to 1 << 1
264
- f = re .split ('\s+' , t )
264
+ f = re .split (r '\s+' , t )
265
265
266
266
if not is_with_prefix (f [0 ]):
267
267
continue
Original file line number Diff line number Diff line change 180
180
# Package version
181
181
CS_VERSION_MAJOR = CS_API_MAJOR
182
182
CS_VERSION_MINOR = CS_API_MINOR
183
- CS_VERSION_EXTRA = 3
183
+ CS_VERSION_EXTRA = 4
184
184
185
185
__version__ = "%u.%u.%u" % (CS_VERSION_MAJOR , CS_VERSION_MINOR , CS_VERSION_EXTRA )
186
186
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ extern "C" {
58
58
// Capstone package version
59
59
#define CS_VERSION_MAJOR CS_API_MAJOR
60
60
#define CS_VERSION_MINOR CS_API_MINOR
61
- #define CS_VERSION_EXTRA 3
61
+ #define CS_VERSION_EXTRA 4
62
62
63
63
/// Macro for meta programming.
64
64
/// Meant for projects using Capstone and need to support multiple
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ PKG_MAJOR = 5
6
6
PKG_MINOR = 0
7
7
8
8
# version bugfix level. Example: PKG_EXTRA = 1
9
- PKG_EXTRA = 3
9
+ PKG_EXTRA = 4
10
10
11
11
# version tag. Examples: rc1, b2, post1 - or just comment out for no tag
12
12
PKG_TAG =
You can’t perform that action at this time.
0 commit comments