mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
deps: add mimalloc dependency
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -19,3 +19,6 @@
|
|||||||
[submodule "tests/wpt"]
|
[submodule "tests/wpt"]
|
||||||
path = tests/wpt
|
path = tests/wpt
|
||||||
url = https://github.com/lightpanda-io/wpt
|
url = https://github.com/lightpanda-io/wpt
|
||||||
|
[submodule "vendor/mimalloc"]
|
||||||
|
path = vendor/mimalloc
|
||||||
|
url = git@github.com:microsoft/mimalloc.git
|
||||||
|
|||||||
23
Makefile
23
Makefile
@@ -95,13 +95,14 @@ test:
|
|||||||
.PHONY: install-submodule
|
.PHONY: install-submodule
|
||||||
.PHONY: install-jsruntime install-jsruntime-dev install-libiconv
|
.PHONY: install-jsruntime install-jsruntime-dev install-libiconv
|
||||||
.PHONY: _install-netsurf install-netsurf clean-netsurf test-netsurf install-netsurf-dev
|
.PHONY: _install-netsurf install-netsurf clean-netsurf test-netsurf install-netsurf-dev
|
||||||
|
.PHONY: install-mimalloc install-mimalloc-dev clean-mimalloc
|
||||||
.PHONY: install-dev install
|
.PHONY: install-dev install
|
||||||
|
|
||||||
## Install and build dependencies for release
|
## Install and build dependencies for release
|
||||||
install: install-submodule install-jsruntime install-netsurf
|
install: install-submodule install-jsruntime install-netsurf install-mimalloc
|
||||||
|
|
||||||
## Install and build dependencies for dev
|
## Install and build dependencies for dev
|
||||||
install-dev: install-submodule install-jsruntime-dev install-netsurf-dev
|
install-dev: install-submodule install-jsruntime-dev install-netsurf-dev install-mimalloc-dev
|
||||||
|
|
||||||
install-netsurf-dev: _install-netsurf
|
install-netsurf-dev: _install-netsurf
|
||||||
install-netsurf-dev: OPTCFLAGS := -O0 -g -DNDEBUG
|
install-netsurf-dev: OPTCFLAGS := -O0 -g -DNDEBUG
|
||||||
@@ -185,6 +186,24 @@ install-jsruntime:
|
|||||||
@cd vendor/jsruntime-lib && \
|
@cd vendor/jsruntime-lib && \
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
install-mimalloc-dev:
|
||||||
|
@cd vendor/mimalloc && \
|
||||||
|
mkdir -p out && \
|
||||||
|
cd out && \
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Debug .. && \
|
||||||
|
make mimalloc-static && \
|
||||||
|
mv libmimalloc-debug.a libmimalloc.a
|
||||||
|
|
||||||
|
install-mimalloc:
|
||||||
|
@cd vendor/mimalloc && \
|
||||||
|
mkdir -p out && \
|
||||||
|
cd out && \
|
||||||
|
cmake .. && \
|
||||||
|
make mimalloc-static
|
||||||
|
|
||||||
|
clean-mimalloc:
|
||||||
|
rm -fr vendor/mimalloc/lib/*
|
||||||
|
|
||||||
## Init and update git submodule
|
## Init and update git submodule
|
||||||
install-submodule:
|
install-submodule:
|
||||||
@git submodule init && \
|
@git submodule init && \
|
||||||
|
|||||||
1
vendor/mimalloc
vendored
Submodule
1
vendor/mimalloc
vendored
Submodule
Submodule vendor/mimalloc added at 8f7d1e9a41
Reference in New Issue
Block a user