www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dco how to specify Jpath?

reply "Suliman" <evermind live.ru> writes:
I am playing with dco. And it's look very helpful for tiny 
projects.

I can't understand is it's possible to add to dco.ini Jpath?
I am talking about something like:
dflags=-JD:\code\d\App1\source\

but when I am trying to compile code with dco it's can't find 
import.
I looked at source code and it's look like it's do not support 
dflags...

https://github.com/FrankLIKE/dco/tree/master/source
Nov 20 2014
next sibling parent "FrankLike" <1150015857 qq.com> writes:
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote:
 I am playing with dco. And it's look very helpful for tiny 
 projects.

 I can't understand is it's possible to add to dco.ini Jpath?
 I am talking about something like:
 dflags=-JD:\code\d\App1\source\

 but when I am trying to compile code with dco it's can't find 
 import.
 I looked at source code and it's look like it's do not support 
 dflags...

 https://github.com/FrankLIKE/dco/tree/master/source
Ok,I will add it. Thank you.
Dec 20 2014
prev sibling next sibling parent "FrankLike" <1150015857 qq.com> writes:
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote:
 I am playing with dco. And it's look very helpful for tiny 
 projects.

 I can't understand is it's possible to add to dco.ini Jpath?
 I am talking about something like:
 dflags=-JD:\code\d\App1\source\

 but when I am trying to compile code with dco it's can't find 
 import.
 I looked at source code and it's look like it's do not support 
 dflags...

 https://github.com/FrankLIKE/dco/tree/master/source
-Jpath where to look for files for ImportExpressions. This switch is required in order to use ImportExpressions. path is a ; separated list of paths. Multiple -J's can be used, and the paths are searched in the same order. ImportExpression: import ( AssignExpression ) But -Ipath -ID:\code\d\App1\source\ It's ok. So dco now can do it.
Dec 20 2014
prev sibling next sibling parent "FrankLike" <1150015857 qq.com> writes:
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote:
 I am playing with dco. And it's look very helpful for tiny 
 projects.

 I can't understand is it's possible to add to dco.ini Jpath?
 I am talking about something like:
 dflags=-JD:\code\d\App1\source\

 but when I am trying to compile code with dco it's can't find 
 import.
 I looked at source code and it's look like it's do not support 
 dflags...

 https://github.com/FrankLIKE/dco/tree/master/source
Default importPath is importPath=-I$(DMDInstallDir)windows/import You can modify it to your source. or add your source to the end. to do it: importPath=-I$(DMDInstallDir)windows/import -ID:\code\d\App1\source\
Dec 20 2014
prev sibling parent reply "FrankLike" <1150015857 qq.com> writes:
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote:
 I am playing with dco. And it's look very helpful for tiny 
 projects.

 I can't understand is it's possible to add to dco.ini Jpath?
 I am talking about something like:
 dflags=-JD:\code\d\App1\source\

 but when I am trying to compile code with dco it's can't find 
 import.
 I looked at source code and it's look like it's do not support 
 dflags...

 https://github.com/FrankLIKE/dco/tree/master/source
In dco.ini importPath= -I..\\source // modity it to your source
Dec 20 2014
parent reply "FrankLike" <1150015857 qq.com> writes:
On Sunday, 21 December 2014 at 07:43:14 UTC, FrankLike wrote:
 On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote:
 I am playing with dco. And it's look very helpful for tiny 
 projects.

 I can't understand is it's possible to add to dco.ini Jpath?
 I am talking about something like:
 dflags=-JD:\code\d\App1\source\

 but when I am trying to compile code with dco it's can't find 
 import.
 I looked at source code and it's look like it's do not support 
 dflags...

 https://github.com/FrankLIKE/dco/tree/master/source
In dco.ini importPath= -I..\\source // modity it to your source
In dco 0.1.0,you can get the 'local.ini' by 'dco -ini'. You can config project in local.
Jan 09 2015
parent "FrankLike" <1150015857 qq.com> writes:
On Friday, 9 January 2015 at 16:40:37 UTC, FrankLike wrote:

https://github.com/FrankLIKE/dco

you can use dco by local.ini( create it by dco -ini ),config your 
info into local.ini.
modify the ';dflag=' to 'dflags=-JyourPath'

Thank you.
Feb 01 2015