From 8a6173a087e82a01d8f1f0d392675a9a15b1df95 Mon Sep 17 00:00:00 2001 From: fasiondog Date: Fri, 29 Jul 2022 00:31:45 +0800 Subject: [PATCH] fixed compile hkuserver on windows --- .../hikyuu_server/bcrypt/{bcrypt_pbkdf.c => bcrypt_pbkdf.cpp} | 0 hikyuu_cpp/hikyuu_server/bcrypt/{blf.c => blf.cpp} | 0 hikyuu_cpp/hikyuu_server/bcrypt/{bcrypt.c => cbcrypt.cpp} | 0 hikyuu_cpp/hikyuu_server/bcrypt/{sha2.c => sha2.cpp} | 0 .../bcrypt/{timingsafe_bcmp.c => timingsafe_bcmp.cpp} | 0 hikyuu_cpp/hikyuu_server/xmake.lua | 3 --- 6 files changed, 3 deletions(-) rename hikyuu_cpp/hikyuu_server/bcrypt/{bcrypt_pbkdf.c => bcrypt_pbkdf.cpp} (100%) rename hikyuu_cpp/hikyuu_server/bcrypt/{blf.c => blf.cpp} (100%) rename hikyuu_cpp/hikyuu_server/bcrypt/{bcrypt.c => cbcrypt.cpp} (100%) rename hikyuu_cpp/hikyuu_server/bcrypt/{sha2.c => sha2.cpp} (100%) rename hikyuu_cpp/hikyuu_server/bcrypt/{timingsafe_bcmp.c => timingsafe_bcmp.cpp} (100%) diff --git a/hikyuu_cpp/hikyuu_server/bcrypt/bcrypt_pbkdf.c b/hikyuu_cpp/hikyuu_server/bcrypt/bcrypt_pbkdf.cpp similarity index 100% rename from hikyuu_cpp/hikyuu_server/bcrypt/bcrypt_pbkdf.c rename to hikyuu_cpp/hikyuu_server/bcrypt/bcrypt_pbkdf.cpp diff --git a/hikyuu_cpp/hikyuu_server/bcrypt/blf.c b/hikyuu_cpp/hikyuu_server/bcrypt/blf.cpp similarity index 100% rename from hikyuu_cpp/hikyuu_server/bcrypt/blf.c rename to hikyuu_cpp/hikyuu_server/bcrypt/blf.cpp diff --git a/hikyuu_cpp/hikyuu_server/bcrypt/bcrypt.c b/hikyuu_cpp/hikyuu_server/bcrypt/cbcrypt.cpp similarity index 100% rename from hikyuu_cpp/hikyuu_server/bcrypt/bcrypt.c rename to hikyuu_cpp/hikyuu_server/bcrypt/cbcrypt.cpp diff --git a/hikyuu_cpp/hikyuu_server/bcrypt/sha2.c b/hikyuu_cpp/hikyuu_server/bcrypt/sha2.cpp similarity index 100% rename from hikyuu_cpp/hikyuu_server/bcrypt/sha2.c rename to hikyuu_cpp/hikyuu_server/bcrypt/sha2.cpp diff --git a/hikyuu_cpp/hikyuu_server/bcrypt/timingsafe_bcmp.c b/hikyuu_cpp/hikyuu_server/bcrypt/timingsafe_bcmp.cpp similarity index 100% rename from hikyuu_cpp/hikyuu_server/bcrypt/timingsafe_bcmp.c rename to hikyuu_cpp/hikyuu_server/bcrypt/timingsafe_bcmp.cpp diff --git a/hikyuu_cpp/hikyuu_server/xmake.lua b/hikyuu_cpp/hikyuu_server/xmake.lua index 0d0c5cde..95add636 100644 --- a/hikyuu_cpp/hikyuu_server/xmake.lua +++ b/hikyuu_cpp/hikyuu_server/xmake.lua @@ -53,9 +53,6 @@ target("hkuserver") -- add files add_files("./**.cpp") - add_files("./**.c") - --add_files("./**.S") - --add_files("./main.cpp") after_build(function(target) os.cp("$(projectdir)/hikyuu_cpp/hikyuu_server/i8n/", "$(buildir)/$(mode)/$(plat)/$(arch)/lib/")