Results 1 to 2 of 2

Thread: Suggestion - Module Dependency

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Suggestion - Module Dependency

    After source release of ZLIB module, one thing to enhance SDK occured to me - module dependency declaration.

    It would look as following in module code:
    [code=thinBasic]
    thinBasic_AddDependency <NameOfFile>
    [/code]

    What is this good for?

    When bundling EXE from script, ThinBasic can check which other files are needed to make module work.
    In case of ZLIB module it would be external ZLIB.DLL:
    thinBasic_AddDependency "ZLIB.DLL"
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Suggestion - Module Dependency

    In reality this is already done in Core engine.
    The fact that in zLib module is not done is because zlib.dll is already added in all thinBasic bundled exe.

    But your suggestion is very clever and I think I will add this in order to let the module be independent in declaring dependancies.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •