Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
cosmonaut | c0dbc791e6 | |
cosmonaut | 08ac44514e | |
cosmonaut | 8c32994d4f |
|
@ -17,7 +17,7 @@ steps:
|
|||
commands:
|
||||
- cmake -E make_directory ./windows-build
|
||||
- cd ./windows-build
|
||||
- mingw64-cmake -S .. -B .
|
||||
- mingw64-cmake -DBUILD_SHARED_LIBS=OFF -S .. -B .
|
||||
- make
|
||||
|
||||
- name: gitea_release
|
||||
|
|
|
@ -6,7 +6,7 @@ option(BUILD_SHARED_LIBS "Build shared library" OFF)
|
|||
|
||||
SET(LIB_MAJOR_VERSION "1")
|
||||
SET(LIB_MINOR_VERSION "1")
|
||||
SET(LIB_REVISION "0")
|
||||
SET(LIB_REVISION "1")
|
||||
SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_REVISION}")
|
||||
|
||||
# Build Type
|
||||
|
@ -56,6 +56,12 @@ if(BUILD_SHARED_LIBS)
|
|||
set(LINKSTYLE PUBLIC)
|
||||
endif()
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
add_library(Cram SHARED ${SOURCE_FILES})
|
||||
else()
|
||||
add_library(Cram STATIC ${SOURCE_FILES})
|
||||
endif()
|
||||
|
||||
if(BUILD_CLI)
|
||||
file(GLOB CLI_SOURCES
|
||||
tools/cli/lib/stb_image_write.h
|
||||
|
@ -80,11 +86,6 @@ if(BUILD_CLI)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
add_library(Cram SHARED ${SOURCE_FILES})
|
||||
else()
|
||||
add_library(Cram STATIC ${SOURCE_FILES})
|
||||
endif()
|
||||
|
||||
# Build flags
|
||||
if(NOT MSVC)
|
||||
|
|
|
@ -54,6 +54,10 @@
|
|||
#define SEPARATOR '/'
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define SEPARATOR '/'
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(x, y) (((x) > (y)) ? (x) : (y))
|
||||
#endif
|
||||
|
@ -69,7 +73,7 @@ extern "C"
|
|||
|
||||
#define CRAM_MAJOR_VERSION 1
|
||||
#define CRAM_MINOR_VERSION 1
|
||||
#define CRAM_PATCH_VERSION 0
|
||||
#define CRAM_PATCH_VERSION 1
|
||||
|
||||
#define CRAM_COMPILED_VERSION ( \
|
||||
(CRAM_MAJOR_VERSION * 100 * 100) + \
|
||||
|
|
Loading…
Reference in New Issue