'type' is GYP target keyword, use 'extension_host_os' instead.
'extension_build_type' is more meaningful the word 'build'.
'target_name': 'vconf',
'type': 'none',
'conditions': [
- ['type=="mobile"', {
+ ['extension_host_os=="mobile"', {
'direct_dependent_settings': {
'cflags': [
'<!@(pkg-config --cflags vconf)',
'target_name': 'capi-system-power',
'type': 'none',
'conditions': [
- ['type=="mobile"', {
+ ['extension_host_os=="mobile"', {
'direct_dependent_settings': {
'cflags': [
'<!@(pkg-config --cflags capi-system-power)',
'target_name': 'capi-system-device',
'type': 'none',
'conditions': [
- ['type=="mobile"', {
+ ['extension_host_os=="mobile"', {
'direct_dependent_settings': {
'cflags': [
'<!@(pkg-config --cflags capi-system-device)',
'target_name': 'pmapi',
'type': 'none',
'conditions': [
- ['type=="mobile"', {
+ ['extension_host_os=="mobile"', {
'direct_dependent_settings': {
'cflags': [
'<!@(pkg-config --cflags pmapi)',
fi
if [ $# -eq 1 ] && [ $1 == "--desktop" ]; then
- echo -e "\n--desktop is deprecated. Please use '-D type=desktop' instead.\n"
+ echo -e "\n--desktop is deprecated. Please use '-D extension_host_os=desktop' instead.\n"
exit 1
fi
echo To build use: ninja -C out/Default
echo Works with individual targets too: ninja -C out/Default tizen_notification
-gyp -D build=Debug $@ --depth=. tizen-wrt.gyp
+gyp -D extension_build_type=Debug $@ --depth=. tizen-wrt.gyp
'networkbearerselection_context_mobile.cc',
],
'conditions': [
- ['type=="mobile"', {
+ ['extension_host_os=="mobile"', {
'cflags': [
'<!@(pkg-config --cflags capi-network-connection)',
],
'notification_context.h',
'notification_context_desktop.cc',
'notification_context_mobile.cc',
- 'mobile/notification_manager.cc',
- 'mobile/notification_manager.h',
+ 'mobile/notification_manager.cc',
+ 'mobile/notification_manager.h',
],
'conditions': [
- [ 'type == "desktop"', {
+ [ 'extension_host_os == "desktop"', {
'variables': { 'packages': ['libnotify'] },
}],
- [ 'type == "mobile"', {
- 'variables': { 'packages': ['notification'] },
- }],
+ [ 'extension_host_os == "mobile"', {
+ 'variables': { 'packages': ['notification'] },
+ }],
],
'includes': [ '../pkg-config.gypi' ],
export GYP_GENERATORS='make'
./tools/gyp/gyp \
--depth=. \
--Dbuild=Debug \
--Dtype=mobile \
+-Dextension_build_type=Debug \
+-Dextension_host_os=mobile \
tizen-wrt.gyp
make %{?_smp_mflags}
'power_context_mobile.cc',
],
'conditions': [
- ['type=="mobile"', {
+ ['extension_host_os=="mobile"', {
'dependencies': [
'capi-system-device',
'capi-system-power',
'vconf',
],
}],
- [ 'type == "desktop"', {
+ [ 'extension_host_os == "desktop"', {
'variables': { 'packages': ['gio-2.0'] },
'includes': [ '../pkg-config.gypi' ],
}],
'target_name': 'tizen_system_info',
'type': 'loadable_module',
'conditions': [
- [ 'type == "desktop"', {
+ [ 'extension_host_os == "desktop"', {
'variables': {
'packages': [
'NetworkManager',
]
},
}],
- [ 'type == "mobile"', {
+ [ 'extension_host_os == "mobile"', {
'dependencies': [
'vconf',
],
'variables': { 'type%': 'mobile' },
'target_defaults': {
'conditions': [
- ['type != "mobile"', {
+ ['extension_host_os != "mobile"', {
'sources/': [['exclude', '_mobile\\.cc$|mobile/']],
'includes/': [['exclude', '_mobile\\.gypi$|mobile/']],
}],
- ['type != "desktop"', {
+ ['extension_host_os != "desktop"', {
'sources/': [['exclude', '_desktop\\.cc$|desktop/']],
'includes/': [['exclude', '_desktop\\.gypi$|desktop/']],
}],
- ['type == "mobile"', { 'defines': ['TIZEN_MOBILE'] } ],
- ['type == "desktop"', { 'defines': ['GENERIC_DESKTOP'] } ],
- ['build == "Debug"', {
+ ['extension_host_os == "mobile"', { 'defines': ['TIZEN_MOBILE'] } ],
+ ['extension_host_os == "desktop"', { 'defines': ['GENERIC_DESKTOP'] } ],
+ ['extensino_build_type == "Debug"', {
'defines': ['_DEBUG', ],
'cflags': [ '-O0', '-g', ],
}],
- ['build == "Release"', {
+ ['extension_build_type == "Release"', {
'defines': ['NDEBUG', ],
'cflags': [
'-O2',