Browse Source

Initial version including v8pp build config.

master
Ray Burgemeestre 5 years ago
commit
badba45844
5 changed files with 69 additions and 0 deletions
  1. +17
    -0
      Dockerfile-ubuntu1804
  2. +10
    -0
      Makefile
  3. +4
    -0
      ubuntu1804.sh
  4. +21
    -0
      v8pp/Makefile
  5. +17
    -0
      v8pp/v8-include.txt

+ 17
- 0
Dockerfile-ubuntu1804 View File

@@ -0,0 +1,17 @@
FROM ubuntu:18.04

MAINTAINER Ray Burgemeestre

RUN apt-get update && \
apt-get -y install g++ git cmake sudo wget gnupg2 && \
\
echo deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main >> /etc/apt/sources.list && \
echo deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main >> /etc/apt/sources.list && \
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - ; \
apt update -y && \
apt-get install -y clang-7 lldb-7 lld-7 && \
apt-get install -y libc++-7-dev libc++-7-dev && \
\
rm -rf /var/lib/apt/lists/*

CMD "/bin/bash"

+ 10
- 0
Makefile View File

@@ -0,0 +1,10 @@
SHELL:=/bin/bash

ubuntu1804:
docker build . -f Dockerfile-ubuntu1804 -t rayburgemeestre/build-ubuntu:18.04

ubuntu1804nocache:
docker build . -f Dockerfile-ubuntu1804 -t rayburgemeestre/build-ubuntu:18.04 --no-cache

ubuntu1804publish:
docker push rayburgemeestre/build-ubuntu:18.04

+ 4
- 0
ubuntu1804.sh View File

@@ -0,0 +1,4 @@
#!/bin/bash

docker run $FLAGS -t -v $PWD:$PWD --workdir $PWD rayburgemeestre/build-ubuntu:18.04 sh -c "$*"


+ 21
- 0
v8pp/Makefile View File

@@ -0,0 +1,21 @@
SHELL:=/bin/bash

v8pp:
git clone https://github.com/rayburgemeestre/v8pp
bash ../ubuntu1804.sh make build
bash ../ubuntu1804.sh make archive

build:
apt-get update
apt-get install pkg-config -y
cd v8pp && ./build-v8.sh

archive:
rm -rf v8.a
ar rvs v8.a $$(cat v8-include.txt |xargs -n 1 -I{} find {} -name '*.o')

clean:
rm -rf v8pp

shell:
FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash

+ 17
- 0
v8pp/v8-include.txt View File

@@ -0,0 +1,17 @@
./v8pp/v8/out/x64.release/obj/buildtools/third_party/libc++abi/libc++abi
./v8pp/v8/out/x64.release/obj/buildtools/third_party/libc++/libc++
./v8pp/v8/out/x64.release/obj/d8
./v8pp/v8/out/x64.release/obj/mksnapshot
./v8pp/v8/out/x64.release/obj/src/inspector/inspector
./v8pp/v8/out/x64.release/obj/third_party/antlr4/antlr4
./v8pp/v8/out/x64.release/obj/third_party/icu/icui18n
./v8pp/v8/out/x64.release/obj/third_party/icu/icuuc
./v8pp/v8/out/x64.release/obj/torque
./v8pp/v8/out/x64.release/obj/torque_generated_initializers
./v8pp/v8/out/x64.release/obj/v8_base
./v8pp/v8/out/x64.release/obj/v8_init
./v8pp/v8/out/x64.release/obj/v8_initializers
./v8pp/v8/out/x64.release/obj/v8_libbase
./v8pp/v8/out/x64.release/obj/v8_libplatform
./v8pp/v8/out/x64.release/obj/v8_libsampler
./v8pp/v8/out/x64.release/obj/v8_nosnapshot

Loading…
Cancel
Save