Makefile 900 Bytes
Newer Older
Sebastian Höffner's avatar
Sebastian Höffner committed
1
2
3
4
NetMQ_VERSION=4.0.0.207
AsyncIO_VERSION=0.1.69
NUGET_DIRECTORY=NuGetPackages

5
6
7
8
9
10
11
12
13
UNITY=/Applications/Unity/Hub/Editor/2019.3.3f1/Unity.app/Contents/MacOS/Unity
UNITY_BATCH:=${UNITY} -batchmode -quit -noUpm -projectPath $(CURDIR)

.PHONY: build
build: Build/physicssimulator.app

Build/physicssimulator.app: | Build
	-${UNITY_BATCH} -buildOSX64Player $@

Sebastian Höffner's avatar
Sebastian Höffner committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: setup
setup: $(foreach P,AsyncIO NetMQ,Assets/Plugins/${P}.dll)

Assets/Plugins/NetMQ.dll: ${NUGET_DIRECTORY}/NetMQ.${NetMQ_VERSION}/lib/net40/NetMQ.dll
	@mkdir -p ${@D}
	cp $^ $@

Assets/Plugins/AsyncIO.dll: ${NUGET_DIRECTORY}/AsyncIO.${AsyncIO_VERSION}/lib/net40/AsyncIO.dll
	@mkdir -p ${@D}
	cp $^ $@

${NUGET_DIRECTORY}/NetMQ.${NetMQ_VERSION}/lib/net40/NetMQ.dll ${NUGET_DIRECTORY}/AsyncIO.${AsyncIO_VERSION}/lib/net40/AsyncIO.dll:
	nuget install NetMQ -Version ${NetMQ_VERSION} -OutputDirectory ${NUGET_DIRECTORY}

28
Build:
Sebastian Höffner's avatar
Sebastian Höffner committed
29
	@mkdir  -p $@