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 |
| 5 | # tools and gyp doesn't like a static_library that depends on static_librarys. |
| 6 | { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 7 | 'targets': [ |
| 8 | { |
| 9 | 'target_name': 'logging', |
| 10 | 'type': 'static_library', |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 11 | 'sources': [ |
| 12 | '<(AOS)/common/logging/logging_impl.cc', |
| 13 | ], |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 14 | 'conditions': [ |
| 15 | ['OS=="crio"', { |
| 16 | 'sources': [ |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 17 | '<(AOS)/crio/logging/crio_logging.cc', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 18 | ], |
| 19 | 'dependencies': [ |
| 20 | '<(EXTERNALS):WPILib', |
Brian Silverman | a9cbe30 | 2013-03-12 18:41:44 -0700 | [diff] [blame] | 21 | # TODO(brians): socket should only depend on the interface |
| 22 | #'<(AOS)/common/network/network.gyp:socket', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 23 | ] |
| 24 | }, { |
| 25 | 'sources': [ |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 26 | '<(AOS)/atom_code/logging/atom_logging.cc', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 27 | ], |
| 28 | 'dependencies': [ |
| 29 | '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib', |
| 30 | ], |
| 31 | 'export_dependent_settings': [ |
| 32 | '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib', |
| 33 | ] |
| 34 | }], |
| 35 | ], |
| 36 | 'dependencies': [ |
| 37 | '<(AOS)/common/common.gyp:time', |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 38 | '<(AOS)/common/common.gyp:once', |
| 39 | '<(AOS)/common/common.gyp:mutex', |
| 40 | '<(AOS)/common/common.gyp:die', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 41 | ], |
| 42 | }, |
| 43 | { |
| 44 | # Private to make Brian happy. Don't use elsewhere in so targets or risk things |
| 45 | # breaking. |
| 46 | 'target_name': 'aos_swig', |
| 47 | 'type': 'static_library', |
| 48 | 'sources': [ |
| 49 | '<(AOS)/aos.swig', |
| 50 | ], |
| 51 | 'variables': { |
| 52 | 'package': 'aos', |
| 53 | }, |
| 54 | 'dependencies': [ |
| 55 | '<(AOS)/common/common.gyp:queues', |
| 56 | ], |
| 57 | 'includes': ['../build/swig.gypi'], |
| 58 | }, |
| 59 | { |
Brian Silverman | a9cbe30 | 2013-03-12 18:41:44 -0700 | [diff] [blame] | 60 | 'target_name': 'aos_core', |
| 61 | 'type': 'static_library', |
| 62 | 'sources': [ |
| 63 | #'<(AOS)/aos_core.h' |
| 64 | ], |
| 65 | 'conditions': [ |
| 66 | ['OS=="atom"', { |
| 67 | 'dependencies': [ |
| 68 | '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib', |
| 69 | '<(AOS)/atom_code/atom_code.gyp:init', |
| 70 | ], |
| 71 | 'export_dependent_settings': [ |
| 72 | '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib', |
| 73 | '<(AOS)/atom_code/atom_code.gyp:init', |
| 74 | ], |
| 75 | }, { |
| 76 | 'dependencies': [ |
| 77 | '<(EXTERNALS):WPILib', |
| 78 | ], |
| 79 | 'export_dependent_settings': [ |
| 80 | '<(EXTERNALS):WPILib', |
| 81 | ], |
| 82 | }] |
| 83 | ], |
| 84 | }, |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 85 | ], |
| 86 | } |