libcycript_sim_la_SOURCES = $(libcycript_sys_la_SOURCES)
libcycript_sim_la_CPPFLAGS = $(AM_CPPFLAGS)
-CY_SIM_FLAGS = -arch i386 -isysroot $(CY_IOS_SIMULATOR)
+CY_SIM_FLAGS = -arch i386 -isysroot $(CY_XCODE_IOSSIMSDK)
libcycript_sim_la_CXXFLAGS = $(CY_SIM_FLAGS)
libcycript_sim_la_OBJCXXFLAGS = $(CY_SIM_FLAGS)
libcycript_sim_la_LDFLAGS = $(CY_SIM_FLAGS) $(CY_LDFLAGS)
libcycript_sim_la_LIBADD = $(LTOBJECTIVEC) -ldl
libcycript_sim_la_LIBADD += $(LTOBJECTIVEC) $(LTJAVASCRIPTCORE)
-libcycript_sim_la_CPPFLAGS += -idirafter /usr/include
+libcycript_sim_la_CPPFLAGS += -idirafter $(CY_XCODE_MACOSXSDK)/usr/include
libcycript_sim_la_LDFLAGS += -Wl,/usr/lib/libffi.dylib
libcycript_sim_la_OBJCXXFLAGS += -fobjc-abi-version=2 -fobjc-legacy-dispatch
CY_ATTACH_GROUP = @CY_ATTACH_GROUP@
CY_EXECUTE = @CY_EXECUTE@
CY_FILTERS = @CY_FILTERS@
-CY_IOS_SIMULATOR = @CY_IOS_SIMULATOR@
CY_MACH = @CY_MACH@
CY_OBJECTIVEC = @CY_OBJECTIVEC@
+CY_XCODE_IOSSIMSDK = @CY_XCODE_IOSSIMSDK@
+CY_XCODE_MACOSXSDK = @CY_XCODE_MACOSXSDK@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
libcycript_sim_la_SHORTNAME = sim
@CY_IOS_SIMULATOR_TRUE@libcycript_sim_la_SOURCES = $(libcycript_sys_la_SOURCES)
@CY_IOS_SIMULATOR_TRUE@libcycript_sim_la_CPPFLAGS = $(AM_CPPFLAGS) \
-@CY_IOS_SIMULATOR_TRUE@ -idirafter /usr/include
-@CY_IOS_SIMULATOR_TRUE@CY_SIM_FLAGS = -arch i386 -isysroot $(CY_IOS_SIMULATOR)
+@CY_IOS_SIMULATOR_TRUE@ -idirafter \
+@CY_IOS_SIMULATOR_TRUE@ $(CY_XCODE_MACOSXSDK)/usr/include
+@CY_IOS_SIMULATOR_TRUE@CY_SIM_FLAGS = -arch i386 -isysroot $(CY_XCODE_IOSSIMSDK)
@CY_IOS_SIMULATOR_TRUE@libcycript_sim_la_CXXFLAGS = $(CY_SIM_FLAGS)
@CY_IOS_SIMULATOR_TRUE@libcycript_sim_la_OBJCXXFLAGS = \
@CY_IOS_SIMULATOR_TRUE@ $(CY_SIM_FLAGS) -fobjc-abi-version=2 \
CY_EXECUTE
CY_IOS_SIMULATOR_FALSE
CY_IOS_SIMULATOR_TRUE
-CY_IOS_SIMULATOR
+CY_XCODE_IOSSIMSDK
+CY_XCODE_MACOSXSDK
XCODEBUILD
CY_ARCH
CY_FILTERS
if test "x$XCODEBUILD" != x; then :
- CY_IOS_SIMULATOR=`xcodebuild -sdk iphonesimulator -version Path`
+ CY_XCODE_MACOSXSDK=`xcodebuild -sdk macosx -version Path`
+
+ CY_XCODE_IOSSIMSDK=`xcodebuild -sdk iphonesimulator -version Path`
fi
- if test "x$CY_IOS_SIMULATOR" != x; then
+ if test "x$CY_XCODE_IOSSIMSDK" != x; then
CY_IOS_SIMULATOR_TRUE=
CY_IOS_SIMULATOR_FALSE='#'
else
AC_PATH_PROG([XCODEBUILD], [xcodebuild])
AS_IF([test "x$XCODEBUILD" != x], [
- AC_SUBST([CY_IOS_SIMULATOR], [`xcodebuild -sdk iphonesimulator -version Path`])
+ AC_SUBST([CY_XCODE_MACOSXSDK], [`xcodebuild -sdk macosx -version Path`])
+ AC_SUBST([CY_XCODE_IOSSIMSDK], [`xcodebuild -sdk iphonesimulator -version Path`])
])
-AM_CONDITIONAL([CY_IOS_SIMULATOR], [test "x$CY_IOS_SIMULATOR" != x])
+AM_CONDITIONAL([CY_IOS_SIMULATOR], [test "x$CY_XCODE_IOSSIMSDK" != x])
dnl }}}
AC_DEFUN([CY_LT_LIB], [