Files
android_external_libcxx/test/libcxx/android/build.py
Dan Willemsen ef7ff121dc test runner: Replace all_modules with MODULES-IN-*
all_modules would trigger all Soong modules to be built and installed.

Bug: 30191725
Test: Ran external/libcxx/run-tests.py, appears to build properly
Change-Id: I11ff39c5681c4b07b8b6456b7302531e4e746e15
2016-08-12 01:25:35 +00:00

14 lines
368 B
Python

import os
import subprocess
def mm(path, android_build_top):
env = os.environ
env['ONE_SHOT_MAKEFILE'] = os.path.join(path, 'Android.mk')
cmd = [
'make', '-C', android_build_top, '-f', 'build/core/main.mk',
'MODULES-IN-' + path.replace('/', '-'), '-B'
]
return not subprocess.Popen(cmd, stdout=None, stderr=None, env=env).wait()