LVGL is compiled fully every time I compile an example:
    
    
    nim c -r ex18_styles_to_parts_states.nim
    Hint: used config file 
'/home/jose/.choosenim/toolchains/nim-1.6.10/config/nim.cfg' [Conf]
    Hint: used config file 
'/home/jose/.choosenim/toolchains/nim-1.6.10/config/config.nims' [Conf]
    Hint: used config file 
'/home/jose/src/nimlang/lvgl.nim/examples/config.nims' [Conf]
    
.............................................................................................
    /home/jose/src/nimlang/lvgl.nim/examples/ex18_styles_to_parts_states.nim(3, 
11) Warning: imported and not used: 'streams' [UnusedImport]
    CC: lv_font_montserrat_30
    CC: lv_font_montserrat_46
    CC: lv_font_montserrat_28_compressed
    CC: lv_font_montserrat_12_subpx
    CC: lv_font
    ...
    
    
    Run

The reason is that the library is inteded to be embeded in the binary itself 
(and that is the reason behind 
[compiles.nim](https://github.com/mantielero/lvgl.nim/blob/81e0611d6fd55e60bc35d1ca86609ffd16e7d302/src/wrapper/compiles.nim)).

One option would be creating a library (dynamic or static).

But I was wondering if I could compile each file during the library 
installation; maybe with `nimble` leaving the `.o` files within the nimble 
folder structure.

But later, how I could link those files to the binary. Any `{.passL.}` flag? 
Maybe with `gorge` ? 

Reply via email to