Merge pull request #1 from manu-silicon/macos

Add MacOS library generation
This commit is contained in:
Giovanni Petrantoni 2016-06-28 09:20:23 +09:00 коммит произвёл GitHub
Родитель eae433135d 118e80e1c4
Коммит a0b50b5b70
3 изменённых файлов: 19 добавлений и 3 удалений

Просмотреть файл

@ -112,7 +112,7 @@
75EC72681BF9B5AE00A988D5 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0710;
LastUpgradeCheck = 0730;
ORGANIZATIONNAME = Voidtarget;
TargetAttributes = {
75EC726F1BF9B5AE00A988D5 = {
@ -244,10 +244,13 @@
75EC727A1BF9B5AF00A988D5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
COMBINE_HIDPI_IMAGES = YES;
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx10.11;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = macosx;
TVOS_DEPLOYMENT_TARGET = 9.0;
WATCHOS_DEPLOYMENT_TARGET = 2.0;
};
@ -256,11 +259,14 @@
75EC727B1BF9B5AF00A988D5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
COMBINE_HIDPI_IMAGES = YES;
GCC_OPTIMIZATION_LEVEL = 3;
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx10.11;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = macosx;
TVOS_DEPLOYMENT_TARGET = 9.0;
WATCHOS_DEPLOYMENT_TARGET = 2.0;
};

13
buildiOS.sh → buildApple.sh Normal file → Executable file
Просмотреть файл

@ -1,5 +1,14 @@
mkdir build/iOS
mkdir build/macOS
#xcodebuild clean
xcodebuild VALID_ARCHS="armv7 armv7s arm64" ARCHS="armv7 armv7s arm64" ONLY_ACTIVE_ARCH=NO -sdk iphoneos -mios-version-min=6.0
xcodebuild VALID_ARCHS="x86_64 i386" ARCHS="x86_64 i386" ONLY_ACTIVE_ARCH=NO -sdk iphonesimulator -mios-version-min=6.0
lipo build/Release-iphoneos/libNativePath.a build/Release-iphonesimulator/libNativePath.a -create -output build/libNativePath.a
file build/libNativePath.a
lipo build/Release-iphoneos/libNativePath.a build/Release-iphonesimulator/libNativePath.a -create -output build/iOS/libNativePath.a
xcodebuild VALID_ARCHS="x86_64 i386" ARCHS="x86_64 i386" -sdk macosx
mv build/Release/libNativePath.a build/macOS/
file build/iOS/libNativePath.a
file build/macOS/libNativePath.a

Просмотреть файл

@ -33,6 +33,7 @@
// iOS device
#elif TARGET_OS_MAC
// Other kinds of Mac OS
#include <NEONvsSSE.h>
#else
# error "Unknown Apple platform"
#endif