From ce5d52b54e18f2f94c2cecf932cbdb84818f7d17 Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Mon, 13 Feb 2017 22:15:32 -0800 Subject: [PATCH] Update a number of build files in fbandroid/xplat to use the py_sdk build defs. Summary: I'm cleaning up these files in their own revision because I want to trigger dirsync sandcastle separately from my other cleanup. Reviewed By: mzlee Differential Revision: D4549131 fbshipit-source-id: 1d45118256d8b517dea7a2b6c9e50bca1ccc1b0c --- csharp/BUCK | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/csharp/BUCK b/csharp/BUCK index 29e2e6d2..bc6fc3a4 100644 --- a/csharp/BUCK +++ b/csharp/BUCK @@ -6,6 +6,7 @@ # of patent rights can be found in the PATENTS file in the same directory. include_defs('//YOGA_DEFS') +include_defs('xplat//configurations/buck/py_sdk') COMPILER_FLAGS = BASE_COMPILER_FLAGS + ['-std=c++11'] @@ -34,10 +35,7 @@ cxx_library( visibility = ['PUBLIC'], ) -with allow_unsafe_import(): - import os - -if os.path.isdir('/Applications/Xcode.app'): +if py_sdk.os.path.isdir('/Applications/Xcode.app'): yoganet_ios_srcs = [] for arch in [ 'iphonesimulator-x86_64', 'iphonesimulator-i386', 'iphoneos-arm64', 'iphoneos-armv7'