File tree Expand file tree Collapse file tree 7 files changed +58
-0
lines changed
Expand file tree Collapse file tree 7 files changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,14 @@ if(NOT Half_FOUND)
190190 ${Half_CMAKE_ARGS} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} )
191191 endif ()
192192
193+ if (ANDROID)
194+ set (Half_CMAKE_ARGS
195+ ${Half_CMAKE_ARGS}
196+ -DANDROID_PLATFORM=${ANDROID_PLATFORM}
197+ -DANDROID_ABI=${ANDROID_ABI}
198+ -DANDROID_STL=${ANDROID_STL} )
199+ endif ()
200+
193201 # Hack to let imported target be built from ExternalProject_Add
194202 file (MAKE_DIRECTORY ${Half_INCLUDE_DIR} )
195203
Original file line number Diff line number Diff line change @@ -188,6 +188,14 @@ if(NOT Imath_FOUND)
188188 ${Imath_CMAKE_ARGS} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} )
189189 endif ()
190190
191+ if (ANDROID)
192+ set (Imath_CMAKE_ARGS
193+ ${Imath_CMAKE_ARGS}
194+ -DANDROID_PLATFORM=${ANDROID_PLATFORM}
195+ -DANDROID_ABI=${ANDROID_ABI}
196+ -DANDROID_STL=${ANDROID_STL} )
197+ endif ()
198+
191199 # Hack to let imported target be built from ExternalProject_Add
192200 file (MAKE_DIRECTORY ${Imath_INCLUDE_DIR} )
193201
Original file line number Diff line number Diff line change @@ -226,6 +226,14 @@ if(NOT expat_FOUND)
226226 ${EXPAT_CMAKE_ARGS} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} )
227227 endif ()
228228
229+ if (ANDROID)
230+ set (EXPAT_CMAKE_ARGS
231+ ${EXPAT_CMAKE_ARGS}
232+ -DANDROID_PLATFORM=${ANDROID_PLATFORM}
233+ -DANDROID_ABI=${ANDROID_ABI}
234+ -DANDROID_STL=${ANDROID_STL} )
235+ endif ()
236+
229237 # Hack to let imported target be built from ExternalProject_Add
230238 file (MAKE_DIRECTORY ${expat_INCLUDE_DIR} )
231239
Original file line number Diff line number Diff line change @@ -147,6 +147,14 @@ if(NOT lcms2_FOUND)
147147 ${lcms2_CMAKE_ARGS} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} )
148148 endif ()
149149
150+ if (ANDROID)
151+ set (lcms2_CMAKE_ARGS
152+ ${lcms2_CMAKE_ARGS}
153+ -DANDROID_PLATFORM=${ANDROID_PLATFORM}
154+ -DANDROID_ABI=${ANDROID_ABI}
155+ -DANDROID_STL=${ANDROID_STL} )
156+ endif ()
157+
150158 # Hack to let imported target be built from ExternalProject_Add
151159 file (MAKE_DIRECTORY ${lcms2_INCLUDE_DIR} )
152160
Original file line number Diff line number Diff line change @@ -179,6 +179,14 @@ if(NOT pybind11_FOUND)
179179 ${pybind11_CMAKE_ARGS} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} )
180180 endif ()
181181
182+ if (ANDROID)
183+ set (pybind11_CMAKE_ARGS
184+ ${pybind11_CMAKE_ARGS}
185+ -DANDROID_PLATFORM=${ANDROID_PLATFORM}
186+ -DANDROID_ABI=${ANDROID_ABI}
187+ -DANDROID_STL=${ANDROID_STL} )
188+ endif ()
189+
182190 ExternalProject_Add(pybind11_install
183191 GIT_REPOSITORY "https://github.com/pybind/pybind11.git"
184192 GIT_TAG "v${pybind11_FIND_VERSION} "
Original file line number Diff line number Diff line change @@ -107,6 +107,15 @@ if(NOT pystring_FOUND)
107107 ${pystring_CMAKE_ARGS} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} )
108108 endif ()
109109
110+
111+ if (ANDROID)
112+ set (pystring_CMAKE_ARGS
113+ ${pystring_CMAKE_ARGS}
114+ -DANDROID_PLATFORM=${ANDROID_PLATFORM}
115+ -DANDROID_ABI=${ANDROID_ABI}
116+ -DANDROID_STL=${ANDROID_STL} )
117+ endif ()
118+
110119 if (NOT BUILD_SHARED_LIBS )
111120 #TODO: Find a way to merge in the static libs when built with internal pystring
112121 message (WARNING
Original file line number Diff line number Diff line change @@ -196,6 +196,15 @@ if(NOT yaml-cpp_FOUND)
196196 ${yaml-cpp_CMAKE_ARGS} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} )
197197 endif ()
198198
199+
200+ if (ANDROID)
201+ set (yaml-cpp_CMAKE_ARGS
202+ ${yaml-cpp_CMAKE_ARGS}
203+ -DANDROID_PLATFORM=${ANDROID_PLATFORM}
204+ -DANDROID_ABI=${ANDROID_ABI}
205+ -DANDROID_STL=${ANDROID_STL} )
206+ endif ()
207+
199208 if (NOT BUILD_SHARED_LIBS )
200209 #TODO: Find a way to merge in the static libs when built with internal yamlcpp
201210 message (WARNING
You can’t perform that action at this time.
0 commit comments