aboutsummaryrefslogtreecommitdiffstats
path: root/sysprop
Commit message (Collapse)AuthorAgeFilesLines
* Remove libbase dependency of sysprop_libraryInseob Kim2019-03-271-0/+20
| | | | | | | | | | | | libbase dependency is not really needed, but it has been causing build failure while linking with static variant of sysprop_library. This cuts the dependency and only depend on libbase_headers and liblog. Bug: 129301987 Test: 1) flash and boot walleye Test: 2) try to build various properties with sysprop_library. Test: 3) sysprop_test Change-Id: I027e01c754b782818f52103184301267d4cdd576
* Fix checking of empty slice propertiesInseob Kim2019-03-211-1/+5
| | | | | | | | | Properties can be empty (not nil), and in that case some weird error messages will happen to be emitted. Bug: N/A Test: try to build with api_pacakges: [] and srcs: [] Change-Id: I492077616e742072696265796520737465616b21
* Add comment to api_packages propertyInseob Kim2019-03-051-1/+3
| | | | | | Bug: N/A Test: N/A Change-Id: I38791170993484cdae26edee9595a74802853176
* Add recovery_available property to sysprop moduleJiyong Park2019-02-261-3/+4
| | | | | | | | This is required for a sysprop module to be used by a module like the init which is available both in core and recovery variants. Test: m Change-Id: I075428289f5bdce26e931ccf3262793ca6e4a0fd
* Fix: sysprop module can't be used with whole_static_libsJiyong Park2019-02-261-1/+17
| | | | | | | | | When a sysprop module is listed in whole_static_libs, it is renamed to "lib" + <module> to actually refer to the generated C++ library for the sysprop module. Test: m (sysprop_test amended) Change-Id: I05eddb24433d444376787be567830929ef078159
* Add java/testing.go for sysprop_test.goColin Cross2019-02-161-56/+4
| | | | | | | | | Share more of the setup code for java tests to sysprop_tests.go. Test: java_test.go, sysprop_test.go Change-Id: I0e3b287bf188c432d995a9a91a18ebef12aa47d1 Merged-In: I0e3b287bf188c432d995a9a91a18ebef12aa47d1 (cherry picked from commit b19745363f3cc59ffd46c664997602f250892d4d)
* Create sysprop_library soong moduleInseob Kim2019-02-132-0/+510
A newly introduced sysprop_library soong module will generate a java_sdk_library and a cc_library from .sysprop description files. Both Java modules and C++ modules can link against sysprop_library module, thus giving consistency for using generated sysprop API. As Java controls accessibility of Internal / System properties with @hide and @SystemApi, 2 different header files will be created. And build system will selectively expose depending on the property owner and the place where the client libraries go into. Bug: 80125326 Bug: 122170616 Test: 1) Create sysprop_library module. Test: 2) Create empty txt files under prebuilts/sdk. Test: 3) Create api directory, make update-api, and see changes. Test: 4) Try to link against sysprop_library with various clients. Test: 5) Soc_specific, Device_specific, Product_specific, recovery flags work as intended. Change-Id: I78dc5780ccfbb4b69e5c61dec26b94e92d43c333