Change c files to cpp

Summary: Changed the extensions of c files to cpp and made the project build successfully

Reviewed By: gkassabli

Differential Revision: D6271299

fbshipit-source-id: 66c0e54ccf019d72d1fd0b4d117826e4e84fdc89
This commit is contained in:
Pritesh Nandgaonkar
2017-11-21 10:10:30 -08:00
committed by Facebook Github Bot
parent 15231c3304
commit 02c00f2711
8 changed files with 228 additions and 181 deletions

6
BUCK
View File

@@ -13,14 +13,14 @@ GMOCK_OVERRIDE_FLAGS = [
]
COMPILER_FLAGS = LIBRARY_COMPILER_FLAGS + [
"-std=c11",
"-std=c++1y",
]
TEST_COMPILER_FLAGS = BASE_COMPILER_FLAGS + GMOCK_OVERRIDE_FLAGS + ["-std=c++11"]
TEST_COMPILER_FLAGS = BASE_COMPILER_FLAGS + GMOCK_OVERRIDE_FLAGS + ["-std=c++1y"]
cxx_library(
name = "yoga",
srcs = glob(["yoga/*.c"]),
srcs = glob(["yoga/*.cpp"]),
header_namespace = "",
exported_headers = subdir_glob([("", "yoga/*.h")]),
compiler_flags = COMPILER_FLAGS,