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 shared_library("http_server") { | 5 import("//mojo/public/mojo_application.gni") |
| 6 |
| 7 mojo_native_application("http_server") { |
6 sources = [ | 8 sources = [ |
7 "http_request_parser.cc", | 9 "http_request_parser.cc", |
8 "http_request_parser.h", | 10 "http_request_parser.h", |
9 "http_server.cc", | 11 "http_server.cc", |
10 ] | 12 ] |
11 | 13 |
12 deps = [ | 14 deps = [ |
13 "//base", | 15 "//base", |
14 "//mojo/common", | 16 "//mojo/common", |
15 "//mojo/public/c/system:for_shared_library", | 17 "//mojo/public/c/system:for_shared_library", |
16 "//mojo/public/cpp/application:standalone", | 18 "//mojo/public/cpp/application:standalone", |
17 "//mojo/public/cpp/bindings", | 19 "//mojo/public/cpp/bindings", |
18 "//mojo/public/cpp/utility", | 20 "//mojo/public/cpp/utility", |
19 "//mojo/services/public/interfaces/network", | 21 "//mojo/services/public/interfaces/network", |
20 "//services/http_server/public", | 22 "//services/http_server/public", |
21 "//third_party/re2", | 23 "//third_party/re2", |
22 ] | 24 ] |
23 | 25 |
24 if (is_win) { | 26 if (is_win) { |
25 cflags = [ | 27 cflags = [ |
26 # size_t to int. | 28 # size_t to int. |
27 "/wd4267", | 29 "/wd4267", |
28 ] | 30 ] |
29 } | 31 } |
30 } | 32 } |
OLD | NEW |