OSDN Git Service

GKI cleanup - Moved functions GKI_disable() and GKI_enable() to OSI
[android-x86/system-bt.git] / osi / BUILD.gn
1 #
2 #  Copyright (C) 2015 Google, Inc.
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
17 static_library("osi") {
18   sources = [
19     "src/alarm.c",
20     "src/allocation_tracker.c",
21     "src/allocator.c",
22     "src/array.c",
23     "src/buffer.c",
24     "src/compat.c",
25     "src/config.c",
26     "src/data_dispatcher.c",
27     "src/eager_reader.c",
28     "src/fixed_queue.c",
29     "src/future.c",
30     "src/hash_functions.c",
31     "src/hash_map.c",
32     "src/hash_map_utils.c",
33     "src/list.c",
34     "src/mutex.c",
35     "src/non_repeating_timer.c",
36     "src/reactor.c",
37     "src/ringbuffer.c",
38     "src/semaphore.c",
39     "src/socket.c",
40
41     # TODO(mcchou): Remove these sources after platform specific
42     # dependencies are abstracted.
43     "src/socket_utils/socket_local_client.c",
44     "src/socket_utils/socket_local_server.c",
45
46     "src/thread.c",
47     "src/time.c",
48   ]
49
50   include_dirs = [
51     "//",
52     "//utils/include",
53   ]
54 }
55
56 executable("net_test_osi") {
57   testonly = true
58   sources = [
59     "test/AlarmTestHarness.cpp",
60     "test/AllocationTestHarness.cpp",
61     "test/alarm_test.cpp",
62     "test/allocation_tracker_test.cpp",
63     "test/allocator_test.cpp",
64     "test/array_test.cpp",
65     "test/config_test.cpp",
66     "test/data_dispatcher_test.cpp",
67     "test/eager_reader_test.cpp",
68     "test/future_test.cpp",
69     "test/hash_map_test.cpp",
70     "test/hash_map_utils_test.cpp",
71     "test/list_test.cpp",
72     "test/reactor_test.cpp",
73     "test/ringbuffer_test.cpp",
74     "test/thread_test.cpp",
75     "test/time_test.cpp",
76   ]
77
78   include_dirs = [
79     "//",
80   ]
81
82   deps = [
83     "//osi",
84     "//third_party/gtest:gtest_main",
85   ]
86
87   libs = [ "-lpthread", "-lrt" ]
88 }