aboutsummaryrefslogtreecommitdiffstats
path: root/python/androidmk.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix using generated test configs for sh_test, python_test and rust_test modulesColin Cross2020-06-151-9/+3
| | | | | | | | | | Annotate the test config properties with android:"path", and always use LOCAL_FULL_TEST_CONFIG to pass the path to Make. Bug: 157621988 Test: manual Change-Id: I1c020e642f83d994d63c9e9cb56e686086d5acaa Merged-In: I1c020e642f83d994d63c9e9cb56e686086d5acaa
* Don't check elf properties of python prebuiltsDan Willemsen2020-04-161-0/+1
| | | | | | | | | | We're not doing a great job of copying over all the library dependencies (especially when using sanitizer libraries). Just omit these from the checks, which shouldn't really matter. Bug: 151093572 Test: treehugger Change-Id: I8470bbfbf36a51739e8a7e699ad090a66c9db8b2 Merged-In: I8470bbfbf36a51739e8a7e699ad090a66c9db8b2 (cherry picked from commit bc32a50ff424a612ecd72548625eed0d50ab95fc)
* Pass auto_gen_config setting in Android.bp to makefileDan Shi2020-01-061-0/+4
| | | | | | Bug: none Test: local test with fuzzy_fastboot Change-Id: I2c62f6fb58737538ef9e1e9fcbe63e03dfa7ee91
* Replace RelPathString() with ToMakePath()Colin Cross2019-10-031-3/+2
| | | | | | | | | | | | Add a ToMakePath() method that returns a new path that points out out/ instead of out/soong/, and replace the "$(OUT_DIR)/" + path.RelPathString() pattern with path.ToMakePath().String() Bug: 141877526 Test: m checkbuild Change-Id: I391b9f2ed78c83a58d905d48355ce9b01d610d16
* Add missing dependencies for python_testLogan Chien2019-01-291-0/+1
| | | | | | | | | This commit adds missing shared lib dependencies for `python_test` modules with embedded launcher. Bug: 119086738 Test: CHECK_ELF_FIELS=true make check-elf-files Change-Id: I26f8e1eb9086930093f60c7daa54469850fab32d
* Autogen python test config.yelinhsieh2019-01-141-0/+5
| | | | | | | | | | | | | Feature request from developer, autogen python test config. Bug:118442443 Test: $source build/envsetup.sh ; lunch $sed -i '/test_config/d' tools/acloud/Android.bp $make acloud_test $[ -f $ANDROID_HOST_OUT_TESTCASES/acloud_test/acloud_test.config ] && echo "Found" || echo "Not found" Change-Id: I196230581b456afe03e67f9cd84c028d18ba08d9
* Support 'test_config' into soong modulesJulien Desprez2018-08-071-0/+5
| | | | | | Test: make general-tests Bug: 110982517 Change-Id: Ib2eab2653fdfce6f699b85c9fbc64558b6d40363
* Revert "Revert "Add libc++.so as install dependencies for hermetic Python.""Nan Zhang2018-05-231-0/+1
| | | | | | | | | | This reverts commit bfb0aed2dd78ee1850e54928ed02614beaf943a7. Reason for revert: <LOCAL_REQUIRED_MODULES overrides the "required:" property in Android.bp> Test: m -j sepolicy_tests Bug: b/80140289 Change-Id: I4e51007a7d4dda69cbf4f31253e9a56d3f5e35c7
* Revert "Add libc++.so as install dependencies for hermetic Python."Artem Iglikov2018-05-231-2/+0
| | | | | | | | This reverts commit ff7d3972189d0f0b5c678b2b4673a78f017dd55f. Reason for revert: breaks a few targets Change-Id: I3f26bfda9e276730accff558333f910a1dc017e8
* Add libc++.so as install dependencies for hermetic Python.Nan Zhang2018-05-221-0/+2
| | | | | | Bug: b/80140289 Test: m clean && m test_me Change-Id: I3acbf1bac3b866b37f9ec69584dc9be7a5ad1d89
* Revert "Revert "Change Python in Soong to support device side build.""Nan Zhang2017-12-011-3/+3
| | | | | | | | This reverts commit 0a32e5936b4c87bc705d06fa2d4f6fed1f58d602. Reason for revert: <libsqlite was missing for darwin_x86_64 before> Change-Id: I2e13e849a503a705ffad425df292380f2f73954e
* Revert "Change Python in Soong to support device side build."Nan Zhang2017-12-011-3/+3
| | | | | | | | This reverts commit 3bba05962dc4329c6e3d28544775db591574ba7b. Reason for revert: <revert mac builds> Change-Id: I25f1380573d69f7e111287624a2d4a3d95fdd86b
* Change Python in Soong to support device side build.Nan Zhang2017-11-301-3/+3
| | | | | | | | | | | | | | | | | | Add python_test to generate executables for both host and device side. And change python_library_host to python_library. installation for python device test will be under target/product/generic_arm[64]/data/nativetest[64]. Bug: b/69114465 Test: m clean && m -j Device Test: adb root; adb push nan_devicetest /data; adb shell; ./nan_devicetest print(sys.path) ['/data/nan_devicetest/runfiles', '/data/nan_devicetest', '/data/nan_devicetest/internal', '/data/nan_devicetest/internal/stdlib'] Change-Id: If8317070a3aa1b6dab2e84b8df2d037f495d7247
* Add support for test_suites for python_binary_host and python_test_hostNan Zhang2017-11-071-0/+14
| | | | | | Test: manually add this property, and then check Android-aosp_arm.mk Bug: b/35394669 Change-Id: Iddaf677839714daf4f8913ff4bf9e944d38c18db
* <Hermetic> Replace Soong Python bootstrap process with embeddedNan Zhang2017-09-051-8/+8
| | | | | | | | | | | | | | | | | | | | launcher. For Python2, we bundle embedded launcher as bootstrapper within every .par file. This feature is only enabled for linux_x86_64 for now. We provide a user flag: hermetic_enabled within bp file. By default, Pyhon2 still use classic bootstrapping way to construct .par file and relys on host interpreter. Once embedded_launcher is enabled, launcher will be used to bootstrap .par file and execute user program. For Python3, the launcher will be ready soon, and for now it still relys on classic bootstrapping. Test: Real example is used to test. Bug: b/63018041 Change-Id: I28deba413d8ad3af407595e46f77d663e79a3705
* Remove error from AndroidMkDataProvider.AndroidMkColin Cross2017-08-111-2/+4
| | | | | | | | It's never anything except nil, and it unnecessarily complicates the implementations. Test: m -j checkbuild Change-Id: I3e3b7251f32ffa84dbdfd0448faf248c306ca808
* Remove error from AndroidMkData.ExtraColin Cross2017-08-111-2/+1
| | | | | | | | It's never anything except nil, and it unnecessarily complicates the implementations. Test: m -j checkbuild Change-Id: I8a117a86aa39aeb07d9d8d0686ef869c52784f19
* Add python_test_host module.Nan Zhang2017-05-171-0/+74
bug: 31676493 Test: created py_test modules in real folder. and ran 'mma'. Change-Id: I22aa2fad74b11e4a31ea7a4c4a4f0ea64cd3fc94