blob: 916db035c7207ecfb14bd67c6b0d252bd53970c2 [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
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 Silverman01be0002014-05-10 15:44:38 -070028 '<(AOS)/common/util/util.gyp:aos_strerror',
29 ],
30 'export_dependent_settings': [
31 '<(AOS)/common/util/util.gyp:aos_strerror',
Brian Silvermanb0893882014-02-10 14:48:30 -080032 ],
33 },
brians343bc112013-02-10 01:53:46 +000034 {
35 'target_name': 'logging',
36 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -080037 'sources': [
38 '<(AOS)/common/logging/logging_impl.cc',
39 ],
brians343bc112013-02-10 01:53:46 +000040 'conditions': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080041 ['OS=="linux"', {
brians343bc112013-02-10 01:53:46 +000042 'sources': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080043 '<(AOS)/linux_code/logging/linux_logging.cc',
brians343bc112013-02-10 01:53:46 +000044 ],
45 'dependencies': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080046 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue',
Brian Silverman78968542014-03-05 17:03:43 -080047 '<(AOS)/common/common.gyp:time',
brians343bc112013-02-10 01:53:46 +000048 ],
49 'export_dependent_settings': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080050 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue',
Brian Silvermanb0893882014-02-10 14:48:30 -080051 ],
brians343bc112013-02-10 01:53:46 +000052 }],
53 ],
54 'dependencies': [
55 '<(AOS)/common/common.gyp:time',
Brian Silvermanf665d692013-02-17 22:11:39 -080056 '<(AOS)/common/common.gyp:once',
Brian Silvermanb0893882014-02-10 14:48:30 -080057 'logging_interface',
Brian Silverman669669f2014-02-14 16:32:56 -080058 '<(AOS)/common/common.gyp:queue_types',
brians343bc112013-02-10 01:53:46 +000059 ],
Brian Silverman01be0002014-05-10 15:44:38 -070060 'export_dependent_settings': [
61 'logging_interface',
62 ],
brians343bc112013-02-10 01:53:46 +000063 },
brians343bc112013-02-10 01:53:46 +000064 ],
65}