This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-libzt/make-mac.mk

373 lines
15 KiB
Makefile
Raw Normal View History

2016-06-29 12:07:28 -07:00
#
2016-12-16 13:04:01 -08:00
# Makefile for ZeroTier SDK on macOS
2016-06-29 12:07:28 -07:00
#
# Targets
# all: build every target possible on host system, plus tests
# check: reports OK/FAIL of built targets
# tests: build only test applications for host system
# clean: removes all built files, objects, other trash
2016-12-16 13:04:01 -08:00
# Build everything
all: one osx ios android lwip pico check
# ------------------------------------------------------------------------------
# ----------------------------------- Config -----------------------------------
# ------------------------------------------------------------------------------
# Automagically pick clang or gcc, with preference for clang
# This is only done if we have not overridden these with an environment or CLI variable
ifeq ($(origin CC),default)
CC=$(shell if [ -e /usr/bin/clang ]; then echo clang; else echo gcc; fi)
endif
ifeq ($(origin CXX),default)
CXX=$(shell if [ -e /usr/bin/clang++ ]; then echo clang++; else echo g++; fi)
endif
INCLUDES=
DEFS=
ARCH_FLAGS=-arch x86_64
CFLAGS=
CXXFLAGS=$(CFLAGS) -fno-rtti
include objects.mk
# Target output filenames
STATIC_LIB_NAME = libzt.a
INTERCEPT_NAME = libztintercept.so
SDK_SERVICE_NAME = zerotier-sdk-service
ONE_SERVICE_NAME = zerotier-one
ONE_CLI_NAME = zerotier-cli
ONE_ID_TOOL_NAME = zerotier-idtool
LWIP_LIB_NAME = liblwip.so
2016-12-08 15:44:53 -08:00
PICO_LIB_NAME = libpicotcp.so
#
STATIC_LIB = $(BUILD)/$(STATIC_LIB_NAME)
2016-12-16 13:04:01 -08:00
SDK_INTERCEPT = $(BUILD)/$(INTERCEPT_NAME)
SDK_SERVICE = $(BUILD)/$(SDK_SERVICE_NAME)
ONE_SERVICE = $(BUILD)/$(ONE_SERVICE_NAME)
ONE_CLI = $(BUILD)/$(ONE_CLI_NAME)
ONE_IDTOOL = $(BUILD)/$(ONE_IDTOOL_NAME)
LWIP_LIB = $(BUILD)/$(LWIP_LIB_NAME)
2016-12-08 15:44:53 -08:00
PICO_LIB = $(BUILD)/$(PICO_LIB_NAME)
#
2016-11-01 15:38:09 -07:00
LWIP_DIR = ext/lwip
PICOTCP_DIR = ext/picotcp
#
LWIP_DRIVER_FILES = src/stack_drivers/lwip/lwip.cpp
PICO_DRIVER_FILES = src/stack_drivers/picotcp/picotcp.cpp
SDK_SERVICE_CPP_FILES:=src/tap.cpp \
src/proxy.cpp \
$(ZT1)/service/OneService.cpp \
$(ZT1)/one.cpp
SDK_SERVICE_C_FILES = src/rpc.c
SDK_INTERCEPT_C_FILES:=src/sockets.c \
src/intercept.c \
src/rpc.c
2016-11-01 15:38:09 -07:00
2016-12-16 13:04:01 -08:00
INCLUDES+= -Iext \
-I$(ZT1)/osdep \
-I$(ZT1)/node \
-I$(ZT1)/service \
-I../$(ZT1)/osdep \
-I../$(ZT1)/node \
-I../$(ZT1)/service \
-I. \
-Isrc \
-Isrc/stack_drivers
2016-12-16 13:04:01 -08:00
# ------------------------------------------------------------------------------
# --------------------------------- ZT Config ----------------------------------
# ------------------------------------------------------------------------------
2016-06-14 16:01:19 -07:00
2016-12-16 13:04:01 -08:00
ZTFLAGS:=-DSDK -DZT_ONE_NO_ROOT_CHECK
2016-06-14 16:01:19 -07:00
# Disable codesign since open source users will not have ZeroTier's certs
CODESIGN=echo
PRODUCTSIGN=echo
CODESIGN_APP_CERT=
CODESIGN_INSTALLER_CERT=
2016-06-29 12:07:28 -07:00
# Debug output for ZeroTier service
2016-06-14 16:01:19 -07:00
ifeq ($(ZT_DEBUG),1)
DEFS+=-DZT_TRACE
#CFLAGS+=-Wall -fPIE -fvisibility=hidden -pthread $(INCLUDES) $(DEFS)
2016-06-14 16:01:19 -07:00
CFLAGS+=-Wall -g -pthread $(INCLUDES) $(DEFS)
STRIP=echo
# The following line enables optimization for the crypto code, since
# C25519 in particular is almost UNUSABLE in heavy testing without it.
2016-06-22 14:07:28 -07:00
#ext/lz4/lz4.o node/Salsa20.o node/SHA512.o node/C25519.o node/Poly1305.o: CFLAGS = -Wall -O2 -g -pthread $(INCLUDES) $(DEFS)
2016-06-14 16:01:19 -07:00
else
CFLAGS?=-Ofast -fstack-protector
CFLAGS+=-Wall -fPIE -fvisibility=hidden -pthread $(INCLUDES) $(DEFS)
#CFLAGS+=$(ARCH_FLAGS) -Wall -flto -fPIC -pthread -mmacosx-version-min=10.7 -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS)
2016-06-14 16:01:19 -07:00
STRIP=strip
endif
2016-12-16 13:04:01 -08:00
# ------------------------------------------------------------------------------
# -------------------------------- SDK Config ----------------------------------
# ------------------------------------------------------------------------------
2016-06-29 12:07:28 -07:00
# Debug output for the SDK
# Specific levels can be controlled in src/debug.h
ifeq ($(SDK_DEBUG),1)
DEFS+=-DSDK_DEBUG -g
2016-06-14 16:01:19 -07:00
endif
2016-12-16 13:04:01 -08:00
# ------------------------------------------------------------------------------
# ------------------------ Network Stack Configuration -------------------------
# ------------------------------------------------------------------------------
2016-11-01 15:38:09 -07:00
# lwIP
ifeq ($(SDK_LWIP),1)
STACK_FLAGS+=-DSDK_LWIP
2016-12-16 13:04:01 -08:00
INCLUDES+= -I$(LWIP_DIR)/src/include \
-I$(LWIP_DIR)/src/include/ipv4 \
-I$(LWIP_DIR)/src/include/ipv6 \
-Isrc/stack_drivers/lwip
ifeq ($(SDK_LWIP_DEBUG),1)
LWIP_FLAGS+=SDK_LWIP_DEBUG=1
endif
2016-11-01 15:38:09 -07:00
endif
# picoTCP
ifeq ($(SDK_PICOTCP),1)
STACK_FLAGS+=-DSDK_PICOTCP
2016-12-16 13:04:01 -08:00
INCLUDES+= -I$(PICOTCP_DIR)/include \
-I$(PICOTCP_DIR)/build/include \
-Isrc/stack_drivers/picotcp
2016-11-01 15:38:09 -07:00
endif
# jip
ifeq ($(SDK_JIP),1)
STACK_FLAGS+=-DSDK_JIP
2016-12-16 13:04:01 -08:00
INCLUDES+= -Isrc/stack_drivers/jip
2016-11-01 15:38:09 -07:00
endif
# TCP protocol version
ifeq ($(SDK_IPV4),1)
LWIP_FLAGS+=SDK_IPV4=1
STACK_FLAGS+=-DSDK_IPV4
endif
ifeq ($(SDK_IPV6),1)
LWIP_FLAGS+=SDK_IPV6=1
STACK_FLAGS+=-DSDK_IPV6
endif
2016-08-30 16:54:06 -07:00
2016-08-29 14:47:28 -07:00
lwip:
2016-10-21 15:46:22 -07:00
-make -f make-liblwip.mk $(LWIP_FLAGS)
2016-07-07 14:50:47 -05:00
2016-10-21 15:46:22 -07:00
pico:
mkdir -p build
cd ext/picotcp; make lib ARCH=shared IPV4=1 IPV6=1
$(CC) -g -nostartfiles -shared -o ext/picotcp/build/lib/libpicotcp.so ext/picotcp/build/lib/*.o ext/picotcp/build/modules/*.o
cp ext/picotcp/build/lib/libpicotcp.so build/libpicotcp.so
2016-08-30 16:54:06 -07:00
2016-10-21 15:46:22 -07:00
jip:
-make -f make-jip.mk $(JIP_FLAGS)
2016-08-30 16:54:06 -07:00
2016-12-16 13:04:01 -08:00
# ------------------------------------------------------------------------------
# -------------------------------- IOS / macOS ---------------------------------
# ------------------------------------------------------------------------------
2016-07-14 08:40:40 -07:00
# Build all Apple targets
2016-08-30 16:54:06 -07:00
apple: one osx ios
# Build vanilla ZeroTier One binary
one: $(OBJS) $(ZT1)/service/OneService.o $(ZT1)/one.o $(ZT1)/osdep/OSXEthernetTap.o
mkdir -p $(BUILD)
2016-12-16 13:04:01 -08:00
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(BUILD)/zerotier-one $(OBJS) $(ZT1)/service/OneService.o $(ZT1)/one.o $(ZT1)/osdep/OSXEthernetTap.o
2016-08-30 16:54:06 -07:00
$(STRIP) $(ONE_SERVICE)
cp $(ONE_SERVICE) $(INT)/docker/docker_demo/$(ONE_SERVICE_NAME)
2016-07-14 08:40:40 -07:00
2016-07-07 14:50:47 -05:00
# Build all iOS targets
ios: ios_app_framework ios_unity3d_bundle
# Build all OSX targets
osx: osx_app_framework osx_unity3d_bundle osx_sdk_service osx_intercept osx_static_lib
2016-07-07 14:50:47 -05:00
2016-12-19 10:07:33 -08:00
# ---------------------------------------
# ----------- App Frameworks ------------
# ---------------------------------------
# TODO: CHECK if XCODE TOOLS are installed
# Build frameworks for application development
2016-06-22 16:01:03 -07:00
osx_app_framework:
cd $(INT)/apple/ZeroTierSDK_Apple; xcodebuild -configuration Release -scheme ZeroTierSDK_OSX build SYMROOT="../../../$(BUILD)/osx_app_framework"
cd $(INT)/apple/ZeroTierSDK_Apple; xcodebuild -configuration Debug -scheme ZeroTierSDK_OSX build SYMROOT="../../../$(BUILD)/osx_app_framework"
2016-12-08 15:44:53 -08:00
cp docs/osx.md $(BUILD)/osx_app_framework/README.md
2016-12-16 13:04:01 -08:00
2016-06-22 16:01:03 -07:00
ios_app_framework:
cd $(INT)/apple/ZeroTierSDK_Apple; xcodebuild -configuration Release -scheme ZeroTierSDK_iOS build SYMROOT="../../../$(BUILD)/ios_app_framework"
cd $(INT)/apple/ZeroTierSDK_Apple; xcodebuild -configuration Debug -scheme ZeroTierSDK_iOS build SYMROOT="../../../$(BUILD)/ios_app_framework"
2016-12-08 15:44:53 -08:00
cp docs/ios.md $(BUILD)/ios_app_framework/README.md
2016-12-19 10:07:33 -08:00
# ---------------------------------------
# ------------ Unity Bundles ------------
# ---------------------------------------
# Build bundles for Unity integrations
2016-06-22 13:19:01 -07:00
osx_unity3d_bundle:
cd $(INT)/apple/ZeroTierSDK_Apple; xcodebuild -configuration Release -scheme ZeroTierSDK_Unity3D_OSX build SYMROOT="../../../$(BUILD)/osx_unity3d_bundle"
cd $(INT)/apple/ZeroTierSDK_Apple; xcodebuild -configuration Debug -scheme ZeroTierSDK_Unity3D_OSX build SYMROOT="../../../$(BUILD)/osx_unity3d_bundle"
2016-12-08 15:44:53 -08:00
cp docs/osx_unity3d.md $(BUILD)/osx_unity3d_bundle/README.md
2016-07-18 11:35:40 -07:00
chmod 755 $(BUILD)/osx_unity3d_bundle/Debug/ZeroTierSDK_Unity3D_OSX.bundle
cp -p -R $(BUILD)/osx_unity3d_bundle/Debug/ZeroTierSDK_Unity3D_OSX.bundle $(INT)/Unity3D/Assets/Plugins
2016-06-22 13:19:01 -07:00
ios_unity3d_bundle:
cd $(INT)/apple/ZeroTierSDK_Apple; xcodebuild -configuration Release -scheme ZeroTierSDK_Unity3D_iOS build SYMROOT="../../../$(BUILD)/ios_unity3d_bundle"
cd $(INT)/apple/ZeroTierSDK_Apple; xcodebuild -configuration Debug -scheme ZeroTierSDK_Unity3D_iOS build SYMROOT="../../../$(BUILD)/ios_unity3d_bundle"
2016-12-08 15:44:53 -08:00
cp docs/ios_unity3d.md $(BUILD)/ios_unity3d_bundle/README.md
2016-12-19 10:07:33 -08:00
# ---------------------------------------
# --------------- Intercept -------------
# ---------------------------------------
2016-08-30 16:54:06 -07:00
osx_intercept:
# Use gcc not clang to build standalone intercept library since gcc is typically used for libc and we want to ensure maximal ABI compatibility
2016-12-16 13:04:01 -08:00
gcc $(DEFS) $(INCLUDES) -g -O2 -Wall -std=c99 -fPIC -DVERBOSE -D_GNU_SOURCE -DSDK_INTERCEPT -nostdlib -nostdlib -shared -o $(SDK_INTERCEPT) $(SDK_INTERCEPT_C_FILES) -ldl
2016-08-30 16:54:06 -07:00
2016-12-19 10:07:33 -08:00
# ---------------------------------------
# ----- Service Library Combinations ----
# ---------------------------------------
2016-08-30 16:54:06 -07:00
# Build only the SDK service
2016-11-01 15:38:09 -07:00
ifeq ($(SDK_LWIP),1)
2016-08-30 16:54:06 -07:00
osx_sdk_service: lwip $(OBJS)
2016-12-16 13:04:01 -08:00
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(STACK_FLAGS) $(DEFS) $(INCLUDES) $(ZTFLAGS) -DSDK_SERVICE -o $(SDK_SERVICE) $(OBJS) $(LWIP_DRIVER_FILES) $(SDK_SERVICE_CPP_FILES) $(SDK_SERVICE_C_FILES) -ldl
2016-11-01 15:38:09 -07:00
else
osx_sdk_service: pico $(OBJS)
2016-12-16 13:04:01 -08:00
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(STACK_FLAGS) $(DEFS) $(INCLUDES) $(ZTFLAGS) -DSDK_SERVICE -o $(SDK_SERVICE) $(OBJS) $(PICO_DRIVER_FILES) $(SDK_SERVICE_CPP_FILES) $(SDK_SERVICE_C_FILES) -ldl
2016-11-01 15:38:09 -07:00
endif
ln -sf $(SDK_SERVICE_NAME) $(BUILD)/zerotier-cli
ln -sf $(SDK_SERVICE_NAME) $(BUILD)/zerotier-idtool
2016-08-30 16:54:06 -07:00
# Build both intercept library and SDK service (separate)
2016-09-06 15:03:58 -07:00
osx_service_and_intercept: osx_intercept osx_sdk_service
2016-08-30 16:54:06 -07:00
2016-12-19 10:07:33 -08:00
ifeq ($(SDK_LWIP),1)
osx_static_lib: lwip $(OBJS)
$(CXX) $(CXXFLAGS) $(STACK_FLAGS) $(DEFS) $(INCLUDES) $(ZTFLAGS) -DSDK_SERVICE -DSDK -DSDK_BUNDLED $(LWIP_DRIVER_FILES) $(SDK_INTERCEPT_C_FILES) $(SDK_SERVICE_CPP_FILES) src/service.cpp -c
ar -rcs build/libzt.a lwip.o proxy.o tap.o one.o OneService.o service.o sockets.o rpc.o intercept.o $(OBJS)
2016-12-19 10:07:33 -08:00
else
2016-12-16 13:04:01 -08:00
osx_static_lib: pico $(OBJS)
$(CXX) $(CXXFLAGS) $(STACK_FLAGS) $(DEFS) $(INCLUDES) $(ZTFLAGS) -DSDK_SERVICE -DSDK -DSDK_BUNDLED $(PICO_DRIVER_FILES) $(SDK_INTERCEPT_C_FILES) $(SDK_SERVICE_CPP_FILES) src/service.cpp -c
libtool -static -o build/libzt.a lwip.o proxy.o tap.o one.o OneService.o service.o sockets.o rpc.o intercept.o OneService.o $(OBJS)
2016-12-19 10:07:33 -08:00
endif
# Builds zts_* library tests
2016-12-16 13:04:01 -08:00
osx_static_lib_tests:
mkdir -p $(TEST_OBJDIR)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(INCLUDES) $(STACK_FLAGS) $(DEFS) -DSDK_SERVICE -DSDK -DSDK_BUNDLED -Isrc tests/shared_test/zts.tcpserver4.c -o $(TEST_OBJDIR)/$(OSTYPE).zts.tcpserver4.out -Lbuild -lzt -ldl
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(INCLUDES) $(STACK_FLAGS) $(DEFS) -DSDK_SERVICE -DSDK -DSDK_BUNDLED -Isrc tests/shared_test/zts.tcpclient4.c -o $(TEST_OBJDIR)/$(OSTYPE).zts.tcpclient4.out -Lbuild -lzt -ldl
2016-12-16 13:04:01 -08:00
# ------------------------------------------------------------------------------
# ---------------------------------- Android -----------------------------------
# ------------------------------------------------------------------------------
2016-08-30 16:54:06 -07:00
# Build all Android targets
2016-08-30 16:54:06 -07:00
# Chip architectures can be specified in integrations/android/android_jni_lib/java/jni/Application.mk
android: android_jni_lib
# TODO: CHECK if ANDROID/GRADLE TOOLS are installed
2016-06-22 14:24:30 -07:00
# Build library for Android Unity integrations
# Build JNI library for Android app integration
2016-06-22 16:01:03 -07:00
android_jni_lib:
2016-07-07 03:00:11 -05:00
cd $(INT)/android/android_jni_lib/proj; ./gradlew assembleDebug
mkdir -p $(BUILD)/android_jni_lib
2016-12-08 15:44:53 -08:00
cp docs/android.md $(BUILD)/android_jni_lib/README.md
mv -f $(INT)/android/android_jni_lib/java/libs/* $(BUILD)/android_jni_lib
cp -R $(BUILD)/android_jni_lib/* $(INT)/android/example_app/app/src/main/jniLibs
2016-12-16 13:04:01 -08:00
# ------------------------------------------------------------------------------
# ---------------------------------- Testing -----------------------------------
# ------------------------------------------------------------------------------
# Check for the presence of built frameworks/bundles/libaries
2016-06-23 12:07:51 -07:00
check:
2016-12-08 15:44:53 -08:00
-./check.sh $(LWIP_LIB)
-./check.sh $(PICO_LIB)
2016-12-16 13:04:01 -08:00
-./check.sh $(SDK_INTERCEPT)
2016-12-08 15:44:53 -08:00
-./check.sh $(ONE_SERVICE)
-./check.sh $(SDK_SERVICE)
-./check.sh $(STATIC_LIB)
2016-12-08 15:44:53 -08:00
-./check.sh $(BUILD)/osx_unity3d_bundle/Debug/ZeroTierSDK_Unity3D_OSX.bundle
-./check.sh $(BUILD)/osx_app_framework/Debug/ZeroTierSDK_OSX.framework
-./check.sh $(BUILD)/ios_app_framework/Debug-iphoneos/ZeroTierSDK_iOS.framework
-./check.sh $(BUILD)/ios_unity3d_bundle/Debug-iphoneos/ZeroTierSDK_Unity3D_iOS.bundle
-./check.sh $(BUILD)/android_jni_lib/arm64-v8a/libZeroTierOneJNI.so
-./check.sh $(BUILD)/android_jni_lib/armeabi/libZeroTierOneJNI.so
-./check.sh $(BUILD)/android_jni_lib/armeabi-v7a/libZeroTierOneJNI.so
-./check.sh $(BUILD)/android_jni_lib/mips/libZeroTierOneJNI.so
-./check.sh $(BUILD)/android_jni_lib/mips64/libZeroTierOneJNI.so
-./check.sh $(BUILD)/android_jni_lib/x86/libZeroTierOneJNI.so
-./check.sh $(BUILD)/android_jni_lib/x86_64/libZeroTierOneJNI.so
2016-06-23 12:07:51 -07:00
# Tests
OSTYPE=$(shell uname -s | tr '[A-Z]' '[a-z]')
2016-07-07 03:00:11 -05:00
TEST_OBJDIR := $(BUILD)/tests
2016-08-29 14:47:28 -07:00
TEST_SOURCES := $(wildcard tests/api_test/*.c)
2016-07-07 03:00:11 -05:00
TEST_TARGETS := $(addprefix $(BUILD)/tests/$(OSTYPE).,$(notdir $(TEST_SOURCES:.c=.out)))
2016-08-29 14:47:28 -07:00
$(BUILD)/tests/$(OSTYPE).%.out: tests/api_test/%.c
-$(CC) $(CC_FLAGS) -o $@ $<
$(TEST_OBJDIR):
mkdir -p $(TEST_OBJDIR)
tests: $(TEST_OBJDIR) $(TEST_TARGETS)
2016-07-07 03:00:11 -05:00
mkdir -p $(BUILD)/tests;
2016-08-29 14:47:28 -07:00
mkdir -p build/tests/zerotier
test_suite: tests lwip osx_service_and_intercept
2016-08-30 16:54:06 -07:00
2016-12-16 13:04:01 -08:00
# ------------------------------------------------------------------------------
# ------------------------------ Administrative --------------------------------
# ------------------------------------------------------------------------------
2016-06-24 11:07:57 -07:00
JAVAC := $(shell which javac)
2016-08-25 13:46:01 -07:00
clean_android:
# android JNI lib project
2016-08-30 16:54:06 -07:00
-test -s /usr/bin/javac || { echo "Javac not found"; exit 1; }
2016-07-07 03:00:11 -05:00
-cd $(INT)/android/android_jni_lib/proj; ./gradlew clean
-rm -rf $(INT)/android/android_jni_lib/proj/build
# example android app project
2016-07-07 03:00:11 -05:00
-cd $(INT)/android/example_app; ./gradlew clean
2016-07-18 16:38:18 -07:00
2016-08-25 13:46:01 -07:00
clean_basic:
2016-09-14 16:48:02 -07:00
#-rm -rf .depend
2016-08-25 13:46:01 -07:00
-rm -rf $(BUILD)/*
-rm -rf $(INT)/Unity3D/Assets/Plugins/*
-rm -rf zerotier-cli zerotier-idtool
2016-08-30 16:54:06 -07:00
-find . -type f \( -name $(ONE_SERVICE_NAME) -o -name $(SDK_SERVICE_NAME) \) -delete
2016-08-25 13:46:01 -07:00
-find . -type f \( -name '*.o' -o -name '*.so' -o -name '*.o.d' -o -name '*.out' -o -name '*.log' -o -name '*.dSYM' \) -delete
clean: clean_basic
2016-08-25 13:46:01 -07:00
clean_for_production:
-find . -type f \( -name '*.identity'\) -delete
2016-08-30 16:54:06 -07:00
prep:
cp $(INT)/android/android_jni_lib/java/libs/* build
# Copy and rename source files into example projects to follow local ordinances
update_examples:
cp src/wrappers/dotnet/DotNetWrapper.cs integrations/Unity3D/Assets/ZTSDK.cs
cp src/wrappers/java/JavaWrapper.java integrations/android/example_app/app/src/main/java/ZeroTier/ZTSDK.java
2016-07-18 16:38:18 -07:00
# For authors
# Copies documentation to all of the relevant directories to make viewing in the repo a little easier
update_docs:
2016-12-08 13:14:12 -08:00
cp docs/intro.md README.md
cp docs/network_stacks.md src/stack_drivers/README.md
2016-07-18 16:38:18 -07:00
cp docs/integrations.md integrations/README.md
2016-12-08 13:14:12 -08:00
cp docs/osx.md integrations/apple/example_app/OSX/README.md
cp docs/ios.md integrations/apple/example_app/iOS/README.md
cp docs/docker.md integrations/docker/README.md
cp docs/android.md integrations/android/README.md
cp docs/osx_unity3d.md integrations/Unity3D/README.md
cp docs/tests.md tests/README.md