在 2015年7月31日星期五 UTC+8下午6:51:07,Ted Mielczarek写道:
> On Fri, Jul 31, 2015, at 05:11 AM, [email protected] wrote:
> > 
> > Hi all,
> > 
> > I have created a folder named test_dir in top src dir. (The same level
> > with dom, uriloader, widget etc). 
> > 
> > I simply add a source code named test.cpp and moz.build as below,
> > however, the build system didn't go into that folder and compiled the
> > source. 
> > 
> > Do you know which files I need to change in build system or how can I
> > successfully compile the folder.  thanks a lot. 
> > 
> > mozilla/test_dir$ cat moz.build
> > #-----You can modify variable DEPTH.Don't change below config info-----#
> > #
> > SOURCES = +[ 
> >     'test.cpp',
> > ]
> > 
> > FINAL_LIBRARY = 'ff_test'
> > 
> > 
> > 
> > test_dir$ cat test.cpp
> > #error "stop here"
> 
> The part of the build system that reads moz.build files starts at the
> root moz.build file:
> https://dxr.mozilla.org/mozilla-central/source/moz.build
> 
> It processes that, and collects directories listed in DIRS, and then
> processes moz.build files in those directories recursively until it runs
> out. You need to add your directory to a DIRS list in some moz.build
> file in order for the build system to process it.
> 
> -Ted

Thank you Ted. As someone's answer in my another post, I added it in 
tookit/toolkit.mozbuild
_______________________________________________
dev-builds mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to