Jump to content


Photo

Custom library path


  • Please log in to reply
3 replies to this topic

#1 Igor Savkic

Igor Savkic
  • Members
  • 164 posts

Posted 10 June 2016 - 12:43 AM

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?


  • Czar likes this

#2 Czar

Czar
  • Members
  • 109 posts

Posted 05 June 2017 - 12:37 PM

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?



#3 Laksekjønn

Laksekjønn
  • Members
  • 418 posts

Posted 06 June 2017 - 03:52 PM

...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.


  • Czar and Nico Wouterse like this

#4 Czar

Czar
  • Members
  • 109 posts

Posted 06 June 2017 - 10:18 PM

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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users