diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-09-09 00:45:20 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-09-09 00:45:20 +0200 |
commit | d41b214226b45f4660e423b08ec1b081df6c91eb (patch) | |
tree | f8c702675c2a880b631d54c867d9a6ca0ae724c2 | |
parent | 54b38adb83eb63cf77e92de1918cb3ea099f971a (diff) |
update readme
-rw-r--r-- | README.md | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -29,7 +29,7 @@ cd project-name # Build the project in debug mode and run it sibs run # To compile with optimizations enabled, run: -# sibs build --release +sibs build --release # and then the output binary is available in sibs-build/<platform-name>/release/project-name ``` @@ -71,6 +71,8 @@ After you have installed sibs, execute `sibs` without any arguments and you will The current recommended way of using sibs is to add dependencies as git submodules and they will automatically be used. To use system dependencies use pkg-config.\ You can list all your system packages with `pkg-config --list-all` (if the packages provide pkg-config files). To search for a package in this list you can use grep, like so: `pkg-config --list-all | grep 'pkg-name'` (replace pkg-name with the name of the package you want to search for).\ To then show the version of the found package you can use `pkg-config --modversion pkg-name`. + +sibs will prefer lld linker if it's available and then the gold linker. You can install lld to improve compile times. # Quirks Zig support has not been tested properly yet and currently always links to c library. You can run zig tests with `sibs test --file filepath` or `sibs test --all-files`. @@ -90,9 +92,9 @@ Users are required to manually install some libraries as they can't be included This requirement might be removed later, if the gpu driver libraries required can somehow be detected and downloaded cross platform. Libraries that are downloaded are available at: https://github.com/DEC05EBA/libraries # Cross compilation -Automatic cross compilation (`sibs build --platform <platform>`)currently only works from linux_x86_64 to win64 by using mingw-w64. You need to install `mingw-w64-gcc` and optionally `mingw-w64-pkg-config` if you want to use mingw-w64 system installed packages. +Automatic cross compilation (`sibs build --platform <platform>`) currently only works from linux_x86_64 to win64 by using mingw-w64. You need to install `mingw-w64-gcc` and optionally `mingw-w64-pkg-config` if you want to use mingw-w64 system installed packages. Cross compilation does currently not work if you have zig files as zig doesn't support libc when cross compiling at the moment. -You can run `scripts/mingw_package.py` to automatically copy dynamic library dependencies of your executable to the same directory as the executable, so the library can be found when running the executable on windows; this also allows you to bundle your application and distribute it without external dependencies. To run `scripts/mingw_package.py` you need to install pefile python library `sudo pip install pefile`. +You can run `scripts/mingw_package.py` to automatically copy dynamic library dependencies of your executable to the same directory as the executable, so the library can be found when running the executable on windows; this also allows you to bundle your application and distribute it without external dependencies. To run `scripts/mingw_package.py` you need to install pefile python library: `sudo pip install pefile`. Manual cross compilation can be done by replacing c, c++ compilers and static library archiver (ar) using the environment variable CC, CXX and AR. # IDE support |