diff options
author | Tom Cherry <tomcherry@google.com> | 2020-02-20 10:50:00 -0800 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2020-03-02 11:08:26 -0800 |
commit | eb04526a1e933cd15920048ebc1c9ba1de96f448 (patch) | |
tree | ec8503c46b9abdea135513f4693225a34783fa01 /init/action_parser.cpp | |
parent | efab99063d599bd6e6e4354b1627e71a6f4044a4 (diff) |
Refactor libinit_test_utils to not use libinit and expose its libraries
Users of libinit_test_utils must include all libraries that it uses.
If it uses libinit, then there is a large number of libraries that
must be included. To avoid this, make libinit_test_utils only use
init_common_sources and the small number of required libraries that go
along with those sources. Additionally, expose these sources as a
default for users of libinit_test_utils.
Bug: 148236233
Test: build
Merged-In: I224fa7e0590d073e4cd40412b5dcb6f72a64b6bf
Change-Id: I224fa7e0590d073e4cd40412b5dcb6f72a64b6bf
(cherry picked from commit a2f9136b2c54a2ab5224e217548a274db2a91478)
Diffstat (limited to 'init/action_parser.cpp')
-rw-r--r-- | init/action_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/action_parser.cpp b/init/action_parser.cpp index f3168716f..52f6a1f3c 100644 --- a/init/action_parser.cpp +++ b/init/action_parser.cpp @@ -21,7 +21,7 @@ #include <android-base/properties.h> #include <android-base/strings.h> -#if defined(__ANDROID__) +#ifdef INIT_FULL_SOURCES #include "property_service.h" #include "selinux.h" #else |