Add static_libs to module-info.json
This is helpful for analyzing how often a library is included statically on a device. If a large library is linked statically in many processes in a single device, it may be a good candidate for shared linking instead. This increases the size of module-info.json file on Cuttlefish by ~12.5% from 65MB to 72MB. Test: m Bug: 280829178 Change-Id: I3614d86d799810e1ce845e1097f43f1ec0a412a3
This commit is contained in:
@@ -1005,6 +1005,9 @@ endif
|
||||
ALL_MODULES.$(my_register_name).SHARED_LIBS := \
|
||||
$(ALL_MODULES.$(my_register_name).SHARED_LIBS) $(LOCAL_SHARED_LIBRARIES)
|
||||
|
||||
ALL_MODULES.$(my_register_name).STATIC_LIBS := \
|
||||
$(ALL_MODULES.$(my_register_name).STATIC_LIBS) $(LOCAL_STATIC_LIBRARIES)
|
||||
|
||||
ALL_MODULES.$(my_register_name).SYSTEM_SHARED_LIBS := \
|
||||
$(ALL_MODULES.$(my_register_name).SYSTEM_SHARED_LIBS) $(LOCAL_SYSTEM_SHARED_LIBRARIES)
|
||||
|
||||
|
@@ -18,6 +18,7 @@ $(MODULE_INFO_JSON):
|
||||
'"test_config": [$(foreach w,$(strip $(ALL_MODULES.$(m).TEST_CONFIG) $(ALL_MODULES.$(m).EXTRA_TEST_CONFIGS)),"$(w)", )], ' \
|
||||
'"dependencies": [$(foreach w,$(sort $(ALL_DEPS.$(m).ALL_DEPS)),"$(w)", )], ' \
|
||||
'"shared_libs": [$(foreach w,$(sort $(ALL_MODULES.$(m).SHARED_LIBS)),"$(w)", )], ' \
|
||||
'"static_libs": [$(foreach w,$(sort $(ALL_MODULES.$(m).STATIC_LIBS)),"$(w)", )], ' \
|
||||
'"system_shared_libs": [$(foreach w,$(sort $(ALL_MODULES.$(m).SYSTEM_SHARED_LIBS)),"$(w)", )], ' \
|
||||
'"srcs": [$(foreach w,$(sort $(ALL_MODULES.$(m).SRCS)),"$(w)", )], ' \
|
||||
'"srcjars": [$(foreach w,$(sort $(ALL_MODULES.$(m).SRCJARS)),"$(w)", )], ' \
|
||||
|
Reference in New Issue
Block a user