| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 config("wayland_config") { | 5 config("wayland_config") { |
| 6 include_dirs = [ | 6 include_dirs = [ |
| 7 "include/src", | 7 "include/src", |
| 8 "include/protocol", | 8 "include/protocol", |
| 9 "src/src", | 9 "src/src", |
| 10 ] | 10 ] |
| 11 } | 11 } |
| 12 | 12 |
| 13 source_set("wayland_util") { | 13 static_library("wayland_util") { |
| 14 sources = [ | 14 sources = [ |
| 15 "src/src/wayland-util.c", | 15 "src/src/wayland-util.c", |
| 16 "src/src/wayland-util.h", | 16 "src/src/wayland-util.h", |
| 17 ] | 17 ] |
| 18 | 18 |
| 19 configs -= [ "//build/config/compiler:chromium_code" ] | 19 configs -= [ "//build/config/compiler:chromium_code" ] |
| 20 configs += [ "//build/config/compiler:no_chromium_code" ] | 20 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 21 | 21 |
| 22 public_configs = [ ":wayland_config" ] | 22 public_configs = [ ":wayland_config" ] |
| 23 } | 23 } |
| 24 | 24 |
| 25 source_set("wayland_private") { | 25 static_library("wayland_private") { |
| 26 sources = [ | 26 sources = [ |
| 27 "src/src/connection.c", | 27 "src/src/connection.c", |
| 28 "src/src/wayland-os.c", | 28 "src/src/wayland-os.c", |
| 29 "src/src/wayland-os.h", | 29 "src/src/wayland-os.h", |
| 30 "src/src/wayland-private.h", | 30 "src/src/wayland-private.h", |
| 31 ] | 31 ] |
| 32 | 32 |
| 33 configs -= [ "//build/config/compiler:chromium_code" ] | 33 configs -= [ "//build/config/compiler:chromium_code" ] |
| 34 configs += [ | 34 configs += [ |
| 35 "//build/config/compiler:no_chromium_code", | 35 "//build/config/compiler:no_chromium_code", |
| 36 "//build/config/linux/libffi", | 36 "//build/config/linux/libffi", |
| 37 ":wayland_config", | 37 ":wayland_config", |
| 38 ] | 38 ] |
| 39 } | 39 } |
| 40 | 40 |
| 41 source_set("wayland_protocol") { | 41 static_library("wayland_protocol") { |
| 42 sources = [ | 42 sources = [ |
| 43 "protocol/wayland-protocol.c", | 43 "protocol/wayland-protocol.c", |
| 44 ] | 44 ] |
| 45 | 45 |
| 46 deps = [ | 46 deps = [ |
| 47 ":wayland_util", | 47 ":wayland_util", |
| 48 ] | 48 ] |
| 49 | 49 |
| 50 configs -= [ "//build/config/compiler:chromium_code" ] | 50 configs -= [ "//build/config/compiler:chromium_code" ] |
| 51 configs += [ "//build/config/compiler:no_chromium_code" ] | 51 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 52 | 52 |
| 53 public_configs = [ ":wayland_config" ] | 53 public_configs = [ ":wayland_config" ] |
| 54 } | 54 } |
| 55 | 55 |
| 56 source_set("wayland_server") { | 56 static_library("wayland_server") { |
| 57 sources = [ | 57 sources = [ |
| 58 "include/protocol/wayland-server-protocol.h", | 58 "include/protocol/wayland-server-protocol.h", |
| 59 "src/src/event-loop.c", | 59 "src/src/event-loop.c", |
| 60 "src/src/wayland-server.c", | 60 "src/src/wayland-server.c", |
| 61 "src/src/wayland-shm.c", | 61 "src/src/wayland-shm.c", |
| 62 ] | 62 ] |
| 63 | 63 |
| 64 deps = [ | 64 deps = [ |
| 65 ":wayland_private", | 65 ":wayland_private", |
| 66 ":wayland_protocol", | 66 ":wayland_protocol", |
| 67 ":wayland_util", | 67 ":wayland_util", |
| 68 ] | 68 ] |
| 69 | 69 |
| 70 configs -= [ "//build/config/compiler:chromium_code" ] | 70 configs -= [ "//build/config/compiler:chromium_code" ] |
| 71 configs += [ | 71 configs += [ |
| 72 "//build/config/compiler:no_chromium_code", | 72 "//build/config/compiler:no_chromium_code", |
| 73 "//build/config/linux/libffi", | 73 "//build/config/linux/libffi", |
| 74 ] | 74 ] |
| 75 | 75 |
| 76 public_configs = [ ":wayland_config" ] | 76 public_configs = [ ":wayland_config" ] |
| 77 } | 77 } |
| 78 | 78 |
| 79 source_set("wayland_client") { | 79 static_library("wayland_client") { |
| 80 sources = [ | 80 sources = [ |
| 81 "include/protocol/wayland-client-protocol.h", | 81 "include/protocol/wayland-client-protocol.h", |
| 82 "src/src/wayland-client.c", | 82 "src/src/wayland-client.c", |
| 83 ] | 83 ] |
| 84 | 84 |
| 85 deps = [ | 85 deps = [ |
| 86 ":wayland_private", | 86 ":wayland_private", |
| 87 ":wayland_protocol", | 87 ":wayland_protocol", |
| 88 ":wayland_util", | 88 ":wayland_util", |
| 89 ] | 89 ] |
| 90 | 90 |
| 91 configs -= [ "//build/config/compiler:chromium_code" ] | 91 configs -= [ "//build/config/compiler:chromium_code" ] |
| 92 configs += [ | 92 configs += [ |
| 93 "//build/config/compiler:no_chromium_code", | 93 "//build/config/compiler:no_chromium_code", |
| 94 "//build/config/linux/libffi", | 94 "//build/config/linux/libffi", |
| 95 ] | 95 ] |
| 96 | 96 |
| 97 public_configs = [ ":wayland_config" ] | 97 public_configs = [ ":wayland_config" ] |
| 98 } | 98 } |
| OLD | NEW |