start eating include_dirs from both ends
Further restrictions on a restricting build configuration. Before, we restricted certain paths from being included. Now, we restrict certain paths from including. This adds system/libfmq for now, but I'm planning to add more in the future, as they are cleaned up. Bug: 35624006 Test: m nothing Change-Id: I913f190f93ab63059ee0372d342daa8f5584806b
This commit is contained in:
@@ -76,7 +76,20 @@ var neverallowTests = []struct {
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "include_dir can reference another location",
|
||||
name: "include_dir not allowed to reference art",
|
||||
fs: map[string][]byte{
|
||||
"system/libfmq/Android.bp": []byte(`
|
||||
cc_library {
|
||||
name: "libother",
|
||||
include_dirs: ["any/random/file"],
|
||||
}`),
|
||||
},
|
||||
expectedErrors: []string{
|
||||
"all usages of them in 'system/libfmq' have been migrated",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "include_dir can work",
|
||||
fs: map[string][]byte{
|
||||
"other/Android.bp": []byte(`
|
||||
cc_library {
|
||||
|
Reference in New Issue
Block a user