You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Copyright (c) 2018-present, Facebook, Inc.
|
|
|
|
#
|
|
|
|
# This source code is licensed under the MIT license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
|
|
|
|
TESTS_DIR = ../..
|
|
|
|
ROOT_DIR = $(TESTS_DIR)/../..
|
|
|
|
|
|
|
|
ANALYZER = checkers
|
|
|
|
TARGET = //src:target
|
|
|
|
SOURCES = src/UsingJavacJar.java
|
|
|
|
OBJECTS = buck-out/gen/src/lib__target__output/target.jar
|
|
|
|
BUCKCONFIG = .buckconfig
|
|
|
|
INFER_OPTIONS = --eradicate-only
|
|
|
|
INFERPRINT_OPTIONS = --issues-tests
|
|
|
|
CLEAN_EXTRA = buck-out
|
|
|
|
|
|
|
|
include $(TESTS_DIR)/infer.make
|
|
|
|
|
|
|
|
$(OBJECTS): $(SOURCES) $(BUCKCONFIG)
|
|
|
|
$(BUCK) build --config tools.javac_jar= $(TARGET)
|
|
|
|
|
|
|
|
infer-out/report.json: $(JAVA_DEPS) $(SOURCES) $(BUCKCONFIG)
|
|
|
|
$(REMOVE_DIR) buck-out && \
|
|
|
|
$(call silent_on_success,Testing Buck Java integration with javac_jar,\
|
|
|
|
INFER_BIN=$(INFER_BIN) \
|
|
|
|
$(INFER_BIN) $(INFER_OPTIONS) -- $(BUCK) build $(TARGET))
|