1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
-include $(TOP)/sdks/Make.config
ifndef DISABLE_ANDROID
CheckSdkDir=$(or $(and $(wildcard $(1)/tools),$(wildcard $(1)/platform-tools)),$(warning Could not find Android SDK in "$(1)"))
ifneq ($(call CheckSdkDir,$(HOME)/android-toolchain/sdk),)
SDK_DIR = $(abspath $(HOME)/android-toolchain/sdk)
else
ifneq ($(call CheckSdkDir,$(HOME)/Library/Developer/Xamarin/android-sdk-macosx),)
SDK_DIR = $(abspath $(HOME)/Library/Developer/Xamarin/android-sdk-macosx)
else
ifneq ($(call CheckSdkDir,$(HOME)/Library/Developer/Xamarin/android-sdk-mac_x86),)
SDK_DIR = $(abspath $(HOME)/Library/Developer/Xamarin/android-sdk-mac_x86)
else
$(error Could not find Android SDK)
endif
endif
endif
CheckNdkDir=$(or $(and $(wildcard $(1)/platforms)),$(warning Could not find Android NDK in "$(1)"))
ifneq ($(call CheckNdkDir,$(HOME)/android-toolchain/ndk),)
NDK_DIR=$(abspath $(HOME)/android-toolchain/ndk)
else
ifneq ($(call CheckNdkDir,$(HOME)/Library/Developer/Xamarin/android-ndk/android-ndk-r14b),)
NDK_DIR=$(abspath $(HOME)/Library/Developer/Xamarin/android-ndk/android-ndk-r14b)
else
ifneq ($(call CheckNdkDir,$(HOME)/Library/Developer/Xamarin/android-sdk-mac_x86/ndk-bundle),)
NDK_DIR=$(abspath $(HOME)/Library/Developer/Xamarin/android-sdk-mac_x86/ndk-bundle)
else
$(error Could not find Android NDK)
endif
endif
endif
endif # DISABLE_ANDROID
ifndef DISABLE_IOS
CheckXcodeDir=$(or $(and $(wildcard $(1))),$(warning Could not find Xcode in "$(1)"))
ifneq ($(call CheckXcodeDir,/Applications/Xcode.app/Contents/Developer),)
XCODE_DIR=/Applications/Xcode.app/Contents/Developer
else
$(error Could not find Xcode)
endif
endif # DISABLE_IOS
|