blob: 1187d05c18530892b9049e4ca109ebf3fe7fd70e [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001# 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 Silvermanb0893882014-02-10 14:48:30 -08005# tools and gyp doesn't like a static_library that depends only on
6# other static_librarys.
brians343bc112013-02-10 01:53:46 +00007{
brians343bc112013-02-10 01:53:46 +00008 'targets': [
Brian Silvermanb0893882014-02-10 14:48:30 -08009 # A target for things used by the logging implementation (except die) to
Brian Silverman6da04272014-05-18 18:47:48 -070010 # depend on that allows linking successfully with logging calls. However,
11 # executables containing targets that depend on this still need a dependency
12 # on logging somewhere or else they won't link.
Brian Silvermanb0893882014-02-10 14:48:30 -080013 {
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 ],
Brian Silverman17311c92014-09-06 00:48:59 -040024 'dependencies': [
25 '<(AOS)/linux_code/linux_code.gyp:complex_thread_local',
26 ],
Brian Silvermanb0893882014-02-10 14:48:30 -080027 }],
28 ],
29 'dependencies': [
30 '<(AOS)/common/common.gyp:die',
Brian Silvermanaf784862014-05-13 08:14:55 -070031 '<(AOS)/common/libc/libc.gyp:aos_strerror',
Brian Silverman01be0002014-05-10 15:44:38 -070032 ],
33 'export_dependent_settings': [
Brian Silvermanaf784862014-05-13 08:14:55 -070034 '<(AOS)/common/libc/libc.gyp:aos_strerror',
Brian Silvermanb0893882014-02-10 14:48:30 -080035 ],
36 },
brians343bc112013-02-10 01:53:46 +000037 {
38 'target_name': 'logging',
39 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -080040 'sources': [
41 '<(AOS)/common/logging/logging_impl.cc',
42 ],
brians343bc112013-02-10 01:53:46 +000043 'conditions': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080044 ['OS=="linux"', {
brians343bc112013-02-10 01:53:46 +000045 'sources': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080046 '<(AOS)/linux_code/logging/linux_logging.cc',
brians343bc112013-02-10 01:53:46 +000047 ],
48 'dependencies': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080049 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue',
Brian Silverman78968542014-03-05 17:03:43 -080050 '<(AOS)/common/common.gyp:time',
brians343bc112013-02-10 01:53:46 +000051 ],
52 'export_dependent_settings': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080053 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue',
Brian Silvermanb0893882014-02-10 14:48:30 -080054 ],
brians343bc112013-02-10 01:53:46 +000055 }],
56 ],
57 'dependencies': [
58 '<(AOS)/common/common.gyp:time',
Brian Silvermanf665d692013-02-17 22:11:39 -080059 '<(AOS)/common/common.gyp:once',
Brian Silvermanb0893882014-02-10 14:48:30 -080060 'logging_interface',
Brian Silverman669669f2014-02-14 16:32:56 -080061 '<(AOS)/common/common.gyp:queue_types',
brians343bc112013-02-10 01:53:46 +000062 ],
Brian Silverman01be0002014-05-10 15:44:38 -070063 'export_dependent_settings': [
64 'logging_interface',
65 ],
brians343bc112013-02-10 01:53:46 +000066 },
brians343bc112013-02-10 01:53:46 +000067 ],
68}