blob: 648718c8ef766e7a55d7fad314efd09d40ab686f [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001# This file has all of the aos targets.
brians343bc112013-02-10 01:53:46 +00002{
brians343bc112013-02-10 01:53:46 +00003 'targets': [
Brian Silvermanb0893882014-02-10 14:48:30 -08004 # A target for things used by the logging implementation (except die) to
Brian Silverman6da04272014-05-18 18:47:48 -07005 # depend on that allows linking successfully with logging calls. However,
6 # executables containing targets that depend on this still need a dependency
7 # on logging somewhere or else they won't link.
Brian Silvermanb0893882014-02-10 14:48:30 -08008 {
9 'target_name': 'logging_interface',
10 'type': 'static_library',
11 'sources': [
12 '<(AOS)/common/logging/logging_interface.cc',
13 ],
14 'conditions': [
15 ['OS=="linux"', {
16 'sources': [
17 '<(AOS)/linux_code/logging/linux_interface.cc',
18 ],
Brian Silverman17311c92014-09-06 00:48:59 -040019 'dependencies': [
20 '<(AOS)/linux_code/linux_code.gyp:complex_thread_local',
21 ],
Brian Silvermanb0893882014-02-10 14:48:30 -080022 }],
23 ],
24 'dependencies': [
25 '<(AOS)/common/common.gyp:die',
Brian Silvermanaf784862014-05-13 08:14:55 -070026 '<(AOS)/common/libc/libc.gyp:aos_strerror',
Brian Silverman01be0002014-05-10 15:44:38 -070027 ],
28 'export_dependent_settings': [
Brian Silvermanaf784862014-05-13 08:14:55 -070029 '<(AOS)/common/libc/libc.gyp:aos_strerror',
Brian Silvermanb0893882014-02-10 14:48:30 -080030 ],
31 },
brians343bc112013-02-10 01:53:46 +000032 {
33 'target_name': 'logging',
34 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -080035 'sources': [
36 '<(AOS)/common/logging/logging_impl.cc',
37 ],
brians343bc112013-02-10 01:53:46 +000038 'conditions': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080039 ['OS=="linux"', {
brians343bc112013-02-10 01:53:46 +000040 'sources': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080041 '<(AOS)/linux_code/logging/linux_logging.cc',
brians343bc112013-02-10 01:53:46 +000042 ],
43 'dependencies': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080044 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue',
Brian Silverman78968542014-03-05 17:03:43 -080045 '<(AOS)/common/common.gyp:time',
brians343bc112013-02-10 01:53:46 +000046 ],
47 'export_dependent_settings': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080048 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue',
Brian Silvermanb0893882014-02-10 14:48:30 -080049 ],
brians343bc112013-02-10 01:53:46 +000050 }],
51 ],
52 'dependencies': [
53 '<(AOS)/common/common.gyp:time',
Brian Silvermanf665d692013-02-17 22:11:39 -080054 '<(AOS)/common/common.gyp:once',
Brian Silvermanb0893882014-02-10 14:48:30 -080055 'logging_interface',
Brian Silverman669669f2014-02-14 16:32:56 -080056 '<(AOS)/common/common.gyp:queue_types',
brians343bc112013-02-10 01:53:46 +000057 ],
Brian Silverman01be0002014-05-10 15:44:38 -070058 'export_dependent_settings': [
59 'logging_interface',
60 ],
brians343bc112013-02-10 01:53:46 +000061 },
brians343bc112013-02-10 01:53:46 +000062 ],
63}