| Index: third_party/libsync/BUILD.gn
|
| diff --git a/third_party/libsync/BUILD.gn b/third_party/libsync/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8017f0ae0a3253167d8e7af9f9468e735cc2dfb6
|
| --- /dev/null
|
| +++ b/third_party/libsync/BUILD.gn
|
| @@ -0,0 +1,25 @@
|
| +# Copyright 2016 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +config("libsync_config") {
|
| + include_dirs = [ "include" ]
|
| +}
|
| +
|
| +source_set("libsync") {
|
| + sources = [
|
| + "include/linux/sw_sync.h",
|
| + "include/linux/sync.h",
|
| + "include/sw_sync.h",
|
| + "include/sync/sync.h",
|
| + "sync.c",
|
| + ]
|
| +
|
| + # avoid using secure string function
|
| + defines += [ "strlcpy=strncpy" ]
|
| +
|
| + configs -= [ "//build/config/compiler:chromium_code" ]
|
| + configs += [ "//build/config/compiler:no_chromium_code" ]
|
| +
|
| + public_configs = [ ":libsync_config" ]
|
| +}
|
|
|