Summary: These direct tests were still mostly relying on PHONY targets. Reviewed By: jberdine Differential Revision: D4326469 fbshipit-source-id: 37b2d0amaster
parent
bd0751dd1c
commit
a6be58848b
@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2016 - present Facebook, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD style license found in the
|
||||
# LICENSE file in the root directory of this source tree. An additional grant
|
||||
# of patent rights can be found in the PATENTS file in the same directory.
|
||||
|
||||
%.o: %.c
|
||||
clang $(CLANG_OPTIONS) -o $@ $<
|
||||
|
||||
%.o: %.cpp
|
||||
clang++ $(CLANG_OPTIONS) -o $@ $<
|
||||
|
||||
%.o: %.m
|
||||
clang $(CLANG_OPTIONS) -o $@ $<
|
||||
|
||||
%.o: %.mm
|
||||
clang++ $(CLANG_OPTIONS) -o $@ $<
|
@ -0,0 +1,31 @@
|
||||
# Copyright (c) 2016 - present Facebook, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD style license found in the
|
||||
# LICENSE file in the root directory of this source tree. An additional grant
|
||||
# of patent rights can be found in the PATENTS file in the same directory.
|
||||
|
||||
TESTS_DIR = ../../../..
|
||||
|
||||
IPHONESIMULATOR_ISYSROOT_SUFFIX = \
|
||||
/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
|
||||
|
||||
XCODEROOT = $(shell xcode-select -p)
|
||||
|
||||
CLANG_OPTIONS = -x objective-c \
|
||||
-isysroot $(XCODEROOT)$(IPHONESIMULATOR_ISYSROOT_SUFFIX) \
|
||||
-mios-simulator-version-min=8.2 --target=x86_64-apple-darwin14 -c \
|
||||
-fbobjc-arc
|
||||
|
||||
SOURCES = \
|
||||
../predefined_expr/PredefinedExprExample.m \
|
||||
../types/attributes.m \
|
||||
../types/void_call.m \
|
||||
../vardecl/initlist.m \
|
||||
../shared/assertions/NSAssert_example.m \
|
||||
../shared/block/BlockVar.m \
|
||||
../shared/memory_leaks_benchmark/ArcExample.m \
|
||||
../shared/memory_leaks_benchmark/arc_methods.m \
|
||||
../shared/npe/Nonnull_attribute_example.m \
|
||||
|
||||
include $(TESTS_DIR)/clang-frontend.make
|
@ -0,0 +1,70 @@
|
||||
# Copyright (c) 2016 - present Facebook, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD style license found in the
|
||||
# LICENSE file in the root directory of this source tree. An additional grant
|
||||
# of patent rights can be found in the PATENTS file in the same directory.
|
||||
|
||||
TESTS_DIR = ../../../..
|
||||
|
||||
IPHONESIMULATOR_ISYSROOT_SUFFIX = \
|
||||
/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
|
||||
|
||||
XCODEROOT = $(shell xcode-select -p)
|
||||
|
||||
CLANG_OPTIONS = -x objective-c \
|
||||
-isysroot $(XCODEROOT)$(IPHONESIMULATOR_ISYSROOT_SUFFIX) \
|
||||
-mios-simulator-version-min=8.2 --target=x86_64-apple-darwin14 -c
|
||||
|
||||
SOURCES = \
|
||||
../block/retain_cycle.m \
|
||||
../block/static.m \
|
||||
../boxing/Boxing.m \
|
||||
../boxing/array.m \
|
||||
../boxing/array_literal.c \
|
||||
../boxing/dict_literal.c \
|
||||
../boxing/string_literal.c \
|
||||
../conditional_operation/ConditionalOperation.m \
|
||||
../exceptions/ExceptionExample.m \
|
||||
../fast_enumeration/Fast_enumeration.m \
|
||||
../property/PropertyCustomAccessor.m \
|
||||
../property/PropertyImplSetter.m \
|
||||
../property/Property_getter.m \
|
||||
../property/aclass.m \
|
||||
../property/main_car.m \
|
||||
../property_in_protocol/Test.m \
|
||||
../protocol/protocol.m \
|
||||
../returnstmt/void_return.m \
|
||||
../self_static/Self.m \
|
||||
../self_static/static.m \
|
||||
../shared/block/block-it.m \
|
||||
../shared/block/block.m \
|
||||
../shared/block/block_no_args.m \
|
||||
../shared/block/block_release.m \
|
||||
../shared/block/dispatch.m \
|
||||
../shared/block/dispatch_examples.m \
|
||||
../shared/block/dispatch_in_macro.m \
|
||||
../shared/category_procdesc/EOCPerson.m \
|
||||
../shared/category_procdesc/main.c \
|
||||
../shared/field_superclass/SuperExample.m \
|
||||
../shared/memory_leaks_benchmark/AutoreleaseExample.m \
|
||||
../shared/memory_leaks_benchmark/MemoryLeakExample.m \
|
||||
../shared/memory_leaks_benchmark/RetainReleaseExample.m \
|
||||
../shared/memory_leaks_benchmark/RetainReleaseExample2.m \
|
||||
../shared/memory_leaks_benchmark/TollBridgeExample.m \
|
||||
../shared/npe/npe_malloc.m \
|
||||
../shared/property/GetterExample.m \
|
||||
../shared/property/PropertyAttributes.m \
|
||||
../shared/protocol_procdesc/Bicycle.m \
|
||||
../shared/protocol_procdesc/main.c \
|
||||
../strings/global_string_literal.m \
|
||||
../strings/string_literal.m \
|
||||
../subclass/MyClass.m \
|
||||
../subclass/MySubClass.m \
|
||||
../subclass/main.c \
|
||||
../types/testloop.m \
|
||||
../vardecl/aclass.m \
|
||||
../vardecl/aclass_2.m \
|
||||
../vardecl/last_af.m \
|
||||
|
||||
include $(TESTS_DIR)/clang-frontend.make
|
Loading…
Reference in new issue