Arman Uguray | 9ca3fb8 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 1 | # |
Jakub Pawlowski | 5b790fe | 2017-09-18 09:00:20 -0700 | [diff] [blame] | 2 | # Copyright 2015 Google, Inc. |
Arman Uguray | 9ca3fb8 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at: |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
Arman Uguray | 2c494e1 | 2015-05-29 14:43:20 -0700 | [diff] [blame] | 17 | static_library("osi") { |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 18 | sources = [ |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 19 | "src/alarm.cc", |
Jakub Pawlowski | 0d55d66 | 2016-05-25 10:37:17 -0700 | [diff] [blame] | 20 | "src/allocation_tracker.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 21 | "src/allocator.cc", |
| 22 | "src/array.cc", |
| 23 | "src/buffer.cc", |
| 24 | "src/compat.cc", |
| 25 | "src/config.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 26 | "src/fixed_queue.cc", |
| 27 | "src/future.cc", |
Jakub Pawlowski | 6a05951 | 2016-05-25 17:49:32 -0700 | [diff] [blame] | 28 | "src/hash_map_utils.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 29 | "src/list.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 30 | "src/mutex.cc", |
| 31 | "src/osi.cc", |
| 32 | "src/properties.cc", |
| 33 | "src/reactor.cc", |
| 34 | "src/ringbuffer.cc", |
| 35 | "src/semaphore.cc", |
| 36 | "src/socket.cc", |
Miao Chou | 1096912 | 2015-06-09 17:39:46 -0700 | [diff] [blame] | 37 | |
| 38 | # TODO(mcchou): Remove these sources after platform specific |
| 39 | # dependencies are abstracted. |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 40 | "src/socket_utils/socket_local_client.cc", |
| 41 | "src/socket_utils/socket_local_server.cc", |
| 42 | "src/thread.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 43 | "src/wakelock.cc", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 44 | ] |
| 45 | |
| 46 | include_dirs = [ |
Miao Chou | 98a9641 | 2015-07-08 14:50:32 -0700 | [diff] [blame] | 47 | "//", |
Jakub Pawlowski | 292ab25 | 2018-10-23 15:57:20 +0200 | [diff] [blame] | 48 | "//linux_include", |
Jakub Pawlowski | 9e81461 | 2018-05-25 09:31:26 -0700 | [diff] [blame] | 49 | "//internal_include", |
Miao Chou | 98a9641 | 2015-07-08 14:50:32 -0700 | [diff] [blame] | 50 | "//utils/include", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 51 | "//stack/include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 52 | ] |
Jakub Pawlowski | 71f5b3e | 2016-12-20 12:55:51 -0800 | [diff] [blame] | 53 | |
| 54 | deps = [ |
Jakub Pawlowski | 83db499 | 2018-11-20 19:27:11 +0100 | [diff] [blame] | 55 | "//common", |
Jakub Pawlowski | 71f5b3e | 2016-12-20 12:55:51 -0800 | [diff] [blame] | 56 | "//third_party/libchrome:base", |
| 57 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | executable("net_test_osi") { |
Arman Uguray | bb6836b | 2015-05-21 13:52:25 -0700 | [diff] [blame] | 61 | testonly = true |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 62 | sources = [ |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 63 | "test/AlarmTestHarness.cc", |
| 64 | "test/AllocationTestHarness.cc", |
| 65 | "test/alarm_test.cc", |
| 66 | "test/allocation_tracker_test.cc", |
| 67 | "test/allocator_test.cc", |
| 68 | "test/array_test.cc", |
| 69 | "test/config_test.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 70 | "test/future_test.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 71 | "test/hash_map_utils_test.cc", |
| 72 | "test/list_test.cc", |
| 73 | "test/properties_test.cc", |
| 74 | "test/rand_test.cc", |
| 75 | "test/reactor_test.cc", |
| 76 | "test/ringbuffer_test.cc", |
| 77 | "test/thread_test.cc", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 78 | ] |
| 79 | |
| 80 | include_dirs = [ |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 81 | "//", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 82 | "//osi/test", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 83 | ] |
| 84 | |
| 85 | deps = [ |
| 86 | "//osi", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 87 | "//third_party/googletest:gtest_main", |
Jack He | f317562 | 2016-12-08 19:29:00 -0800 | [diff] [blame] | 88 | "//third_party/googletest:gmock_main", |
Jakub Pawlowski | 71f5b3e | 2016-12-20 12:55:51 -0800 | [diff] [blame] | 89 | "//third_party/libchrome:base", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 90 | ] |
| 91 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 92 | libs = [ |
| 93 | "-lpthread", |
| 94 | "-lrt", |
| 95 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 96 | } |