File tree Expand file tree Collapse file tree 1 file changed +23
-11
lines changed
Expand file tree Collapse file tree 1 file changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -252,17 +252,29 @@ if (APPLE)
252252 set_xcode_property (xlua IPHONEOS_DEPLOYMENT_TARGET "7.0" "all" )
253253 else ()
254254 ADD_DEFINITIONS (-DLUA_USE_MACOSX) #osx platform emmylua debugger must have this option or can not load cpath
255- set (CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD_64_BIT)" )
256- add_library (xlua MODULE
257- ${LUA_CORE}
258- ${LUA_LIB}
259- ${LUA_SOCKET}
260- ${XLUA_CORE}
261- ${THIRDPART_SRC}
262- )
263- set_target_properties ( xlua PROPERTIES BUNDLE TRUE )
264- #set_target_properties ( xlua PROPERTIES FRAMEWORK TRUE )
265- #set_target_properties ( xlua PROPERTIES MACOSX_RPATH TRUE )
255+ if (BUILD_SILICON)
256+ set (CMAKE_OSX_ARCHITECTURES arm64)
257+
258+ add_library (xlua SHARED
259+ ${LUA_CORE}
260+ ${LUA_LIB}
261+ ${LUA_SOCKET}
262+ ${XLUA_CORE}
263+ ${THIRDPART_SRC}
264+ )
265+ else ()
266+ set (CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD_64_BIT)" )
267+ add_library (xlua MODULE
268+ ${LUA_CORE}
269+ ${LUA_LIB}
270+ ${LUA_SOCKET}
271+ ${XLUA_CORE}
272+ ${THIRDPART_SRC}
273+ )
274+ set_target_properties ( xlua PROPERTIES BUNDLE TRUE )
275+ #set_target_properties ( xlua PROPERTIES FRAMEWORK TRUE )
276+ #set_target_properties ( xlua PROPERTIES MACOSX_RPATH TRUE )
277+ endif ()
266278 endif ()
267279elseif ("${CMAKE_SYSTEM_NAME} " STREQUAL "Switch" )
268280 add_library (xlua STATIC
You can’t perform that action at this time.
0 commit comments