platform_build_soong/cc
Alex Light ec868fc42a Add support for generating Compdb file
Some tools (i.e. you-complete-me) make use of a 'compdb' file
(compile_commands.json) that records (among other things) the
arguments needed to compile a file. These tools can use this with
libclang to provide semantic completions and perform other IDE
actions. This CL adds support for soong to generate a (simple)
compile_commands.json file.

Test: make SOONG_GEN_COMPDB=1 SOONG_LINK_COMPDB_TO=$ANDROID_BUILD_TOP nothing
      examine $ANDROID_BUILD_TOP/compile_commands.json

Change-Id: I751bb344b90dfcdad1dfd71c2a85bacd345f0464
2018-04-24 08:15:02 -07:00
..
config Define clang lld flags for hosts. 2018-04-17 16:01:08 -07:00
libbuildversion add a library to report build numbers without causing rebuilds 2018-03-02 16:55:51 -08:00
androidmk.go Add overrides to cc_binary 2018-04-03 16:02:29 -07:00
binary.go Use Config/DeviceConfig functions to access ProductVariables 2018-04-11 01:45:14 +00:00
builder.go Friendlier message for ABI reference update 2018-04-19 10:42:40 +09:00
cc.go Setting SKIP_ABI_CHECKS=true will make soong skip native abi checks. 2018-04-17 18:13:45 +00:00
cc_test.go Fix few issues with filegroups 2018-04-18 18:56:33 +00:00
check.go Allow macro definition with space 2017-10-19 22:39:32 +09:00
cmakelists.go Make *Context.Config return a Config instead of a interface{} 2017-11-30 00:44:11 +00:00
compdb.go Add support for generating Compdb file 2018-04-24 08:15:02 -07:00
compiler.go Fix the flaky build breakage for droiddoc target. 2018-03-28 05:12:15 +00:00
coverage.go Add VisitDirectDepsWithTag 2018-01-02 18:23:43 -08:00
gen.go Add proto.canonical_path_from_root 2018-02-22 16:48:35 -08:00
gen_stub_libs.py Ignore 'extern "C++"' section in a version script 2017-11-21 20:31:48 +01:00
gen_test.go Fix using aidl files from filegroups 2017-11-17 11:22:08 -08:00
genrule.go Add cc_genrule 2017-09-18 23:33:25 -07:00
installer.go Change bool, and string properties to *bool, and *string for cc 2017-11-07 15:57:16 -08:00
kernel_headers.go Fix kernel_headers module registration 2017-07-10 12:30:35 -07:00
library.go Use proptools.BoolDefault 2018-04-10 16:26:10 -07:00
library_test.go Add cc_library tests 2017-11-17 11:22:04 -08:00
linker.go Make 'use_clang_lld' property specifiable per architecture 2018-04-20 19:11:50 +00:00
llndk_library.go Set __ANDROID_API__ for vendor modules to vndk version. 2018-03-27 08:21:19 +09:00
lto.go Add USE_CLANG_LLD and use_clang_lld. 2018-04-12 14:37:35 -07:00
makevars.go Add USE_CLANG_LLD and use_clang_lld. 2018-04-12 14:37:35 -07:00
ndk_headers.go Turn GlobFiles into a Glob for files, use it 2018-03-01 14:05:20 -08:00
ndk_library.go Add compile-time pathDeps as implicit dependencies 2017-12-19 15:44:38 -08:00
ndk_prebuilt.go Use Soong modules for the NDK's extra STL libraries 2018-03-29 21:26:06 +00:00
ndk_sysroot.go Allow NDK static libraries to use the NDK sysroot. 2017-12-14 14:13:56 -08:00
object.go Change bool, and string properties to *bool, and *string for cc 2017-11-07 15:57:16 -08:00
pgo.go Use a versioned profile file if available 2018-03-09 16:05:54 +00:00
prebuilt.go Move ModuleContext.ModuleBuild to ModuleContext.Build 2017-10-24 10:59:00 -07:00
proto.go Consistently use Bool instead of proptools.Bool 2018-04-10 22:50:34 -07:00
pylintrc Don't warn for TODOish comments. 2016-08-01 14:36:22 -07:00
relocation_packer.go Add USE_CLANG_LLD and use_clang_lld. 2018-04-12 14:37:35 -07:00
rs.go Mark generated renderscript header files as implicit outputs 2018-03-19 22:44:29 -07:00
sabi.go Create a make variable for all lsdump files. 2018-03-01 17:19:25 -08:00
sanitize.go Support integer_overflow static lib diagnostics. 2018-04-02 12:54:52 -07:00
stl.go Use Soong modules for the NDK's extra STL libraries 2018-03-29 21:26:06 +00:00
strip.go Replace ModuleContext.AConfig() with Config() 2017-11-30 00:44:18 +00:00
test.go Use proptools.BoolDefault 2018-04-10 16:26:10 -07:00
test_data_test.go Fix few issues with filegroups 2018-04-18 18:56:33 +00:00
test_gen_stub_libs.py Add support for weak symbols in the NDK stubs. 2017-07-28 11:00:22 -07:00
tidy.go Call clang-tidy with -fno-caret-diagnostics by default. 2018-01-04 01:41:16 -08:00
toolchain_library.go Change bool, and string properties to *bool, and *string for cc 2017-11-07 15:57:16 -08:00
util.go Fixing protoOutParams concatenation. 2018-04-05 17:48:32 -07:00
vendor_public_library.go Allow platform modules to link to vendor public libraries 2018-03-30 10:22:52 +09:00
vndk.go Allow VNDK-SP extensions to use vendor lib 2018-03-30 11:46:26 +08:00
vndk_prebuilt.go Skip installing the VNDK prebuilt if arch does not match 2018-01-24 07:52:47 +09:00