{
+ 'includes':[
+ '../common/common.gypi',
+ ],
'targets': [
{
+ 'target_name': 'tizen_bluetooth',
+ 'type': 'loadable_module',
'variables': {
- 'packages': ['gio-2.0'],
+ 'packages': [
+ 'gio-2.0',
+ ],
'bluetooth%': 'bluez4',
},
-
- 'includes': [ '../pkg-config.gypi' ],
- 'target_name': 'tizen_bluetooth',
- 'type': 'loadable_module',
+ 'includes': [
+ '../common/pkg-config.gypi',
+ ],
'sources': [
'bluetooth_api.js',
'bluetooth_context.cc',
'bluetooth_context.h',
],
-
'conditions': [
[ 'bluetooth == "bluez5"', {
'sources': ['bluetooth_context_bluez5.cc'],
--- /dev/null
+{
+ 'variables': {
+ # Copy conditionally-set variables out one scope.
+ 'extension_host_os%': '<(extension_host_os)',
+ 'extension_build_type%': '<(extension_build_type)',
+ 'extension_host_os%': 'mobile',
+ 'extension_build_type%': 'Debug',
+ },
+ 'target_defaults': {
+ 'conditions': [
+ ['extension_host_os != "mobile"', {
+ 'sources/': [['exclude', '_mobile\\.cc$|mobile/']],
+ 'includes/': [['exclude', '_mobile\\.gypi$|mobile/']],
+ }],
+ ['extension_host_os != "desktop"', {
+ 'sources/': [['exclude', '_desktop\\.cc$|desktop/']],
+ 'sources/': [['exclude', '_desktop\\.gypi$|desktop/']],
+ }],
+ ['extension_host_os == "mobile"', { 'defines': ['TIZEN_MOBILE'] } ],
+ ['extension_host_os == "desktop"', { 'defines': ['GENERIC_DESKTOP'] } ],
+ ['extension_build_type== "Debug"', {
+ 'defines': ['_DEBUG', ],
+ 'cflags': [ '-O0', '-g', ],
+ }],
+ ['extension_build_type == "Release"', {
+ 'defines': ['NDEBUG', ],
+ 'cflags': [
+ '-O2',
+ # Don't emit the GCC version ident directives, they just end up
+ # in the .comment section taking up binary size.
+ '-fno-ident',
+ # Put data and code in their own sections, so that unused symbols
+ # can be removed at link time with --gc-sections.
+ '-fdata-sections',
+ '-ffunction-sections',
+ ],
+ }],
+ ],
+ 'includes': [
+ 'xwalk_js2c.gypi',
+ 'tizen_mobile.gypi',
+ ],
+ 'include_dirs': [
+ '../',
+ '<(SHARED_INTERMEDIATE_DIR)',
+ ],
+ 'sources': [
+ 'extension_adapter.h',
+ 'picojson.h',
+ 'utils.h',
+ ],
+ 'cflags': [
+ '-fPIC',
+ '-fvisibility=hidden',
+ ],
+ },
+}
'rule_name': 'xwalk_js2c',
'extension': 'js',
'inputs': [
- './tools/generate_api.py',
+ '../tools/generate_api.py',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).cc'
{
+ 'includes':[
+ '../common/common.gypi',
+ ],
'targets': [
{
'target_name': 'tizen_networkbearerselection',
{
+ 'includes':[
+ '../common/common.gypi',
+ ],
'targets': [
{
'target_name': 'tizen_notification',
'type': 'loadable_module',
+ 'includes': [
+ '../common/pkg-config.gypi',
+ ],
'sources': [
'notification_api.js',
'notification_context.cc',
'variables': { 'packages': ['notification'] },
}],
],
-
- 'includes': [ '../pkg-config.gypi' ],
},
],
}
{
+ 'includes':[
+ '../common/common.gypi',
+ ],
'targets': [
{
'target_name': 'tizen_power',
}],
[ 'extension_host_os == "desktop"', {
'variables': { 'packages': ['gio-2.0'] },
- 'includes': [ '../pkg-config.gypi' ],
+ 'includes': [ '../common/pkg-config.gypi' ],
}],
],
},
{
+ 'includes':[
+ '../common/common.gypi',
+ ],
'targets': [
{
'target_name': 'tizen_system_info',
]
},
'includes': [
- '../pkg-config.gypi',
+ '../common/pkg-config.gypi',
],
'sources': [
'system_info_api.js',
'<(SHARED_INTERMEDIATE_DIR)/system_info_marshaller.h',
],
'action': [
- '<(DEPTH)/tools/redirect-stdout.sh',
+ '../tools/redirect-stdout.sh',
'glib-genmarshal --header <@(_inputs)',
'<@(_outputs)',
],
'<(SHARED_INTERMEDIATE_DIR)/system_info_marshaller.c',
],
'action': [
- '<(DEPTH)/tools/redirect-stdout.sh',
+ '../tools/redirect-stdout.sh',
'glib-genmarshal --body <@(_inputs)',
'<@(_outputs)',
],
{
+ 'includes':[
+ '../common/common.gypi',
+ ],
'targets': [
{
'target_name': 'tizen_time',
{
- 'variables': { 'type%': 'mobile' },
- 'target_defaults': {
- 'conditions': [
- ['extension_host_os != "mobile"', {
- 'sources/': [['exclude', '_mobile\\.cc$|mobile/']],
- 'includes/': [['exclude', '_mobile\\.gypi$|mobile/']],
- }],
- ['extension_host_os != "desktop"', {
- 'sources/': [['exclude', '_desktop\\.cc$|desktop/']],
- 'includes/': [['exclude', '_desktop\\.gypi$|desktop/']],
- }],
- ['extension_host_os == "mobile"', { 'defines': ['TIZEN_MOBILE'] } ],
- ['extension_host_os == "desktop"', { 'defines': ['GENERIC_DESKTOP'] } ],
- ['extensino_build_type == "Debug"', {
- 'defines': ['_DEBUG', ],
- 'cflags': [ '-O0', '-g', ],
- }],
- ['extension_build_type == "Release"', {
- 'defines': ['NDEBUG', ],
- 'cflags': [
- '-O2',
- # Don't emit the GCC version ident directives, they just end up
- # in the .comment section taking up binary size.
- '-fno-ident',
- # Put data and code in their own sections, so that unused symbols
- # can be removed at link time with --gc-sections.
- '-fdata-sections',
- '-ffunction-sections',
- ],
- }],
- ],
- 'includes': [
- 'xwalk_js2c.gypi',
- ],
- 'include_dirs': [
- '.',
- '<(SHARED_INTERMEDIATE_DIR)',
- ],
- 'sources': [
- '../common/extension_adapter.h',
- '../common/picojson.h',
- '../common/utils.h',
- ],
- 'cflags': [
- '-fPIC',
- '-fvisibility=hidden',
- ],
- },
- 'includes': {
- 'common/tizen_mobile.gypi',
- 'bluetooth/bluetooth.gypi',
- 'notification/notification.gypi',
- 'power/power.gypi',
- 'system_info/system_info.gypi',
- 'tizen/tizen.gypi',
- 'networkbearerselection/networkbearerselection.gypi',
- 'time/time.gypi',
- },
+ 'targets': [
+ {
+ 'target_name': 'build_all_tizen_extensions',
+ 'type': 'none',
+ 'dependencies': [
+ 'bluetooth/bluetooth.gyp:*',
+ 'networkbearerselection/networkbearerselection.gyp:*',
+ 'notification/notification.gyp:*',
+ 'power/power.gyp:*',
+ 'system_info/system_info.gyp:*',
+ 'time/time.gyp:*',
+ 'tizen/tizen.gyp:*',
+ ],
+ },
+ ],
}
{
+ 'includes':[
+ '../common/common.gypi',
+ ],
'targets': [
{
'target_name': 'tizen',