aboutsummaryrefslogtreecommitdiffstats
path: root/androidmk
diff options
context:
space:
mode:
Diffstat (limited to 'androidmk')
-rw-r--r--androidmk/cmd/androidmk/android.go2
-rw-r--r--androidmk/cmd/androidmk/androidmk.go3
2 files changed, 4 insertions, 1 deletions
diff --git a/androidmk/cmd/androidmk/android.go b/androidmk/cmd/androidmk/android.go
index fa25a9f0..7fd9919d 100644
--- a/androidmk/cmd/androidmk/android.go
+++ b/androidmk/cmd/androidmk/android.go
@@ -13,6 +13,7 @@ const (
build_executable = "cc_binary"
build_host_executable = "cc_binary_host"
build_native_test = "cc_test"
+ build_host_native_test = "cc_test_host"
build_prebuilt = "prebuilt"
)
@@ -105,6 +106,7 @@ func androidScope() parser.Scope {
globalScope.Set("BUILD_HOST_STATIC_LIBRARY", build_host_static_library)
globalScope.Set("BUILD_HOST_SHARED_LIBRARY", build_host_shared_library)
globalScope.Set("BUILD_NATIVE_TEST", build_native_test)
+ globalScope.Set("BUILD_HOST_NATIVE_TEST", build_host_native_test)
globalScope.Set("BUILD_EXECUTABLE", build_executable)
globalScope.Set("BUILD_PREBUILT", build_prebuilt)
globalScope.SetFunc("my-dir", mydir)
diff --git a/androidmk/cmd/androidmk/androidmk.go b/androidmk/cmd/androidmk/androidmk.go
index 1c3a68b3..71e69acf 100644
--- a/androidmk/cmd/androidmk/androidmk.go
+++ b/androidmk/cmd/androidmk/androidmk.go
@@ -111,7 +111,8 @@ func main() {
case build_shared_library, build_static_library,
build_executable, build_host_executable,
build_prebuilt, build_host_static_library,
- build_host_shared_library, build_native_test:
+ build_host_shared_library, build_native_test,
+ build_host_native_test:
handleModuleConditionals(file, directive, cond)
makeModule(file, val)