From 175814c9493995d6dd15bf1e682ee3044eba6b8f Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 5 Feb 2019 23:27:04 -0800 Subject: [PATCH] Don't build AppKit on IOS (#1393) * Don't build AppKit on IOS * A couple of more places that TC vega_renderer depends on * Removed extraneous bits of code --- src/capi/CMakeLists.txt | 2 +- src/vega_renderer/CMakeLists.txt | 4 ++-- test/vega_renderer/CMakeLists.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/capi/CMakeLists.txt b/src/capi/CMakeLists.txt index 2597e7319f..dc60520165 100644 --- a/src/capi/CMakeLists.txt +++ b/src/capi/CMakeLists.txt @@ -33,7 +33,7 @@ add_library(_capi_objects OBJECT ) set(_capi_requires unity unity_core numerics) -if(APPLE) +if(APPLE AND NOT TC_BUILD_IOS) set(_capi_requires ${_capi_requires} vega_renderer) endif() add_dependencies(_capi_objects ${_capi_requires}) diff --git a/src/vega_renderer/CMakeLists.txt b/src/vega_renderer/CMakeLists.txt index d838d32a4e..a8d11c580a 100644 --- a/src/vega_renderer/CMakeLists.txt +++ b/src/vega_renderer/CMakeLists.txt @@ -1,6 +1,6 @@ project( vega_renderer ) -if(APPLE) +if(APPLE AND NOT TC_BUILD_IOS) find_library( FOUNDATION_LIBRARY Foundation) message( STATUS "Foundation found at ${FOUNDATION_LIBRARY}") @@ -79,4 +79,4 @@ if(APPLE) target_compile_options(vega_renderer PUBLIC "-fobjc-arc") -endif() \ No newline at end of file +endif() diff --git a/test/vega_renderer/CMakeLists.txt b/test/vega_renderer/CMakeLists.txt index 6864ae8a42..a6b2b128e4 100644 --- a/test/vega_renderer/CMakeLists.txt +++ b/test/vega_renderer/CMakeLists.txt @@ -1,6 +1,6 @@ project(vega_renderer_test) -if(APPLE) +if(APPLE AND NOT TC_BUILD_IOS) find_library( WEBKIT_LIBRARY WebKit ) message( STATUS "WebKit found at ${WEBKIT_LIBRARY}")