aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build.sh
Commit message (Collapse)AuthorAgeFilesLines
* BTAdapter::setDefaultConnParam() may fail w/ UNKNOWN_COMMAND on GNU/Linux < ↵Sven Gothel2022-06-181-3/+3
| | | | 5.9 (Ubuntu 20.04), tolerate it.
* JNI Lifecycle Fix: BTGattCharListener: Adopt full Java/Native link via ↵Sven Gothel2022-05-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | DBTNativeDownlink and JavaUplink like AdapterStatusListener change, clean listener API + impl. AdapterStatusListener adopted fully linked via DBTNativeDownlink (java->native) and JavaUplink (native->java). This allows intrinsic lifecycle management. Native destruction leads to its reference removal from the java object and destruction of the java object removes its reference from the native object. Both reference removals may lead to their destruction if reaching zero. (was commit 9c5f25ccd1637728d6e79592279e4b38ecd32f59) Same applies to BTGattCharListener: - This removed BTGattChar::Listener, simply use BTGattCharListener - Using private BTGattHandler::GattCharListenerPair struct for BTGattChar mapping - No more manual or exposed BTGattChar mapping - Java: An added BTGattCharListener instance can be used for removal now, no more wrapper object magic returned. Further: - moved removed `namespace impl`, moved StatusListenerPair into private BTAdapter - have all add/remove*Listener methods noexcept Unit tests validating BTGattCharListener add and remove.
* trial i470 test_provoke (C++) / TestDBTProvoke (Java) demonstrating C++ ↵Sven Gothel2022-05-071-9/+9
| | | | survives while Java crashes (known issue)
* build scripts: Only use OpenJDK 17 if available (Not available on Debian 10)Sven Gothel2022-04-241-1/+5
|
* Build and testing using OpenJDK 17 (min requirement still 11) using our ↵Sven Gothel2022-04-231-1/+1
| | | | build scripts
* build.sh: Detail trial/testing w/ and w/o DEBUGSven Gothel2022-04-181-1/+3
|
* README.md: Bump for v2.6.3v2.6.3Sven Gothel2022-04-111-1/+1
|
* Added online unit testing using actual BT adapter, testing client with ↵Sven Gothel2022-02-071-2/+3
| | | | | | | | | | | | | | | server functionality Building with enabled *trial* and *testing* , i.e. live testing with 2 Bluetooth adapter is provided via the *cmake* build argument `-DBUILD_TRIAL=ON`, see above. The *trial* tests utilize one or more actual Bluetooth adapter, hence using the *capsh* launch for the required permissions as described above. Therefor, *sudo* will be called and a user interaction to enter the *sudo* password may occur. The *trial* tests cover *Direct-BT*'s Bluetooth functionality, having its *master/client* and *slave/server peripheral* facilities communicating via actual adapter, supporting regression testing of the API, its implementation and adapter.
* [re]build.sh: Fully specify `logfile` incl $rootdir and $archabi part; ↵Sven Gothel2022-01-251-2/+3
| | | | Adding rebuild-cross.sh
* scripts/build.sh: Cleanup alternative cmake invocation, emphasize on RELEASE ↵Sven Gothel2021-11-151-1/+4
| | | | (active) and DEBUG (commented out)
* Examples: Build using a set of idiomatic names, one recipe for each ↵Sven Gothel2021-09-271-1/+0
| | | | examples; Add jar install for example/java!
* Direct-BT: Remove TinyB and Cleanup Java API (1)Sven Gothel2021-08-311-1/+0
| | | | | | | | | | | | | | | | | | Starting with version 2.3, the previously refactored *TinyB* has been removed completely. Motivation was lack of detailed Bluetooth support, inclusive increasing diversion with *Direct-BT*. Furthermore, work is underway for `BLE slave periphal and GATT server` support and its mapping to *BlueZ D-Bus* is questionable and would be resource intensive. Java API changed as follows: - Objects no more Clonable - Removed dead unsupported code - Removed deprecated code - Added 'GattCharPropertySet', representing property bit mask for BTGattChar, replacing the string array.
* locale: Add LC_ALL and hint to set system (testing requires proper unified ↵Sven Gothel2021-01-291-2/+4
| | | | setup)
* Revert to gcc as default since clang < 10 has issues on 32bit arm (raspi3 setup)Sven Gothel2021-01-281-1/+1
|
* cmake/build/test: Ensure UTF8 is used by system, set LANG to 'en_US.UTF-8' ↵Sven Gothel2021-01-281-0/+4
| | | | to have a unified environment
* Complete build change: Using jaulib[_fat] if available (for Java) incl. ↵Sven Gothel2021-01-251-2/+4
| | | | native lib loading. Added junit test facility (Java).
* Replace std::vector w/ jau::darray: Adapt JNI methodsSven Gothel2021-01-111-2/+2
|
* cmake: Disable RTTI (-fno-rtti) for now, ensuring no side-effects; Adding ↵Sven Gothel2021-01-051-1/+4
| | | | GPROF and PERF_ANALYSIS 'tags' to build with gprof or just '-O3 -g -ggdb' (callgrind)
* cmake: Expose different instrumentation (-fsanitize=) modulesSven Gothel2020-10-211-0/+2
|
* Build: Separate GCC sanitize flags from DEBUG=ON, enable via INSTRUMENTATION=ONSven Gothel2020-10-181-0/+1
|
* scripts/build.sh: Add commented out CLANG_ARGS (documentation, convenience)Sven Gothel2020-09-301-2/+3
|
* CMake: Support full parallel build by adding target dependenciesSven Gothel2020-09-151-2/+4
| | | | | | | | | | | | | | | | C++ Libs -> none (2x) Java Jar -> none Java JNI Libs -> C++ Lib + Java Jar (2x) C++ Examples -> C++ Libs Java Examples -> Java Jar Test -> C++ Lib +++ scripts/[re]build.sh uses `getconf _NPROCESSORS_ONLN` for the make -j <number of parallel processes>.
* scripts/build.sh: Default to RELEASESven Gothel2020-09-141-2/+2
|
* cmake: CMAKE_EXE_LINKER_FLAGS += '-latomic' to fix gcc-8 on Raspberry: ↵Sven Gothel2020-08-251-0/+1
| | | | undefined reference to `__atomic_store_8'
* Build direct_bt with DEBUG symbols enabled .. for the time beingv2.1.8Sven Gothel2020-06-271-1/+2
|
* Use generic 'setup-machine-arch.sh' for unified build.sh and rebuild.sh scriptsSven Gothel2020-06-181-0/+41