objectbox / objectbox-generator

ObjectBox Generator based on FlatBuffers schema files (fbs) for C and C++ (more languages in the future)
https://objectbox.io
GNU Affero General Public License v3.0
36 stars 11 forks source link

Conditional test-case compilation based on installed libraries #2

Closed vaind closed 4 years ago

vaind commented 4 years ago

WRT code compilation: the compiler needs to have objectbox & flatbuffers/flatc headers on include path. Temporarily, I've installed them on my PC to system folders (/usr/local/lib) and the same can be done for the CI, until we decide if/how we're going to integrate those headers with the generator so the generator could output them in along with objectbox headers

The tests would:

Originally posted by @vaind in https://github.com/objectbox/objectbox-generator/pull/1#issuecomment-645994029

greenrobot commented 4 years ago

check whether flatc is installed

We'll use our embedded flatc, right? You probably refer to flatcc?

check whether objectbox is installed

To clarify: tests should download objectbox.h and lib if not yet present.