mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: updated leveldb library to x86 and arm arch
This commit is contained in:
15
Makefile
15
Makefile
@@ -5,8 +5,8 @@ BUILD_PATH = $(PWD)/build
|
||||
APP_PATH = "$(BUILD_PATH)/$(APP).app"
|
||||
ZIP_PATH = "$(BUILD_PATH)/$(APP).zip"
|
||||
|
||||
.SILENT: archive notarize sign prepare-dmg prepare-dSYM clean next-version check history disk smc
|
||||
.PHONY: build archive notarize sign prepare-dmg prepare-dSYM clean next-version check history open smc
|
||||
.SILENT: archive notarize sign prepare-dmg prepare-dSYM clean next-version check history disk smc leveldb
|
||||
.PHONY: build archive notarize sign prepare-dmg prepare-dSYM clean next-version check history open smc leveldb
|
||||
|
||||
build: clean next-version archive notarize sign prepare-dmg prepare-dSYM open
|
||||
|
||||
@@ -103,4 +103,13 @@ open:
|
||||
|
||||
smc:
|
||||
$(MAKE) --directory=./smc
|
||||
open $(PWD)/smc
|
||||
open $(PWD)/smc
|
||||
|
||||
leveldb:
|
||||
if [ ! -d $(PWD)/leveldb-source ]; then \
|
||||
git clone --recurse-submodules https://github.com/google/leveldb.git leveldb-source; \
|
||||
fi
|
||||
mkdir -p $(PWD)/leveldb-source/build
|
||||
cd $(PWD)/leveldb-source/build && cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DCMAKE_BUILD_TYPE=Release .. && cmake --build .
|
||||
cp $(PWD)/leveldb-source/build/libleveldb.a $(PWD)/Kit/lldb/libleveldb.a
|
||||
rm -rf $(PWD)/leveldb-source
|
||||
Reference in New Issue
Block a user