blob: 3890b644d3cc8d40864f314990d579f622feeda7 [file] [log] [blame]
Robert Ly35f2fda2013-01-29 16:27:05 -08001LOCAL_PATH := $(call my-dir)
2
3#===================== docs for the s.a.c site =======================
4include $(CLEAR_VARS)
5LOCAL_MODULE_CLASS:=JAVA_LIBRARIES
6LOCAL_DROIDDOC_HTML_DIR:=src
7# Droiddoc needs java source to run. Just pointing to a dummy location
8# and deleting output later in delete-ref target
Omari Stephens46bdf0d2013-04-17 16:35:47 -07009LOCAL_ADDITIONAL_JAVA_DIR := frameworks/base/core/java/android/annotation
10# FIXME FIXME FIXME LOCAL_ADDITIONAL_DEPENDENCIES := tradefed-docs
11LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := build/tools/droiddoc/templates-sac
Robert Ly35f2fda2013-01-29 16:27:05 -080012LOCAL_MODULE := online-sac
13LOCAL_DROIDDOC_OPTIONS:= \
14 -toroot / \
15 -hdf android.whichdoc online \
16 -hdf sac true
17
18include $(BUILD_DROIDDOC)
19
20# Sets up the Doxygen HAL reference docs and puts them in the right place
21# Need doxygen in your path (1.8.3 was used when this target was created)
Ying Wang6f870552015-09-24 18:24:41 -070022.PHONY: setup-hal-ref
Robert Ly35f2fda2013-01-29 16:27:05 -080023setup-hal-ref:
24 $(hide) doxygen docs/source.android.com/Doxyfile
25
Clay Murphya4bcafc2013-08-20 17:48:28 -070026# Put HAL refs in PDK instead and strip nav to s.a.c.
Ying Wang6f870552015-09-24 18:24:41 -070027.PHONY: pdk-hal-ref
Clay Murphya4bcafc2013-08-20 17:48:28 -070028pdk-hal-ref:
29 $(hide) doxygen vendor/pdk/data/google/Doxyfile
30
Robert Ly35f2fda2013-01-29 16:27:05 -080031# Run "make tradefed-docs" in "tradefed" branch before running this target
32# This sets up the tradefed javadocs for viewing in s.a.c.
33# Target assumes that you have a "tradefed" directory
34# that contains a sync'ed copy of the "tradefed" branch at the same level as the
35# live docs branch.
Ying Wang6f870552015-09-24 18:24:41 -070036.PHONY: setup-tradefed-ref
Robert Ly35f2fda2013-01-29 16:27:05 -080037setup-tradefed-ref:
38 $(hide) rm -rf $(OUT_DOCS)/online-sac/reference
Ying Wang0a670b02015-05-05 11:57:13 -070039 $(hide) cp -R $(OUT_DOCS)/tradefed/reference $(OUT_DOCS)/online-sac
40 $(hide) cp $(OUT_DOCS)/tradefed/navtree_data.js $(OUT_DOCS)/online-sac/navtree_data.js