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/data_pipe_utils", | 24 "//mojo/data_pipe_utils", |
25 "//mojo/public/cpp/application:standalone", | 25 "//mojo/public/cpp/application:standalone", |
26 "//mojo/public/cpp/bindings", | 26 "//mojo/public/cpp/bindings", |
27 "//mojo/public/cpp/environment", | 27 "//mojo/public/cpp/environment", |
28 "//mojo/public/cpp/system", | 28 "//mojo/public/cpp/system", |
29 "//mojo/public/cpp/utility", | 29 "//mojo/public/cpp/utility", |
30 "//mojo/services/http_server/public/interfaces", | 30 "//mojo/services/http_server/cpp", |
31 "//mojo/services/http_server/public/cpp", | 31 "//mojo/services/http_server/interfaces", |
32 "//mojo/services/network/public/interfaces", | 32 "//mojo/services/network/public/interfaces", |
33 "//third_party/re2", | 33 "//third_party/re2", |
34 ] | 34 ] |
35 | 35 |
36 if (is_win) { | 36 if (is_win) { |
37 cflags = [ | 37 cflags = [ |
38 # size_t to int. | 38 # size_t to int. |
39 "/wd4267", | 39 "/wd4267", |
40 ] | 40 ] |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 mojo_native_application("apptests") { | 44 mojo_native_application("apptests") { |
45 output_name = "http_server_apptests" | 45 output_name = "http_server_apptests" |
46 | 46 |
47 testonly = true | 47 testonly = true |
48 | 48 |
49 sources = [ | 49 sources = [ |
50 "http_server_apptest.cc", | 50 "http_server_apptest.cc", |
51 ] | 51 ] |
52 | 52 |
53 deps = [ | 53 deps = [ |
54 "//base", | 54 "//base", |
55 "//mojo/application", | 55 "//mojo/application", |
56 "//mojo/application:test_support", | 56 "//mojo/application:test_support", |
57 "//mojo/data_pipe_utils", | 57 "//mojo/data_pipe_utils", |
58 "//mojo/public/cpp/bindings:callback", | 58 "//mojo/public/cpp/bindings:callback", |
59 "//mojo/public/cpp/environment", | 59 "//mojo/public/cpp/environment", |
60 "//mojo/public/cpp/system", | 60 "//mojo/public/cpp/system", |
61 "//mojo/services/http_server/public/interfaces", | 61 "//mojo/services/http_server/cpp", |
62 "//mojo/services/http_server/public/cpp", | 62 "//mojo/services/http_server/interfaces", |
63 "//mojo/services/network/public/interfaces", | 63 "//mojo/services/network/public/interfaces", |
64 ] | 64 ] |
65 | 65 |
66 data_deps = [ ":http_server($default_toolchain)" ] | 66 data_deps = [ ":http_server($default_toolchain)" ] |
67 } | 67 } |
OLD | NEW |