mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
vendor: seperate lexbor source from build
* add `vendor/lexbor-src` submodule * build lexbor static lib into `vendor/lexbor`
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
zig-cache
|
||||
zig-out
|
||||
/vendor/lexbor/
|
||||
|
||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
||||
[submodule "vendor/jsruntime-lib"]
|
||||
path = vendor/jsruntime-lib
|
||||
url = https://github.com/francisbouvier/jsruntime-lib
|
||||
[submodule "vendor/lexbor-src"]
|
||||
path = vendor/lexbor-src
|
||||
url = https://github.com/lexbor/lexbor
|
||||
|
||||
3
Makefile
3
Makefile
@@ -60,8 +60,9 @@ install-dev: install-submodule install-lexbor install-jsruntime-dev
|
||||
|
||||
## Install and build v8 engine for dev
|
||||
install-lexbor:
|
||||
@mkdir -p vendor/lexbor
|
||||
@cd vendor/lexbor && \
|
||||
cmake . -DLEXBOR_BUILD_SHARED=OFF -DLEXBOR_BUILD_STATIC=ON -DLEXBOR_BUILD_TESTS_CPP=OFF -DLEXBOR_INSTALL_HEADERS=OFF && \
|
||||
cmake ../lexbor-src -DLEXBOR_BUILD_SHARED=OFF -DLEXBOR_BUILD_STATIC=ON -DLEXBOR_BUILD_TESTS_CPP=OFF -DLEXBOR_INSTALL_HEADERS=ON && \
|
||||
make
|
||||
|
||||
install-jsruntime-dev:
|
||||
|
||||
@@ -78,5 +78,5 @@ fn linkLexbor(step: *std.build.LibExeObjStep) void {
|
||||
// cmake . -DLEXBOR_BUILD_SHARED=OFF
|
||||
const lib_path = "vendor/lexbor/liblexbor_static.a";
|
||||
step.addObjectFile(lib_path);
|
||||
step.addIncludePath("vendor/lexbor/source");
|
||||
step.addIncludePath("vendor/lexbor-src/source");
|
||||
}
|
||||
|
||||
1
vendor/lexbor-src
vendored
Submodule
1
vendor/lexbor-src
vendored
Submodule
Submodule vendor/lexbor-src added at b2c0a617f3
Reference in New Issue
Block a user