and delete a bunch (but not all) redundant code. If you compare the remaining implementations of Platform*Simulator.cpp, there is still an obvious leftover cleanup task. Specifically, this patch - removes SDK initialization from dotest (there is equivalent but more complete code in Makefile.rules) - make Platform*Simulator inherit the generic implementation of PlatformAppleSimulator (more can be done here) - simplify the platform logic in Makefile.rules - replace the custom SDK finding logic in Platform*Simulator with XcodeSDK - adds a test for each supported simulator Differential Revision: https://reviews.llvm.org/D81980
14 lines
322 B
Makefile
14 lines
322 B
Makefile
C_SOURCES := main.c
|
|
EXE := TestApp
|
|
all: clean TestApp.app/Contents/MacOS/TestApp
|
|
|
|
include Makefile.rules
|
|
|
|
TestApp.app/Contents/MacOS/TestApp: $(EXE) $(DSYM)
|
|
cp -r $(SRCDIR)/TestApp.app .
|
|
mv TestApp TestApp.app/Contents/MacOS/TestApp
|
|
mv TestApp.dSYM TestApp.app.dSYM
|
|
|
|
clean::
|
|
rm -rf $(EXE) TestApp.app TestApp.app.dSYM
|