2016-09-22 16:22:34 -07:00
|
|
|
# Copyright (c) 2014-present, Facebook, Inc.
|
|
|
|
#
|
2018-02-16 18:24:55 -08:00
|
|
|
# This source code is licensed under the MIT license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree.
|
2016-09-22 16:22:34 -07:00
|
|
|
|
2018-07-14 00:14:58 -07:00
|
|
|
load(
|
2018-08-28 21:54:41 -07:00
|
|
|
"//tools/build_defs/oss:yoga_defs.bzl",
|
2018-07-14 00:14:58 -07:00
|
|
|
"BASE_COMPILER_FLAGS",
|
2018-08-31 17:49:38 -07:00
|
|
|
"yoga_apple_binary",
|
2018-07-14 00:14:58 -07:00
|
|
|
"yoga_cxx_library",
|
|
|
|
"yoga_dep",
|
|
|
|
)
|
2016-12-15 12:44:19 -08:00
|
|
|
|
2017-02-24 21:40:45 -08:00
|
|
|
COMPILER_FLAGS = BASE_COMPILER_FLAGS + ["-std=c++11"]
|
2016-12-15 12:44:19 -08:00
|
|
|
|
2016-09-22 16:22:34 -07:00
|
|
|
csharp_library(
|
2017-02-24 21:40:45 -08:00
|
|
|
name = "yogalibnet46",
|
|
|
|
srcs = glob(["**/*.cs"]),
|
|
|
|
dll_name = "Facebook.Yoga.dll",
|
|
|
|
framework_ver = "net46",
|
2016-09-22 16:22:34 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
csharp_library(
|
2017-02-24 21:40:45 -08:00
|
|
|
name = "yogalibnet45",
|
|
|
|
srcs = glob(["**/*.cs"]),
|
|
|
|
dll_name = "Facebook.Yoga.dll",
|
|
|
|
framework_ver = "net45",
|
2016-09-22 16:22:34 -07:00
|
|
|
)
|
2016-12-15 12:44:19 -08:00
|
|
|
|
2018-04-14 12:39:23 -07:00
|
|
|
yoga_cxx_library(
|
2017-02-24 21:40:45 -08:00
|
|
|
name = "yoganet",
|
|
|
|
srcs = glob(["Yoga/YGInterop.cpp"]),
|
|
|
|
compiler_flags = COMPILER_FLAGS,
|
|
|
|
link_style = "static",
|
|
|
|
link_whole = True,
|
|
|
|
soname = "libyoga.$(ext)",
|
|
|
|
visibility = ["PUBLIC"],
|
|
|
|
deps = [yoga_dep(":yoga")],
|
2016-12-15 12:44:19 -08:00
|
|
|
)
|
2016-12-16 06:53:47 -08:00
|
|
|
|
2018-07-14 00:14:58 -07:00
|
|
|
yoga_apple_binary()
|