Hi everybody,
I want to add new component (new "feature" directory in "src" directory) to chromium source but I don't know how to build them.
Actually, no existing component depends on my new component so I don't need to touch 'dependencies' field of other gyp files.
What I tried to build them was
1. Add some cc and h files to my new directory (src/feature directory).
2. Create new feature.gyp file for building them.
{
'targets': [
{
'target_name': 'myfeature',
'type': '<(component)',
'dependencies': [
'<(DEPTH)/ui/aura/aura.gyp:aura',
],
'include_dirs': [
'..',
],
'includes': [
'../build/common.gypi',
],
'sources': [
'main_feature.h',
'main_feature.cc',
'sub_feature.h'
'sub_feature.cc',
],
},
]
}
3. Add "../feature/feature.gyp" dependency to src/build/all.gyp file.
4. Clean and re-build chromium.
I could see feature.ninja file but there is no object files from main_feature.cc and sub_feature.cc files.
Do I need to do something else?
Thanks in advance.
Derek