Jump to content
Igor Savkic

Custom library path

Recommended Posts

I'm trying to organize common/shared units into one place where I keep my regular Delphi shared units.

 

Is it possible to specify some external dir (not within SMS_InstallDir\Libraries) as library path in which SMS would search for source files?

Share this post


Link to post
Share on other sites

Is it possible to add files from a different location?

 

i.e., in delphi in dpr we do things  like

 

uses

frontend in 'c:\myfiles\frontend.pas'

 

is there similar in SMS.

 

Alternatively can we add custom library paths?

 

---

 

If we were to have a team of people coding using a set of common units how could this be achieved using SMS?

 

Seems at the moment each coder would have to have a copy of the custom files in the library folder, is that correct?

Share this post


Link to post
Share on other sites

...in the current project folder, create a folder named "resources", then move some files into this DIR. f.i let's move Smart.Core.pas to resources\Smart.Core.pas

 

C:\myprojects
├ YOURPROJECT.sproj
├───resources
│   
└───www
    ├───res
    └───lib
    └───css

 

a hackish solution I think will work for you, just edit your project  YOURPROJECT.sproj with an external text editor, ensure SmartMS.exe is not running. You have to edit manually the path in the FILE section.

      <File type="unit">
        <Name>Smart.Core</Name>
        <Created>2016-12-14T13:32:16.015Z</Created>
        <Modified>2016-12-15T02:11:10.125</Modified>
        <Filename>resources\Smart.Core.pas</Filename>
      </File>

Just restart SmartMS now.

Share this post


Link to post
Share on other sites

What I think I might do is place our own common units into the library folder and then use SVN to keep the team up to date.

I will have a look at your suggestions also once we get started on our team efforts.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×