Remove [local_]include_files am: cd114c1cb7
am: 4ae64644f1
am: f05b4b634e
* commit 'f05b4b634e2e2355d5402854f71b109b99193c12':
Remove [local_]include_files
Change-Id: I303e0e17764745f9079bc187ab0d4e4353812b7b
This commit is contained in:
17
cc/cc.go
17
cc/cc.go
@@ -269,20 +269,10 @@ type BaseCompilerProperties struct {
|
|||||||
// that module.
|
// that module.
|
||||||
Include_dirs []string `android:"arch_variant"`
|
Include_dirs []string `android:"arch_variant"`
|
||||||
|
|
||||||
// list of files relative to the root of the source tree that will be included
|
|
||||||
// using -include.
|
|
||||||
// If possible, don't use this.
|
|
||||||
Include_files []string `android:"arch_variant"`
|
|
||||||
|
|
||||||
// list of directories relative to the Blueprints file that will
|
// list of directories relative to the Blueprints file that will
|
||||||
// be added to the include path using -I
|
// be added to the include path using -I
|
||||||
Local_include_dirs []string `android:"arch_variant"`
|
Local_include_dirs []string `android:"arch_variant"`
|
||||||
|
|
||||||
// list of files relative to the Blueprints file that will be included
|
|
||||||
// using -include.
|
|
||||||
// If possible, don't use this.
|
|
||||||
Local_include_files []string `android:"arch_variant"`
|
|
||||||
|
|
||||||
// list of generated sources to compile. These are the names of gensrcs or
|
// list of generated sources to compile. These are the names of gensrcs or
|
||||||
// genrule modules.
|
// genrule modules.
|
||||||
Generated_sources []string `android:"arch_variant"`
|
Generated_sources []string `android:"arch_variant"`
|
||||||
@@ -1037,13 +1027,6 @@ func (compiler *baseCompiler) flags(ctx ModuleContext, flags Flags) Flags {
|
|||||||
includeDirsToFlags(localIncludeDirs),
|
includeDirsToFlags(localIncludeDirs),
|
||||||
includeDirsToFlags(rootIncludeDirs))
|
includeDirsToFlags(rootIncludeDirs))
|
||||||
|
|
||||||
rootIncludeFiles := android.PathsForSource(ctx, compiler.Properties.Include_files)
|
|
||||||
localIncludeFiles := android.PathsForModuleSrc(ctx, compiler.Properties.Local_include_files)
|
|
||||||
|
|
||||||
flags.GlobalFlags = append(flags.GlobalFlags,
|
|
||||||
includeFilesToFlags(rootIncludeFiles),
|
|
||||||
includeFilesToFlags(localIncludeFiles))
|
|
||||||
|
|
||||||
if !ctx.noDefaultCompilerFlags() {
|
if !ctx.noDefaultCompilerFlags() {
|
||||||
if !ctx.sdk() || ctx.Host() {
|
if !ctx.sdk() || ctx.Host() {
|
||||||
flags.GlobalFlags = append(flags.GlobalFlags,
|
flags.GlobalFlags = append(flags.GlobalFlags,
|
||||||
|
Reference in New Issue
Block a user