Migrate Yoga targets to raw_headers
Summary: In "regular" header mode, Buck will symlink from `buck-out/` to the actual header file. This works fine with GCC and clang, but not with MSVC. Headers will be treated as different file, sidestepping `#pragma once` directives. As a result, all kinds of symbols get declared twice, leading to compile errors. Reviewed By: davidaurelio Differential Revision: D15781947 fbshipit-source-id: a3b4e211b8b74b9ef44fc39471a3009b2cf47260
This commit is contained in:
committed by
Facebook Github Bot
parent
a7e8aec3d9
commit
9dac56e824
8
BUCK
8
BUCK
@@ -17,9 +17,9 @@ TEST_COMPILER_FLAGS = BASE_COMPILER_FLAGS + GMOCK_OVERRIDE_FLAGS + [
|
|||||||
yoga_cxx_library(
|
yoga_cxx_library(
|
||||||
name = "yoga",
|
name = "yoga",
|
||||||
srcs = glob(["yoga/**/*.cpp"]),
|
srcs = glob(["yoga/**/*.cpp"]),
|
||||||
header_namespace = "",
|
|
||||||
exported_headers = subdir_glob([("", "yoga/**/*.h")]),
|
|
||||||
compiler_flags = LIBRARY_COMPILER_FLAGS,
|
compiler_flags = LIBRARY_COMPILER_FLAGS,
|
||||||
|
public_include_directories = ["."],
|
||||||
|
raw_headers = glob(["yoga/**/*.h"]),
|
||||||
soname = "libyogacore.$(ext)",
|
soname = "libyogacore.$(ext)",
|
||||||
tests = [":YogaTests"],
|
tests = [":YogaTests"],
|
||||||
visibility = ["PUBLIC"],
|
visibility = ["PUBLIC"],
|
||||||
@@ -31,9 +31,9 @@ yoga_cxx_library(
|
|||||||
yoga_cxx_library(
|
yoga_cxx_library(
|
||||||
name = "yogaForDebug",
|
name = "yogaForDebug",
|
||||||
srcs = glob(["yoga/**/*.cpp"]),
|
srcs = glob(["yoga/**/*.cpp"]),
|
||||||
header_namespace = "",
|
|
||||||
exported_headers = subdir_glob([("", "yoga/**/*.h")]),
|
|
||||||
compiler_flags = TEST_COMPILER_FLAGS,
|
compiler_flags = TEST_COMPILER_FLAGS,
|
||||||
|
public_include_directories = ["."],
|
||||||
|
raw_headers = glob(["yoga/**/*.h"]),
|
||||||
soname = "libyogacore.$(ext)",
|
soname = "libyogacore.$(ext)",
|
||||||
tests = [":YogaTests"],
|
tests = [":YogaTests"],
|
||||||
visibility = ["PUBLIC"],
|
visibility = ["PUBLIC"],
|
||||||
|
Reference in New Issue
Block a user