Skip to content

Build instructions #1

@vChavezB

Description

@vChavezB

After trial and error I was able to build the project. It would be good to have build instructions.

So far I have been able to build a docker container 👍

FROM debian:bookworm-slim
RUN apt-get update
RUN apt-get install make git wget gcc g++ -y
ENV LLVM_VERSION 15
RUN apt-get install gnupg software-properties-common -y
RUN wget -nv https://apt.llvm.org/llvm.sh && \
    chmod +x llvm.sh && \
    ./llvm.sh $LLVM_VERSION && rm -rf llvm.sh
RUN apt-get install clang-15 libclang-15-dev llvm-15-dev llvm-15-runtime llvm-15 -y

#CCCCC
ENV CCCCC_VER f2520dc635c5d232a0f76426c1d525497ab37f22
ENV PREMAKE_VER 2a3f3b75ec97209f0a93368711485d81c4796310
RUN apt-get install libunittest++ \
                    autoconf \
                    libtool \
                    libtinfo-dev \
                    uuid-dev \
                    libctemplate-dev -y
RUN cd /tmp/ && \
    git clone https://github.com/premake/premake-core && \
    cd premake-core && git checkout $PREMAKE_VER && \
    make -f Bootstrap.mak linux CONFIG=release && \
    cp bin/release/premake5 /usr/bin && cd .. && rm -rf premake-core
RUN cd /tmp/ && \
    git clone https://github.com/Jarod42/ccccc && \
    cd ccccc && git checkout $CCCC_VER && \
    premake5 --file="premake/premake5.lua" --llvm-root="/usr/lib/llvm-${LLVM_VERSION}" gmake && \
    cd project/gmake && make config=release verbose=1 && \
    cd ../../bin/gmake/Release && ./ccccc_test && \
    mv ccccc /usr/bin/ && cd .. && rm -rf ccccc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions