C++ Meson Library Project

This commit is contained in:
ktlo
2019-09-05 08:22:25 +00:00
commit 1de134d3f1
25 changed files with 608 additions and 0 deletions

7
.devcontainer/.bashrc Normal file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;91m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
umask 022
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'

9
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM debian:buster
RUN apt update && apt install -y build-essential crossbuild-essential-amd64 crossbuild-essential-armhf mingw-w64 \
python3 python3-pip python3-setuptools python3-wheel ninja-build \
wget cmake xxd valgrind gcovr lcov git cppcheck gdb \
&& pip3 install meson
COPY meson /usr/local/share/meson
COPY .bashrc /root/.bashrc

View File

@@ -0,0 +1,18 @@
{
"name": "C++",
"dockerFile": "Dockerfile",
"runArgs": [
"--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"extensions": [
"ms-vscode.cpptools",
"yzhang.markdown-all-in-one",
"asabil.meson"
]
}

View File

@@ -0,0 +1,11 @@
[binaries]
c = 'arm-linux-gnueabihf-gcc'
cpp = 'arm-linux-gnueabihf-g++'
ar = 'arm-linux-gnueabihf-ar'
strip = 'arm-linux-gnueabihf-strip'
[host_machine]
system = 'linux'
cpu_family = 'arm'
cpu = 'armv7'
endian = 'little'

View File

@@ -0,0 +1,12 @@
[binaries]
c = 'x86_64-linux-gnu-gcc'
cpp = 'x86_64-linux-gnu-g++'
ar = 'x86_64-linux-gnu-ar'
strip = 'x86_64-linux-gnu-strip'
pkgconfig = 'x86_64-linux-gnu-pkg-config'
[host_machine]
system = 'linux'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'

View File

@@ -0,0 +1,11 @@
[binaries]
c = '/usr/bin/x86_64-alpine-linux-musl-gcc'
cpp = '/usr/bin/x86_64-alpine-linux-musl-g++'
ar = '/usr/bin/x86_64-alpine-linux-musl-gcc-ar'
strip = '/usr/bin/x86_64-alpine-linux-musl-strip'
[host_machine]
system = 'linux'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'

View File

@@ -0,0 +1,12 @@
[binaries]
c = 'x86_64-linux-gnu-gcc'
cpp = 'x86_64-linux-gnu-g++'
ar = 'x86_64-linux-gnu-ar'
strip = 'x86_64-linux-gnu-strip'
pkgconfig = 'x86_64-linux-gnu-pkg-config'
[host_machine]
system = 'linux'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'

View File

@@ -0,0 +1,13 @@
[binaries]
c = 'x86_64-w64-mingw32-gcc'
cpp = 'x86_64-w64-mingw32-g++'
ar = 'x86_64-w64-mingw32-ar'
strip = 'x86_64-w64-mingw32-strip'
pkgconfig = 'x86_64-w64-mingw32-pkg-config'
windres = 'x86_64-w64-mingw32-windres'
[host_machine]
system = 'windows'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'