Compare commits
No commits in common. "master" and "1.0.2" have entirely different histories.
@ -1,10 +0,0 @@
|
|||||||
README.md
|
|
||||||
LICENSE
|
|
||||||
.pre-commit-config.yaml
|
|
||||||
.gitignore
|
|
||||||
.clang-format
|
|
||||||
examples
|
|
||||||
Dockerfile
|
|
||||||
build
|
|
||||||
builddir
|
|
||||||
out
|
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -4,6 +4,3 @@ builddir
|
|||||||
*.kb
|
*.kb
|
||||||
*.obk
|
*.obk
|
||||||
!examples/*.obk
|
!examples/*.obk
|
||||||
sqlite/*.c
|
|
||||||
sqlite/*.h
|
|
||||||
out
|
|
||||||
|
26
Dockerfile
26
Dockerfile
@ -1,26 +0,0 @@
|
|||||||
FROM ubuntu:22.04 AS build-prep
|
|
||||||
RUN apt update && apt upgrade -y
|
|
||||||
RUN apt install -y llvm clangd meson ninja-build pkg-config libsqlite3-dev doxygen graphviz wget unzip
|
|
||||||
WORKDIR /obelisk
|
|
||||||
COPY . .
|
|
||||||
RUN ./sqlite.sh
|
|
||||||
|
|
||||||
FROM build-prep AS build-machine
|
|
||||||
RUN meson --prefix=/usr build
|
|
||||||
RUN cd build && ninja -v
|
|
||||||
|
|
||||||
FROM build-machine AS build-machine-intermediate
|
|
||||||
RUN cd /obelisk/build/src/lib && rm -rf *.h *.p models
|
|
||||||
|
|
||||||
FROM scratch AS obelisk
|
|
||||||
COPY --from=build-machine-intermediate /obelisk/build/src /bin/
|
|
||||||
COPY --from=build-machine-intermediate /obelisk/build/src/lib /lib/
|
|
||||||
COPY --from=build-machine-intermediate /obelisk/build/doc/man /man/
|
|
||||||
COPY --from=build-machine-intermediate /obelisk/build/doc/html /doc/
|
|
||||||
ENTRYPOINT [ "/bin/obelisk" ]
|
|
||||||
|
|
||||||
FROM scratch AS binaries
|
|
||||||
COPY --from=obelisk /bin/obelisk /bin/
|
|
||||||
COPY --from=obelisk /lib /lib/
|
|
||||||
COPY --from=obelisk /man /man/
|
|
||||||
COPY --from=obelisk /doc /doc/
|
|
52
README.md
52
README.md
@ -1,52 +0,0 @@
|
|||||||
# Obelisk
|
|
||||||
|
|
||||||
The Obelisk project is a declarative language designed to help with the implementation of Artificial Intelligence using an easy to use logical programming language.
|
|
||||||
|
|
||||||
## Build requirements
|
|
||||||
|
|
||||||
- Meson
|
|
||||||
- Ninja
|
|
||||||
- LLVM 14
|
|
||||||
- sqlite 3 library and headers(in debian libsqlite3-dev)
|
|
||||||
- C++ 17
|
|
||||||
- C 17
|
|
||||||
|
|
||||||
## Build
|
|
||||||
|
|
||||||
### Normal build
|
|
||||||
|
|
||||||
```
|
|
||||||
./sqlite.sh
|
|
||||||
meson builddir
|
|
||||||
cd buildir
|
|
||||||
ninja
|
|
||||||
```
|
|
||||||
|
|
||||||
This process will generate the binary "obelisk", a shared library "libobelisk.so", and a static library "libobelisk.a".
|
|
||||||
|
|
||||||
The binary is used to compile and create obelisk knowledge bases and the the libraries can be linked against to consult the Obelisk knowledge base from any software that can link with the libraries.
|
|
||||||
|
|
||||||
### Build in docker image
|
|
||||||
|
|
||||||
```
|
|
||||||
docker build ./ --output=out
|
|
||||||
```
|
|
||||||
|
|
||||||
This will create a directory called out which will contain the binaries, libraries, and generated documentation.
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
```
|
|
||||||
ninja install
|
|
||||||
```
|
|
||||||
|
|
||||||
This will install the Obelisk cli and the Obelisk library globally. You can also copy the resulting shared and/or static library to a project to link against and use an Obelisk knowledge base.
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
Obelisk is licensed under the [The 3-Clause BSD License](LICENSE).
|
|
||||||
|
|
||||||
## Authors
|
|
||||||
|
|
||||||
- Christopher Cromer
|
|
||||||
- Martín Araneda
|
|
@ -1,7 +1,7 @@
|
|||||||
project('obelisk',
|
project('obelisk',
|
||||||
'c',
|
'c',
|
||||||
'cpp',
|
'cpp',
|
||||||
version : '1.0.4',
|
version : '1.0.2',
|
||||||
license : 'BSD-3-Clause',
|
license : 'BSD-3-Clause',
|
||||||
default_options : [
|
default_options : [
|
||||||
'warning_level=3',
|
'warning_level=3',
|
||||||
|
11
sqlite.sh
11
sqlite.sh
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
VERSION=sqlite-amalgamation-3410000
|
|
||||||
|
|
||||||
pushd sqlite
|
|
||||||
wget https://sqlite.org/2023/${VERSION}.zip
|
|
||||||
unzip ${VERSION}.zip
|
|
||||||
cp ${VERSION}/sqlite3.c .
|
|
||||||
cp ${VERSION}/sqlite3.h .
|
|
||||||
rm -rf ${VERSION} ${VERSION}.zip
|
|
||||||
popd
|
|
245165
sqlite/sqlite3.c
Normal file
245165
sqlite/sqlite3.c
Normal file
File diff suppressed because it is too large
Load Diff
12970
sqlite/sqlite3.h
Normal file
12970
sqlite/sqlite3.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user