How to divide a Delphi project into BPLs properly?

前端 未结 4 1088
轮回少年
轮回少年 2020-12-25 08:42

The company I work for develops a system in Delphi, that contains dozens of exe modules, and each of them is identical to a certain degree if it comes to source code. Sadly,

4条回答
  •  自闭症患者
    2020-12-25 08:56

    "In my exe project settings I checked the option "build with runtime packages"

    That is why you cannot deploy without the BPL's etc - this option is confusing for a lot of developers -"build with runtime packages" means that you will need the bpl's present at runtime. Uncheck that option and the packages will be linked into your exe at compileTime. (Your exe will g-r-o-w in size.) The idea behind the "build with runtime packages" is to keep the size of exe's down and allow several apps to share common bpl's because they are NOT linked into the exe @ compileTime - that's the upside. The downside you are now experiencing - you must distribute your bpl's with your exe.

提交回复
热议问题