Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jetbrains/clion-bundle-buildenv

Dockerfile for building GDB/LLDB for MinGW-W64 and Linux
https://github.com/jetbrains/clion-bundle-buildenv

build cmake cross-compilation dockerfile gdb lldb makepkg mingw-w64 pkgbuild

Last synced: 3 months ago
JSON representation

Dockerfile for building GDB/LLDB for MinGW-W64 and Linux

Awesome Lists containing this project

README

        

[![team project](http://jb.gg/badges/team.svg)](https://github.com/JetBrains#jetbrains-on-github)
[![license](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/JetBrains/clion-bundle-buildenv/master/LICENSE)
# clion-bundle-buildenv
Dockerfiles and PKGBUILD scripts for building GDB and LLDB for MinGW-W64 and Linux

## Building

### MinGW-W64

Run the Docker container with the repository root (containing `build.sh`) mounted as `/workdir`:
```
docker build -t clion-bundle-buildenv/mingw:latest -f dockerfiles/mingw.Dockerfile dockerfiles
docker run -v $(pwd):/workdir -it clion-bundle-buildenv/mingw:latest
```

Run the `./build.sh` script inside the Docker container:
```
./build.sh -P mingw -c makepkg-mingw32.conf -- gdb lldb
```
(Use `makepkg-mingw64.conf` to build 64-bit packages instead.)

The artifacts will appear in the `artifacts-i686-w64-mingw32` directory:
```
$ ls artifacts-i686-w64-mingw32/bundle*
artifacts-i686-w64-mingw32/bundle.tar.xz

artifacts-i686-w64-mingw32/bundle:
win
```

### Linux

Run the Docker container with the repository root (containing `build.sh`) mounted as `/workdir`:
```
docker build -t clion-bundle-buildenv/linux:latest -f dockerfiles/linux.Dockerfile dockerfiles
docker run -v $(pwd):/workdir -it clion-bundle-buildenv/linux:latest
```

Run the `./build.sh` script inside the Docker container:
```
cd linux
./build.sh -P linux -- gdb lldb
```

The artifacts will appear in the `artifacts-x86_64-redhat-linux` directory:
```
$ ls artifacts-x86_64-redhat-linux/bundle*
artifacts-x86_64-redhat-linux/bundle.tar.xz

artifacts-x86_64-redhat-linux/bundle:
linux
```