Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Don't build AppKit on IOS (#1393)
Browse files Browse the repository at this point in the history
* Don't build AppKit on IOS

* A couple of more places that TC vega_renderer depends on

* Removed extraneous bits of code
  • Loading branch information
abhishekpratapa authored and znation committed Feb 6, 2019
1 parent ed38afe commit 175814c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/capi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
4 changes: 2 additions & 2 deletions src/vega_renderer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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}")
Expand Down Expand Up @@ -79,4 +79,4 @@ if(APPLE)

target_compile_options(vega_renderer PUBLIC "-fobjc-arc")

endif()
endif()
2 changes: 1 addition & 1 deletion test/vega_renderer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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}")
Expand Down

0 comments on commit 175814c

Please sign in to comment.