brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | # This file has all of the aos targets. |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 2 | { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 3 | 'targets': [ |
Brian Silverman | b089388 | 2014-02-10 14:48:30 -0800 | [diff] [blame] | 4 | # A target for things used by the logging implementation (except die) to |
Brian Silverman | 6da0427 | 2014-05-18 18:47:48 -0700 | [diff] [blame] | 5 | # 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 Silverman | b089388 | 2014-02-10 14:48:30 -0800 | [diff] [blame] | 8 | { |
| 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 Silverman | 17311c9 | 2014-09-06 00:48:59 -0400 | [diff] [blame] | 19 | 'dependencies': [ |
| 20 | '<(AOS)/linux_code/linux_code.gyp:complex_thread_local', |
| 21 | ], |
Brian Silverman | b089388 | 2014-02-10 14:48:30 -0800 | [diff] [blame] | 22 | }], |
| 23 | ], |
| 24 | 'dependencies': [ |
| 25 | '<(AOS)/common/common.gyp:die', |
Brian Silverman | af78486 | 2014-05-13 08:14:55 -0700 | [diff] [blame] | 26 | '<(AOS)/common/libc/libc.gyp:aos_strerror', |
Brian Silverman | 01be000 | 2014-05-10 15:44:38 -0700 | [diff] [blame] | 27 | ], |
| 28 | 'export_dependent_settings': [ |
Brian Silverman | af78486 | 2014-05-13 08:14:55 -0700 | [diff] [blame] | 29 | '<(AOS)/common/libc/libc.gyp:aos_strerror', |
Brian Silverman | b089388 | 2014-02-10 14:48:30 -0800 | [diff] [blame] | 30 | ], |
| 31 | }, |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 32 | { |
| 33 | 'target_name': 'logging', |
| 34 | 'type': 'static_library', |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 35 | 'sources': [ |
| 36 | '<(AOS)/common/logging/logging_impl.cc', |
| 37 | ], |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 38 | 'conditions': [ |
Brian Silverman | 14fd0fb | 2014-01-14 21:42:01 -0800 | [diff] [blame] | 39 | ['OS=="linux"', { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 40 | 'sources': [ |
Brian Silverman | 14fd0fb | 2014-01-14 21:42:01 -0800 | [diff] [blame] | 41 | '<(AOS)/linux_code/logging/linux_logging.cc', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 42 | ], |
| 43 | 'dependencies': [ |
Brian Silverman | 14fd0fb | 2014-01-14 21:42:01 -0800 | [diff] [blame] | 44 | '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue', |
Brian Silverman | 7896854 | 2014-03-05 17:03:43 -0800 | [diff] [blame] | 45 | '<(AOS)/common/common.gyp:time', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 46 | ], |
| 47 | 'export_dependent_settings': [ |
Brian Silverman | 14fd0fb | 2014-01-14 21:42:01 -0800 | [diff] [blame] | 48 | '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue', |
Brian Silverman | b089388 | 2014-02-10 14:48:30 -0800 | [diff] [blame] | 49 | ], |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 50 | }], |
| 51 | ], |
| 52 | 'dependencies': [ |
| 53 | '<(AOS)/common/common.gyp:time', |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 54 | '<(AOS)/common/common.gyp:once', |
Brian Silverman | b089388 | 2014-02-10 14:48:30 -0800 | [diff] [blame] | 55 | 'logging_interface', |
Brian Silverman | 669669f | 2014-02-14 16:32:56 -0800 | [diff] [blame] | 56 | '<(AOS)/common/common.gyp:queue_types', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 57 | ], |
Brian Silverman | 01be000 | 2014-05-10 15:44:38 -0700 | [diff] [blame] | 58 | 'export_dependent_settings': [ |
| 59 | 'logging_interface', |
| 60 | ], |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 61 | }, |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 62 | ], |
| 63 | } |