Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build instructions #1

Open
vChavezB opened this issue Dec 11, 2022 · 1 comment
Open

Build instructions #1

vChavezB opened this issue Dec 11, 2022 · 1 comment

Comments

@vChavezB
Copy link

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
@Jarod42
Copy link
Owner

Jarod42 commented Oct 13, 2023

Sorry for the delay.
Thanks for sharing.

There is a github action for ubuntu (https://github.com/Jarod42/ccccc/blob/master/.github/workflows/ubuntu.yml)

Changing clang/llvm version might be adjusted.

Trying to have one for windows (without success with dependencies :-/) and then mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants