OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
6 | 6 |
7 mojo_native_application("http_server") { | 7 mojo_native_application("http_server") { |
8 sources = [ | 8 sources = [ |
9 "connection.cc", | 9 "connection.cc", |
10 "connection.h", | 10 "connection.h", |
11 "http_request_parser.cc", | 11 "http_request_parser.cc", |
12 "http_request_parser.h", | 12 "http_request_parser.h", |
13 "http_server_app.cc", | 13 "http_server_app.cc", |
14 "http_server_factory_impl.cc", | 14 "http_server_factory_impl.cc", |
15 "http_server_factory_impl.h", | 15 "http_server_factory_impl.h", |
16 "http_server_impl.cc", | 16 "http_server_impl.cc", |
17 "http_server_impl.h", | 17 "http_server_impl.h", |
18 "http_status_code_list.h", | 18 "http_status_code_list.h", |
19 ] | 19 ] |
20 | 20 |
21 deps = [ | 21 deps = [ |
22 "//base", | 22 "//base", |
23 "//mojo/common", | 23 "//mojo/common", |
24 "//mojo/public/cpp/application:standalone", | 24 "//mojo/public/cpp/application:standalone", |
25 "//mojo/public/cpp/bindings", | 25 "//mojo/public/cpp/bindings", |
26 "//mojo/public/cpp/environment", | 26 "//mojo/public/cpp/environment", |
27 "//mojo/public/cpp/system", | 27 "//mojo/public/cpp/system", |
28 "//mojo/public/cpp/utility", | 28 "//mojo/public/cpp/utility", |
| 29 "//mojo/services/http_server/public/interfaces", |
| 30 "//mojo/services/http_server/public/cpp", |
29 "//mojo/services/network/public/interfaces", | 31 "//mojo/services/network/public/interfaces", |
30 "//services/http_server/public", | |
31 "//services/http_server/public:util", | |
32 "//third_party/re2", | 32 "//third_party/re2", |
33 ] | 33 ] |
34 | 34 |
35 if (is_win) { | 35 if (is_win) { |
36 cflags = [ | 36 cflags = [ |
37 # size_t to int. | 37 # size_t to int. |
38 "/wd4267", | 38 "/wd4267", |
39 ] | 39 ] |
40 } | 40 } |
41 } | 41 } |
42 | 42 |
43 mojo_native_application("apptests") { | 43 mojo_native_application("apptests") { |
44 output_name = "http_server_apptests" | 44 output_name = "http_server_apptests" |
45 | 45 |
46 testonly = true | 46 testonly = true |
47 | 47 |
48 sources = [ | 48 sources = [ |
49 "http_server_apptest.cc", | 49 "http_server_apptest.cc", |
50 ] | 50 ] |
51 | 51 |
52 deps = [ | 52 deps = [ |
53 "//base", | 53 "//base", |
54 "//mojo/application", | 54 "//mojo/application", |
55 "//mojo/application:test_support", | 55 "//mojo/application:test_support", |
56 "//mojo/common", | 56 "//mojo/common", |
57 "//mojo/public/cpp/bindings:callback", | 57 "//mojo/public/cpp/bindings:callback", |
58 "//mojo/public/cpp/environment", | 58 "//mojo/public/cpp/environment", |
59 "//mojo/public/cpp/system", | 59 "//mojo/public/cpp/system", |
| 60 "//mojo/services/http_server/public/interfaces", |
| 61 "//mojo/services/http_server/public/cpp", |
60 "//mojo/services/network/public/interfaces", | 62 "//mojo/services/network/public/interfaces", |
61 "//services/http_server/public", | |
62 "//services/http_server/public:util", | |
63 ] | 63 ] |
64 | 64 |
65 data_deps = [ ":http_server($default_toolchain)" ] | 65 data_deps = [ ":http_server($default_toolchain)" ] |
66 } | 66 } |
OLD | NEW |