2014-10-20 18:05:32 +02:00
|
|
|
# i386-apple-ios configuration
|
2015-01-07 11:24:18 +01:00
|
|
|
CFG_SDK_NAME_i386-apple-ios := iphonesimulator
|
|
|
|
CFG_SDK_ARCHS_i386-apple-ios := i386
|
2014-10-20 18:05:32 +02:00
|
|
|
ifneq ($(findstring darwin,$(CFG_OSTYPE)),)
|
2015-01-07 11:24:18 +01:00
|
|
|
CFG_IOSSIM_SDK_i386-apple-ios := $(shell xcrun --show-sdk-path -sdk iphonesimulator 2>/dev/null)
|
|
|
|
CFG_IOSSIM_FLAGS_i386-apple-ios := -m32 -target i386-apple-ios -isysroot $(CFG_IOSSIM_SDK_i386-apple-ios) -mios-simulator-version-min=7.0
|
2014-10-20 18:05:32 +02:00
|
|
|
CC_i386-apple-ios = $(shell xcrun -find -sdk iphonesimulator clang)
|
|
|
|
CXX_i386-apple-ios = $(shell xcrun -find -sdk iphonesimulator clang++)
|
|
|
|
CPP_i386-apple-ios = $(shell xcrun -find -sdk iphonesimulator clang++)
|
|
|
|
AR_i386-apple-ios = $(shell xcrun -find -sdk iphonesimulator ar)
|
|
|
|
endif
|
|
|
|
CFG_LIB_NAME_i386-apple-ios = lib$(1).a
|
|
|
|
CFG_LIB_GLOB_i386-apple-ios = lib$(1)-*.dylib
|
2014-06-25 14:33:49 +02:00
|
|
|
CFG_INSTALL_ONLY_RLIB_i386-apple-ios = 1
|
2014-10-20 18:05:32 +02:00
|
|
|
CFG_STATIC_LIB_NAME_i386-apple-ios=lib$(1).a
|
|
|
|
CFG_LIB_DSYM_GLOB_i386-apple-ios = lib$(1)-*.dylib.dSYM
|
2015-01-07 11:24:18 +01:00
|
|
|
CFG_GCCISH_CFLAGS_i386-apple-ios := -Wall -Werror -g -fPIC -m32 $(CFG_IOSSIM_FLAGS_i386-apple-ios)
|
|
|
|
CFG_GCCISH_CXXFLAGS_i386-apple-ios := -fno-rtti $(CFG_IOSSIM_FLAGS_i386-apple-ios) -I$(CFG_IOSSIM_SDK_i386-apple-ios)/usr/include/c++/4.2.1
|
|
|
|
CFG_GCCISH_LINK_FLAGS_i386-apple-ios := -lpthread -m32 -Wl,-no_compact_unwind -m32 -Wl,-syslibroot $(CFG_IOSSIM_SDK_i386-apple-ios)
|
|
|
|
CFG_GCCISH_DEF_FLAG_i386-apple-ios := -Wl,-exported_symbols_list,
|
2014-10-20 18:05:32 +02:00
|
|
|
CFG_LLC_FLAGS_i386-apple-ios =
|
|
|
|
CFG_INSTALL_NAME_i386-apple-ios = -Wl,-install_name,@rpath/$(1)
|
2015-01-07 11:24:18 +01:00
|
|
|
CFG_EXE_SUFFIX_i386-apple-ios :=
|
|
|
|
CFG_WINDOWSY_i386-apple-ios :=
|
|
|
|
CFG_UNIXY_i386-apple-ios := 1
|
2014-10-20 18:05:32 +02:00
|
|
|
CFG_LDPATH_i386-apple-ios =
|
|
|
|
CFG_RUN_i386-apple-ios = $(2)
|
|
|
|
CFG_RUN_TARG_i386-apple-ios = $(call CFG_RUN_i386-apple-ios,,$(2))
|
2015-01-07 11:24:18 +01:00
|
|
|
CFG_JEMALLOC_CFLAGS_i386-apple-ios = $(CFG_IOSSIM_FLAGS_i386-apple-ios) -target i386-apple-ios #-Wl,-syslibroot $(CFG_IOSSIM_SDK_i386-apple-ios) -Wl,-no_compact_unwind
|
2014-07-23 20:56:36 +02:00
|
|
|
CFG_GNU_TRIPLE_i386-apple-ios := i386-apple-ios
|