Sfoglia il codice sorgente

Another attempt at fixing the V8/V8pp build

master
Ray Burgemeestre 2 anni fa
parent
commit
6046e30d96
1 ha cambiato i file con 36 aggiunte e 43 eliminazioni
  1. +36
    -43
      v8pp/Makefile

+ 36
- 43
v8pp/Makefile Vedi File

@@ -1,45 +1,39 @@
SHELL:=/bin/bash

ubuntu1804:
# git clone https://github.com/rayburgemeestre/v8pp
#
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git || true
# will be factored out at some point
git clone https://github.com/pmed/v8pp || true
pushd v8pp && git checkout d62a0d581fd4ab05beb8a675216a12c72a5077c8 # master at time of writing
bash ../ubuntu1804.sh make build
#bash ../ubuntu1804.sh make archive # outside container not enough permissions
bash ../ubuntu1804.sh make package # outside container not enough permissions
# also packages v8pp for now
make fpm_package
ubuntu2004:
# git clone https://github.com/rayburgemeestre/v8pp
#
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git || true
# will be factored out at some point
git clone https://github.com/pmed/v8pp || true
pushd v8pp && git checkout d62a0d581fd4ab05beb8a675216a12c72a5077c8 # master at time of writing
bash ../ubuntu2004.sh make build
#bash ../ubuntu2004.sh make archive # outside container not enough permissions
bash ../ubuntu2004.sh make package # outside container not enough permissions
# also packages v8pp for now
make fpm_package
bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions
#ubuntu1804:
# # git clone https://github.com/rayburgemeestre/v8pp
# #
# git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git || true
# # will be factored out at some point
# git clone https://github.com/pmed/v8pp || true
# pushd v8pp && git checkout d62a0d581fd4ab05beb8a675216a12c72a5077c8 # master at time of writing
#
# bash ../ubuntu1804.sh make build
# #bash ../ubuntu1804.sh make archive # outside container not enough permissions
# bash ../ubuntu1804.sh make package # outside container not enough permissions
#
# # also packages v8pp for now
# make fpm_package
#
#ubuntu2004:
# # git clone https://github.com/rayburgemeestre/v8pp
# #
# git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git || true
# # will be factored out at some point
# git clone https://github.com/pmed/v8pp || true
# pushd v8pp && git checkout d62a0d581fd4ab05beb8a675216a12c72a5077c8 # master at time of writing
# bash ../ubuntu2004.sh make build
# #bash ../ubuntu2004.sh make archive # outside container not enough permissions
# bash ../ubuntu2004.sh make package # outside container not enough permissions
# # also packages v8pp for now
# make fpm_package
# bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions

ubuntu2204:
# git clone https://github.com/rayburgemeestre/v8pp
#
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git || true
# will be factored out at some point
#git clone -b v1.8.1 https://github.com/pmed/v8pp || true , next version 1.8.2, will probably contain the fix for clang-14 as well. for now..
git clone -b de4037d6d9de5a5f12de64b06f88ddfbf55c1d96 https://github.com/pmed/v8pp || true # ..we'll use master.
bash ../ubuntu2204.sh make build
#bash ../ubuntu2204.sh make archive # outside container not enough permissions
bash ../ubuntu2204.sh make package # outside container not enough permissions
# also packages v8pp for now
bash ../ubuntu2204.sh make build # prepares packaging as well
make fpm_package
bash ../ubuntu2204.sh chown $$(id -u):$$(id -g) . -R # fix permissions

@@ -53,8 +47,9 @@ build:
cp -prv /usr/bin/python2.7 /usr/bin/python # stupid depot tool scripts
cp -prv /usr/bin/python2.7 /usr/bin/python2 # stupid depot tool scripts
./build-v8.sh
make package # already prepare the package (without v8pp/config.hpp avail.)
./build-v8pp.sh # basically only produces the v8pp/config.hpp (from config.hpp.in)
make prepare-package-v8
./build-v8pp.sh # basically only produces the v8pp/config.hpp (from config.hpp.in)
make prepare-package-v8pp

#archive:
# rm -rf v8.a
@@ -75,19 +70,17 @@ build:
# # We'll also include .so files..
# find ./v8/out/x64.release/ -name '*.so' -type f

package:
prepare-package-v8:
rm -rf out
rm -rf v8pp_*_amd64.deb
mkdir -p out/opt/cppse/build/v8pp/lib
mkdir -p out/opt/cppse/build/v8pp/include
# Legacy include our own v8.a
# no longer works with newer, missing some files cp -prv v8.a out/opt/cppse/build/v8pp/lib
cp -prv v8/out/x64.release/obj/libv8_monolith.a out/opt/cppse/build/v8pp/lib
# We'll also include .so files..
#echo TEMP find ./v8/out/x64.release/ -name '*.so' -type f | xargs -n 1 cp -prv -t out/opt/cppse/build/v8pp/lib
cp -prv v8/include out/opt/cppse/build/v8pp/include/v8

prepare-package-v8pp:
ls -alh v8pp/v8pp/config.hpp* || true
cp -prv v8pp/v8pp out/opt/cppse/build/v8pp/include/
cp -prv v8/include out/opt/cppse/build/v8pp/include/v8

fpm_package:
docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1.1 -s dir -t deb -n v8pp --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "v8pp - build dependency" --url "https://github.com/rayburgemeestre/v8pp" --deb-generate-changes -C /src/out

Loading…
Annulla
Salva