Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 config("wayland_config") { | |
| 6 include_dirs = [ | |
| 7 "include/src", | |
| 8 "include/protocol", | |
| 9 "src/src", | |
| 10 ] | |
| 11 } | |
| 12 | |
| 13 source_set("wayland_util") { | |
| 14 sources = [ | |
| 15 "src/src/wayland-util.c", | |
| 16 "src/src/wayland-util.h", | |
| 17 ] | |
| 18 | |
| 19 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 20 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 21 | |
| 22 public_configs = [ ":wayland_config" ] | |
| 23 } | |
| 24 | |
| 25 source_set("wayland_private") { | |
| 26 sources = [ | |
| 27 "src/src/connection.c", | |
| 28 "src/src/wayland-os.c", | |
| 29 "src/src/wayland-os.h", | |
| 30 "src/src/wayland-private.h", | |
| 31 ] | |
| 32 | |
| 33 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 34 configs += [ | |
| 35 "//build/config/compiler:no_chromium_code", | |
| 36 "//build/config/linux:libffi", | |
| 37 ":wayland_config", | |
| 38 ] | |
| 39 } | |
| 40 | |
| 41 static_library("wayland_server") { | |
|
Dirk Pranke
2015/11/10 01:58:55
is there a reason this target is a static library
reveman
2015/11/10 02:43:50
mainly because it mirrors upstream better. protoco
Dirk Pranke
2015/11/10 03:02:22
If you want to be able to include both wayland_cli
reveman
2015/11/10 06:09:27
added a wayland_protocol target to latest patch. t
| |
| 42 sources = [ | |
| 43 "include/protocol/wayland-server-protocol.h", | |
| 44 "protocol/wayland-protocol.c", | |
| 45 "src/src/event-loop.c", | |
| 46 "src/src/wayland-server.c", | |
| 47 "src/src/wayland-shm.c", | |
| 48 ] | |
| 49 | |
| 50 deps = [ | |
| 51 ":wayland_private", | |
| 52 ":wayland_util", | |
| 53 ] | |
| 54 | |
| 55 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 56 configs += [ | |
| 57 "//build/config/compiler:no_chromium_code", | |
| 58 "//build/config/linux:libffi", | |
| 59 ] | |
| 60 | |
| 61 public_configs = [ ":wayland_config" ] | |
| 62 } | |
| 63 | |
| 64 static_library("wayland_client") { | |
|
Dirk Pranke
2015/11/10 01:58:55
same question.
| |
| 65 sources = [ | |
| 66 "include/protocol/wayland-client-protocol.h", | |
| 67 "protocol/wayland-protocol.c", | |
| 68 "src/src/wayland-client.c", | |
| 69 ] | |
| 70 | |
| 71 deps = [ | |
| 72 ":wayland_private", | |
| 73 ":wayland_util", | |
| 74 ] | |
| 75 | |
| 76 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 77 configs += [ | |
| 78 "//build/config/compiler:no_chromium_code", | |
| 79 "//build/config/linux:libffi", | |
| 80 ] | |
| 81 | |
| 82 public_configs = [ ":wayland_config" ] | |
| 83 } | |
| OLD | NEW |