Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnTew committed Jan 14, 2025
1 parent 2538afa commit db6655f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 30 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ ADD_CUSTOM_TARGET(cpplint echo '${LINT_FILES}' | xargs -n12 -P8
--filter=-legal/copyright,-build/header_guard,-runtime/references
)

target_compile_definitions(kiwi PRIVATE
KIWI_VERSION="4.0.0"
TARGET_COMPILE_DEFINITIONS(kiwi PRIVATE
KIWI_VERSION="${K_VERSION}"
KIWI_BUILD_TYPE="${BUILD_TYPE}"
KIWI_GIT_COMMIT_ID="${GIT_COMMIT_ID}"
KIWI_BUILD_DATE="${BUILD_TIME}"
Expand Down
2 changes: 2 additions & 0 deletions etc/script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ C_GREEN="\033[32m"
C_END="\033[0m"

# Build configuration
K_VERSION="1.0.0"
BUILD_TYPE="Release"
VERBOSE=0
CMAKE_FLAGS=""
Expand Down Expand Up @@ -56,6 +57,7 @@ function build() {
cp CMakeLists.txt ${PREFIX}/

cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DK_VERSION=$K_VERSION \
-DBUILD_TIME=$BUILD_TIME \
-DGIT_COMMIT_ID=$SHORT_COMMIT_ID \
-DKIWI_BUILD_DATE="$BUILD_TIME" \
Expand Down
27 changes: 0 additions & 27 deletions etc/script/ci/build.sh

This file was deleted.

2 changes: 1 addition & 1 deletion src/kiwi.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "net/event_server.h"
#include "options.h"

#define KIWI_VERSION "4.0.0"
// #define KIWI_VERSION "4.0.0"

#ifdef BUILD_DEBUG
# define KIWI_BUILD_TYPE "DEBUG"
Expand Down

0 comments on commit db6655f

Please sign in to comment.