This repository has been archived by the owner on Apr 13, 2024. It is now read-only.
forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* try to run scons in azure pipelines * sudo * install capnp * does this run * also clean test runner * remove makefiles * this should build
- Loading branch information
Showing
11 changed files
with
117 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.sconsign.dblite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ libcereal*.a | |
libmessaging.* | ||
libmessaging_shared.* | ||
services.h | ||
.sconsign.dblite | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from ubuntu:16.04 | ||
|
||
RUN apt-get update && apt-get install -y libzmq3-dev clang wget git autoconf libtool curl make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl | ||
|
||
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash | ||
ENV PATH="/root/.pyenv/bin:/root/.pyenv/shims:${PATH}" | ||
RUN pyenv install 3.7.3 | ||
RUN pyenv global 3.7.3 | ||
RUN pyenv rehash | ||
RUN pip3 install pyyaml==5.1.2 Cython==0.29.14 scons==3.1.1 pycapnp==0.6.4 | ||
|
||
WORKDIR /project/cereal | ||
COPY install_capnp.sh . | ||
RUN ./install_capnp.sh | ||
|
||
ENV PYTHONPATH=/project | ||
|
||
COPY . . | ||
RUN scons -c && scons -j$(nproc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import os | ||
import subprocess | ||
|
||
zmq = 'zmq' | ||
arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip() | ||
|
||
cereal_dir = Dir('.') | ||
|
||
cpppath = [ | ||
cereal_dir, | ||
'/usr/lib/include', | ||
] | ||
|
||
AddOption('--test', | ||
action='store_true', | ||
help='build test files') | ||
|
||
AddOption('--asan', | ||
action='store_true', | ||
help='turn on ASAN') | ||
|
||
ccflags_asan = ["-fsanitize=address", "-fno-omit-frame-pointer"] if GetOption('asan') else [] | ||
ldflags_asan = ["-fsanitize=address"] if GetOption('asan') else [] | ||
|
||
env = Environment( | ||
ENV=os.environ, | ||
CC='clang', | ||
CXX='clang++', | ||
CCFLAGS=[ | ||
"-g", | ||
"-fPIC", | ||
"-O2", | ||
"-Werror=implicit-function-declaration", | ||
"-Werror=incompatible-pointer-types", | ||
"-Werror=int-conversion", | ||
"-Werror=return-type", | ||
"-Werror=format-extra-args", | ||
] + ccflags_asan, | ||
LDFLAGS=ldflags_asan, | ||
LINKFLAGS=ldflags_asan, | ||
|
||
CFLAGS="-std=gnu11", | ||
CXXFLAGS="-std=c++14", | ||
CPPPATH=cpppath, | ||
) | ||
|
||
|
||
Export('env', 'zmq', 'arch') | ||
SConscript(['SConscript']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ test_runner | |
*.a | ||
*.so | ||
messaging_pyx.cpp | ||
build/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters