brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | # This file has all of the aos targets. |
| 2 | # For the cRIO, shared_library means to build a .out file, NOT a shared library. |
| 3 | # This means that depending on shared libraries doesn't work very well. |
| 4 | # Shared libraries don't seem to be supported by the powerpc-wrs-vxworks |
Brian Silverman | b089388 | 2014-02-10 14:48:30 -0800 | [diff] [blame] | 5 | # tools and gyp doesn't like a static_library that depends only on |
| 6 | # other static_librarys. |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 7 | { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 8 | 'targets': [ |
Brian Silverman | b089388 | 2014-02-10 14:48:30 -0800 | [diff] [blame] | 9 | # A target for things used by the logging implementation (except die) to |
| 10 | # depend on that allows linking successfully with logging calls but has no |
| 11 | # way to get initialized and so is basically useless unless something else |
| 12 | # links in the rest of the logging stuff. |
| 13 | { |
| 14 | 'target_name': 'logging_interface', |
| 15 | 'type': 'static_library', |
| 16 | 'sources': [ |
| 17 | '<(AOS)/common/logging/logging_interface.cc', |
| 18 | ], |
| 19 | 'conditions': [ |
| 20 | ['OS=="linux"', { |
| 21 | 'sources': [ |
| 22 | '<(AOS)/linux_code/logging/linux_interface.cc', |
| 23 | ], |
| 24 | }], |
| 25 | ], |
| 26 | 'dependencies': [ |
| 27 | '<(AOS)/common/common.gyp:die', |
Brian Silverman | 01be000 | 2014-05-10 15:44:38 -0700 | [diff] [blame] | 28 | '<(AOS)/common/util/util.gyp:aos_strerror', |
| 29 | ], |
| 30 | 'export_dependent_settings': [ |
| 31 | '<(AOS)/common/util/util.gyp:aos_strerror', |
Brian Silverman | b089388 | 2014-02-10 14:48:30 -0800 | [diff] [blame] | 32 | ], |
| 33 | }, |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 34 | { |
| 35 | 'target_name': 'logging', |
| 36 | 'type': 'static_library', |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 37 | 'sources': [ |
| 38 | '<(AOS)/common/logging/logging_impl.cc', |
| 39 | ], |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 40 | 'conditions': [ |
Brian Silverman | 14fd0fb | 2014-01-14 21:42:01 -0800 | [diff] [blame] | 41 | ['OS=="linux"', { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 42 | 'sources': [ |
Brian Silverman | 14fd0fb | 2014-01-14 21:42:01 -0800 | [diff] [blame] | 43 | '<(AOS)/linux_code/logging/linux_logging.cc', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 44 | ], |
| 45 | 'dependencies': [ |
Brian Silverman | 14fd0fb | 2014-01-14 21:42:01 -0800 | [diff] [blame] | 46 | '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue', |
Brian Silverman | 7896854 | 2014-03-05 17:03:43 -0800 | [diff] [blame] | 47 | '<(AOS)/common/common.gyp:time', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 48 | ], |
| 49 | 'export_dependent_settings': [ |
Brian Silverman | 14fd0fb | 2014-01-14 21:42:01 -0800 | [diff] [blame] | 50 | '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue', |
Brian Silverman | b089388 | 2014-02-10 14:48:30 -0800 | [diff] [blame] | 51 | ], |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 52 | }], |
| 53 | ], |
| 54 | 'dependencies': [ |
| 55 | '<(AOS)/common/common.gyp:time', |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 56 | '<(AOS)/common/common.gyp:once', |
Brian Silverman | b089388 | 2014-02-10 14:48:30 -0800 | [diff] [blame] | 57 | 'logging_interface', |
Brian Silverman | 669669f | 2014-02-14 16:32:56 -0800 | [diff] [blame] | 58 | '<(AOS)/common/common.gyp:queue_types', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 59 | ], |
Brian Silverman | 01be000 | 2014-05-10 15:44:38 -0700 | [diff] [blame] | 60 | 'export_dependent_settings': [ |
| 61 | 'logging_interface', |
| 62 | ], |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 63 | }, |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 64 | ], |
| 65 | } |