@ -64,28 +64,41 @@ ifeq ($(BUILD_JAVA_ANALYZERS),yes)
JAVA_HOME = $( USER_JAVA_HOME)
e n d i f
JAVA_BUILTINS_SOURCES = $( shell find $( JAVA_BUILTINS_DIR) -name "*.java" )
JAVA_MODELS_SOURCES = $( shell find $( JAVA_MODELS_DIR) -name "*.java" )
JAVA_DEPS = $( addprefix $( PYTHON_LIB_DIR) /, \
analyze.py bucklib.py config.py issues.py jwlib.py source.py utils.py) \
$( addprefix $( CAPTURE_LIB_DIR) /, util.py) \
$( INFER_BIN) \
$( INFERANALYZE_BIN) \
$( INFERPRINT_BIN) \
$( JAVA_BUILTINS_SOURCES) \
$( JAVA_MODELS_SOURCES)
CLANG_DEPS = $( addprefix $( PYTHON_LIB_DIR) /, \
analyze.py config.py issues.py source.py utils.py) \
$( addprefix $( CAPTURE_LIB_DIR) /, make.py util.py) \
$( INFER_BIN) \
$( INFERANALYZE_BIN) \
$( INFERCLANG_BIN) \
$( INFERPRINT_BIN)
ANDROID_JAR = $( LIB_DIR) /java/android/android-23.jar
GUAVA_JAR = $( DEPENDENCIES_DIR) /java/guava/guava-10.0.1-fork.jar
INFER_ANNOTATIONS_JAR = $( ANNOTATIONS_DIR) /annotations.jar
JACKSON_JAR = $( DEPENDENCIES_DIR) /java/jackson/jackson-2.2.3.jar
JSR_305_JAR = $( DEPENDENCIES_DIR) /java/jsr-305/jsr305.jar
JAVA_MODELS_JAR = $( LIB_DIR) /java/models.jar
JAVA_DEPS_NO_MODELS = \
$( addprefix $( PYTHON_LIB_DIR) /, \
analyze.py bucklib.py config.py issues.py jwlib.py source.py utils.py) \
$( addprefix $( CAPTURE_LIB_DIR) /, util.py) \
$( ANDROID_JAR) $( GUAVA_JAR) $( JACKSON_JAR) $( JSR_305_JAR) $( INFER_ANNOTATIONS_JAR) \
$( INFER_BIN) $( INFERANALYZE_BIN) $( INFERPRINT_BIN)
JAVA_DEPS = $( JAVA_DEPS_NO_MODELS) $( JAVA_MODELS_JAR)
# markers to keep track of when clang models have been rebuilt
C_MODELS_FILE = $( SPECS_LIB_DIR) /c_models
CPP_MODELS_FILE = $( SPECS_LIB_DIR) /cpp_models
OBJC_MODELS_FILE = $( SPECS_LIB_DIR) /objc_models
CLANG_DEPS_NO_MODELS = \
$( addprefix $( PYTHON_LIB_DIR) /, \
analyze.py config.py issues.py source.py utils.py) \
$( addprefix $( CAPTURE_LIB_DIR) /, make.py util.py) \
$( INFER_BIN) $( INFERANALYZE_BIN) $( INFERCLANG_BIN) $( INFERPRINT_BIN)
CLANG_DEPS = $( CLANG_DEPS_NO_MODELS) $( C_MODELS_FILE) $( CPP_MODELS_FILE) \
$( shell find $( MODELS_DIR) /cpp/include -type f)
i f n e q ( $( XCODE_SELECT ) , n o )
CLANG_DEPS += $( OBJC_MODELS_FILE)
e n d i f
d e f i n e s i l e n t _ o n _ s u c c e s s
$( 1) >/dev/null 2>/dev/null || ( $( 1) && exit 1)
e n d e f