Wish [B4X] Conditional compilation depending on whether or not a library was added to the project

Discussion in 'Bugs & wishlist' started by walt61, May 20, 2018.

  1. walt61

    walt61 Active Member Licensed User

    In my shared modules I'd like to be able to have subs that can sit there and only be considered by the compiler if a given library was added to the project. I'm aware of Build Configurations, but these would require setting them up manually on a project by project basis.

    Example:

    Code:
    #IfLibrary Animation
    Sub DoSomeAnimation
    '...
    End Sub
    #End If
    Only if I add the 'Animation' library to the project, the sub will be considered for compilation. If I don't add the library, it won't be, and I won't have compiler errors regarding unknown objects, and I'll be able to use the same shared module for all projects without the need for manual tweaking.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice