blob: f62e62d760255bf578c96c6ad42c529104e8c180 [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
5# tools and gyp doesn't like a static_library that depends on static_librarys.
6{
brians343bc112013-02-10 01:53:46 +00007 'targets': [
8 {
9 'target_name': 'logging',
10 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -080011 'sources': [
12 '<(AOS)/common/logging/logging_impl.cc',
13 ],
brians343bc112013-02-10 01:53:46 +000014 'conditions': [
15 ['OS=="crio"', {
16 'sources': [
Brian Silvermanf665d692013-02-17 22:11:39 -080017 '<(AOS)/crio/logging/crio_logging.cc',
brians343bc112013-02-10 01:53:46 +000018 ],
19 'dependencies': [
20 '<(EXTERNALS):WPILib',
Brian Silvermana9cbe302013-03-12 18:41:44 -070021 # TODO(brians): socket should only depend on the interface
22 #'<(AOS)/common/network/network.gyp:socket',
brians343bc112013-02-10 01:53:46 +000023 ]
24 }, {
25 'sources': [
Brian Silvermanf665d692013-02-17 22:11:39 -080026 '<(AOS)/atom_code/logging/atom_logging.cc',
brians343bc112013-02-10 01:53:46 +000027 ],
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 Silvermanf665d692013-02-17 22:11:39 -080038 '<(AOS)/common/common.gyp:once',
39 '<(AOS)/common/common.gyp:mutex',
40 '<(AOS)/common/common.gyp:die',
brians343bc112013-02-10 01:53:46 +000041 ],
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 Silvermana9cbe302013-03-12 18:41:44 -070060 '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 },
brians343bc112013-02-10 01:53:46 +000085 ],
86}