1LOCAL_PATH := $(call my-dir) 2 3bluetooth_cert_test_file_list := \ 4 $(call all-named-files-under,*.py,cert) \ 5 $(call all-named-files-under,*.sh,cert) \ 6 $(call all-named-files-under,*.proto,cert facade hal hci/cert hci/facade l2cap/classic \ 7 l2cap/classic/cert neighbor/facade security) \ 8 cert/cert_testcases_facade_only \ 9 cert/android_devices_config.json \ 10 cert/host_only_config_facade_only.json \ 11 hal/cert/simple_hal_test.py \ 12 hci/cert/acl_manager_test.py \ 13 hci/cert/controller_test.py \ 14 hci/cert/direct_hci_test.py \ 15 hci/cert/le_acl_manager_test.py \ 16 hci/cert/le_advertising_manager_test.py \ 17 hci/cert/le_scanning_manager_test.py \ 18 l2cap/classic/cert/l2cap_test.py \ 19 l2cap/classic/cert/pts_l2cap_test.py \ 20 neighbor/cert/neighbor_test.py \ 21 security/cert/simple_security_test.py \ 22 shim/cert/stack_test.py 23 24 25bluetooth_cert_test_file_list := $(addprefix $(LOCAL_PATH)/,$(bluetooth_cert_test_file_list)) 26 27bluetooth_cert_test_file_list += \ 28 $(HOST_OUT_EXECUTABLES)/bluetooth_stack_with_facade \ 29 $(HOST_OUT_SHARED_LIBRARIES)/bluetooth_packets_python3.so \ 30 $(HOST_OUT_SHARED_LIBRARIES)/libbluetooth_gd.so \ 31 $(HOST_OUT_SHARED_LIBRARIES)/libc++.so \ 32 $(HOST_OUT_SHARED_LIBRARIES)/libgrpc++_unsecure.so \ 33 $(TARGET_OUT_EXECUTABLES)/bluetooth_stack_with_facade \ 34 $(TARGET_OUT_SHARED_LIBRARIES)/libbluetooth_gd.so \ 35 $(TARGET_OUT_SHARED_LIBRARIES)/libgrpc++_unsecure.so \ 36 $(HOST_OUT_NATIVE_TESTS)/root-canal/root-canal 37 38bluetooth_cert_zip_path := \ 39 $(call intermediates-dir-for,PACKAGING,bluetooth_cert_test_package,HOST)/bluetooth_cert_test.zip 40 41$(bluetooth_cert_zip_path): PRIVATE_BLUETOOTH_CERT_TEST_FILE_LIST := $(bluetooth_cert_test_file_list) 42 43$(bluetooth_cert_zip_path) : $(SOONG_ZIP) $(bluetooth_cert_test_file_list) 44 $(hide) $(SOONG_ZIP) -d -o $@ $(addprefix -f ,$(PRIVATE_BLUETOOTH_CERT_TEST_FILE_LIST)) 45 46$(call dist-for-goals,bluetooth_stack_with_facade,$(bluetooth_cert_zip_path):bluetooth_cert_test.zip) 47