Hi there,

* "name" is used as a lookup key to locate the app (app name is passed
to nox_core as an argument).
* "library" is used to locate the shared object file to dlopen.

They could have the same value, but they have different meanings. The
library value depends on your Makefile.am. So if you are replacing
switch to switchtest in your Makefile.am, that should be fine.


Cheers,
Amin

On Tue, May 15, 2012 at 5:46 PM, chenyangseamoon
<[email protected]> wrote:
> Hi,
> Question 1
> I don't quite understand the relationship betweent components in meta.json
> files and the class in nox source code?
> {
>     "components": [
>         {
>             "name": "switch" ,
>             "library": "switch"
>         }
>     ]
>     }
> There is a "switch" direcotry in coreapps directory and switch.cc source in
> "switch" direcotry and also a switch class defined in switch.cc.
> What is the meaning of "name":"switch" and "library":"switch"?
> 1.Does the "name":"switch" means the switch diretory,switch.cc file or
> switch class?
> 2.I find a switch.la file in build/scr/nox/coreapps/switch/, does the
> "library":"switch" means switch.la?And how does nox use switch.la
>   when nox is runing?
> Question 2
>     If  I want to add a new component such as "switchtest" in coreapps, how
> can I do this?
>     Dose it look like the following steps?
>     1.create a diretory switchtest.
> 2.create a new file switchtest.cc and write the class switchtest
> 3.write my own meta.json file
>
> {
>       "components": [
>                     {"name": "switchtest" ,
>                     "library": "switchtest" }
>                      ]
>     }
>
> 4.write the Makefile.am file.
>
> Thank you!
>
> Chen Yang
>
>
> 2012-05-16
> ________________________________
> chenyangseamoon

Reply via email to