Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit 0d28ed3

Browse files
committed
Cleaned up spacing in Makefile.
2 parents d431ce0 + d9ff961 commit 0d28ed3

File tree

6 files changed

+6316
-11865
lines changed

6 files changed

+6316
-11865
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014 Russell Keith-Magee.
1+
Copyright (c) 2014-2016 Russell Keith-Magee.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

Makefile

+46-44
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
#
22
# Useful targets:
3-
# - all - build everything
4-
# - iOS - build everything for iOS
5-
# - tvOS - build everything for tvOS
6-
# - watchOS - build everything for watchOS
7-
# - OpenSSL.framework-iOS - build OpenSSL.framework for iOS
8-
# - OpenSSL.framework-tvOS - build OpenSSL.framework for tvOS
9-
# - OpenSSL.framework-watchOS - build OpenSSL.framework for watchOS
10-
# - BZip2-iOS - build BZip2 library for iOS
11-
# - BZip2-tvOS - build BZip2 library for tvOS
12-
# - BZip2-watchOS - build BZip2 library for watchOS
13-
# - XZ-iOS - build XZ library for iOS
14-
# - XZ-tvOS - build XZ library for tvOS
15-
# - XZ-watchOS - build XZ library for watchOS
16-
# - Python.framework-iOS - build Python.framework for iOS
17-
# - Python.framework-tvOS - build Python.framework for tvOS
18-
# - Python.framework-watchOS - build Python.framework for watchOS
19-
# - Python-host - build host python
3+
# - all - build everything
4+
# - iOS - build everything for iOS
5+
# - tvOS - build everything for tvOS
6+
# - watchOS - build everything for watchOS
7+
# - OpenSSL.framework-iOS - build OpenSSL.framework for iOS
8+
# - OpenSSL.framework-tvOS - build OpenSSL.framework for tvOS
9+
# - OpenSSL.framework-watchOS - build OpenSSL.framework for watchOS
10+
# - BZip2-iOS - build BZip2 library for iOS
11+
# - BZip2-tvOS - build BZip2 library for tvOS
12+
# - BZip2-watchOS - build BZip2 library for watchOS
13+
# - XZ-iOS - build XZ library for iOS
14+
# - XZ-tvOS - build XZ library for tvOS
15+
# - XZ-watchOS - build XZ library for watchOS
16+
# - Python.framework-iOS - build Python.framework for iOS
17+
# - Python.framework-tvOS - build Python.framework for tvOS
18+
# - Python.framework-watchOS - build Python.framework for watchOS
19+
# - Python-host - build host python
2020

2121
# Current director
2222
PROJECT_DIR=$(shell pwd)
@@ -25,7 +25,7 @@ BUILD_NUMBER=5
2525

2626
# Version of packages that will be compiled by this meta-package
2727
PYTHON_VERSION=3.4.2
28-
PYTHON_VER= $(basename $(PYTHON_VERSION))
28+
PYTHON_VER=$(basename $(PYTHON_VERSION))
2929

3030
OPENSSL_VERSION_NUMBER=1.0.2
3131
OPENSSL_REVISION=f
@@ -36,25 +36,25 @@ BZIP2_VERSION=1.0.6
3636
XZ_VERSION=5.2.2
3737

3838
# Supported OS
39-
OS= iOS tvOS watchOS
39+
OS=iOS tvOS watchOS
4040

4141
# iOS targets
4242
TARGETS-iOS=iphonesimulator.x86_64 iphonesimulator.i386 iphoneos.armv7 iphoneos.armv7s iphoneos.arm64
4343
CFLAGS-iOS=-miphoneos-version-min=7.0
44-
CFLAGS-iphoneos.armv7= -fembed-bitcode
45-
CFLAGS-iphoneos.armv7s= -fembed-bitcode
46-
CFLAGS-iphoneos.arm64= -fembed-bitcode
44+
CFLAGS-iphoneos.armv7=-fembed-bitcode
45+
CFLAGS-iphoneos.armv7s=-fembed-bitcode
46+
CFLAGS-iphoneos.arm64=-fembed-bitcode
4747

4848
# tvOS targets
4949
TARGETS-tvOS=appletvsimulator.x86_64 appletvos.arm64
5050
CFLAGS-tvOS=-mtvos-version-min=9.0
51-
CFLAGS-appletvos.arm64= -fembed-bitcode
52-
PYTHON_CONFIGURE-tvOS= ac_cv_func_sigaltstack=no
51+
CFLAGS-appletvos.arm64=-fembed-bitcode
52+
PYTHON_CONFIGURE-tvOS=ac_cv_func_sigaltstack=no
5353

5454
# watchOS targets
5555
TARGETS-watchOS=watchsimulator.i386 watchos.armv7k
5656
CFLAGS-watchOS=-mwatchos-version-min=2.0
57-
CFLAGS-watchos.armv7k= -fembed-bitcode
57+
CFLAGS-watchos.armv7k=-fembed-bitcode
5858
PYTHON_CONFIGURE-watchOS=ac_cv_func_sigaltstack=no
5959

6060
# override machine types for arm64
@@ -160,29 +160,29 @@ $(PYTHON_DIR-host)/dist/bin/python$(PYTHON_VER): $(PYTHON_DIR-host)/Makefile
160160
# - $1 - target
161161
# - $2 - OS
162162
define build-target
163-
ARCH-$1= $$(subst .,,$$(suffix $1))
163+
ARCH-$1=$$(subst .,,$$(suffix $1))
164164
ifdef MACHINE_DETAILED-$$(ARCH-$1)
165-
MACHINE_DETAILED-$1= $$(MACHINE_DETAILED-$$(ARCH-$1))
165+
MACHINE_DETAILED-$1=$$(MACHINE_DETAILED-$$(ARCH-$1))
166166
else
167-
MACHINE_DETAILED-$1= $$(ARCH-$1)
167+
MACHINE_DETAILED-$1=$$(ARCH-$1)
168168
endif
169169
ifdef MACHINE_SIMPLE-$$(ARCH-$1)
170-
MACHINE_SIMPLE-$1= $$(MACHINE_SIMPLE-$$(ARCH-$1))
170+
MACHINE_SIMPLE-$1=$$(MACHINE_SIMPLE-$$(ARCH-$1))
171171
else
172-
MACHINE_SIMPLE-$1= $$(ARCH-$1)
172+
MACHINE_SIMPLE-$1=$$(ARCH-$1)
173173
endif
174-
SDK-$1= $$(basename $1)
174+
SDK-$1=$$(basename $1)
175175

176-
SDK_ROOT-$1= $$(shell xcrun --sdk $$(SDK-$1) --show-sdk-path)
177-
CC-$1= xcrun --sdk $$(SDK-$1) clang\
176+
SDK_ROOT-$1=$$(shell xcrun --sdk $$(SDK-$1) --show-sdk-path)
177+
CC-$1=xcrun --sdk $$(SDK-$1) clang\
178178
-arch $$(ARCH-$1) --sysroot=$$(SDK_ROOT-$1) $$(CFLAGS-$2) $$(CFLAGS-$1)
179-
LDFLAGS-$1= -arch $$(ARCH-$1) -isysroot=$$(SDK_ROOT-$1)
179+
LDFLAGS-$1=-arch $$(ARCH-$1) -isysroot=$$(SDK_ROOT-$1)
180180

181-
OPENSSL_DIR-$1= build/$2/openssl-$(OPENSSL_VERSION)-$1
182-
BZIP2_DIR-$1= build/$2/bzip2-$(BZIP2_VERSION)-$1
183-
XZ_DIR-$1= build/$2/xz-$(XZ_VERSION)-$1
184-
PYTHON_DIR-$1= build/$2/Python-$(PYTHON_VERSION)-$1
185-
pyconfig.h-$1= pyconfig-$$(ARCH-$1).h
181+
OPENSSL_DIR-$1=build/$2/openssl-$(OPENSSL_VERSION)-$1
182+
BZIP2_DIR-$1=build/$2/bzip2-$(BZIP2_VERSION)-$1
183+
XZ_DIR-$1=build/$2/xz-$(XZ_VERSION)-$1
184+
PYTHON_DIR-$1=build/$2/Python-$(PYTHON_VERSION)-$1
185+
pyconfig.h-$1=pyconfig-$$(ARCH-$1).h
186186

187187
# Unpack OpenSSL
188188
$$(OPENSSL_DIR-$1)/Makefile: downloads/openssl-$(OPENSSL_VERSION).tgz
@@ -254,6 +254,8 @@ $$(PYTHON_DIR-$1)/Makefile: downloads/Python-$(PYTHON_VERSION).tgz $(PYTHON_HOST
254254
# Apply target Python patches
255255
cd $$(PYTHON_DIR-$1) && patch -p1 <$(PROJECT_DIR)/patch/Python/Python.patch
256256
cp -f $(PROJECT_DIR)/patch/Python/Setup.embedded $$(PYTHON_DIR-$1)/Modules/Setup.embedded
257+
# Copy in the host _freeze_importlib
258+
cp $(PYTHON_DIR-host)/Programs/_freeze_importlib $$(PYTHON_DIR-$1)/iOS/_freeze_importlib
257259
# Configure target Python
258260
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-host)/dist/bin:$(PATH) ./configure \
259261
CC="$$(CC-$1)" LD="$$(CC-$1)" \
@@ -295,11 +297,11 @@ endef
295297
define build
296298
$$(foreach target,$$(TARGETS-$1),$$(eval $$(call build-target,$$(target),$1)))
297299

298-
OPENSSL_FRAMEWORK-$1= build/$1/OpenSSL.framework
299-
BZIP2_LIB-$1= build/$1/bzip2/lib/libbz2.a
300-
XZ_LIB-$1= build/$1/xz/lib/liblzma.a
301-
PYTHON_FRAMEWORK-$1= build/$1/Python.framework
302-
PYTHON_RESOURCES-$1= $$(PYTHON_FRAMEWORK-$1)/Versions/$(PYTHON_VER)/Resources
300+
OPENSSL_FRAMEWORK-$1=build/$1/OpenSSL.framework
301+
BZIP2_LIB-$1=build/$1/bzip2/lib/libbz2.a
302+
XZ_LIB-$1=build/$1/xz/lib/liblzma.a
303+
PYTHON_FRAMEWORK-$1=build/$1/Python.framework
304+
PYTHON_RESOURCES-$1=$$(PYTHON_FRAMEWORK-$1)/Versions/$(PYTHON_VER)/Resources
303305

304306
$1: dist/Python-$(PYTHON_VERSION)-$1-support.b$(BUILD_NUMBER).tar.gz
305307

README.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ This should enable the code to run on:
2828
- iPad Air
2929
- iPad Air 2
3030
- iPad retina
31-
- iPad Pro
3231
* iPad Mini
3332
- iPad Mini (1st gen)
3433
- iPad Mini 2
@@ -42,7 +41,7 @@ This should enable the code to run on:
4241
- 4th gen
4342
* Apple Watch
4443

45-
This repository branch builds a packaged version of **Python 3.4.2**.
44+
This repository branch builds a packaged version of **Python 3.5.1**.
4645
Other Python versions are available by cloning other branches of the main
4746
repository.
4847

0 commit comments

Comments
 (0)