mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
51de7255d3
* This seemed to cause crashes on some systems as libproxy links to libstdc++ and can then cause symbol conflicts between the static libstdc++ and the system's libstdc++. * libproxy itself cannot be statically linked, so the solution is either to configure Qt without libproxy and break anyone who needs proxy support, or stop statically linking libstdc++ and add a new dependency. At commit time most distributions have at least g++-5's libstdc++ in their minspec so we can require that - the main two that seem to fall short are Debian Jessie and CentOS 7. Users on those systems will have to install a newer libstdc++ or compile from source rather than using the binary releases.
27 lines
739 B
Bash
Executable File
27 lines
739 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -x
|
|
|
|
rm -rf /io/*
|
|
|
|
cd /
|
|
mkdir renderdoc_build
|
|
cd renderdoc_build
|
|
CC=clang CXX=clang++ CFLAGS="-fPIC -fvisibility=hidden" cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/io/dist/ -DVULKAN_LAYER_FOLDER=/io/dist/etc/vulkan/implicit_layer.d -DSTATIC_QRENDERDOC=ON -DQRENDERDOC_NO_CXX11_REGEX=ON /renderdoc
|
|
make -j8
|
|
make install
|
|
|
|
# Copy python modules
|
|
mkdir /io/pymodules
|
|
cp -R lib/*.so /io/pymodules
|
|
|
|
# Copy python lib folder, and trim
|
|
mkdir -p /io/dist/share/renderdoc/pylibs/lib
|
|
cd /io/dist/share/renderdoc/pylibs/lib
|
|
cp -R /usr/lib/python3.6/ .
|
|
cd python3.6
|
|
# remove cache files
|
|
rm -rf $(find -iname __pycache__)
|
|
# remove unwanted modules
|
|
rm -rf test site-packages ensurepip distutils idlelib config-*
|