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